Skip to content
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

Client times out on first login if VMs are not running (Qubes only) #181

Closed
eloquence opened this issue Nov 16, 2018 · 8 comments · Fixed by #612
Closed

Client times out on first login if VMs are not running (Qubes only) #181

eloquence opened this issue Nov 16, 2018 · 8 comments · Fixed by #612
Assignees
Labels
bug Something isn't working

Comments

@eloquence
Copy link
Member

eloquence commented Nov 16, 2018

Due to the relatively short timeout period, and the fact that it takes several seconds to launch a Whonix VM and connect to Tor, the first login attempt with the client is likely to fail with the error message "The connection to the SecureDrop server timed out".

@eloquence eloquence added the bug Something isn't working label Nov 16, 2018
@eloquence eloquence added this to the 0.1.0beta milestone Nov 16, 2018
@kushaldas
Copy link
Contributor

We should add some sort of default call to the whonix vm (the proxy) to start when client vm starts up.

@conorsch
Copy link
Contributor

Resolved by freedomofpress/securedrop-workstation#255

@eloquence
Copy link
Member Author

I saw this again in Qubes with a freshly provisioned build (make clean && make all), I believe because the sd-whonix VM wasn't running yet. Will try to repro but reopening for now.

@eloquence eloquence reopened this Oct 28, 2019
@sssoleileraaa
Copy link
Contributor

here's what i did when trying to repro:

  1. shutdown sd-proxy and sd-whonix vms
  2. log into the client if you are logged out

Expected

sd-whonix and sd-proxy start (takes about 30 seconds or so), sd-whonix shows that it's connecting to Tor, then my user account is authenticated and login is successful

Actual

sd-whonix and sd-proxy start (takes about 30 seconds or so), sd-whnoix shows that it's connecting to Tor, then I see "There was a problem signing in"

@redshiftzero
Copy link
Contributor

hmm so both sd-proxy and sd-whonix (since the NetVM is started when sd-proxy starts) start on boot for me (as I would expect since freedomofpress/securedrop-workstation#255) - can you confirm if this is also the case for you?

@eloquence eloquence changed the title Client times out on first login (Qubes only) Client times out on first login if VMs are not running (Qubes only) Dec 4, 2019
@eloquence
Copy link
Member Author

I am 99% sure I didn't reboot after running make all. If possible, I think we should still have a smarter check on login to ensure the VMs are running, rather than just failing. I've retitled the issue accordingly and moved it off the beta milestone for now.

@eloquence eloquence modified the milestones: 0.2.0beta, Post-Beta Dec 4, 2019
@eloquence
Copy link
Member Author

Can confirm that this now works in local testing, though beating the TOTP clock if VMs aren't running yet appears to be luck of the draw.

@sssoleileraaa
Copy link
Contributor

could you make a separate issue for checking if certain VMs are running from the client?

legoktm added a commit that referenced this issue Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants