amnezia-vpn / amnezia-client

Amnezia VPN Client (Desktop+Mobile)
https://amnezia.org
GNU General Public License v3.0
4.47k stars 291 forks source link

ssserver not launching under ARM64 #39

Closed boscogh closed 2 years ago

boscogh commented 2 years ago

Привет, могу общаться по-русски.

Hi, I'm trying to run server under docker on Oracle Cloud,

uname -a
Linux pasha-vm 5.4.17-2102.205.7.3.el7uek.aarch64 #2 SMP Fri Sep 17 16:33:58 PDT 2021 aarch64 aarch64 aarch64 GNU/Linux

choose option with shadowsocks, but the client seems stuck on reconnection:

Having dancing back and forth I log into server container and don't see shadowsocks server running. after trying to run it myself I got this:

bash-5.1# ssserver -c /opt/amnezia/shadowsocks/ss-config.json &
[1] 300
bash-5.1# bash: /usr/bin/ssserver: cannot execute binary file: Exec format error

is it an CPU architecture issue?

boscogh commented 2 years ago

sorry, I don't dig too much, but if I run your prebuilt client on Windows Intel, and server is on Arm64, may this be the problem? because as I can see shadowsocks is build on the platform, not downloaded as package

pokamest commented 2 years ago

Take a look to https://github.com/amnezia-vpn/desktop-client/blob/master/client/server_scripts/openvpn_shadowsocks/Dockerfile ShadowSocks x64 used in Dockerfile I will appreciate if you propose patch for this Docker file which will enable arm support

pokamest commented 2 years ago

Merged! Thank you!