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

Snap installation: Does not work on aarch64 #1259

Closed
procrastinando opened this issue Aug 5, 2023 · 10 comments
Closed

Snap installation: Does not work on aarch64 #1259

procrastinando opened this issue Aug 5, 2023 · 10 comments

Comments

@procrastinando
Copy link

I have tried several times, but snap does not work on aarch64, it installs x86 version, is there any workaround? How to build from source code?

root@falkenstein:~# shadowsocks-rust.ssserver -h
/snap/shadowsocks-rust/443/snap/command-chain/snapcraft-runner: 5: exec: /snap/shadowsocks-rust/443/bin/ssserver: Exec format error
@LindaFerum
Copy link

I've also had trouble with Snap, homebrew worked better for me (except for a little hitch I've hit which is unrelated to installation per se)

@zonyitoo
Copy link
Collaborator

but snap does not work on aarch64, it installs x86 version

Someone has already reported that before. I have no idea why and don't know how to reproduce.

@procrastinando
Copy link
Author

Someone has already reported that before. I have no idea why and don't know how to reproduce.

I have tried it several times on a HETZNER, using an aarch64 server.

@zonyitoo
Copy link
Collaborator

Someone has already reported that before. I have no idea why and don't know how to reproduce.

I have tried it several times on a HETZNER, using an aarch64 server.

Great. Could you provide more detail about why it is not running? For example:

  1. Does snap installed the right architecture binaries?
  2. If it failed to run, what did it produce?
  3. ...

@hzdmnl
Copy link

hzdmnl commented Feb 5, 2024

Hey, everybody.
I faced the same problem on a virtual machine in Oracle Cloud on aarch64

$ snap list
Name              Version               Rev    Tracking       Publisher   Notes
core18            20231027              2810   latest/stable  canonical✓  base
shadowsocks-rust  v1.17.2.r1.g6fe1415d  639    latest/stable  ducksoft    -
snapd             2.61.1                20674  latest/stable  canonical✓  snapd

$ sudo snap logs shadowsocks-rust.ssserver-daemon
2024-02-05T22:45:48+03:00 systemd[1]: Started Service for snap application shadowsocks-rust.ssserver-daemon.
2024-02-05T22:45:48+03:00 shadowsocks-rust.ssserver-daemon[60952]: /snap/shadowsocks-rust/639/snap/command-chain/snapcraft-runner: 5: exec: /snap/shadowsocks-rust/639/bin/ssserver: Exec format error
2024-02-05T22:45:48+03:00 systemd[1]: snap.shadowsocks-rust.ssserver-daemon.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
2024-02-05T22:45:48+03:00 systemd[1]: snap.shadowsocks-rust.ssserver-daemon.service: Failed with result 'exit-code'.
2024-02-05T22:45:48+03:00 systemd[1]: snap.shadowsocks-rust.ssserver-daemon.service: Service RestartSec=100ms expired, scheduling restart.
2024-02-05T22:45:48+03:00 systemd[1]: snap.shadowsocks-rust.ssserver-daemon.service: Scheduled restart job, restart counter is at 5.
2024-02-05T22:45:48+03:00 systemd[1]: Stopped Service for snap application shadowsocks-rust.ssserver-daemon.
2024-02-05T22:45:48+03:00 systemd[1]: snap.shadowsocks-rust.ssserver-daemon.service: Start request repeated too quickly.
2024-02-05T22:45:48+03:00 systemd[1]: snap.shadowsocks-rust.ssserver-daemon.service: Failed with result 'exit-code'.
2024-02-05T22:45:48+03:00 systemd[1]: Failed to start Service for snap application shadowsocks-rust.ssserver-daemon.

$ file /snap/shadowsocks-rust/639/bin/ssserver
/snap/shadowsocks-rust/639/bin/ssserver: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=d7611042bd805b0f55d21e2bf47fe832396cb8d7, stripped

$ uname -a
Linux vm-3-arm 5.4.17-2136.327.2.el8uek.aarch64 #2 SMP Fri Jan 5 15:35:15 PST 2024 aarch64 aarch64 aarch64 GNU/Linux

@zonyitoo
Copy link
Collaborator

zonyitoo commented Feb 5, 2024

There should be some problem in the snap build process.

image

It looks like all the builds on previous version with architectures except i386 were failed.

Just changed base to core22 and triggered a new build and see if we can make a new proper releases.

@zonyitoo
Copy link
Collaborator

zonyitoo commented Feb 5, 2024

Please try to install with channel: edge (Build was still IN PROGRESS, please wait 1day, probably).

Documentation: https://snapcraft.io/docs/channels

@zonyitoo
Copy link
Collaborator

zonyitoo commented Feb 6, 2024

Released EDGE version, please help testing if the issue fixed @hzdmnl

@hzdmnl
Copy link

hzdmnl commented Feb 6, 2024

@zonyitoo , The EDGE version ssserver is up and running.
Checked ssserver - everything works.
Thanks!

$ file /snap/shadowsocks-rust/654/bin/*
/snap/shadowsocks-rust/654/bin/sslocal:   ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=2f069c855430e3c4ee95aaf8407ad0d645bb7f9c, for GNU/Linux 3.7.0, stripped
/snap/shadowsocks-rust/654/bin/ssmanager: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=87552b3112244d2d5515ac9bf201228b3162ea52, for GNU/Linux 3.7.0, stripped
/snap/shadowsocks-rust/654/bin/ssserver:  ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=813142ee74d1d07a7095906a07e43b41f9672829, for GNU/Linux 3.7.0, stripped
/snap/shadowsocks-rust/654/bin/ssservice: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=02ac8a2ec94e8f11bcdaf7889a50d9913d2ddbb2, for GNU/Linux 3.7.0, stripped
/snap/shadowsocks-rust/654/bin/ssurl:     ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=a3bfebdea08c50b2be1f0ebe043cdc22dad2a65c, for GNU/Linux 3.7.0, stripped

@zonyitoo
Copy link
Collaborator

zonyitoo commented Feb 7, 2024

Alright. It will be on the stable channel in the next release (coming soon).

@zonyitoo zonyitoo closed this as completed Feb 7, 2024
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

No branches or pull requests

4 participants