Seafile won't start after 9.0.9 update

My YunoHost server

Hardware: Kimsufi KS4
YunoHost version: 11.2.5 (stable)
I have access to my server : Through SSH + through the webadmin

Description of my issue

After updating Seafile to 9.0.9~ynh1, it’s not starting anymore.

  • seafile service won’t start.
  • seahub service won’t start.
  • 502 Bad Gateway on the webpage of my instance

A file seems to be missing or misplaced, similir to this problem: [Seafile] - Internal Server Error - #8 by aga, but I would like your advice before trying anything.

Thank you! :kissing_smiling_eyes:

Here is the seafile service hastebin logs.

-- Boot 643ef8d727f945d98cc2eeb4cfd8ea42 --
Nov 16 08:11:01 systemd[1]: Starting Seafile...
Nov 16 08:11:01 systemd[2088]: seafile.service: Failed to locate executable /opt/yunohost/seafile/seafile-server-latest/seafile.sh: No such file or directory
Nov 16 08:11:01 systemd[2088]: seafile.service: Failed at step EXEC spawning /opt/yunohost/seafile/seafile-server-latest/seafile.sh: No such file or directory
Nov 16 08:11:01 systemd[1]: seafile.service: Control process exited, code=exited, status=203/EXEC
Nov 16 08:11:01 systemd[1]: seafile.service: Failed with result 'exit-code'.
Nov 16 08:11:01 systemd[1]: Failed to start Seafile.

Update:

seafile-server-latest was pointing to a missing folder:

lrwxrwxrwx 1 seafile seafile 20 Sep 25 2022 seafile-server-latest -> seafile-server-9.0.2

I’ve updated it:
ln -sfn seafile-server-9.0.9 seafile-server-latest
and now both services start, but the css on the web interface seems missing.

Here is the solution:

First fix where the seafile-server-latest folder point:

ln -sfn seafile-server-9.0.9 seafile-server-latest

Then

setfacl -m user:www-data:rX /opt/yunohost/seafile/seafile-server-9.0.9
setfacl -m user:www-data:rX /opt/yunohost/seafile/seafile-server-9.0.9/seahub 
setfacl -R -m user:www-data:rX /opt/yunohost/seafile/seafile-server-9.0.9/seahub/media

Found the solution here:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.