Skip to content

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

Closed

Description

@yourfavoriteweapon

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.

Activity

  1. github-actions commented on Feb 19, 2025

    @github-actions

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

  2. rbrowning85 commented on Feb 19, 2025

    @rbrowning85

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

  3. Xelator23 commented on Feb 19, 2025

    @Xelator23

    Same problem with new update .. using unraid

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

  4. Livefour2day commented on Feb 19, 2025

    @Livefour2day

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

  5. crtvrmn commented on Feb 19, 2025

    @crtvrmn

    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.

  6. ch3p4ll3 commented on Feb 19, 2025

    @ch3p4ll3

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

  7. Crivit commented on Feb 19, 2025

    @Crivit

    Experiencing same issue, running Code Server on Ubuntu

  8. chraac commented on Feb 19, 2025

    @chraac

    Same here, on ubuntu 22.04 lts

  9. formatBCE commented on Feb 19, 2025

    @formatBCE

    Same, docker on Debian Bookworm.

  10. scuppasteve commented on Feb 19, 2025

    @scuppasteve

    Same issue Docker on Unraid.

  11. gurupanguji commented on Feb 20, 2025

    @gurupanguji

    same issue - docker on Unraid

  12. pvergezac commented on Feb 20, 2025

    @pvergezac

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

    Image

  13. 20 remaining items

  14. d1-m4ss commented on Mar 5, 2025

    @d1-m4ss

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

  15. gurupanguji commented on Mar 5, 2025

    @gurupanguji

    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/

  16. jadebi commented on Mar 5, 2025

    @jadebi

    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?

  17. aptalca commented on Mar 5, 2025

    @aptalca
    Member

    Either of those options would work.

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

  18. Jeff254 commented on Mar 8, 2025

    @Jeff254

    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..

  19. Cyberbeni commented on Mar 8, 2025

    @Cyberbeni

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

  20. MSM74588 commented on Mar 8, 2025

    @MSM74588
  21. Roxedus commented on Mar 8, 2025

    @Roxedus
    Member

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

    It is not fixed upstream quite yet.

  22. HelloMihai commented on Mar 9, 2025

    @HelloMihai
  23. HelloMihai commented on Mar 9, 2025

    @HelloMihai
  24. Roxedus commented on Mar 9, 2025

    @Roxedus
    Member

    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.

  25. Roxedus commented on Mar 10, 2025

    @Roxedus
    Member

    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.

  26. unpinned this issue on Mar 10, 2025
  27. moved this from Issues to Done in Issue & PR Trackeron Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions