Skip to content
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

Error installing on ARM64 server #12

Closed
4abhinavjain opened this issue Feb 20, 2022 · 6 comments · Fixed by #11 or #15
Closed

Error installing on ARM64 server #12

4abhinavjain opened this issue Feb 20, 2022 · 6 comments · Fixed by #11 or #15

Comments

@4abhinavjain
Copy link

Hi,

I am trying to install the code-server via webgui on a Debian 10 ARM64 server with 16GB RAM. The installation doesn't give any errors. However, the site give 502 and under Services, code-server fails with an error:

systemd[1]: Started VS Code Server. Feb 19 17:39:27 systemd[1]: code-server.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Feb 19 17:39:27 systemd[1]: code-server.service: Failed with result 'exit-code'.

Also the log says:
/opt/yunohost/code-server/bin/code-server: 36: exec: /opt/yunohost/code-server/lib/node: Exec format error

I suspect this is due to ARM64 instead of x86. Is that the case? Happy to provide more info if needed ( Yunohost: 4.3.6.2)

Thanks,

@Tagadda
Copy link
Member

Tagadda commented Feb 20, 2022

Hi, can you send the full install logs please ?
This package should install the code-server version corresponding to your architecture, but maybe it's not the case...

@4abhinavjain
Copy link
Author

Thanks, @Tagadda The install log seems ok https://paste.yunohost.org/raw/ezamexomed

Here is the services log and there it is failing- https://paste.yunohost.org/exovucufib

@Tagadda Tagadda mentioned this issue Feb 20, 2022
@Tagadda
Copy link
Member

Tagadda commented Feb 20, 2022

This should be fixed by the last update, there was a typo in the source file 😁

@4abhinavjain
Copy link
Author

4abhinavjain commented Feb 20, 2022

Thanks, Tagadda. I did the update, but now it says that node-rs/argon2-linux-arm64-gnu module not found: https://paste.yunohost.org/zididarutu

UPDATE: this seems to be a code-server problem coder/code-server#4804

@Tagadda
Copy link
Member

Tagadda commented Feb 20, 2022

Oh, I see. This bug was introduced after 4.0.1, is already fixed but not released yet. I'm leaving open until a new version release.

I made a special branch with 4.0.1 that should work on ARM.
You can install it with this link in the webadmin https://github.com/YunoHost-Apps/code-server_ynh/tree/fix-4.0.1 or using this command sudo yunohost app install https://github.com/YunoHost-Apps/code-server_ynh/tree/fix-4.0.1.
Be careful not to upgrade to 4.0.2, you must skip this version.

@Tagadda Tagadda reopened this Feb 20, 2022
@4abhinavjain
Copy link
Author

Bravo! I just tried the fix and can confirm it is working now.

Thanks again for the great work and kind instructions. I will skip 4.0.2 for now.

@Tagadda Tagadda mentioned this issue Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants