Seafile not starting on bootup

Hi,

I have a problem similiar but not quite the same as described in

I configured systemd according to the description in the seafile manual.

Starting manually by the script works. As does
sudo service seafile start or sudo systemctl start seafile

But the server isn’t coming up on startup. journalctl -xn 1000 -u seafile.service shows this error message.
`-- Logs begin at Tue 2017-10-24 09:04:09 CEST, end at Tue 2017-10-24 09:05:54 CEST. –
Okt 24 09:04:19 doctor systemd[1]: Starting Seafile…
– Subject: Unit seafile.service has begun start-up
– Defined-By: systemd
– Support: http://www.ubuntu.com/support

– Unit seafile.service has begun starting up.
Okt 24 09:04:20 doctor seafile.sh[1214]: failed to run “ccnet-server -t”
Okt 24 09:04:20 doctor systemd[1]: seafile.service: Main process exited, code=exited, status=1/FAILURE
Okt 24 09:04:20 doctor systemd[1]: Failed to start Seafile.
– Subject: Unit seafile.service has failed
– Defined-By: systemd
– Support: http://www.ubuntu.com/support

– Unit seafile.service has failed.

– The result is failed.
Okt 24 09:04:20 doctor systemd[1]: seafile.service: Unit entered failed state.
Okt 24 09:04:20 doctor systemd[1]: seafile.service: Failed with result ‘exit-code’.`

Of course I googled the ccnet error but found only posts regarding full disks or a disfuntional mysql installations. The disk should provide enough space. I’m not so sure about the mysql-thing though.

Does anyone know what I’m doing wrong?

Thanks in advance!

I think I solved the problem. It was a simple error in the systemd unit file for the seafile service. You have to specify
After=network.target mysql.service

Well, that is stated in the manual that you need to write mysql.service if you use that.