Line 134 - seafile-controller: cannot execute binary file

My error: seafile-controller: cannot execute binary file: Exec format error

Hello everyone, I’m installing seafile-server on ubuntu 20.04

    Virtualization: kvm
  Operating System: Ubuntu 20.04.6 LTS
            Kernel: Linux 5.15.0-1070-oracle
      Architecture: arm64

The databases were created, everything is fine. However, I have a problem when starting it.

seafile@maq01:~/seafile-server-latest$ ./seafile.sh start

Starting seafile server, please wait ...
./seafile.sh: line 134: /opt/seafile/seafile-server-11.0.13/seafile/bin/seafile-controller: cannot execute binary file: Exec format error

I don’t know what to do to solve it. Below I’ll put the commands I used to install the dependencies.

sudo apt-get update
sudo apt-get install -y python3 python3-dev python3-setuptools python3-pip libmysqlclient-dev ldap-utils libldap2-dev
sudo apt-get install -y memcached libmemcached-dev

sudo pip3 install --timeout=3600 django==4.2.* future==0.18.* mysqlclient==2.1.* \
    pymysql pillow==10.2.* pylibmc captcha==0.5.* markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 \
    psd-tools django-pylibmc django_simple_captcha==0.6.* djangosaml2==1.5.* pysaml2==7.2.* pycryptodome==3.16.* cffi==1.15.1 lxml python-ldap==3.4.3

mysql is ok.

Thanks for any help you can give me.

The binary version can only work for x86 architecture. You should use the docker version build for Arm64.

1 Like

Thanks for replying, I see.
So you mean that the version “Server for generic Linux
11.0.13 64bit” doesn’t work on 64bit architecture? Strange. I wasted hours trying to make it work lol. I’ll try with docker then. Thank you very much.