-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zombie sockets left behind #94
Comments
This is the behaviour on all platforms. But in my windows vm, the sockets get replaced on daemon restart. Still, I agree that this behaviour can be improved. |
For Windows / SSH this should not apply anymore since we use the openssh named pipe now. (The goldwarden socket itself does still apply though). |
Could you post the logs when the daemon "refuses to start"? Checking the code it should forcefully delete the existing socket, even if there is still a daemon listening there. |
Would the log from 0.2.10 still be useful to you even if the code changed so much in the meantime? I didn't really want to set up a Go dev environment to build it myself 😹 but I can if it would help. |
Possibly fixed in: |
You can download the binary from the github ci actions, no need to set up a dev environment. |
To even log in at all, you need a newer version than you are running (such as the one I linked above), and install GPG4Win (https://gpg4win.org/download.html) to get the pinentry working. |
Got it, I'll give it a shot. Already have GPG4Win here. |
The openssh agent should be stopped in services.msc , the pipe path look correct. |
Ok. The service is stopped (it has been for a while, as I was using 1password's). I also stopped 1password's agent, but no change. For science, I even quit 1password completely, but still no go. The path is correct? Where is it trying to create the pipe? “Access is denied” might indicate it's trying to create it somewhere my user doesn't have write permission, which is something that could conceivably be different between my setup and your test VM. |
Hm. I think I found the issue. I had OpenSSH on “manual” instead of “disabled”, and something was starting it 🤔 with that out of the way, Goldwarden could start, set pin, and log in. More importantly, closing it and running it again worked fine, so I can confirm this bug is fixed on Windows. 🎉 |
Thanks for testing and reporting! |
Split off from #4 (comment)
Issue: if the daemon closes/crashes, sockets are left behind, and then it will refuse to start because the sockets exist.
Possibly only happens on Windows, due to the different way Windows implements sockets.
Possible workaround/fix:
Keeping a pidfile might be an idea too, but I feel querying the socket might be simpler.
The text was updated successfully, but these errors were encountered: