Skip to content

Websocket connection drops if user logged out from ssh #1882

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

Closed
beykansen opened this issue Jul 14, 2020 · 5 comments · Fixed by #1997
Closed

Websocket connection drops if user logged out from ssh #1882

beykansen opened this issue Jul 14, 2020 · 5 comments · Fixed by #1997
Milestone

Comments

@beykansen
Copy link

I've installed code-server via sh script as root user. But after closing ssh connection from my mac terminal, on browser web socket connection drops too. Then it turns to 502 error page. After reconnect ssh from terminal and reload web page, 502 goes away and everything returning to normal.

I am not using ssh tuneling. I've nginx reverse proxy front of it. As a workaround, I've created screen session on another vm and connected as root to keep alive ssh connection and keep logged in status of root user.

Why this is happening? Do you guys have any idea? My main use case, turning my ipad to development machine.

Thank you for your help.

@jinexists-oldaccount
Copy link

I had the same issue, for me it was an issue with systemd not starting services at boot under my user.
I fixed it by enabling user lingering for my user.
loginctl enable-linger username
This worked for me on Ubuntu 20.04.

@preslavrachev
Copy link

@jinexists This worked very well for me too. Thanks!

@kylecarbs
Copy link
Member

Thanks @jinexists !

@nhooyr
Copy link
Contributor

nhooyr commented Jul 21, 2020

Lets document this in the FAQ.

@nhooyr nhooyr reopened this Jul 21, 2020
nhooyr added a commit that referenced this issue Jul 22, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771 #1673 #1882 #1861
nhooyr added a commit that referenced this issue Jul 22, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771 #1673 #1882 #1861
nhooyr added a commit that referenced this issue Jul 22, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771 #1673 #1882 #1861
nhooyr added a commit that referenced this issue Jul 22, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771
Closes #1673
Closes #1882
Closes #1861
nhooyr added a commit that referenced this issue Jul 22, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771
Closes #1673
Closes #1882
Closes #1861
nhooyr added a commit that referenced this issue Jul 22, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771
Closes #1673
Closes #1882
Closes #1861
nhooyr added a commit that referenced this issue Jul 22, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771
Closes #1673
Closes #1882
Closes #1861
nhooyr added a commit that referenced this issue Aug 4, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771
Closes #1673
Closes #1882
Closes #1861
nhooyr added a commit that referenced this issue Aug 25, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771
Closes #1673
Closes #1882
Closes #1861
nhooyr added a commit that referenced this issue Aug 26, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771
Closes #1673
Closes #1882
Closes #1861
nhooyr added a commit that referenced this issue Aug 27, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771
Closes #1673
Closes #1882
Closes #1861
nhooyr added a commit that referenced this issue Aug 27, 2020
systemd's user units are buggy on certain versions
and do not linger by default.

Closes #1771
Closes #1673
Closes #1882
Closes #1861
@nhooyr nhooyr added this to the v3.5.0 milestone Aug 31, 2020
@nhooyr
Copy link
Contributor

nhooyr commented Aug 31, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants