Skip to content

[Bug]: 404 Error once logged in #4947

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
2 of 3 tasks
Yusuf-Uluc opened this issue Mar 4, 2022 · 4 comments
Closed
2 of 3 tasks

[Bug]: 404 Error once logged in #4947

Yusuf-Uluc opened this issue Mar 4, 2022 · 4 comments
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@Yusuf-Uluc
Copy link

Yusuf-Uluc commented Mar 4, 2022

Is there an existing issue for this?

OS/Web Information

  • Web Browser: Brave
  • Local OS: Arch Linux
  • Remote OS: Debian 11
  • Remote Architecture: x86_64
  • code-server --version: Tested with 4.0.1 and latest (4.0.2)

Steps to Reproduce

  1. open code-server
  2. Enter the local port that the code-server is on
  3. Submit Password

Expected

VsCode should be opened

Actual

404 Error page Shows up

Logs

Browser Console:

GET https://212.227.197.148:8080/ 404 (Not Found)

Verbose Output:

[2022-03-04T00:27:35.771Z] trace heartbeat
[00:27:35] Extension host agent started.
[00:27:35] Started scanning user extensions
[00:27:35] resolveShellEnv(): running (macOS/Linux)
[00:27:35] getUnixShellEnvironment#runAsNode undefined
[00:27:36] getUnixShellEnvironment#noAttach undefined
[00:27:36] getUnixShellEnvironment#env {
  USER: 'root',
  LOGNAME: 'root',
  HOME: '/root',
  PATH: '/root/.nvm/versions/node/v14.19.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  SHELL: '/usr/bin/zsh',
  TERM: 'xterm-256color',
  XDG_SESSION_ID: '1',
  XDG_RUNTIME_DIR: '/run/user/0',
  DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/user/0/bus',
  XDG_SESSION_TYPE: 'tty',
  XDG_SESSION_CLASS: 'user',
  MOTD_SHOWN: 'pam',
  LANG: 'en_US.UTF-8',
  SSH_CLIENT: '95.208.126.81 40876 22',
  SSH_CONNECTION: '95.208.126.81 40876 212.227.197.148 22',
  SSH_TTY: '/dev/pts/0',
  SHLVL: '1',
  PWD: '/root',
  OLDPWD: '/root',
  NVM_DIR: '/root/.nvm',
  NVM_CD_FLAGS: '-q',
  NVM_BIN: '/root/.nvm/versions/node/v14.19.0/bin',
  NVM_INC: '/root/.nvm/versions/node/v14.19.0/include/node',
  _: '/usr/local/bin/code-server',
  LOG_LEVEL: 'trace',
  CODE_SERVER_PARENT_PID: '13421',
  NODE_OPTIONS: '--max-old-space-size=2048 ',
  VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH: '/usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/remote/node_modules',
  VSCODE_CWD: '/root',
  ELECTRON_RUN_AS_NODE: '1',
  ELECTRON_NO_ATTACH_CONSOLE: '1'
}
[00:27:36] getUnixShellEnvironment#shell /usr/bin/zsh
[00:27:36] getUnixShellEnvironment#spawn ["-ilc"] '/root/.nvm/versions/node/v14.19.0/bin/node'  -p '"7f2527de453b" + JSON.stringify(process.env) + "7f2527de453b"'
[00:27:36] Extension VSIX downlads cache dir does not exist
[00:27:36] Scanned user extensions: 0
[00:27:36] [Theme Service] Scanning for theme extension...
[00:27:36] [Theme Service] theme-abyss
[00:27:36] [Theme Service] theme-defaults
[00:27:36] [Theme Service] theme-kimbie-dark
[00:27:36] [Theme Service] theme-monokai
[00:27:36] [Theme Service] theme-monokai-dimmed
[00:27:36] [Theme Service] theme-quietlight
[00:27:36] [Theme Service] theme-red
[00:27:36] [Theme Service] theme-solarized-dark
[00:27:36] [Theme Service] theme-solarized-light
[00:27:36] [Theme Service] theme-tomorrow-night-blue
[00:27:36] getUnixShellEnvironment#raw 7f2527de453b{"USER":"root","LOGNAME":"root","HOME":"/root","PATH":"/root/.nvm/versions/node/v14.19.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","SHELL":"/usr/bin/zsh","TERM":"xterm-256color","XDG_SESSION_ID":"1","XDG_RUNTIME_DIR":"/run/user/0","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/0/bus","XDG_SESSION_TYPE":"tty","XDG_SESSION_CLASS":"user","MOTD_SHOWN":"pam","LANG":"en_US.UTF-8","SSH_CLIENT":"95.208.126.81 40876 22","SSH_CONNECTION":"95.208.126.81 40876 212.227.197.148 22","SSH_TTY":"/dev/pts/0","SHLVL":"1","PWD":"/root","OLDPWD":"/root","NVM_DIR":"/root/.nvm","NVM_CD_FLAGS":"-q","NVM_BIN":"/root/.nvm/versions/node/v14.19.0/bin","NVM_INC":"/root/.nvm/versions/node/v14.19.0/include/node","_":"/root/.nvm/versions/node/v14.19.0/bin/node","LOG_LEVEL":"trace","CODE_SERVER_PARENT_PID":"13421","NODE_OPTIONS":"--max-old-space-size=2048 ","VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH":"/usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/remote/node_modules","VSCODE_CWD":"/root","ELECTRON_RUN_AS_NODE":"1","ELECTRON_NO_ATTACH_CONSOLE":"1"}7f2527de453b

[00:27:36] getUnixShellEnvironment#result {
  USER: 'root',
  LOGNAME: 'root',
  HOME: '/root',
  PATH: '/root/.nvm/versions/node/v14.19.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
  SHELL: '/usr/bin/zsh',
  TERM: 'xterm-256color',
  XDG_SESSION_ID: '1',
  DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/user/0/bus',
  XDG_SESSION_TYPE: 'tty',
  XDG_SESSION_CLASS: 'user',
  MOTD_SHOWN: 'pam',
  LANG: 'en_US.UTF-8',
  SSH_CLIENT: '95.208.126.81 40876 22',
  SSH_CONNECTION: '95.208.126.81 40876 212.227.197.148 22',
  SSH_TTY: '/dev/pts/0',
  SHLVL: '1',
  PWD: '/root',
  OLDPWD: '/root',
  NVM_DIR: '/root/.nvm',
  NVM_CD_FLAGS: '-q',
  NVM_BIN: '/root/.nvm/versions/node/v14.19.0/bin',
  NVM_INC: '/root/.nvm/versions/node/v14.19.0/include/node',
  _: '/root/.nvm/versions/node/v14.19.0/bin/node',
  LOG_LEVEL: 'trace',
  CODE_SERVER_PARENT_PID: '13421',
  NODE_OPTIONS: '--max-old-space-size=2048 ',
  VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH: '/usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/remote/node_modules',
  VSCODE_CWD: '/root'
}

Screenshot/Video

Screenshot_20220304_012246

Does this issue happen in VS Code?

  • I cannot reproduce this in VS Code.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

I tried both and I ended up with the same result.

@Yusuf-Uluc Yusuf-Uluc added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Mar 4, 2022
@edvincent
Copy link
Contributor

Did you test installing 4.1.0? Should work with the fix from #4900

@Yusuf-Uluc
Copy link
Author

Did you test installing 4.1.0? Should work with the fix from #4900

I tried 4.0.1 but what fix? Changing the Express version?

@jsjoeio
Copy link
Contributor

jsjoeio commented Mar 4, 2022

@Yusuf-Uluc can you please upgrade to 4.1.0?

@Yusuf-Uluc
Copy link
Author

@jsjoeio I fixed it already by downloading it from the AUR
https://aur.archlinux.org/packages/code-server

@jsjoeio jsjoeio closed this as completed Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants