Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to gain GUI after password input #7318

Unanswered
mikeybro asked this question in Q&A
Discussion options

I have a quick question, I have code-server set up and running, I am using openvpn to access code-server directory with --bind-addr 10.8.0.1:80 I am able to get my mobile devices, laptop anything on the network to display to the "Welcome to code-server message, with the password input box, however the browser cycles, I am not using nginx, i do not need that correct? I have very stable connections with the VPN across my devices, and got this far. I am wishing to use just code-server set up listening on the private network, so just me but testing thus far across 5 devices I can get to the Login Page, there are a few issues I am working on. any ideas? i am reviewing code-servers config, I think if I re-install code-server as root maybe? I have attached snaps of my current config, i think the issue has to do with how code-server fecthes content in ubuntu with regards to user permissions? And I am having issues with the configs , the .config.yaml is in /root/
I also noticed that after restarting code-server and attempting to connect i get this: A home directory issue, i am not sure how to fix this at this very moment UPDATE, I havw code-sever --bind-addr 10.8.0.1:80 , I can fetch the login page, submit the password, and heres a tshark capture please look :
Screenshot 2025年04月19日 165457

Screenshot 2025年04月19日 170135

Screenshot 2025年04月19日 172554

Screenshot 2025年04月19日 173625
unnamed (1)

You must be logged in to vote

Replies: 2 comments 5 replies

Comment options

So basically, I need to figure a few things out. I have the code-server running, can access everything fine on the public facing IPv4 address, i need it on either 10.0.0.2 (NOT 10.0.0.2, this is cloudprovider for open ipv4) <----binding makes accesssible to public ipv4 and functions properly(not wanted)(closed)) ---> current use --> 10.8.0.1 . So I have to lock down and do some learning. But anything helps

You must be logged in to vote
0 replies
Comment options

The deviceid dependency will throw that error if there is no HOME environment variable, so you could try setting it (to /root in your case, I believe).

So you can see the login page, but when you submit the form it just keeps showing the login page, is that the issue? And it shows no errors? Can you post code-server's logs after trying to log in? You may want to run code-server with --log-level trace or --log-level debug to generate more logs.

You must be logged in to vote
5 replies
Comment options

I am struggling trying to find the keyword to set the HOME environment variable in the config file, i am trying to edit /lib/systemd/system/code-server.service to see an effect, i have a config.yaml in root directory and another config.yaml in a user directory i do not think these configs are being used. Simply binding back to a public ip address makes code-server function. below is a snapshot of a successful connection
please note i am working with the logs and traces currently
Screenshot 2025年04月25日 180902

NOTE ,when code-server is listening on the public ipv4 everthing works fine.

Comment options

The issues seems to be closely related to openvpn, i can get code-server working correctly binding to either the public ipv6 or ipv4 addresses, but when i bind to 10.8.0.1, i cannot get past the login page

Comment options

Yeah you can edit the service with Environment="HOME=/root" under the [Service] section, although I will mention it is probably better to run as a non-root user. Also, it seems weird that HOME would be missing in the first place. 🤔

But, I doubt the deviceid error is what is causing the issue anyway.

I bet you are right that the VPN is related.

Comment options

Here is a snippet of systemd status code-server after attempting to properly change the Environment in the /lib/systemd/system/code-server.service file.
I am still working on the logs, i am not sure If i should place --log-level trace or --log-level debug in the /lib/systemd/system file, i have to research a few topics i cannot locate too much online for my specific issue most case uses involve using https what not. I am confused as to why simply changing --bind-addr from 10.8.0.1 to the public ip causes code-server to work perfect. I need to check the logs i am just not sure how at this very moment. I am still going through learning the configs, such as User = soso, and looking how the logs checkout. Thanks for the help , also i am using OpenVpN on a host cloud service, everything "workz" fine DNS, etc, over IPv6 etc.

Screenshot 2025年04月28日 213941

Screenshot 2025年04月28日 173426

Screenshot 2025年04月28日 174241

Screenshot 2025年04月28日 182120
Screenshot 2025年04月28日 182630

Comment options

It looks like you need to give your playa1 user permissions to access /var/lib/code-server.

As for the binding, I am not sure I understand your setup. Is 10.8.0.1 the tunnel address? It shows up if you run ip addr on the server? I have never tried binding to that directly, I usually just listen on the local IP address (for example 192.168.1.2 or whatever), make sure it is not accessible externally (firewall or router settings), and then once I am connected with the VPN I go to <local ip>:8080.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /