Trying to install seafile on Debian 10 running Virtualmin but seahub just keeps on getting error and not starting up

Hi,

I’m running into some unknown error in a fresh install of seafile on a Debian Nginx system running the Virtualmin control panel. seafile starts. but not seahub.

Here’s relevant info (sorry, I don’t know how to enclose in code tag - if anyone wants to tell me how to do, I can do for next time)

. . .


This is your configuration

server name:            Communiffy
server ip/domain:       docs.communiffy.com
seafile data dir:       /home/seafile/seafile-data
fileserver port:        8082
database:               use existing
ccnet database:         ccnet
seafile database:       seafile
seahub database:        seahub
database user:          seafile

I’m running into some unknown error in a fresh install of seafile on a Debian Nginx system running the Virtualmin control panel. seafile starts. but not seahub.

Here’s relevant info (sorry, I don’t know how to enclose in code tag - if anyone wants to tell me how to do, I can do for next time)

  • 8
    This is your configuration

server name:            Communiffy
server ip/domain:       docs.communiffy.com
seafile data dir:       /home/seafile/seafile-data
fileserver port:        8082
database:               use existing
ccnet database:         ccnet
seafile database:       seafile
seahub database:        seahub
database user:          seafile

.
Press ENTER to continue, or Ctrl-C to abort

  • 8
    Generating ccnet configuration …
    Generating seafile configuration …
    done
    Generating seahub configuration …
  • 8
    Now creating ccnet database tables …
    Now creating seafile database tables …
    Now creating seahub database tables …
    creating seafile-server-latest symbolic link … done
    Your seafile server configuration has been finished successfully.
    run seafile server: ./seafile.sh { start | stop | restart }
    run seahub server: ./seahub.sh { start | stop | restart }
    If you are behind a firewall, remember to allow input/output of these tcp ports:

port of seafile fileserver: 8082
port of seahub: 8000
When problems occur, Refer to https://download.seafile.com/published/seafile-manual/home.md for information.

seafile@one:~/seafile-server$
. . .

seafile@one:~/seafile-server$ ls -lah
total 156K
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 .
drwxr-xr-x 8 seafile seafile 4.0K Mar 10 10:24 …
-rw-r–r-- 1 seafile seafile 11K Mar 10 09:49 check_init_admin.py
-rwxr-xr-x 1 seafile seafile 1.8K Mar 10 09:49 reset-admin.sh
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 09:49 runtime
-rwxr-xr-x 1 seafile seafile 1.8K Mar 10 09:49 seaf-fsck.sh
-rwxr-xr-x 1 seafile seafile 3.1K Mar 10 09:49 seaf-fuse.sh
-rwxr-xr-x 1 seafile seafile 2.6K Mar 10 09:49 seaf-gc.sh
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 seafile
-rwxr-xr-x 1 seafile seafile 4.5K Mar 10 09:49 seafile.sh
drwxr-xr-x 15 seafile seafile 4.0K Mar 10 09:49 seahub
-rwxr-xr-x 1 seafile seafile 7.8K Mar 10 09:49 seahub.sh
-rw-r–r-- 1 seafile seafile 56K Mar 10 09:49 setup-seafile-mysql.py
-rwxr-xr-x 1 seafile seafile 1.6K Mar 10 09:49 setup-seafile-mysql.sh
-rwxr-xr-x 1 seafile seafile 22K Mar 10 09:49 setup-seafile.sh
drwxr-xr-x 4 seafile seafile 4.0K Mar 10 09:49 sql
drwxr-xr-x 4 seafile seafile 4.0K Mar 10 09:49 upgrade
seafile@one:~/seafile-server$ cd …

seafile@one:~$ ls -lah
total 49M
drwxr-xr-x 8 seafile seafile 4.0K Mar 10 10:24 .
drwxr-xr-x 7 root root 4.0K Mar 5 15:36 …
-rw------- 1 seafile seafile 443 Mar 5 19:19 .bash_history
-rw-r–r-- 1 seafile seafile 220 Apr 17 2019 .bash_logout
-rw-r–r-- 1 seafile seafile 3.5K Apr 17 2019 .bashrc
drwx------ 2 seafile seafile 4.0K Mar 10 10:24 ccnet
drwx------ 2 seafile seafile 4.0K Mar 10 10:24 conf
-rw------- 1 seafile seafile 1.2K Mar 9 13:33 .mysql_history
-rw-r–r-- 1 seafile seafile 807 Apr 17 2019 .profile
drwx------ 3 seafile seafile 4.0K Mar 10 10:24 seafile-data
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 seafile-server
drwxr-xr-x 7 seafile seafile 4.0K Jan 25 20:02 seafile-server-8.0.3
-rw-r–r-- 1 seafile seafile 49M Jan 26 19:58 seafile-server_8.0.3_x86-64.tar.gz
lrwxrwxrwx 1 seafile seafile 14 Mar 10 10:24 seafile-server-latest -> seafile-server
drwxr-xr-x 3 seafile seafile 4.0K Mar 10 10:24 seahub-data

seafile@one:~$ cd seafile-server
seafile@one:~/seafile-server$ ./seafile.sh start

Starting seafile server, please wait …
** Message: 10:30:07.525: seafile-controller.c(535): No seafevents.
Seafile server started
Done.

. . .

seafile@one:~/seafile-server$ netstat -tunlp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8082 0.0.0.0:* LISTEN 22743/seaf-server
tcp 0 0 172.93.48.29:53 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:11000 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN -
tcp 0 0 172.93.48.29:443 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:8891 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:20000 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:1935 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN -
tcp6 0 0 :::465 :::* LISTEN -
tcp6 0 0 :::53 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 :::25 :::* LISTEN -
tcp6 0 0 ::1:953 :::* LISTEN -
tcp6 0 0 ::1:8000 :::* LISTEN -
tcp6 0 0 :::993 :::* LISTEN -
tcp6 0 0 ::1:8003 :::* LISTEN -
tcp6 0 0 :::995 :::* LISTEN -
tcp6 0 0 ::1:10023 :::* LISTEN -
tcp6 0 0 :::587 :::* LISTEN -
tcp6 0 0 :::110 :::* LISTEN -
tcp6 0 0 ::1:783 :::* LISTEN -
tcp6 0 0 :::143 :::* LISTEN -
tcp6 0 0 :::10000 :::* LISTEN -
udp 0 0 172.93.48.29:53 0.0.0.0:* -
udp 0 0 127.0.0.1:53 0.0.0.0:* -
udp 0 0 0.0.0.0:5353 0.0.0.0:* -
udp 0 0 0.0.0.0:10000 0.0.0.0:* -
udp 0 0 0.0.0.0:20000 0.0.0.0:* -
udp 0 0 0.0.0.0:57341 0.0.0.0:* -
udp6 0 0 :::53 :::* -
udp6 0 0 :::5353 :::* -
udp6 0 0 :::38622 :::* -

  • 8
    seafile@one:~/seafile-server$ ./seahub.sh start
    LC_ALL is not set in ENV, set to en_US.UTF-8
    Starting seahub at port 8000 …
    It’s the first time you start the seafile server. Now let’s create the admin account
    What is the email for the admin account?
    [ admin email ] inbox@communify.ca
    What is the password for the admin account?
    [ admin password ]
    Enter the password again:
    [ admin password again ]
    Successfully created seafile admin

Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

seafile@one:~/seafile-server$
. . .

seafile@one:~/seafile-server$ ls -lah …
total 49M
drwxr-xr-x 10 seafile seafile 4.0K Mar 10 10:30 .
drwxr-xr-x 7 root root 4.0K Mar 5 15:36 …
-rw------- 1 seafile seafile 443 Mar 5 19:19 .bash_history
-rw-r–r-- 1 seafile seafile 220 Apr 17 2019 .bash_logout
-rw-r–r-- 1 seafile seafile 3.5K Apr 17 2019 .bashrc
drwx------ 2 seafile seafile 4.0K Mar 10 10:24 ccnet
drwx------ 3 seafile seafile 4.0K Mar 10 10:31 conf
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 10:31 logs
-rw------- 1 seafile seafile 1.2K Mar 9 13:33 .mysql_history
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 10:30 pids
-rw-r–r-- 1 seafile seafile 807 Apr 17 2019 .profile
drwx------ 6 seafile seafile 4.0K Mar 10 10:30 seafile-data
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 seafile-server
drwxr-xr-x 7 seafile seafile 4.0K Jan 25 20:02 seafile-server-8.0.3
-rw-r–r-- 1 seafile seafile 49M Jan 26 19:58 seafile-server_8.0.3_x86-64.tar.gz
lrwxrwxrwx 1 seafile seafile 14 Mar 10 10:24 seafile-server-latest -> seafile-server
drwxr-xr-x 3 seafile seafile 4.0K Mar 10 10:24 seahub-data

seafile@one:~/seafile-server$ ls -lah …/logs
total 16K
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 10:31 .
drwxr-xr-x 10 seafile seafile 4.0K Mar 10 10:30 …
-rw-r–r-- 1 seafile seafile 410 Mar 10 10:30 controller.log
-rw-r–r-- 1 seafile seafile 604 Mar 10 10:30 seafile.log
-rw-r–r-- 1 seafile seafile 0 Mar 10 10:31 seahub.log
seafile@one:~/seafile-server$

seafile@one:~/seafile-server$ cat …/logs/seafile.log
[03/10/21 10:30:07] …/common/seaf-utils.c(333): Use database Mysql
[03/10/21 10:30:07] http-server.c(192): fileserver: worker_threads = 10
[03/10/21 10:30:07] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/10/21 10:30:07] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/10/21 10:30:07] http-server.c(237): fileserver: max_indexing_threads = 1
[03/10/21 10:30:07] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/10/21 10:30:07] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/10/2021 10:30:45 AM] start to serve on pipe client

seafile@one:~/seafile-server$ cat …/logs/seahub.log
seafile@one:~/seafile-server$


Any suggestions on how to troubleshoot this would be greatly appreciated.
Thanks!


port of seafile fileserver: 8082
port of seahub: 8000
When problems occur, Refer to https://download.seafile.com/published/seafile-manual/home.md for information.

seafile@one:~/seafile-server$
. . .

seafile@one:~/seafile-server$ ls -lah
total 156K
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 .
drwxr-xr-x 8 seafile seafile 4.0K Mar 10 10:24 …
-rw-r–r-- 1 seafile seafile 11K Mar 10 09:49 check_init_admin.py
-rwxr-xr-x 1 seafile seafile 1.8K Mar 10 09:49 reset-admin.sh
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 09:49 runtime
-rwxr-xr-x 1 seafile seafile 1.8K Mar 10 09:49 seaf-fsck.sh
-rwxr-xr-x 1 seafile seafile 3.1K Mar 10 09:49 seaf-fuse.sh
-rwxr-xr-x 1 seafile seafile 2.6K Mar 10 09:49 seaf-gc.sh
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 seafile
-rwxr-xr-x 1 seafile seafile 4.5K Mar 10 09:49 seafile.sh
drwxr-xr-x 15 seafile seafile 4.0K Mar 10 09:49 seahub
-rwxr-xr-x 1 seafile seafile 7.8K Mar 10 09:49 seahub.sh
-rw-r–r-- 1 seafile seafile 56K Mar 10 09:49 setup-seafile-mysql.py
-rwxr-xr-x 1 seafile seafile 1.6K Mar 10 09:49 setup-seafile-mysql.sh
-rwxr-xr-x 1 seafile seafile 22K Mar 10 09:49 setup-seafile.sh
drwxr-xr-x 4 seafile seafile 4.0K Mar 10 09:49 sql
drwxr-xr-x 4 seafile seafile 4.0K Mar 10 09:49 upgrade
seafile@one:~/seafile-server$ cd …

seafile@one:~$ ls -lah
total 49M
drwxr-xr-x 8 seafile seafile 4.0K Mar 10 10:24 .
drwxr-xr-x 7 root root 4.0K Mar 5 15:36 …
-rw------- 1 seafile seafile 443 Mar 5 19:19 .bash_history
-rw-r–r-- 1 seafile seafile 220 Apr 17 2019 .bash_logout
-rw-r–r-- 1 seafile seafile 3.5K Apr 17 2019 .bashrc
drwx------ 2 seafile seafile 4.0K Mar 10 10:24 ccnet
drwx------ 2 seafile seafile 4.0K Mar 10 10:24 conf
-rw------- 1 seafile seafile 1.2K Mar 9 13:33 .mysql_history
-rw-r–r-- 1 seafile seafile 807 Apr 17 2019 .profile
drwx------ 3 seafile seafile 4.0K Mar 10 10:24 seafile-data
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 seafile-server
drwxr-xr-x 7 seafile seafile 4.0K Jan 25 20:02 seafile-server-8.0.3
-rw-r–r-- 1 seafile seafile 49M Jan 26 19:58 seafile-server_8.0.3_x86-64.tar.gz
lrwxrwxrwx 1 seafile seafile 14 Mar 10 10:24 seafile-server-latest -> seafile-server
drwxr-xr-x 3 seafile seafile 4.0K Mar 10 10:24 seahub-data

seafile@one:~$ cd seafile-server
seafile@one:~/seafile-server$ ./seafile.sh start

Starting seafile server, please wait …
** Message: 10:30:07.525: seafile-controller.c(535): No seafevents.
Seafile server started
Done.

. . .

seafile@one:~/seafile-server$ netstat -tunlp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8082 0.0.0.0:* LISTEN 22743/seaf-server
tcp 0 0 123.123.123.123:53 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:11000 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN -
tcp 0 0 123.123.123.123:443 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:8891 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:20000 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:1935 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN -
tcp6 0 0 :::465 :::* LISTEN -
tcp6 0 0 :::53 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 :::25 :::* LISTEN -
tcp6 0 0 ::1:953 :::* LISTEN -
tcp6 0 0 ::1:8000 :::* LISTEN -
tcp6 0 0 :::993 :::* LISTEN -
tcp6 0 0 ::1:8003 :::* LISTEN -
tcp6 0 0 :::995 :::* LISTEN -
tcp6 0 0 ::1:10023 :::* LISTEN -
tcp6 0 0 :::587 :::* LISTEN -
tcp6 0 0 :::110 :::* LISTEN -
tcp6 0 0 ::1:783 :::* LISTEN -
tcp6 0 0 :::143 :::* LISTEN -
tcp6 0 0 :::10000 :::* LISTEN -
udp 0 0 123.123.123.123:53 0.0.0.0:* -
udp 0 0 127.0.0.1:53 0.0.0.0:* -
udp 0 0 0.0.0.0:5353 0.0.0.0:* -
udp 0 0 0.0.0.0:10000 0.0.0.0:* -
udp 0 0 0.0.0.0:20000 0.0.0.0:* -
udp 0 0 0.0.0.0:57341 0.0.0.0:* -
udp6 0 0 :::53 :::* -
udp6 0 0 :::5353 :::* -
udp6 0 0 :::38622 :::* -

  • 8
    seafile@one:~/seafile-server$ ./seahub.sh start
    LC_ALL is not set in ENV, set to en_US.UTF-8
    Starting seahub at port 8000 …
    ----------------------------------------
    It’s the first time you start the seafile server. Now let’s create the admin account
    ----------------------------------------
    What is the email for the admin account?
    [ admin email ] my@email.addr
    What is the password for the admin account?
    [ admin password ]
    Enter the password again:
    [ admin password again ]
    ----------------------------------------
    Successfully created seafile admin
    ----------------------------------------
    Error:Seahub failed to start.
    Please try to run “./seahub.sh start” again

seafile@one:~/seafile-server$
. . .

seafile@one:~/seafile-server$ ls -lah …
total 49M
drwxr-xr-x 10 seafile seafile 4.0K Mar 10 10:30 .
drwxr-xr-x 7 root root 4.0K Mar 5 15:36 …
-rw------- 1 seafile seafile 443 Mar 5 19:19 .bash_history
-rw-r–r-- 1 seafile seafile 220 Apr 17 2019 .bash_logout
-rw-r–r-- 1 seafile seafile 3.5K Apr 17 2019 .bashrc
drwx------ 2 seafile seafile 4.0K Mar 10 10:24 ccnet
drwx------ 3 seafile seafile 4.0K Mar 10 10:31 conf
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 10:31 logs
-rw------- 1 seafile seafile 1.2K Mar 9 13:33 .mysql_history
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 10:30 pids
-rw-r–r-- 1 seafile seafile 807 Apr 17 2019 .profile
drwx------ 6 seafile seafile 4.0K Mar 10 10:30 seafile-data
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 seafile-server
drwxr-xr-x 7 seafile seafile 4.0K Jan 25 20:02 seafile-server-8.0.3
-rw-r–r-- 1 seafile seafile 49M Jan 26 19:58 seafile-server_8.0.3_x86-64.tar.gz
lrwxrwxrwx 1 seafile seafile 14 Mar 10 10:24 seafile-server-latest -> seafile-server
drwxr-xr-x 3 seafile seafile 4.0K Mar 10 10:24 seahub-data

seafile@one:~/seafile-server$ ls -lah …/logs
total 16K
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 10:31 .
drwxr-xr-x 10 seafile seafile 4.0K Mar 10 10:30 …
-rw-r–r-- 1 seafile seafile 410 Mar 10 10:30 controller.log
-rw-r–r-- 1 seafile seafile 604 Mar 10 10:30 seafile.log
-rw-r–r-- 1 seafile seafile 0 Mar 10 10:31 seahub.log
seafile@one:~/seafile-server$

seafile@one:~/seafile-server$ cat …/logs/seafile.log
[03/10/21 10:30:07] …/common/seaf-utils.c(333): Use database Mysql
[03/10/21 10:30:07] http-server.c(192): fileserver: worker_threads = 10
[03/10/21 10:30:07] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/10/21 10:30:07] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/10/21 10:30:07] http-server.c(237): fileserver: max_indexing_threads = 1
[03/10/21 10:30:07] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/10/21 10:30:07] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/10/2021 10:30:45 AM] start to serve on pipe client

seafile@one:~/seafile-server$ cat …/logs/seahub.log
seafile@one:~/seafile-server$


Any suggestions on how to troubleshoot this would be greatly appreciated.
Thanks!

Hi

  • For Debian 10

Note, you should install Python libraries system wide using root user or sudo mode.

apt-get install default-libmysqlclient-dev

sudo pip3 install future mysqlclient

https://manual.seafile.com/upgrade/upgrade_notes_for_8.0.x/

@Cisco: thanks for the help. I was able to install default-libmysqlclient-dev but got an error of the pip3 install command:

root@one:~# sudo pip3 install future mysqlclient
sudo: unable to resolve host one.communiffy.com: Name or service not known
sudo: pip3: command not found

root@one:~# root@one:~# chattr -i /etc/resolv.conf
root@one:~# cat /etc/resolv.conf
nameserver 34.221.188.35
nameserver 172.98.193.42
nameserver 127.0.0.1
nameserver 165.22.224.164

root@one:~# vi /etc/resolv.conf
root@one:~# systemctl restart bind9
root@one:~# dig one.communiffy.com
; <<>> DiG 9.11.5-P4-5.1+deb10u3-Debian <<>> one.communiffy.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 5406
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 22896d164574cf8acab552d160491854c79ec06a028e7739 (good)
;; QUESTION SECTION:
;one.communiffy.com. IN A
;; AUTHORITY SECTION:
communiffy.com. 3600 IN SOA ns1.communiffy.com. root.ns1.communiffy.com. 1607379352 3600 600 1209600 3600
;; Query time: 1 msec
;; SERVER: 172.93.48.29#53(172.93.48.29)
;; WHEN: Wed Mar 10 11:04:52 PST 2021
;; MSG SIZE rcvd: 120

root@one:~# dig docs.communiffy.com
; <<>> DiG 9.11.5-P4-5.1+deb10u3-Debian <<>> docs.communiffy.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7630
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: fa1cc874aff25aaeb930e0ff6049185da59a7c733dfb6dc9 (good)
;; QUESTION SECTION:
;docs.communiffy.com. IN A
;; ANSWER SECTION:
docs.communiffy.com. 3600 IN A 172.93.48.29
;; AUTHORITY SECTION:
communiffy.com. 3600 IN NS ns1.communiffy.com.
communiffy.com. 3600 IN NS ns2.communiffy.com.

;; ADDITIONAL SECTION:
ns1.communiffy.com. 3600 IN A 172.93.48.29
ns2.communiffy.com. 3600 IN A 172.93.48.29
;; Query time: 1 msec
;; SERVER: 172.93.48.29#53(172.93.48.29)
;; WHEN: Wed Mar 10 11:05:01 PST 2021
;; MSG SIZE rcvd: 160

root@one:~# sudo pip3 install future mysqlclient
sudo: unable to resolve host one.communiffy.com: Name or service not known
sudo: pip3: command not found
root@one:~#


Any other suggestions? The server is running as the nameserver to itself.

Install pip for Python 3 and all of its dependencies with the following command:

sudo apt install python3-pip

and

sudo pip3 install future mysqlclient

whoops. my /etc/hosts wasn’t set to one.communiffy.com. so I changed it and restarted bind9.
root@one:~# cat /etc/hosts
127.0.0.1 localhost
198.50.169.197 debian10
The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.93.48.29 one.communiffy.com one

now, the response to the sudo pip3 command is:

root@one:~# sudo pip3 install future mysqlclient
sudo: pip3: command not found
root@one:~#

Success in installing python3-pip and the pip3 install future mysqlclient command. But still unable to start seahub:

root@one:~# sudo pip3 install future mysqlclient
Requirement already satisfied: future in /usr/lib/python3/dist-packages (0.16.0)
Collecting mysqlclient
Downloading https://files.pythonhosted.org/packages/3c/df/59cd2fa5e48d0804d213bdcb1acb4d08c403b61c7ff7ed4dd4a6a2deb3f7/mysqlclient-2.0.3.tar.gz (88kB)
100% |████████████████████████████████| 92kB 3.9MB/s
Building wheels for collected packages: mysqlclient
Running setup.py bdist_wheel for mysqlclient … done
Stored in directory: /root/.cache/pip/wheels/75/ca/e8/ad4e7ce3df18bcd91c7d84dd28c7c08db491a2a2360efed363
Successfully built mysqlclient
Installing collected packages: mysqlclient
Successfully installed mysqlclient-2.0.3
root@one:~#

. .

root@one:~# su - seafile
seafile@one:~$ cd seafile-server
seafile@one:~/seafile-server$ ./seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

seafile@one:~/seafile-server$ ps -aux | grep ‘seafile’
root 16682 0.0 0.0 9484 3164 pts/0 S 10:20 0:00 su - seafile
seafile 16683 0.0 0.0 6992 3644 pts/0 S 10:20 0:00 -bash
root 20659 0.0 0.0 9484 3164 pts/0 S 11:18 0:00 su - seafile
seafile 20660 0.0 0.0 6992 3760 pts/0 S 11:18 0:00 -bash
seafile 21571 0.0 0.0 10632 2980 pts/0 R+ 11:20 0:00 ps -aux
seafile 21572 0.0 0.0 6076 884 pts/0 R+ 11:20 0:00 grep seafile
seafile 22741 0.0 0.0 62220 752 ? Ss 10:30 0:00 /home/seafile/seafile-server/seafile/bin/seafile-controller -c /home/seafile/ccnet -d /home/seafile/seafile-data -F /home/seafile/conf
seafile 22743 0.0 0.0 1180176 13304 ? Ssl 10:30 0:00 seaf-server -F /home/seafile/conf -c /home/seafile/ccnet -d /home/seafile/seafile-data -l /home/seafile/logs/seafile.log -P /home/seafile/pids/seaf-server.pid -p /home/seafile/seafile-server/runtime
root 28013 0.0 0.0 9484 3108 pts/0 S 09:46 0:00 su - seafile
seafile 28014 0.0 0.0 6992 3704 pts/0 S 09:46 0:00 -bash

seafile@one:~/seafile-server$ ps -aux | grep ‘seahub’
seafile 21609 0.0 0.0 6076 888 pts/0 S+ 11:20 0:00 grep seahub
seafile@one:~/seafile-server$


seafile@one:~/seafile-server$ lsof -nP -iTCP -sTCP:LISTEN
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
seaf-serv 22743 seafile 15u IPv4 14429278 0t0 TCP *:8082 (LISTEN)
seafile@one:~/seafile-server$

. . .

seafile@one:~/seafile-server$ cat …/logs/seahub.log
seafile@one:~/seafile-server$

can you publish your log files
seahub.log
seafile.log
seafevents.log
seahub.init.log
seafile.init.log
controller.log

Is it because I have php-fpm running on tcp6 port 8000? If so, I don’t know how to resolve this port conflict. Here’s netstat under root:

root@one:~# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 1485/master
tcp 0 0 0.0.0.0:8082 0.0.0.0:* LISTEN 22743/seaf-server
tcp 0 0 172.93.48.29:53 0.0.0.0:* LISTEN 19326/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 19326/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 783/sshd
tcp 0 0 127.0.0.1:11000 0.0.0.0:* LISTEN 1323/lookup-domain-
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 19326/named
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1485/master
tcp 0 0 172.93.48.29:443 0.0.0.0:* LISTEN 31346/nginx: master
tcp 0 0 127.0.0.1:8891 0.0.0.0:* LISTEN 971/opendkim
tcp 0 0 0.0.0.0:20000 0.0.0.0:* LISTEN 24261/perl
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 756/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 756/dovecot
tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 600/postgrey --pidf
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 30162/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 1485/master
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 756/dovecot
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 27943/perl
tcp 0 0 0.0.0.0:1935 0.0.0.0:* LISTEN 31346/nginx: master
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 756/dovecot
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 31346/nginx: master
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 24114/perl
tcp6 0 0 :::465 :::* LISTEN 1485/master
tcp6 0 0 :::53 :::* LISTEN 19326/named
tcp6 0 0 :::22 :::* LISTEN 783/sshd
tcp6 0 0 ::1:953 :::* LISTEN 19326/named
tcp6 0 0 :::25 :::* LISTEN 1485/master
tcp6 0 0 ::1:8000 :::* LISTEN 15341/php-fpm: mast
tcp6 0 0 :::993 :::* LISTEN 756/dovecot
tcp6 0 0 ::1:8003 :::* LISTEN 15341/php-fpm: mast
tcp6 0 0 :::995 :::* LISTEN 756/dovecot
tcp6 0 0 ::1:10023 :::* LISTEN 600/postgrey --pidf
tcp6 0 0 :::587 :::* LISTEN 1485/master
tcp6 0 0 :::110 :::* LISTEN 756/dovecot
tcp6 0 0 ::1:783 :::* LISTEN 27943/perl
tcp6 0 0 :::143 :::* LISTEN 756/dovecot
tcp6 0 0 :::10000 :::* LISTEN 24114/perl
udp 0 0 172.93.48.29:53 0.0.0.0:* 19326/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 19326/named
udp 0 0 0.0.0.0:5353 0.0.0.0:* 507/avahi-daemon: r
udp 0 0 0.0.0.0:10000 0.0.0.0:* 24114/perl
udp 0 0 0.0.0.0:20000 0.0.0.0:* 24261/perl
udp 0 0 0.0.0.0:57341 0.0.0.0:* 507/avahi-daemon: r
udp6 0 0 :::53 :::* 19326/named
udp6 0 0 :::5353 :::* 507/avahi-daemon: r
udp6 0 0 :::38622 :::* 507/avahi-daemon: r
root@one:~#

root@one:~# ls -lah /home/seafile/
total 49M
drwxr-xr-x 10 seafile seafile 4.0K Mar 10 10:30 .
drwxr-xr-x 7 root root 4.0K Mar 5 15:36 …
-rw------- 1 seafile seafile 443 Mar 5 19:19 .bash_history
-rw-r–r-- 1 seafile seafile 220 Apr 17 2019 .bash_logout
-rw-r–r-- 1 seafile seafile 3.5K Apr 17 2019 .bashrc
drwx------ 2 seafile seafile 4.0K Mar 10 10:24 ccnet
drwx------ 3 seafile seafile 4.0K Mar 10 10:31 conf
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 10:31 logs
-rw------- 1 seafile seafile 1.2K Mar 9 13:33 .mysql_history
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 10:30 pids
-rw-r–r-- 1 seafile seafile 807 Apr 17 2019 .profile
drwx------ 6 seafile seafile 4.0K Mar 10 10:30 seafile-data
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 seafile-server
drwxr-xr-x 7 seafile seafile 4.0K Jan 25 20:02 seafile-server-8.0.3
-rw-r–r-- 1 seafile seafile 49M Jan 26 19:58 seafile-server_8.0.3_x86-64.tar.gz
lrwxrwxrwx 1 seafile seafile 14 Mar 10 10:24 seafile-server-latest -> seafile-server
drwxr-xr-x 3 seafile seafile 4.0K Mar 10 10:24 seahub-data

root@one:~# ls -lah /home/seafile/logs/
total 16K
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 10:31 .
drwxr-xr-x 10 seafile seafile 4.0K Mar 10 10:30 …
-rw-r–r-- 1 seafile seafile 410 Mar 10 10:30 controller.log
-rw-r–r-- 1 seafile seafile 659 Mar 10 11:19 seafile.log
-rw-r–r-- 1 seafile seafile 0 Mar 10 10:31 seahub.log
root@one:~#

root@one:~# cat /home/seafile/logs/seahub.log

root@one:~# cat /home/seafile/logs/seafile.log
[03/10/21 10:30:07] …/common/seaf-utils.c(333): Use database Mysql
[03/10/21 10:30:07] http-server.c(192): fileserver: worker_threads = 10
[03/10/21 10:30:07] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/10/21 10:30:07] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/10/21 10:30:07] http-server.c(237): fileserver: max_indexing_threads = 1
[03/10/21 10:30:07] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/10/21 10:30:07] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/10/2021 10:30:45 AM] start to serve on pipe client
[03/10/2021 11:19:41 AM] start to serve on pipe client

root@one:~# cat /home/seafile/logs/seafevents.log
cat: /home/seafile/logs/seafevents.log: No such file or directory

root@one:~# cat /home/seafile/logs/seahub.init.log
cat: /home/seafile/logs/seahub.init.log: No such file or directory

root@one:~# cat /home/seafile/logs/seafile.init.log
cat: /home/seafile/logs/seafile.init.log: No such file or directory

root@one:~# cat /home/seafile/logs/controller.log
[03/10/21 10:30:07] seafile-controller.c(189): starting seaf-server …
[03/10/21 10:30:07] seafile-controller.c(80): spawn_process: seaf-server -F /home/seafile/conf -c /home/seafile/ccnet -d /home/seafile/seafile-data -l /home/seafile/logs/seafile.log -P /home/seafile/pids/seaf-server.pid -p /home/seafile/seafile-server/runtime
[03/10/21 10:30:07] seafile-controller.c(114): spawned seaf-server, pid 22740
root@one:~#
root@one:~# ls -lah /home/seafile/seafile-server
total 156K
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 .
drwxr-xr-x 10 seafile seafile 4.0K Mar 10 10:30 …
-rw-r–r-- 1 seafile seafile 11K Mar 10 09:49 check_init_admin.py
-rwxr-xr-x 1 seafile seafile 1.8K Mar 10 09:49 reset-admin.sh
drwxr-xr-x 2 seafile seafile 4.0K Mar 10 10:30 runtime
-rwxr-xr-x 1 seafile seafile 1.8K Mar 10 09:49 seaf-fsck.sh
-rwxr-xr-x 1 seafile seafile 3.1K Mar 10 09:49 seaf-fuse.sh
-rwxr-xr-x 1 seafile seafile 2.6K Mar 10 09:49 seaf-gc.sh
drwxr-xr-x 7 seafile seafile 4.0K Mar 10 09:49 seafile
-rwxr-xr-x 1 seafile seafile 4.5K Mar 10 09:49 seafile.sh
drwxr-xr-x 15 seafile seafile 4.0K Mar 10 09:49 seahub
-rwxr-xr-x 1 seafile seafile 7.8K Mar 10 09:49 seahub.sh
-rw-r–r-- 1 seafile seafile 56K Mar 10 09:49 setup-seafile-mysql.py
-rwxr-xr-x 1 seafile seafile 1.6K Mar 10 09:49 setup-seafile-mysql.sh
-rwxr-xr-x 1 seafile seafile 22K Mar 10 09:49 setup-seafile.sh
drwxr-xr-x 4 seafile seafile 4.0K Mar 10 09:49 sql
drwxr-xr-x 4 seafile seafile 4.0K Mar 10 09:49 upgrade
root@one:~#

try this:

./seafile.sh start

./seahub.sh start 8001

Darn. Still error:

seafile@one:~/seafile-server$ ./seafile.sh restart
Stopping seafile server …
Starting seafile server, please wait …
** Message: 12:09:49.446: seafile-controller.c(535): No seafevents.
Seafile server started
Done.

seafile@one:~/seafile-server$ ./seahub.sh start 8001

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8001 …
Error:Seahub failed to start.
Please try to run "./seahub.sh

MariaDB [(none)]> show grants for seafile@localhost;
±---------------------------------------------------------------------------------------------------------------+
| Grants for seafile@localhost |
±---------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON . TO seafile@localhost IDENTIFIED BY PASSWORD '52524CC8009F3CD5EEC74F51D638A1F50…BE’ |
| GRANT ALL PRIVILEGES ON ccnet.
TO seafile@localhost |
| GRANT ALL PRIVILEGES ON seahub.* TO seafile@localhost WITH GRANT OPTION |
| GRANT ALL PRIVILEGES ON seafile.* TO seafile@localhost WITH GRANT OPTION |
±---------------------------------------------------------------------------------------------------------------+
4 rows in set (0.000 sec)

MariaDB [(none)]>

{ don’t know why the seafile forum deletes the character and doesn't show GRANT ALL PRIVILEGES ON ccnet.* TO seafile@localhost`

the ` character is the one on the upper left of my keyboard, below the ~ character. it’s not a normal single quote.}

seafile@one:~$ tree seafile-server -L 3
seafile-server
├── check_init_admin.py
├── reset-admin.sh
├── runtime
│ ├── seafile.sock
│ └── seahub.conf
├── seaf-fsck.sh
├── seaf-fuse.sh
├── seaf-gc.sh
├── seafile
│ ├── bin
│ │ ├── seaf-fsck
│ │ ├── seaf-fuse
│ │ ├── seafile-admin
│ │ ├── seafile-controller
│ │ ├── seaf-server
│ │ ├── seafserv-gc
│ │ └── searpc-codegen.py
│ ├── docs
│ │ └── seafile-tutorial.doc
│ ├── include
│ │ ├── seafile
│ │ ├── searpc-client.h
│ │ ├── searpc.h
│ │ ├── searpc-named-pipe-transport.h
│ │ ├── searpc-server.h
│ │ └── searpc-utils.h
│ ├── lib
│ │ ├── libacl.so.1
│ │ ├── libarchive.so.13
│ │ ├── libattr.so.1
│ │ ├── libblkid.so.1
│ │ ├── libbz2.so.1
│ │ ├── libcom_err.so.2
│ │ ├── libcrypto.so.10
│ │ ├── libcrypt.so.1
│ │ ├── libevent-2.0.so.5
│ │ ├── libffi.so.6
│ │ ├── libfreebl3.so
│ │ ├── libfuse.so.2
│ │ ├── libgcc_s.so.1
│ │ ├── libgio-2.0.so.0
│ │ ├── libglib-2.0.so.0
│ │ ├── libgmodule-2.0.so.0
│ │ ├── libgobject-2.0.so.0
│ │ ├── libgssapi_krb5.so.2
│ │ ├── libjansson.so.4
│ │ ├── libk5crypto.so.3
│ │ ├── libkeyutils.so.1
│ │ ├── libkrb5.so.3
│ │ ├── libkrb5support.so.0
│ │ ├── liblber-2.4.so.2
│ │ ├── libldap-2.4.so.2
│ │ ├── liblzma.so.5
│ │ ├── liblzo2.so.2
│ │ ├── libmariadb.so.3
│ │ ├── libmount.so.1
│ │ ├── libnspr4.so
│ │ ├── libnss3.so
│ │ ├── libnssutil3.so
│ │ ├── libpcre.so.1
│ │ ├── libplc4.so
│ │ ├── libplds4.so
│ │ ├── libsasl2.so.3
│ │ ├── libsearpc.so -> libsearpc.so.1.0.2
│ │ ├── libsearpc.so.1 -> libsearpc.so.1.0.2
│ │ ├── libsearpc.so.1.0.2
│ │ ├── libsmime3.so
│ │ ├── libsqlite3.so.0
│ │ ├── libssl3.so
│ │ ├── libssl.so.10
│ │ ├── libuuid.so.1
│ │ ├── libxml2.so.2
│ │ ├── libz.so.1
│ │ └── pkgconfig
│ └── lib64
│ └── python3.6
├── seafile.sh
├── seahub
│ ├── bin
│ │ ├── restart.template
│ │ └── start.template
│ ├── code-check.sh
│ ├── CONTRIBUTORS
│ ├── dev-requirements.txt
│ ├── fabfile
│ │ ├── copyright.py
│ │ ├── init.py
│ │ └── locale.py
│ ├── frontend
│ │ ├── config
│ │ ├── package.json
│ │ ├── package-lock.json
│ │ ├── scripts
│ │ ├── src
│ │ └── webpack-stats.pro.json
│ ├── HACKING
│ ├── i18n.sh
│ ├── LICENSE-thirdparty.txt
│ ├── LICENSE.txt
│ ├── locale
│ │ ├── ar
│ │ ├── ar_EG
│ │ ├── bg
│ │ ├── bg_BG
│ │ ├── ca
│ │ ├── cs
│ │ ├── cs_CZ
│ │ ├── da_DK
│ │ ├── de
│ │ ├── el
│ │ ├── el_GR
│ │ ├── en
│ │ ├── en_US
│ │ ├── es
│ │ ├── es_AR
│ │ ├── es_MX
│ │ ├── fi
│ │ ├── fr
│ │ ├── he
│ │ ├── hr
│ │ ├── hr_HR
│ │ ├── hu
│ │ ├── is
│ │ ├── it
│ │ ├── ja
│ │ ├── ko
│ │ ├── lt
│ │ ├── lt_LT
│ │ ├── lv
│ │ ├── lv_LV
│ │ ├── mk
│ │ ├── nb
│ │ ├── nb_NO
│ │ ├── nl
│ │ ├── nl_BE
│ │ ├── nl_NL
│ │ ├── pl
│ │ ├── pt_BR
│ │ ├── pt_PT
│ │ ├── ru
│ │ ├── sk
│ │ ├── sk_SK
│ │ ├── sl
│ │ ├── sl_SI
│ │ ├── sv
│ │ ├── th
│ │ ├── th_TH
│ │ ├── tr
│ │ ├── uk
│ │ ├── vi
│ │ ├── zh_CN
│ │ └── zh_TW
│ ├── Makefile
│ ├── manage.py
│ ├── media
│ │ ├── assets
│ │ ├── avatars -> …/…/…/seahub-data/avatars
│ │ ├── cors
│ │ ├── css
│ │ ├── fontawesome
│ │ ├── img
│ │ ├── js
│ │ ├── locales
│ │ └── office-template
│ ├── pylintrc
│ ├── pylintrc.template
│ ├── pytest.ini
│ ├── README.markdown
│ ├── requirements.txt
│ ├── run-seahub.sh.template
│ ├── seahub
│ │ ├── abuse_reports
│ │ ├── admin_log
│ │ ├── api2
│ │ ├── auth
│ │ ├── avatar
│ │ ├── base
│ │ ├── bisheng_office
│ │ ├── cconvert.py
│ │ ├── constants.py
│ │ ├── contacts
│ │ ├── convert-utf-8.txt
│ │ ├── dingtalk
│ │ ├── drafts
│ │ ├── file_participants
│ │ ├── file_tags
│ │ ├── forms.py
│ │ ├── fts
│ │ ├── group
│ │ ├── handlers.py
│ │ ├── help
│ │ ├── init.py
│ │ ├── institutions
│ │ ├── invitations
│ │ ├── notifications
│ │ ├── oauth
│ │ ├── ocm
│ │ ├── onlyoffice
│ │ ├── options
│ │ ├── password_session
│ │ ├── po.py
│ │ ├── profile
│ │ ├── pycache
│ │ ├── related_files
│ │ ├── repo_api_tokens
│ │ ├── repo_auto_delete
│ │ ├── repo_tags
│ │ ├── revision_tag
│ │ ├── role_permissions
│ │ ├── settings.py
│ │ ├── share
│ │ ├── shortcuts.py
│ │ ├── signals.py
│ │ ├── tags
│ │ ├── templates
│ │ ├── test_settings.py
│ │ ├── test_utils.py
│ │ ├── thumbnail
│ │ ├── trusted_ip
│ │ ├── two_factor
│ │ ├── urls.py
│ │ ├── utils
│ │ ├── views
│ │ ├── weixin
│ │ ├── wiki
│ │ ├── wopi
│ │ ├── work_weixin
│ │ └── wsgi.py
│ ├── send_user_notifications.sh.template
│ ├── setenv.sh.template
│ ├── sql
│ │ ├── mysql.sql
│ │ ├── oracle.sql
│ │ ├── README.md
│ │ └── sqlite3.sql
│ ├── static
│ │ ├── css
│ │ └── scripts
│ ├── test-requirements.txt
│ ├── tests
│ │ ├── api
│ │ ├── common
│ │ ├── dist_and_push.sh
│ │ ├── github_actions_dist.sh
│ │ ├── init.py
│ │ ├── seahub
│ │ ├── seahubtests.sh
│ │ ├── test_seahub_changes.sh
│ │ └── ui
│ ├── thirdpart
│ │ ├── appconf
│ │ ├── bin
│ │ ├── certifi
│ │ ├── certifi-2020.12.5.dist-info
│ │ ├── chardet
│ │ ├── chardet-3.0.4.dist-info
│ │ ├── constance
│ │ ├── dateutil
│ │ ├── defusedxml
│ │ ├── defusedxml-0.6.0.dist-info
│ │ ├── _distutils_hack
│ │ ├── distutils-precedence.pth
│ │ ├── django
│ │ ├── Django-2.2.17.dist-info
│ │ ├── django_appconf-1.0.4.dist-info
│ │ ├── django_formtools-2.2.dist-info
│ │ ├── django_picklefield-2.1.1.dist-info
│ │ ├── django_post_office-3.3.0-py3.6.egg-info
│ │ ├── djangorestframework-3.12.2.dist-info
│ │ ├── django_statici18n-2.0.1.dist-info
│ │ ├── django_webpack_loader-0.7.0.dist-info
│ │ ├── easy_install.py
│ │ ├── et_xmlfile
│ │ ├── et_xmlfile-1.0.1-py3.6.egg-info
│ │ ├── formtools
│ │ ├── future
│ │ ├── future-0.18.2-py3.6.egg-info
│ │ ├── gunicorn
│ │ ├── gunicorn-20.0.4.dist-info
│ │ ├── idna
│ │ ├── idna-2.10.dist-info
│ │ ├── jdcal-1.4.1.dist-info
│ │ ├── jdcal.py
│ │ ├── json5
│ │ ├── json5-0.8.5.dist-info
│ │ ├── jsonfield
│ │ ├── jsonfield2-3.0.3.dist-info
│ │ ├── jwt
│ │ ├── libfuturize
│ │ ├── libpasteurize
│ │ ├── lxml
│ │ ├── lxml-4.6.2.dist-info
│ │ ├── oauthlib
│ │ ├── oauthlib-3.1.0.dist-info
│ │ ├── openpyxl
│ │ ├── openpyxl-3.0.5.dist-info
│ │ ├── pam.py
│ │ ├── past
│ │ ├── picklefield
│ │ ├── pkg_resources
│ │ ├── post_office
│ │ ├── pycache
│ │ ├── PyJWT-1.7.1.dist-info
│ │ ├── pymysql
│ │ ├── PyMySQL-0.10.1.dist-info
│ │ ├── python_dateutil-2.8.1.dist-info
│ │ ├── python_pam-1.8.4.dist-info
│ │ ├── pytz
│ │ ├── pytz-2020.4.dist-info
│ │ ├── PyYAML-5.3.1-py3.6.egg-info
│ │ ├── qrcode
│ │ ├── qrcode-6.1.dist-info
│ │ ├── README.md
│ │ ├── registration
│ │ ├── requests
│ │ ├── requests-2.25.0.dist-info
│ │ ├── requests_oauthlib
│ │ ├── requests_oauthlib-1.3.0.dist-info
│ │ ├── rest_framework
│ │ ├── seafobj
│ │ ├── setuptools
│ │ ├── setuptools-51.0.0.dist-info
│ │ ├── share
│ │ ├── shibboleth
│ │ ├── six-1.15.0.dist-info
│ │ ├── six.py
│ │ ├── sqlparse
│ │ ├── sqlparse-0.4.1.dist-info
│ │ ├── statici18n
│ │ ├── termsandconditions
│ │ ├── tests
│ │ ├── urllib3
│ │ ├── urllib3-1.26.2.dist-info
│ │ ├── webpack_loader
│ │ ├── weworkapi
│ │ ├── wsgidav
│ │ └── yaml
│ └── tools
│ ├── avatar_migration.py
│ ├── batch-delete.py
│ ├── gen-tarball.py
│ ├── seahub-admin.py
│ ├── secret_key_generator.py
│ ├── sqlite-to-mysql.sh
│ └── update-seahub-db_0.9.4_to_0.9.5.py
├── seahub.sh
├── setup-seafile-mysql.py
├── setup-seafile-mysql.sh
├── setup-seafile.sh
├── sql
│ ├── mysql
│ │ ├── ccnet.sql
│ │ └── seafile.sql
│ └── sqlite
│ ├── config.sql
│ ├── groupmgr.sql
│ ├── org.sql
│ ├── seafile.sql
│ └── user.sql
└── upgrade
├── add_collate.sh
├── db_update_1.3_1.4.py
├── db_update_helper.py
├── fix_mysql_user.py
├── minor-upgrade.sh
├── regenerate_secret_key.sh
├── sql
│ ├── 1.6.0
│ ├── 1.7.0
│ ├── 1.8.0
│ ├── 2.0.0
│ ├── 2.1.0
│ ├── 2.2.0
│ ├── 3.0.0
│ ├── 3.1.0
│ ├── 4.1.0
│ ├── 4.2.0
│ ├── 4.3.0
│ ├── 4.4.0
│ ├── 5.0.0
│ ├── 5.1.0
│ ├── 6.0.0
│ ├── 6.1.0
│ ├── 6.2.0
│ ├── 6.3.0
│ ├── 7.0.0
│ ├── 7.1.0
│ └── 8.0.0
├── upgrade_1.2_1.3.sh
├── upgrade_1.3_1.4.sh
├── upgrade_1.4_1.5.sh
├── upgrade_1.5_1.6.sh
├── upgrade_1.6_1.7.sh
├── upgrade_1.7_1.8.sh
├── upgrade_1.8_2.0.sh
├── upgrade_2.0_2.1.sh
├── upgrade_2.1_2.2.sh
├── upgrade_2.2_3.0.sh
├── upgrade_3.0_3.1.sh
├── upgrade_3.1_4.0.sh
├── upgrade_4.0_4.1.sh
├── upgrade_4.1_4.2.sh
├── upgrade_4.2_4.3.sh
├── upgrade_4.3_4.4.sh
├── upgrade_4.4_5.0.sh
├── upgrade_5.0_5.1.sh
├── upgrade_5.1_6.0.sh
├── upgrade_6.0_6.1.sh
├── upgrade_6.1_6.2.sh
├── upgrade_6.2_6.3.sh
├── upgrade_6.3_7.0.sh
├── upgrade_7.0_7.1.sh
├── upgrade_7.1_8.0.sh
└── win32
├── py
├── upgrade_1.7_1.8.bat
├── upgrade_1.8_2.0.bat
├── upgrade_2.0_2.1.bat
├── upgrade_2.1_3.0.bat
├── upgrade_3.0_3.1.bat
├── upgrade_3.1_4.0.bat
├── upgrade_4.0_4.1.bat
├── upgrade_4.1_4.2.bat
├── upgrade_4.2_4.3.bat
├── upgrade_4.3_5.0.bat
├── upgrade_5.0_5.1.bat
└── upgrade_5.1_6.0.bat

244 directories, 183 files
seafile@one:~$

Hey oneearth,
I ran into this exact issue a few weeks ago when I moved my seafile instance from CentOS 8 to Debian 10. If memory serves me right I had to this to get it to work (was using root, but you can use a sudo user);

Install openjdk-8-jdk

 apt update
 apt install software-properties-common
 apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main' 
 apt update
 apt install openjdk-8-jdk 

Install Python 3.7 (not 3.5 that comes default)

apt install python3.7 python3.7-setuptools python3.7-pip
pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy django-pylibmc django-simple-captcha python3-ldap
  • Make sure you upgrade Pillow to the latest version (it will give you output info on the latest version)
pip3 install Pillow(version_number)
  • Make sure it’s available in the PATH:
which python3.7
/usr/bin/python3.7

Install mysqlclient using pip3

apt install python3.7-dev
apt install libmysqlclient-dev
pip3 install mysqlclient

I hope this helps!

@CyberCam: Thanks for pointing me in a direction that worked for you.

I think perhaps compiling from source might be a good idea - one thread said danger, danger if not.

wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz
tar xvf Python-3.6.9.tgz
cd Python-3.6.9
./configure --enable-optimizations --enable-shared
make -j8
sudo make altinstall
python3.6

It is recommended to use make altinstall according to the official website.

If you want pip to be included, you need to add --with-ensurepip=install to your configure call. For more details see ./configure --help .

Warning: make install can overwrite or masquerade the python binary. make altinstall is therefore recommended instead of make install since it only installs exec_prefix/bin/pythonversion .

Some packages need to be installed to avoid some known problems, see: Common build problems (updated)

Ubuntu/Debian:

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev

Alternative of libreadline-dev:

sudo apt install libedit-dev

Hello Oneearth,

I also could not get seahub to start on a fresh install of CE seafile-server_8.0.3_x86-64.tar.gz on Debian 10.8. So I decided to give CE seafile-server_7.1.5_x86-64.tar.gz a try. Seahub started OK. Please post an update if you have a solution to 8.0.3 seahub not starting.

Thanks!