Warning: seahub.service changed on disk. Run ‘systemctl daemon-reload’ to reload units.
Job for seahub.service failed because the control process exited with error code. See “systemctl status seahub.service” and “journalctl -xe” for details.
I get the problem when it will start systemctl start seahub, is there a solution ??
Can you please provide the startup script for both seafile and seahub.
Note: the “description” has to correlate.
So if the seafile script description is Seafile, then the seahub script must point to Seafile.service (notice the capital first letter) in the network target line for the seahub script, it must match.
My Seafile Script:
[Unit]
Description=Seafile
# add mysql.service or postgresql.service depending on your database to the line below
After=network.target mysql.service
[Service]
Type=oneshot
ExecStart=/home/robbie/seafile/seafile-server-latest/seafile.sh start
ExecStop=/home/robbie/seafile/seafile-server-latest/seafile.sh stop
RemainAfterExit=yes
User=robbie
Group=robbie
[Install]
WantedBy=multi-user.target
My Seahub Script:
[Unit]
Description=Seahub
After=network.target Seafile.service
[Service]
# change start to start-fastcgi if you want to run fastcgi
ExecStart=/home/robbie/seafile/seafile-server-latest/seahub.sh start-fastcgi
ExecStop=/home/robbie/seafile/seafile-server-latest/seahub.sh stop
User=robbie
Group=robbie
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Also the manual doesn’t mention this but:
To enable the seafile.service and seahub.service on boot you must enter the command:
sudo systemctl enable Seafile
&
sudo systemctl enable Seahub
Notice the capital letters correspond again for the names.
I met simillar issue on ubuntu 16.04 lts platform, systemctl can start seafile service but seahub. I can manually start seahub by using
./seahub.sh start
I tried the above solution, it doesn’t work and there is no content in seahub.log, the file size is 0. I can’t find any clue what happened and what’s the difference between systemd start and manual start.
Im stuck in the same problem, Here I installed on a Debian 8.7. the seafile and seahub starts great manually, but with the boot script it only starts seafile, the seahub status return "Seahub is already running", but he doesnt.
In my configuration I needed to configure the systemd scripts too
I ran into this issue when I moved my seafile-data folder to a nfs share. The files in seafile-data had the correct permission but the mount point of /opt/seafile/seafile-data itself had the wrong user/group. chown seafile.seafile /opt/seafile/seafile-data fixed the issue.