YunoHost-Apps / code-server_ynh

Code-server packaged for YunoHost
https://github.com/cdr/code-server
MIT License
6 stars 2 forks source link

Error installing on ARM64 server #12

Closed 4abhinavjain closed 2 years ago

4abhinavjain commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

4abhinavjain commented 2 years ago

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 https://github.com/coder/code-server/issues/4804

Tagadda commented 2 years ago

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.

4abhinavjain commented 2 years ago

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.