You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm maybe there is something wrong with the cross-compilation step. It
sets some variables that seem related to gcc...maybe we need something
similar for Rust.
I am not sure how this works actually. The argon2 module has a bunch of optional dependencies for the various per-platform builds (@node-rs/argon2-win32-x64-msvc for example). Does Node only download optional dependencies if they match the current platform? If so why does it download the wrong ones? We set NODE_CONFIG_ARCH but maybe that is not enough.
@code-asher Directories in ./node_modules/@node-rs of code-server-4.0.2-linux-arm64.tar.gz:
argon2
argon2-linux-x64-gnu
argon2-linux-x64-musl
Why are there argon2-linux-x64-gnu and argon2-linux-x64-musl instead of argon2-linux-arm64-gnu?
Thanks for mentioning this. I can temporarily fix it by manually downloading https://registry.yarnpkg.com/@node-rs/argon2-linux-arm64-gnu/-/argon2-linux-arm64-gnu-1.0.5.tgz and put it into /usr/lib/code-server/node_modules/@node-rs/argon2-linux-arm64-gnu.
Hmm maybe there is something wrong with the cross-compilation step. It
sets some variables that seem related to gcc...maybe we need something
similar for Rust.
Let me ping the node-rs team (they were super helpful when we made the migration).
cc @Brooooooklyn@yisibl - is there anything obvious we might have missed in the migration? Otherwise, I'll see if I can dig in and see where this is coming form.
Thanks for mentioning this. I can temporarily fix it by manually downloading https://registry.yarnpkg.com/@node-rs/argon2-linux-arm64-gnu/-/argon2-linux-arm64-gnu-1.0.5.tgz and put it into /usr/lib/code-server/node_modules/@node-rs/argon2-linux-arm64-gnu.
@ljishen With this workaround I can build the docker image. But then, the following comes up when running the container:
[...]
[IPC Library: File Watcher (parcel, node.js)] Loading "@parcel/watcher" failed
[IPC Library: File Watcher (parcel, node.js)] Error: No native build was found for platform=linux arch=arm64 runtime=node abi=83 uv=1 armv=8 libc=glibc node=14.17.4
loaded from: /opt/code-server/vendor/modules/code-oss-dev/node_modules/@parcel/watcher
at Function.load.path (/opt/code-server/vendor/modules/code-oss-dev/node_modules/node-gyp-build/index.js:59:9)
at load (/opt/code-server/vendor/modules/code-oss-dev/node_modules/node-gyp-build/index.js:21:30)
at Object.<anonymous> (/opt/code-server/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/index.js:1:42)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at r (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:101)
at e.load (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:4:1723)
at e.load (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:3:10695)
at d (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:10300)
at Object.errorback (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:10421)
at e.triggerErrorback (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:3:11059)
at /opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:3:10765
at e.load (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:4:1740)
at e.load (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:3:10695)
at d (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:10300)
at i._loadModule (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:10430)
at i._resolve (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:6:452)
at i.defineModule (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:6142)
at v (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:6:1702)
at g (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:4:2557)
at Object.<anonymous> (/opt/code-server/vendor/modules/code-oss-dev/out/vs/platform/files/node/watcher/parcel/watcherApp.js:12:22221)
at Object.<anonymous> (/opt/code-server/vendor/modules/code-oss-dev/out/vs/platform/files/node/watcher/parcel/watcherApp.js:12:30915)
at e._createAndEvalScript (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:4:2601)
at /opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:4:2240
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:73:3)
[IPC Library: File Watcher (parcel, node.js)] Here are the modules that depend on it:
[IPC Library: File Watcher (parcel, node.js)]% [ 'vs/platform/files/node/watcher/parcel/parcelWatcherService' ]
[...]
👉 Directory /opt/code-server/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/build in code-server-4.0.2-linux-arm64.tar.gz is missing.
Thanks for mentioning this. I can temporarily fix it by manually downloading https://registry.yarnpkg.com/@node-rs/argon2-linux-arm64-gnu/-/argon2-linux-arm64-gnu-1.0.5.tgz and put it into /usr/lib/code-server/node_modules/@node-rs/argon2-linux-arm64-gnu.
@ljishen With this workaround I can build the docker image. But then, the following comes up when running the container:
[...]
[IPC Library: File Watcher (parcel, node.js)] Loading "@parcel/watcher" failed
[IPC Library: File Watcher (parcel, node.js)] Error: No native build was found for platform=linux arch=arm64 runtime=node abi=83 uv=1 armv=8 libc=glibc node=14.17.4
loaded from: /opt/code-server/vendor/modules/code-oss-dev/node_modules/@parcel/watcher
at Function.load.path (/opt/code-server/vendor/modules/code-oss-dev/node_modules/node-gyp-build/index.js:59:9)
at load (/opt/code-server/vendor/modules/code-oss-dev/node_modules/node-gyp-build/index.js:21:30)
at Object.<anonymous> (/opt/code-server/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/index.js:1:42)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at r (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:101)
at e.load (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:4:1723)
at e.load (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:3:10695)
at d (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:10300)
at Object.errorback (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:10421)
at e.triggerErrorback (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:3:11059)
at /opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:3:10765
at e.load (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:4:1740)
at e.load (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:3:10695)
at d (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:10300)
at i._loadModule (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:10430)
at i._resolve (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:6:452)
at i.defineModule (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:5:6142)
at v (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:6:1702)
at g (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:4:2557)
at Object.<anonymous> (/opt/code-server/vendor/modules/code-oss-dev/out/vs/platform/files/node/watcher/parcel/watcherApp.js:12:22221)
at Object.<anonymous> (/opt/code-server/vendor/modules/code-oss-dev/out/vs/platform/files/node/watcher/parcel/watcherApp.js:12:30915)
at e._createAndEvalScript (/opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:4:2601)
at /opt/code-server/vendor/modules/code-oss-dev/out/vs/loader.js:4:2240
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:73:3)
[IPC Library: File Watcher (parcel, node.js)] Here are the modules that depend on it:
[IPC Library: File Watcher (parcel, node.js)]% [ 'vs/platform/files/node/watcher/parcel/parcelWatcherService' ]
[...]
👉 Directory /opt/code-server/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/build in code-server-4.0.2-linux-arm64.tar.gz is missing.
Bottom line: I'm skipping code-server v4.0.2.
I didn't build the image. I used the latest one from here https://hub.docker.com/r/codercom/code-server/tags
To run a container, I changed the entrypoint to bash, then I can do the change I mentioned. Finally, I ran the original entrypoint /usr/bin/entrypoint.sh --bind-addr 0.0.0.0:8080 . under dir /home/coder. This is what I see under that dir inside the container
$ ls /usr/lib/code-server/node_modules/@node-rs/argon2-linux-arm64-gnu
argon2.linux-arm64-gnu.node package.json README.md
2044 error code EACCES
2045 error syscall rename
2046 error path /usr/lib/code-server/node_modules/escodegen/node_modules/deep-is
2047 error dest /usr/lib/code-server/node_modules/escodegen/node_modules/.deep-is-UvyPHfCg
2048 error errno -13
2049 error Error: EACCES: permission denied, rename '/usr/lib/code-server/node_modules/escodegen/node_modules/deep-is' -> '/usr/lib/code-server/node_modules/escodegen/node_modules/.deep-is-UvyPHfCg'
2049 error [Error: EACCES: permission denied, rename '/usr/lib/code-server/node_modules/escodegen/node_modules/deep-is' -> '/usr/lib/code-server/node_modules/escodegen/node_modules/.deep-is-UvyPHfCg'] {
2049 error errno: -13,
2049 error code: 'EACCES',
2049 error syscall: 'rename',
2049 error path: '/usr/lib/code-server/node_modules/escodegen/node_modules/deep-is',
2049 error dest: '/usr/lib/code-server/node_modules/escodegen/node_modules/.deep-is-UvyPHfCg'
2049 error }
2050 error The operation was rejected by your operating system.
2050 error It is likely you do not have the permissions to access this file as the current user
2050 error
2050 error If you believe this might be a permissions issue, please double-check the
2050 error permissions of the file and its containing directories, or try running
2050 error the command again as root/Administrator.
2044 error code EACCES
2045 error syscall rename
2046 error path /usr/lib/code-server/node_modules/escodegen/node_modules/deep-is
2047 error dest /usr/lib/code-server/node_modules/escodegen/node_modules/.deep-is-UvyPHfCg
2048 error errno -13
2049 error Error: EACCES: permission denied, rename '/usr/lib/code-server/node_modules/escodegen/node_modules/deep-is' -> '/usr/lib/code-server/node_modules/escodegen/node_modules/.deep-is-UvyPHfCg'
2049 error [Error: EACCES: permission denied, rename '/usr/lib/code-server/node_modules/escodegen/node_modules/deep-is' -> '/usr/lib/code-server/node_modules/escodegen/node_modules/.deep-is-UvyPHfCg'] {
2049 error errno: -13,
2049 error code: 'EACCES',
2049 error syscall: 'rename',
2049 error path: '/usr/lib/code-server/node_modules/escodegen/node_modules/deep-is',
2049 error dest: '/usr/lib/code-server/node_modules/escodegen/node_modules/.deep-is-UvyPHfCg'
2049 error }
2050 error The operation was rejected by your operating system.
2050 error It is likely you do not have the permissions to access this file as the current user
2050 error
2050 error If you believe this might be a permissions issue, please double-check the
2050 error permissions of the file and its containing directories, or try running
2050 error the command again as root/Administrator.
u need sudo
and ur node version is lower the required version
If It requires Root administration make sure you are in a super user privileges or as root
You can search on google how to add superuser privilege in your Linux distribution
Activity
benz0li commentedon Jan 28, 2022
@code-asher Directories in
./node_modules/@node-rsofcode-server-4.0.2-linux-arm64.tar.gz:Why are there
argon2-linux-x64-gnuandargon2-linux-x64-muslinstead ofargon2-linux-arm64-gnu?foxfire881 commentedon Jan 28, 2022
i also got these errors in 4.0.2.
too many bugs after version 4.0, i have downgrade my code-server to3.12.
RobertCNelson commentedon Jan 28, 2022
Also the armhf build..
ljishen commentedon Jan 28, 2022
I have the same problem with the v4.0.2 docker image.
code-asher commentedon Jan 28, 2022
code-asher commentedon Jan 28, 2022
I am not sure how this works actually. The
argon2module has a bunch of optional dependencies for the various per-platform builds (@node-rs/argon2-win32-x64-msvcfor example). Does Node only download optional dependencies if they match the current platform? If so why does it download the wrong ones? We setNODE_CONFIG_ARCHbut maybe that is not enough.ljishen commentedon Jan 28, 2022
Thanks for mentioning this. I can temporarily fix it by manually downloading
https://registry.yarnpkg.com/@node-rs/argon2-linux-arm64-gnu/-/argon2-linux-arm64-gnu-1.0.5.tgzand put it into/usr/lib/code-server/node_modules/@node-rs/argon2-linux-arm64-gnu.jsjoeio commentedon Jan 28, 2022
Let me ping the node-rs team (they were super helpful when we made the migration).
cc @Brooooooklyn @yisibl - is there anything obvious we might have missed in the migration? Otherwise, I'll see if I can dig in and see where this is coming form.
benz0li commentedon Jan 29, 2022
@ljishen With this workaround I can build the docker image. But then, the following comes up when running the container:
👉 Directory
/opt/code-server/vendor/modules/code-oss-dev/node_modules/@parcel/watcher/buildincode-server-4.0.2-linux-arm64.tar.gzis missing.Bottom line: I'm skipping code-server v4.0.2.
ljishen commentedon Jan 30, 2022
I didn't build the image. I used the latest one from here https://hub.docker.com/r/codercom/code-server/tags
To run a container, I changed the entrypoint to bash, then I can do the change I mentioned. Finally, I ran the original entrypoint
/usr/bin/entrypoint.sh --bind-addr 0.0.0.0:8080 .under dir/home/coder. This is what I see under that dir inside the containerM12mm4 commentedon Jan 30, 2022
I have the same problem
I am using Ubuntu 21.10 on my phone installed via proot-distoro how can I fix it ?
werdnum commentedon Jan 30, 2022
FWIW, this appears to be the offending commit: 723469a
I've solved it for myself by running 4.0.1, which doesn't seem to have that problem.
codeserver 4.0.2 is broken: coder/code-server#4804
18 remaining items
code-asher commentedon Feb 16, 2022
Haha I completely spaced that we use yarn not npm.
revert code-server to v4.0.1
YueMiyuki commentedon Feb 24, 2022
Same thing happened here today
I am no raspberry pi 4
jsjoeio commentedon Feb 24, 2022
@ItzMiracleOwO please wait for the next release!
lg-nineoneninethreenine commentedon Feb 26, 2022
What's the glitch?
YueMiyuki commentedon Feb 26, 2022
wdym?
M12mm4 commentedon Feb 26, 2022
You can just run this commands
cd /usr/lib/code-servernpm install @node-rs/argon2-linux-arm64-gnuJWhiteUX commentedon Feb 27, 2022
Same for me.
JWhiteUX commentedon Feb 27, 2022
This just threw a ton of errors.
YueMiyuki commentedon Feb 27, 2022
u need sudo
and ur node version is lower the required version
YueMiyuki commentedon Feb 27, 2022
Actully I tried to manually install the module but it return 404
M12mm4 commentedon Feb 27, 2022
If It requires Root administration make sure you are in a super user privileges or as root
You can search on google how to add superuser privilege in your Linux distribution
revert: @node-rs/argon2 -> node-argon2 (coder#4829)
Brooooooklyn commentedon Sep 18, 2023
@jsjoeio you can consider switch back to
@node-rs/argon2again since npm/cli#6755 landedjsjoeio commentedon Sep 22, 2023
@Brooooooklyn That's amazing! I'm not involved in the project anymore but maybe someone else from the team/community can. Thanks for flagging!