Replies: 1 comment 1 reply
-
The issue here seems to be the password authentication. If I set that to Obviously though, I don't want to run code-server without any protection. Is this a known issue? I can find many references to code-server failing to serve a page after login, but those all seem to be related to HTTPS. However, I experience the issue using both HTTP (direct to the EC2 instance) and HTTPS (via an Application Load Balancer). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I'm trying to use
code-server
with Ubuntu 22.04. All appeared to be working and I am able to see the login page and successfully login, but no matter how I configurenginx
, all I get after a successful login is a blank screen. The relevant entries from thenginx
error log can be found below, along with thenginx
andcode-server
configurations.Using dev-tools I have noted the following -
/_static/src/browser
, and are successfully retrieved.stable-2ccd690cbff1569e4a83d7c43d45101f817401dc/static
, with two exceptions. In the case of both exceptions, the same asset from the same path loaded successfully on the login page.manifest.json
fails to load from/manifest.json
.2 .
favicon.ico
fails to load from_static/src/browser/media/favicon.ico
.I did initially wonder if the issue was due to a timeout, but I have tried explicitly adding timeouts that far exceed the load/error time.
Note that the resources yielding errors will load when requested through Postman, or even a browser. It only seems to be
nginx
that is having a problem.I have searched for the files in question (such as
workbench.web.main.js
) and confirmed that all can be read globally (-rw-r--r--
).I have also inspected all logs at ~/.local/share/code-server/logs and they are all empty.
Is anyone able to suggest what the problem may be?
code-server
configNote that I am using HTTPS to connect, with an AWS EC2 instance behind an Application Load Balancer, where TLS terminates. However, I have also tested using HTTP to connect direct to the EC2 instance, and the issue remains.
I have checked to ensure that
code-server
is running usingsudo systemctl status code-server@$USER
, though it must be running otherwise I would see an error rather than the login page. According to the output, the HTTP server is listening on the expected port.nginx
error log.nginx
config at /etc/nginx/sites-available/code-servernginx
config at /etc/nginx/nginx.confBeta Was this translation helpful? Give feedback.
All reactions