passff-host icon indicating copy to clipboard operation
passff-host copied to clipboard

[Windows] Unable to install

Open mirenbz opened this issue 7 years ago • 4 comments

General information. Describe your environment

  • Versions

    • Operating system: Windows 10 1709
    • Browser: Firefox 60.0.1
  • PassFF: 1.3

    • Host app: I don't think it is installed correctly
  • How have you installed the host app?

I tried with the install_host_app.bat script, get errors, then says "The operation was completed correctly" (which is not true).

  • Your preferences
    • In the host app passff.py: I can't find a passff.py

Describe objectively your problem

When I try to execute the install_host_app.bat script in Powershell, I get the following output:

Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel.
At line: 1 char: 1
+ (New-Object Net.WebClient).DownloadFile('https://github.com/passff/pa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel.
At line: 1 char: 1
+ (New-Object Net.WebClient).DownloadFile('https://github.com/passff/pa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Get-Content : Cannot find path 'C:\Users\miren.berasategi\AppData\Roaming\passff\passff.json' because it does not exist.
At line: 1 char: 2
+ (Get-Content 'C:\Users\<my-user>\AppData\Roaming\passff\passff ...
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\<my-user>\....sff\passff.json:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

The operation completed successfully.

The Firefox plugin says:

Connection to the host app failed or returned an unexpected result! Make sure you have the latest version of the PassFF host app installed by following the installation instructions on GitHub.

What can I try? Thanks!

mirenbz avatar Jun 06 '18 14:06 mirenbz

Thanks for the report!

It seems related to the issue resolved by this PR: https://github.com/passff/passff-host/pull/15 You could try running the version of the script proposed by the PR.

This PR simply adds the following command to prepare the download:

[Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;

5bentz avatar Jun 06 '18 14:06 5bentz

Thanks for the quick response @5bentz . However, I get almost the exact same output:

Exception calling "DownloadFile" with "2" argument(s): "The request was aborted:  The connection was closed unexpectedly."
At line: 1 char: 89
+ ... pe]::Tls12; (New-Object Net.WebClient).DownloadFile('https://github.c ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Exception calling "DownloadFile" with "2" argument(s): "The request was aborted:  The connection was closed unexpectedly."
At line: 1 char: 89
+ ... pe]::Tls12; (New-Object Net.WebClient).DownloadFile('https://github.c ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Get-Content : Cannot find path 'C:\Users\<my-user>\AppData\Roaming\passff\passff.json' because it does not exist.
At line: 1 char: 2
+ (Get-Content 'C:\Users\<my-user>\AppData\Roaming\passff\passff ...
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\<my-user>\....sff\passff.json:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

The operation completed successfully.

It now seems that there is some kind of connection problem... Clues?

mirenbz avatar Jun 06 '18 14:06 mirenbz

As mentioned on Gitter, you could try the Cygwin path: https://github.com/passff/passff-host/pull/23

5bentz avatar Jun 17 '18 22:06 5bentz

For the record, the Cygwin path almost worked following your steps in #2 . Now I just need to make it use the correct path to the password store! 🎉 🎉

mirenbz avatar Jun 18 '18 08:06 mirenbz