Open giovi321 opened 4 years ago
Update: I just realized that the git commands issued by QtPass remain active and never end, this is probably why the programs hangs.
When i run ps aux | grep git
I can see the list of git commands issued by QtPass but never ending.
Any idea on how to solve the issue?
I just tried to launch qtpass from the terminal, and I realized that it get stuck during git operations because the window with the password prompt does not appear - the password prompt appeared on the terminal though. Could Wayland be the issue here?
I think it depends on your SSH_AUTH_SOCK
.
So if you're used to having the passwords for ssh being typed in the terminal, then I'd guess QtPass have no way of handling that.
You could try and see if running an ssh-agent first does the trick.
eval $(ssh-agent) && ssh-add && qtpass
You'll get a $SSH_AUTH_SOCK
like:
cmol@bebop:~$ echo $SSH_AUTH_SOCK
/tmp/ssh-k8e0xf0Avgc2/agent.7848
If you're on a desktop like ubuntu, you should see an SSH_AUTH_SOCK
like:
cmol@qui-gon:~$ echo $SSH_AUTH_SOCK
/run/user/1000/keyring/ssh
without needing to run the above commands.
I btw can't say anything on wayland, but I'd guess this is just normal ssh stuff.
@cmol, thank you for the suggestion. Unfortunately this does not solve the issue. I have tried installing pinentry-qt4 as I saw a similar issue from another user but unsuccesfully. Do you have any other idea in mind?
@giovi321 Not really no. Is you ssh key added when you run the commands above or what are the results?
@cmol: here are the results,
g@G:~$ eval $(ssh-agent) && ssh-add && qtpass
Agent pid 22620
@giovi321 And nothing happens in the terminal when you're trying to push or pull?
@cmol qtpass does not start when issuing that command.
@giovi321 And you do not get prompted for a passphrase in the terminal either? What happens if you just run the two ssh commands? Do you get prompted for your ssh key passphrase and then get a "identity added" message?
None of that. If I start qtpass from terminal, I am asked for the ssh passphrase on push or pull, but if I start qtpass with eval $(ssh-agent) && ssh-add && qtpass
nothing happens, I just get an Agend pid number and that's it
Well, that's strange. Not entirely sure about that...
Thank you for trying to help :)
One last information: when I run qtpass from terminal, I always get the following message:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Then it starts normally
@annejan I have no idea about wayland. Do you know some stuff here?
Hi all, I have changed the topic of the discussion. My personal opinion is that this should be treated as a bug as I could reproduce it exactly in the same way using Debian 10 on Wayland running Gnome. Qtpass simply does not ask for the ssh password prompt on pull and push.
Quick update: could reproduce this as well in KDE on wayland.
Just curious, can you try to make an sftp connection to another host that you have a key for, and see if your GUI kicks in and asks for your passphrase?
I gnome (nautilus) you can do ctrl+l (lower case L), and write sftp://address.of.host
Your GUI should find the SSH_AUTH_SOCK (likely a keyring from your machine), and ask for your passphrase in a GUI popup.
I am wondering if there's something different with how wayland looks at envvars. Also, it could be that your system is not creating an ssh keyring.
I made a quick branch to test the SSH_AUTH_SOCK
: https://github.com/cmol/QtPass/tree/ssh_testing
https://github.com/cmol/QtPass/commit/7be4d7cec69f606717b7aa2ff58b0f2da7f21b38
Running Debian 10 Gnome, QtPass 1.2.3 from Gnome repository. I have just set up a new password-store on my PC with a remote repository (correcly works on another machine with Debian 10 XFCE). From the shell pass git pull and pass git push work properly, but when the commands are issued from the buttons within QtPass the program just goes all "grayed", the status says "Updating password-store" but then it remains like that. Any idea on how could I address the issue? Thanks!