Fixing Seafile
Similarly to the beginning of the year, I had a problem with Seafile. It was crashing and I couldn’t start it with systemd.
Here’s my notes/steps/fixes for the issue.
I stopped the services:
1sudo systemctl stop seahub
2sudo systemctl stop seafile
Sudo into the seafile user:
1sudo -u seafileuser -s /bin/sh
Disabled the daemon mode and manually started seafile to see the output errors:
1vi $HOME/seafile/conf/gunicorn.conf.py
1(...)
2daemon = False
3(...)
1seafile-server-latest/seafile.sh start
2seafile-server-latest/seahub.sh start
I had errors loading some python libraries, so I updated them:
1sudo pip3 install --timeout=3600 django-pylibmc django-simple-captcha
2sudo pip3 install --timeout=3600 future mysqlclient
Enabled the daemon mode:
1vi $HOME/seafile/conf/gunicorn.conf.py
1(...)
2daemon = True
3(...)
Started seafile with success:
1sudo systemctl start seafile
2sudo systemctl start seahub