I use vscode.dev to develop a small app. To do this I have installed nodejs and the code tunnel app on my droplet. Everything works fine, I can edit, compile, and debug my app from vscode.dev.
My problem is that after some time vscode.dev loses connection to my droplet. I have discovered that I get the connection to work again, by opening a console to my droplet from the digital ocean site.
I wonder how I can stop my droplet from disconnecting vscode.dev? So that I don’t have to keep the console open all the time…
thanks, sam
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
It looks like I found a solution.
sudo loginctl enable-linger $USER
Heya, @samdejonghhepworth
The issue you’re facing is likely related to your droplet terminating idle connections or entering a low-activity state.
You can try using a keep-alive option when starting Code Tunnel:
If this option doesn’t exist for your version, check the Code Tunnel documentation for updated flags.
Hope that this helps!
Hey!
The most common cause for this issue is SSH timing out due to inactivity. There was a similar discussion reported here and the user was able to get it working by increasing that in their SSH config:
You can try to configure your Droplet’s SSH server.
Let me know how it goes!
- Bobby