Setup-seafile-mysql.sh failed

setup-seafile-mysql.sh failed with the following error:

./setup-seafile-mysql.sh
Checking python on this machine …


This script will guide you to setup your seafile server using MySQL.
Make sure you have read seafile server manual at

    https://download.seafile.com/published/seafile-manual/home.md

Press ENTER to continue

Error: “/opt/seafile/seafile-server/src/seafile-server-7.1.4-server/scripts/seafile” not found

Does someone have an idea how to fix this problem?

The following scripts are available:

/opt/seafile/seafile-server/src/seafile-server-7.1.4-server/scripts # ls -l
total 168
drwxrwxr-x 2 root root 4096 6. Mai 05:44 build
-rw-rw-r-- 1 root root 11381 6. Mai 05:44 check_init_admin.py
-rw-rw-r-- 1 root root 103 6. Mai 05:44 gc.bat
-rwxrwxr-x 1 root root 1753 6. Mai 05:44 reset-admin.sh
-rwxrwxr-x 1 root root 1746 6. Mai 05:44 seaf-fsck.sh
-rwxrwxr-x 1 root root 3134 6. Mai 05:44 seaf-fuse.sh
-rwxrwxr-x 1 root root 2641 6. Mai 05:44 seaf-gc.sh
-rwxrwxr-x 1 root root 5000 6. Mai 05:44 seafile.sh
-rwxrwxr-x 1 root root 4078 6. Mai 05:44 seafobj_migrate.py
-rw-rw-r-- 1 root root 362 6. Mai 05:44 seahub.conf
-rwxrwxr-x 1 root root 7906 6. Mai 05:44 seahub.sh
-rw-rw-r-- 1 root root 614 6. Mai 05:44 server-release.md
-rw-rw-r-- 1 root root 57232 6. Mai 05:44 setup-seafile-mysql.py
-rwxrwxr-x 1 root root 1548 6. Mai 05:44 setup-seafile-mysql.sh
-rwxrwxr-x 1 root root 22073 6. Mai 05:44 setup-seafile.sh
drwxrwxr-x 4 root root 4096 6. Mai 05:44 sql
-rw-rw-r-- 1 root root 2707 6. Mai 05:44 sqlite2mysql.py
-rwxrwxr-x 1 root root 5063 6. Mai 05:44 sqlite2mysql.sh
drwxrwxr-x 4 root root 4096 6. Mai 05:44 upgrade

Where did you pick up your copy of Seafile? It doesn’t appear to be from the official website. What distro are you trying to install on?

The reason for the error is the script is looking for a file or folder called “seafile” under the scripts path and it’s not there… It’s the reason for the error. However, this “scripts” folder is unfamiliar to me. Most of the scripts, I am familiar with, but there are a couple that aren’t in an installation from the official website.

@wthess you are right, it looks like that he downloaded the source code for seafile server, therefore the /src/. This is not intended. He needs to download, like you say, from seafile downlad.

1 Like

I use Gentoo Linux and try to build the seafile server according this manual.

I downloaded the source tarballs of the latest tag from

I recommend you to use the build3.sh script to compile the seafile package. Maybe you have to adapt the dependencies a bit, but you got an idea.

1 Like

I’m in agreement with this, @jobenvil … Unfortunately, many of the Seafile source builds aren’t always reliable. Additionally, the manuals for those builds often have outdated or missing information. The developers spend most of their time and resources on the Pro and CE versions for generic Linux since that’s where most of the demand is.