Skip to content

[BUG] code-server opens blank page when running new version #194

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
1 task done
yourfavoriteweapon opened this issue Feb 19, 2025 · 43 comments
Closed
1 task done

Comments

@yourfavoriteweapon
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If I change the repo tolscr.io/linuxserver/code-server:4.96.4-ls254 then it will still work as normal.

However If I leave it was lscr.io/linuxserver/code-server or lscr.io/linuxserver/code-server:latest then when I launch code-server I just get a blank white page.

Expected Behavior

Code server should run as normal.

Steps To Reproduce

  1. update code-server to newest version
  2. try to login

Environment

- OS:Unraid
- How docker service was installed:linuxserver image installed from community app store

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='code-server'
  --net='bridge'
  -e TZ="America/Chicago"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Homebase"
  -e HOST_CONTAINERNAME="code-server"
  -e 'PASSWORD'=
  -e 'HASHED_PASSWORD'=''
  -e 'SUDO_PASSWORD'=''
  -e 'SUDO_PASSWORD_HASH'=''
  -e 'PROXY_DOMAIN'='XXXXXXXX'
  -e 'DEFAULT_WORKSPACE'='/config/workspace'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8443]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/code-server-logo.png'
  -p '8443:8443/tcp'
  -v '/mnt/user/appdata/':'/appdata':'rw'
  -v '/mnt/user/appdata/code-server':'/config':'rw' 'lscr.io/linuxserver/code-server'
9c729252704c8685bb65bcbe4fafaa5bcbb1610c24b26e9637729a6192681885

The command finished successfully!

Container logs

──────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    99
User GID:    100
───────────────────────────────────────
Linuxserver.io version: 4.97.2-ls255
Build-date: 2025-02-18T19:43:23+00:00
───────────────────────────────────────
    
setting up sudo access
adding abc to sudoers
setting sudo password using SUDO_PASSWORD env var
[custom-init] No custom files found, skipping...
[2025-02-19T02:08:57.983Z] info  code-server 4.97.2 34b8d2ed69811c3315a465f01492e9448c9254aa
[2025-02-19T02:08:57.987Z] info  Using user-data-dir /config/data
[2025-02-19T02:08:57.997Z] info  Using config file /config/.config/code-server/config.yaml
[2025-02-19T02:08:57.997Z] info  HTTP server listening on http://0.0.0.0:8443/
[2025-02-19T02:08:57.997Z] info    - Authentication is enabled
[2025-02-19T02:08:57.997Z] info      - Using password from $PASSWORD
[2025-02-19T02:08:57.997Z] info    - Not serving HTTPS
[2025-02-19T02:08:57.997Z] info    - Proxying the following domain:
[2025-02-19T02:08:57.997Z] info      - {{port}}.code.
[2025-02-19T02:08:57.998Z] info  Using proxy URI in PORTS tab: //{{port}}.
[2025-02-19T02:08:57.998Z] info  Session server listening on /config/data/code-server-ipc.sock
[ls.io-init] done.
[20:08:58] 
[20:08:58] Extension host agent started.
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@rbrowning85
Copy link

I am experiencing the same issue. Running CodeServer on Unraid.

@Xelator23
Copy link

Xelator23 commented Feb 19, 2025

Same problem with new update .. using unraid

switch back to "4.96.4-ls254" and it will work

@Livefour2day
Copy link

Livefour2day commented Feb 19, 2025

Yes I am also experiencing the same balnk page after password is entered after latest update in Unraid

@crtvrmn
Copy link

crtvrmn commented Feb 19, 2025

can confirm, :latest resulted in a blank white page. /edit: this is NOT unraid but normal-people-docker

Linuxserver.io version: 4.97.2-ls255
Build-date: 2025-02-18T19:43:23+00:00

───────────────────────────────────────

   
[custom-init] No custom files found, skipping...
starting with no password
[2025-02-19T09:13:15.001Z] info  code-server 4.97.2 34b8d2ed69811c3315a465f01492e9448c9254aa
[2025-02-19T09:13:15.002Z] info  Using user-data-dir /config/data
[2025-02-19T09:13:15.017Z] info  Using config file /config/.config/code-server/config.yaml
[2025-02-19T09:13:15.017Z] info  HTTP server listening on http://0.0.0.0:8443/
[2025-02-19T09:13:15.017Z] info    - Authentication is disabled
[2025-02-19T09:13:15.017Z] info    - Not serving HTTPS
[2025-02-19T09:13:15.017Z] info  Session server listening on /config/data/code-server-ipc.sock
Connection to 127.0.0.1 8443 port [tcp/*] succeeded!
[ls.io-init] done.
[10:14:05] 
[10:14:05] Extension host agent started.

switching back to :4.96.4-ls254 works fine again.

Linuxserver.io version: 4.96.4-ls254
Build-date: 2025-02-15T20:26:18+00:00
───────────────────────────────────────

   
[custom-init] No custom files found, skipping...
starting with no password
[2025-02-19T09:30:18.262Z] info  code-server 4.96.4 b7ef8f9bd70cb5b342fa8ec8a0086bad676d8124
[2025-02-19T09:30:18.264Z] info  Using user-data-dir /config/data
[2025-02-19T09:30:18.279Z] info  Using config file /config/.config/code-server/config.yaml
[2025-02-19T09:30:18.279Z] info  HTTP server listening on http://0.0.0.0:8443/
[2025-02-19T09:30:18.279Z] info    - Authentication is disabled
[2025-02-19T09:30:18.279Z] info    - Not serving HTTPS
[2025-02-19T09:30:18.279Z] info  Session server listening on /config/data/code-server-ipc.sock
Connection to 127.0.0.1 8443 port [tcp/*] succeeded!
[ls.io-init] done.

i think the first error i saw (but it never came back up again) was something with "version missmatch". but i can not reproduce, nor find the exact error again.

@ch3p4ll3
Copy link

Image
I think I found the problem, crypto.randomUUID method is available only in secure contexts

@Crivit
Copy link

Crivit commented Feb 19, 2025

Experiencing same issue, running Code Server on Ubuntu

@chraac
Copy link

chraac commented Feb 19, 2025

Same here, on ubuntu 22.04 lts

@formatBCE
Copy link

Same, docker on Debian Bookworm.

@scuppasteve
Copy link

Same issue Docker on Unraid.

@gurupanguji
Copy link

same issue - docker on Unraid

@pvergezac
Copy link

I confirm same white page error and presence of error in Firefow console about crypto.randomUUID.

Image

@Roxedus
Copy link
Member

Roxedus commented Feb 20, 2025

coder/code-server#7212 We will have to wait for a fixed version.

@Roxedus Roxedus pinned this issue Feb 20, 2025
@dm9tr0

This comment has been minimized.

@Walkerby

This comment has been minimized.

@trashken

This comment has been minimized.

@j0nnymoe
Copy link
Member

People don't need to keep saying same problem, it's been established it's an upstream issue.

@corasaniti

This comment has been minimized.

@Livefour2day
Copy link

latest release 4.96.4-ls256 still has not fixed the issue

@tannisroot
Copy link

I believe (correct me if I am wrong) this will not be fixed until new upstream version with microsoft/vscode#241690 is shipped which iirc won't happen until March.

@gurues

This comment has been minimized.

@VennBit
Copy link

VennBit commented Mar 2, 2025

Can confirm I was seeing this, too. Once I finished the setup and it was going through the proxy and SSL it started working again.

@trevSaw
Copy link

trevSaw commented Mar 3, 2025

Has this been fixed? I am also experiencing the same issue

@Roxedus
Copy link
Member

Roxedus commented Mar 3, 2025

No, the fact that the issue is still open should be a good indicator it is not.

@Hanzzie18

This comment has been minimized.

@dm9tr0
Copy link

dm9tr0 commented Mar 5, 2025

Of course guys you can continue marking such message as "spam", but it is critical and many users for last 2 weeks have no GUI, just empty page instead of VS code, I have seen that you already released some new version, but it didn`t help.
I absolutely dont understand your priority.

CRITICAL ISSUE!

@Roxedus
Copy link
Member

Roxedus commented Mar 5, 2025

This is not something we can fix.

  1. Vscode merged only rely on crypto.getRandomValues and treat randomUUID as being optional microsoft/vscode#241690 which needs a release
  2. Then coder/code-server pulls in that version into their codebase and does a release
  3. At this point we can pick up this release

There is nothing for us to prioritize. Adding a new "same issue" comment makes the comments that actually matters, and explains the situation blend in.

@dm9tr0
Copy link

dm9tr0 commented Mar 5, 2025

This is not something we can fix.

  1. Vscode merged only rely on crypto.getRandomValues and treat randomUUID as being optional microsoft/vscode#241690 which needs a release
  2. Then coder/code-server pulls in that version into their codebase and does a release
  3. At this point we can pick up this release

There is nothing for us to prioritize. Adding a new "same issue" comment makes the comments that actually matters, and explains the situation blend in.

Now I got it, thanks, so only one solution - to refuse of using this container.

@Roxedus
Copy link
Member

Roxedus commented Mar 5, 2025

I dont see how that is a solution when:

upstream microsoft codeserver is affected
upstream coder code-server is affected
gitpods openvscode-server is affected (which we also offer as a image)

@aptalca
Copy link
Member

aptalca commented Mar 5, 2025

Now I got it, thanks, so only one solution - to refuse of using this container.

You can put it behind a reverse proxy with a proper ssl cert, or you can go back to an older version before the bug was introduced.

@dm9tr0
Copy link

dm9tr0 commented Mar 5, 2025

I suppose that was fixed and soon will be in release coder/code-server#7245

@gurupanguji
Copy link

Or just pull the previous version of the image and run that as the container. If you're using the linuxserver docker image, I've written up some instructions here: https://gurupanguji.com/2025/02/21/version-4-9-72-of-code-server-is-no-bueno-switch-to-the-previous-version-to-get-it-working-again/

@CuddlyCornet645
Copy link

Im on debian 12.9 and im also expiriencing that issue. so what did you guys do to resolve this issue? just install an older version until a update drops that patches this bug? or can i just add a ssl cert and it will work? can someone help?

@aptalca
Copy link
Member

aptalca commented Mar 5, 2025

Either of those options would work.

I have mine reverse proxied with SWAG and it works fine.

@Jeff254
Copy link

Jeff254 commented Mar 8, 2025

Of course guys you can continue marking such message as "spam", but it is critical and many users for last 2 weeks have no GUI, just empty page instead of VS code, I have seen that you already released some new version, but it didn`t help. I absolutely dont understand your priority.

CRITICAL ISSUE!

I agree with you. I have had the same issue on UnRaid and it is a tad frustrating. No GUI, can't access and update my configurations. Almost everyday i check for an update but Nothing. So frustrating..

@Cyberbeni
Copy link

@Roxedus new VSCode version with the fix has been released: https://github.com/microsoft/vscode/releases/tag/1.98.0

@MSM74588

This comment has been minimized.

@Roxedus
Copy link
Member

Roxedus commented Mar 8, 2025

Step 2 is not done, coder has not pushed a stable release yet.

It is not fixed upstream quite yet.

@HelloMihai

This comment has been minimized.

@HelloMihai

This comment has been minimized.

@Roxedus
Copy link
Member

Roxedus commented Mar 9, 2025

There is no need to rehash the information thats already in the visible comments. That will be marked as spam, together with "same issue" to keep the comments with useful info visible.

@Roxedus
Copy link
Member

Roxedus commented Mar 10, 2025

https://github.com/linuxserver/docker-code-server/releases/tag/4.98.0-ls259 is now built, and showing a UI for me without https.

Thanks for the patience all.

@Roxedus Roxedus closed this as completed Mar 10, 2025
@Roxedus Roxedus unpinned this issue Mar 10, 2025
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests