Job for seahub.service failed because the control process exited with error code

Hi,

firstly i want to mention that i already had setup exxactly like docs told to.
Then i tried something else and seafile works better but seahub wont restart anymore.

here are my files:

/etc/systemd/system/seahub.service:
[Unit]
Description=Seafile hub
After=network.target seafile.service

[Service]
Environment="LC_ALL=C"
Type=oneshot
# change start to start-fastcgi if you want to run fastcgi
ExecStart=/home/seafile/seafile-server-latest/seahub.sh start
ExecStop=/home/seafile/seafile-server-latest/seahub.sh stop
RemainAfterExit=yes
User=seafile
Group=seafile

[Install]
WantedBy=multi-user.target

/etc/systemd/system/seafile.service

[Unit]
Description=Seafile
# add mysql.service or postgresql.service depending on your database to the line below
After=network.target

[Service]
Environment="LC_ALL=C"
Type=oneshot
ExecStart=/home/seafile/seafile-server-latest/seafile.sh start
ExecStop=/home/seafile/seafile-server-latest/seafile.sh stop
RemainAfterExit=yes
User=seafile
Group=seafile

[Install]
WantedBy=multi-user.target

Error:

systemctl restart seafile seahub

Job for seahub.service failed because the control process exited with error code. See "systemctl status seahub.service" and "journalctl -xe" for details.
root@:~# systemctl status seahub
● seahub.service - Seafile hub
   Loaded: loaded (/etc/systemd/system/seahub.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-04-12 10:05:56 CEST; 22s ago
  Process: 17862 ExecStart=/home/seafile/seafile-server-latest/seahub.sh start (code=exited, status=1/FAILURE)
 Main PID: 17862 (code=exited, status=1/FAILURE)

Apr 12 10:05:56 systemd[1]: Starting Seafile hub...
Apr 12 10:05:56 systemd[1]: seahub.service: Main process exited, code=exited, status=1/FAILURE
Apr 12 10:05:56 systemd[1]: Failed to start Seafile hub.
Apr 12 10:05:56 systemd[1]: seahub.service: Unit entered failed state.
Apr 12 10:05:56 systemd[1]: seahub.service: Failed with result 'exit-code'.
1 Like

Can you post your Seafile log files here for that time period? Also, can you post your conf file configs too, including NGinx/Apache if you use them.

Hi!!! me too is the same problem i’ve tried to configure my seafile server 8.0.7 on virtual machine as it is described in the manual but when i want to start seafile, responds is “failed to start seafile” i try to check other manuals even, the same error i don’t know what can i do now, help me please…