request 404 #4904
Unanswered
WeAreAllLonlyGhost
asked this question in
Q&A
request 404
#4904
Replies: 3 comments 3 replies
-
@code-asher this looks similar to what we were seeing before. Any ideas? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think if the tty error causes any issues it is probably separate from the 404. How are you accessing code-server? Directly to the Docker container with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After using NPM to install code server in docker, access the browser and return 404 error. The log shows that TTY cannot be started.
Version: base image Alpine 3.15
node 14.18.1
npm 6.14.15
Log information:
`bash-5.1# code-server /apps -vvv
[2022-02-24T03:47:17.364Z] trace child:312 got message {"message":{"type":"handshake","args":{"bind-addr":"0.0.0.0:88","auth":"password","password":"password","config":"/root/.config/code-server/config.yaml","_":["/apps"],"verbose":true,"user-data-dir":"/root/.local/share/code-server","extensions-dir":"/root/.local/share/code-server/extensions","log":"trace","host":"0.0.0.0","port":88,"proxy-domain":[],"usingEnvPassword":false,"usingEnvHashedPassword":false}}}
[2022-02-24T03:47:17.367Z] info code-server 4.0.2 5cdfe74
[2022-02-24T03:47:17.367Z] info Using user-data-dir ~/.local/share/code-server
[2022-02-24T03:47:17.367Z] trace Using extensions-dir ~/.local/share/code-server/extensions
[2022-02-24T03:47:17.386Z] info Using config file ~/.config/code-server/config.yaml
[2022-02-24T03:47:17.386Z] info HTTP server listening on http://0.0.0.0:88/
[2022-02-24T03:47:17.386Z] info - Authentication is enabled
[2022-02-24T03:47:17.386Z] info - Using password from ~/.config/code-server/config.yaml
[2022-02-24T03:47:17.386Z] info - Not serving HTTPS
[2022-02-24T03:47:20.375Z] trace heartbeat
[11:47:20] Extension host agent started.
[11:47:20] Started scanning user extensions
[11:47:20] resolveShellEnv(): running (macOS/Linux)
[11:47:20] getUnixShellEnvironment#runAsNode undefined
[11:47:20] getUnixShellEnvironment#noAttach undefined
[11:47:20] getUnixShellEnvironment#env {
HOSTNAME: '90c84f85e74b',
PHP_VERSION: '8.0.15',
PHP_INI_DIR: '/usr/local/etc/php',
GPG_KEYS: '1729F83938DA44E27BA0F4D3DBDB397470D12172 BFDDD28642824F8118EF77909B67A5C12229118F',
PHP_LDFLAGS: '-Wl,-O1 -pie',
PWD: '/apps',
HOME: '/root',
PHP_SHA256: '5f33544061d37d805a2a9ce791f081ef08a7155bd7ba2362e69bba2d06b0f8b2',
PHPIZE_DEPS: 'autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c',
TERM: 'xterm',
PHP_URL: 'https://www.php.net/distributions/php-8.0.15.tar.xz',
SHLVL: '1',
PHP_CFLAGS: '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
PHP_ASC_URL: 'https://www.php.net/distributions/php-8.0.15.tar.xz.asc',
PHP_CPPFLAGS: '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
: '/usr/local/bin/code-server',
LOG_LEVEL: 'trace',
CODE_SERVER_PARENT_PID: '301',
NODE_OPTIONS: '--max-old-space-size=2048 ',
VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH: '/usr/local/lib/node_modules/code-server/vendor/modules/code-oss-dev/remote/node_modules',
VSCODE_CWD: '/apps',
ELECTRON_RUN_AS_NODE: '1',
ELECTRON_NO_ATTACH_CONSOLE: '1'
}
[11:47:20] getUnixShellEnvironment#shell /bin/ash
[11:47:20] getUnixShellEnvironment#spawn ["-ilc"] '/usr/local/bin/node' -p '"556c4d419905" + JSON.stringify(process.env) + "556c4d419905"'
[11:47:20] Extension VSIX downlads cache dir does not exist
[11:47:20] Scanned user extensions: 2
[11:47:21] getUnixShellEnvironment#raw 556c4d419905{"VSCODE_CWD":"/apps","LOG_LEVEL":"trace","HOSTNAME":"90c84f85e74b","PHP_INI_DIR":"/usr/local/etc/php","SHLVL":"2","HOME":"/root","NODE_OPTIONS":"--max-old-space-size=2048 ","PAGER":"less","PS1":"\h:\w\$ ","PHP_LDFLAGS":"-Wl,-O1 -pie","PHP_CFLAGS":"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64","PHP_VERSION":"8.0.15","GPG_KEYS":"1729F83938DA44E27BA0F4D3DBDB397470D12172 BFDDD28642824F8118EF77909B67A5C12229118F","PHP_ASC_URL":"https://www.php.net/distributions/php-8.0.15.tar.xz.asc","PHP_CPPFLAGS":"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64","":"script","PHP_URL":"https://www.php.net/distributions/php-8.0.15.tar.xz","TERM":"xterm","VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH":"/usr/local/lib/node_modules/code-server/vendor/modules/code-oss-dev/remote/node_modules","LC_COLLATE":"C","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","CODE_SERVER_PARENT_PID":"301","LANG":"C.UTF-8","ELECTRON_RUN_AS_NODE":"1","PWD":"/apps","PHPIZE_DEPS":"autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c","PHP_SHA256":"5f33544061d37d805a2a9ce791f081ef08a7155bd7ba2362e69bba2d06b0f8b2","CHARSET":"UTF-8","ELECTRON_NO_ATTACH_CONSOLE":"1"}556c4d419905
[11:47:21] getUnixShellEnvironment#stderr /bin/ash: can't access tty; job control turned off
[11:47:21] getUnixShellEnvironment#result {
VSCODE_CWD: '/apps',
LOG_LEVEL: 'trace',
HOSTNAME: '90c84f85e74b',
PHP_INI_DIR: '/usr/local/etc/php',
SHLVL: '2',
HOME: '/root',
NODE_OPTIONS: '--max-old-space-size=2048 ',
PAGER: 'less',
PS1: '\h:\w\$ ',
PHP_LDFLAGS: '-Wl,-O1 -pie',
PHP_CFLAGS: '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
PHP_VERSION: '8.0.15',
GPG_KEYS: '1729F83938DA44E27BA0F4D3DBDB397470D12172 BFDDD28642824F8118EF77909B67A5C12229118F',
PHP_ASC_URL: 'https://www.php.net/distributions/php-8.0.15.tar.xz.asc',
PHP_CPPFLAGS: '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
_: 'script',
PHP_URL: 'https://www.php.net/distributions/php-8.0.15.tar.xz',
TERM: 'xterm',
VSCODE_INJECT_NODE_MODULE_LOOKUP_PATH: '/usr/local/lib/node_modules/code-server/vendor/modules/code-oss-dev/remote/node_modules',
LC_COLLATE: 'C',
PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
CODE_SERVER_PARENT_PID: '301',
LANG: 'C.UTF-8',
PWD: '/apps',
PHPIZE_DEPS: 'autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c',
PHP_SHA256: '5f33544061d37d805a2a9ce791f081ef08a7155bd7ba2362e69bba2d06b0f8b2',
CHARSET: 'UTF-8'
}
[11:47:21] [Theme Service] Scanning for theme extension...
[11:47:21] [Theme Service] theme-abyss
[11:47:21] [Theme Service] theme-defaults
[11:47:21] [Theme Service] theme-kimbie-dark
[11:47:21] [Theme Service] theme-monokai
[11:47:21] [Theme Service] theme-monokai-dimmed
[11:47:21] [Theme Service] theme-quietlight
[11:47:21] [Theme Service] theme-red
[11:47:21] [Theme Service] theme-solarized-dark
[11:47:21] [Theme Service] theme-solarized-light
[11:47:21] [Theme Service] theme-tomorrow-night-blue
[2022-02-24T03:47:35.739Z] debug redirecting from /login to ./
[2022-02-24T03:48:20.381Z] debug 0 active connections
^C[2022-02-24T03:52:28.602Z] debug child:312 disposing {"code":"SIGINT"}
`
Beta Was this translation helpful? Give feedback.
All reactions