Seafile troubleshooting

Troubleshooting

Manually start seahub/seafile in non daemon mode

Disable daemon mode in /var/www/vhosts/$domain/seafile/conf/gunicorn.conf.py:

    daemon = False

Execute seahub service manually (take port and domain and user from service file):

    runuser -l $user -c '/bin/bash /var/www/vhosts/$domain/seafile/seafile-server-latest/seahub.sh start $port'

or (because on buster runuser doesn’t work?):

    HOME=/var/www/vhosts/$domain/seafile/ setpriv --ruid $user /var/www/vhosts/$domain/seafile/seafile-server-latest/seahub.sh start $port

example service file:

[root@alma8 ~]# cat /etc/systemd/system/seahub@8001.service
[Unit]
Description=Seafile hub
After=network.target seafile@8000.service
Requires=seafile@8000.service

StartLimitIntervalSec=200
StartLimitBurst=5

[Service]
Type=forking
# change start to start-fastcgi if you want to run fastcgi
ExecStart=/var/www/vhosts/kolab-premium.alma8.local/seafile/seafile-server-latest/seahub.sh start 8001
ExecStop=/var/www/vhosts/kolab-premium.alma8.local/seafile/seafile-server-latest/seahub.sh stop
User=10003
Group=psaserv
Restart=on-failure
RestartSec=15s

[Install]
WantedBy=multi-user.target

This would mean you should use:

  • domain = kolab-premium.alma8.local
  • user = 10003
  • port = 8001

Usually the problem is just a missing dependency.

To enable debug output:

  • Add ‘export SEAFILE_DEBUG=”Http”‘ in seafile.sh and restart seafile
  • Debug appears output in seafile.log

Upgrade

To upgrade a seafile installation to the latest version, do the following:

  • Take a backup via plesk
  • Update seafile (plesk bin extension -e upgrade-domain.php $mydomain)
  • Follow the upgrade instructions to migrate the data: https://manual.seafile.com/upgrade/upgrade_notes_for_8.0.x/
  • Restart the services: systemctl start seafile…` systemctl start seafile…`