passff-host
passff-host copied to clipboard
ls -> (-1) no error message | PassFF failed to execute the host app
General information. Describe your environment
Getting ls -> (-1) no error message
as an error message despite having (hopefully ☺) installed everything.
-
Versions
- Operating system: CentOS 7.5.1804 (Core)
- Browser: Mozilla Firefox 62.0.2
- PassFF: 1.0.2
- Host app: 1.5.1
- Python: 3.6.5
-
How have you installed the host app?
Using curl
, I checked that the files were correctly installed:
; ls -l /home/usr/.mozilla/native-messaging-hosts/passff.py
4.0K -rwxrwxr-x. 1 usr usr 3.4K Sep 25 08:18 /home/usr/.mozilla/native-messaging-hosts/passff.py*
; ls -l /home/usr/.mozilla/native-messaging-hosts/passff.json
4.0K -rw-rw-r--. 1 usr usr 217 Sep 25 08:08 /home/usr/.mozilla/native-messaging-hosts/passff.json
- Your preferences
- In the host app
passff.py
:
- In the host app
COMMAND = "/home/usr/bin/pass"
COMMAND_ARGS = []
COMMAND_ENV = {
"TREE_CHARSET": "ISO-8859-1",
"PATH": "/home/usr/llvm/bin:/home/usr/.npm-global/bin:/home/usr/.pyenv/bin:/home/usr/bin:/home/usr/.local/bin:/home/usr/staging/bin:/home/usr/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/home/usr/.fzf/bin"
}
CHARSET = "UTF-8"
Describe objectively your problem
When I click the "P" icon, I get this error message:
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. [07:57:41] ls -> (-1) no error message
Here is some debugging that might (or might not) be useful:
; pass ls
Password Store
└── www
└── the_economist.gpg
; pass
Password Store
└── www
└── the_economist.gpg
; echo -e "\x02\x00\x00\x00[]" | /home/usr/.mozilla/native-messaging-hosts/passff.py| tail -c +4; echo
{"exitCode": 0, "stdout": "Password Store\n·-- \u001b[00;38;5;33mwww\u001b[00;38;5;253m\n ·-- \u001b[01;38;5;162mthe_economist.gpg\u001b[00;38;5;253m\n", "stderr": "", "version": "1.0.2"}
What else would you need?
Are you using pyenv
on the box in question?
I also ran into this issue with Firefox 62.0.2, but on macOS 10.14. For some reason, the host application did not like the pyenv shim link. When I ran the host installer in a clean shell (one that the pyenv initializations had not run in) and pointed to the system python3, I was able to get it working. You could probably do the same just by opening up passff.py
and changing the hashbang to /usr/bin/python3
(or wherever CentOS keeps the system python3).
Not pyenv no but I have two version of Python3 installed. I was using the wrong one for the script.
I have the same issue. The only difference is that I use python 3.7 and gentoo. I tried both installing host app from repository and using installtion script.
This is an Error executing pass script The upstream version has now a meaningful error.
A file not found, or a bad python3 version can explain this problem.
Make sure the script has correctly installed the files : the troubleshooting and advanced troubleshooting sections in the README come in handy: https://github.com/passff/passff-host#troubleshooting
On Gentoo, a solution for me was to create a symlink like
/usr/lib # ln -s ../lib64/mozilla/ mozilla
@misdoro Did you report the problem on Gentoo bugzilla?
@misdoro Did you report the problem on Gentoo bugzilla?
it is a known issue in Gentoo apparently https://bugs.gentoo.org/687746
I have the same problem on MacOS with Firefox right after first installation of the so called "host application" 😢 Does anyone has a solution that is working? The troubleshooting section wasn't helpful at all. PassFF extension is already uptodate, too.
Well, restarting FF solved my problem… 🤔 🤣
Well, restarting FF solved my problem… thinking rofl
Same for me. Non of the other suggestions above brought me any further, except for restarting FF. It's FF 78.11.0esr (64-bit). This is a pretty much fresh Debian bullseye installation.
Shoud "restart Firefox" be part of the installation documentation or at least of the troubleshooting section?
sudo pacman -S passff-host
@khinsen
those command help me on my Arch Linux
This issue manifested after do-dist-upgrade from Ubuntu 21.04 --> 21.10 ls -> (-1) PassFF failed to execute the host app
I have restarted FF, reinstalled passFF extension, cleaned and reinstalled passff-host via install_host_app.sh and verified path of passff.py $ grep path .mozilla/native-messaging-hosts/passff.json "path": "/home/olli/.mozilla/native-messaging-hosts/passff.py", $ ll /home/olli/.mozilla/native-messaging-hosts/passff.py -rwxrwxr-x 1 olli olli 3842 loka 13 10:24 /home/olli/.mozilla/native-messaging-hosts/passff.py*
passff.py also works from cmd: echo -e "\x02\x00\x00\x00[]" | ~/.mozilla/native-messaging-hosts/passff.py G{"exitCode": 0, "stdout": .... , "stderr": "", "version": "1.2.2"}
My config: $ cat .mozilla/native-messaging-hosts/passff.json { "name": "passff", "description": "Host for communicating with zx2c4 pass", "path": "/home/olli/.mozilla/native-messaging-hosts/passff.py", "type": "stdio", "allowed_extensions": [ "[email protected]" ] } $ python3 Python 3.9.7 (default, Sep 10 2021, 14:59:43)
passff-extensio version 1.13
Is there any way to debug, what is the exact issue e.g. in case of missing file or bad interpreter?
Edit: Seems Ubuntu 21.10 uses Firefox from snap manager. Installing via FF APT seems to work.
This issue manifested after do-dist-upgrade from Ubuntu 21.04 --> 21.10 ls -> (-1) PassFF failed to execute the host app
I have restarted FF, reinstalled passFF extension, cleaned and reinstalled passff-host via install_host_app.sh and verified path of passff.py $ grep path .mozilla/native-messaging-hosts/passff.json "path": "/home/olli/.mozilla/native-messaging-hosts/passff.py", $ ll /home/olli/.mozilla/native-messaging-hosts/passff.py -rwxrwxr-x 1 olli olli 3842 loka 13 10:24 /home/olli/.mozilla/native-messaging-hosts/passff.py*
passff.py also works from cmd: echo -e "\x02\x00\x00\x00[]" | ~/.mozilla/native-messaging-hosts/passff.py G{"exitCode": 0, "stdout": .... , "stderr": "", "version": "1.2.2"}
My config: $ cat .mozilla/native-messaging-hosts/passff.json { "name": "passff", "description": "Host for communicating with zx2c4 pass", "path": "/home/olli/.mozilla/native-messaging-hosts/passff.py", "type": "stdio", "allowed_extensions": [ "[email protected]" ] } $ python3 Python 3.9.7 (default, Sep 10 2021, 14:59:43)
passff-extensio version 1.13
Is there any way to debug, what is the exact issue e.g. in case of missing file or bad interpreter?
Edit: Seems Ubuntu 21.10 uses Firefox from snap manager. Installing via FF APT seems to work.
I experienced the same problem and solved it by the exact same way you mentioned.
Edit: Seems Ubuntu 21.10 uses Firefox from snap manager. Installing via FF APT seems to work.
Same here, really a bummer. Lost a bunch of time until finding this issue (which should belong to https://github.com/passff/passff IMHO). What about at least giving it a word in the troubleshooting section?
How exactly do I this? I assume its the host part, I need to do via 'FF APT' so it gets installed under snap..
ahh.. you mean to say that passff-host does not work with firefox installed via snap at all - so one needs to use firefox installed via apt.. That works for me.. but should it not work with snap? and yeah - a big RED warning label about snap not being supported would be good
Based on this, Ubuntu users might start having a hard time from Ubuntu 22.04.
https://www.reddit.com/r/Ubuntu/comments/tjwsza/firefox_now_only_available_via_snap
I haven't looked into the details, but I'm assuming that FF runs sandboxed in snap which is why it fails to read the system files.
I am not sure what the best solution is though. Exposing an internal TCP socket for the password store, might not be great from a security perspective, but I'm not sure how else to get out of the sandbox?
Maybe snap can specifically mount a file socket or something like that?
EDIT: For future reference, I am just going to drop this one here: https://forum.snapcraft.io/t/system-files-under-mozilla-native-messaging-hosts/13627