Setup script has no output

Hi,

I am lost here, any idea is welcome. I try to install the seafile server according to the installation manual, but I get no output when I try to run the setup script:

(python-venv) seafile@flo:/home/flo/seafile/seafile-pro-server-11.0.15$ ./setup-seafile-mysql.sh
(python-venv) seafile@flo:/home/flo/seafile/seafile-pro-server-11.0.15$

I also tried to run the py file directly:

(python-venv) seafile@flo:/home/flo/seafile/seafile-pro-server-11.0.15$ python3 setup-seafile-mysql.py
python3: can’t open file ‘/home/flo/seafile/seafile-pro-server-11.0.15/setup-seafile-mysql.py’: [Errno 13] Permission denied

I think my permissions are OK, at least regarding the installation files:

(python-venv) seafile@flo:/home/flo/seafile/seafile-pro-server-11.0.15$ ls -la
total 276
drwxr-xr-x 8 seafile seafile 4096 Nov 1 20:10 .
drwxr-xr-x 4 seafile seafile 4096 Nov 1 19:56 …
-rw-r–r-- 1 seafile seafile 540 Okt 17 02:22 check-db-type.py
-rw-r–r-- 1 seafile seafile 10899 Okt 17 02:22 check_init_admin.py
-rwxr-xr-x 1 seafile seafile 1346 Okt 17 02:22 index_op.py
-rw-r–r-- 1 seafile seafile 1625 Okt 17 02:22 migrate_ldapusers.py
-rwxr-xr-x 1 seafile seafile 8584 Okt 17 02:22 migrate.py
-rw-r–r-- 1 seafile seafile 8190 Okt 17 02:22 migrate-repo.py
-rwxr-xr-x 1 seafile seafile 2087 Okt 17 02:22 migrate-repo.sh
-rwxr-xr-x 1 seafile seafile 2028 Okt 17 02:22 migrate.sh
drwxr-xr-x 4 seafile seafile 4096 Okt 17 02:23 pro
-rw-r–r-- 1 seafile seafile 1434 Okt 17 02:22 remove-objs.py
-rwxr-xr-x 1 seafile seafile 2023 Okt 17 02:22 remove-objs.sh
-rwxr-xr-x 1 seafile seafile 2418 Okt 17 02:22 reset-admin.sh
-rwxr-xr-x 1 seafile seafile 3478 Okt 17 02:22 run_index_master.sh
-rwxr-xr-x 1 seafile seafile 3158 Okt 17 02:22 run_index_worker.sh
drwxr-xr-x 2 seafile seafile 4096 Okt 17 02:22 runtime
-rwxr-xr-x 1 seafile seafile 1795 Okt 17 02:22 seaf-backup-cmd.py
-rwxr-xr-x 1 seafile seafile 2223 Okt 17 02:22 seaf-backup-cmd.sh
-rwxr-xr-x 1 seafile seafile 2244 Okt 17 02:22 seaf-encrypt.sh
-rwxr-xr-x 1 seafile seafile 1470 Okt 17 02:22 seaf-fsck.sh
-rwxr-xr-x 1 seafile seafile 2858 Okt 17 02:22 seaf-fuse.sh
-rwxr-xr-x 1 seafile seafile 3748 Okt 17 02:22 seaf-gc.sh
drwxr-xr-x 6 seafile seafile 4096 Okt 17 02:23 seafile
-rwxr-xr-x 1 seafile seafile 4734 Okt 17 02:22 seafile-background-tasks.sh
-rwxr-xr-x 1 seafile seafile 3848 Okt 17 02:22 seafile-monitor.sh
-rwxr-xr-x 1 seafile seafile 5878 Okt 17 02:22 seafile.sh
-rwxr-xr-x 1 seafile seafile 2259 Okt 17 02:22 seaf-import.sh
drwxr-xr-x 17 seafile seafile 4096 Mär 18 2024 seahub
-rwxr-xr-x 1 seafile seafile 7484 Okt 17 02:22 seahub.sh
-rw-r–r-- 1 seafile seafile 58800 Okt 17 02:22 setup-seafile-mysql.py
-rw-r–r-- 1 seafile seafile 16384 Nov 1 20:10 .setup-seafile-mysql.py.swp
-rwxr-xr-x 1 seafile seafile 1543 Okt 17 02:22 setup-seafile-mysql.sh
-rw-r–r-- 1 seafile seafile 12288 Nov 1 20:03 .setup-seafile-mysql.sh.swp
-rwxr-xr-x 1 seafile seafile 22513 Okt 17 02:22 setup-seafile.sh
drwxr-xr-x 5 seafile seafile 4096 Nov 20 2023 sql
drwxr-xr-x 3 seafile seafile 4096 Jan 29 2024 upgrade
(python-venv) seafile@flo:/home/flo/seafile/seafile-pro-server-11.0.15$

The permissions on the files look ok, so I am not sure where the “permission denied” is coming from. Maybe it is from selinux or a similar security hardening system that is preventing the seafile user from running programs from within their own home directory. Or maybe that /home is mounted with the noexec option to prevent running programs from that filesystem.

What linux distribution is this? And have you tried installing in /opt or another location like that?

This is a fresh Ubuntu 24.10 installation, nothing fancy. But interestingly in /opt/seafile the script works, so it seems there is a difference compared to the user home directory.