[Seafile] - Internal Server Error

Mon serveur YunoHost

Matériel: Vieil ordinateur
Version de YunoHost: 11.0.9.13 (stable)
J’ai accès à mon serveur : SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

Bonjour,

Suite à l’upgrade de “Seafile” [(seafile) de 8.0.5~ynh1 à 9.0.2~ynh1)] je me retrouve avec la page web et l’erreur suivante : “Internal Server Error”.

J’ai fais l’update sur 2 serveur différents et le problème parait sur les 2.
Voici les logs de l’installation : https://paste.yunohost.org/raw/uhoriqupip
Entre temps, j’ai réinstallé la sauvegarde pour que je puisse réutiliser l’application.

Merci par avance pour votre aide.

Cordialement,
Gérard

J’ai pu reproduire l’erreur sur un serveur de test, erreur de fichier manquant au stop/start du service :

Sep 06 12:42:51 systemd[1]: Starting Seafile...
Sep 06 12:42:51 systemd[1095699]: seafile.service: Failed to locate executable /opt/yunohost/seafile/seafile-server-latest/seafile.sh: No such file or directory
Sep 06 12:42:51 systemd[1095699]: seafile.service: Failed at step EXEC spawning /opt/yunohost/seafile/seafile-server-latest/seafile.sh: No such file or directory
Sep 06 12:42:51 systemd[1]: seafile.service: Control process exited, code=exited, status=203/EXEC
Sep 06 12:42:51 systemd[1]: seafile.service: Failed with result 'exit-code'.
Sep 06 12:42:51 systemd[1]: Failed to start Seafile.

C’est un lien symbolique qui n’a pas été mis à jour, j’ai tenté de corriger :
cd /opt/yunohost/seafile
rm seafile-server-latest
sudo -u seafile ln -s seafile-server-9.0.2 seafile-server-latest

Je remarque qu’il reste des process seafile-server-8.0.5
ps -ef |grep seafile

seafile  1074349       1  0 12:24 ?        00:00:01 python3 /opt/yunohost/seafile/seafile-server-8.0.5/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/yunohost/seafile/conf/gunicorn.conf.py --preload
seafile  1074350 1074349  0 12:24 ?        00:00:00 python3 /opt/yunohost/seafile/seafile-server-8.0.5/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/yunohost/seafile/conf/gunicorn.conf.py --preload
seafile  1074351 1074349  0 12:24 ?        00:00:00 python3 /opt/yunohost/seafile/seafile-server-8.0.5/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/yunohost/seafile/conf/gunicorn.conf.py --preload
seafile  1074352 1074349  0 12:24 ?        00:00:00 python3 /opt/yunohost/seafile/seafile-server-8.0.5/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/yunohost/seafile/conf/gunicorn.conf.py --preload
seafile  1074353 1074349  0 12:24 ?        00:00:00 python3 /opt/yunohost/seafile/seafile-server-8.0.5/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/yunohost/seafile/conf/gunicorn.conf.py --preload
seafile  1074354 1074349  0 12:24 ?        00:00:00 python3 /opt/yunohost/seafile/seafile-server-8.0.5/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/yunohost/seafile/conf/gunicorn.conf.py --preload

Donc je les stop : killall -u seafile

Je redemarre seafile : yunohost service start seafile

Le service démarre et l’erreur s’est transformée en : 502 Bad Gateway
Je vérifie la configuration proxypass de nginx qui se connecte sur le port 8000 alors que netstat -tlp |grep seaf indique le port 8082, je corrige et…

je n’ai plus d’erreur mais une page blanche (chromium indique ERR_INVALID_RESPONSE), j’ai arrêté là mon investigation…

1 Like

en fait il y a plusieurs ports d’écoute, et la configuration nginx était bonne.
J’ai juste relancé le service seahub et j’ai bien une page de connexion, mais sans CSS

1 Like

En refaisant la manip depuis le début, j’arrive (presque) à avoir un seafile fonctionnel :

cd /opt/yunohost/seafile
rm seafile-server-latest
sudo -u seafile ln -s seafile-server-9.0.2 seafile-server-latest

yunohost service restart seafile
yunohost service restart seahub

Edit : je ne l’utilise pas en production, j’abandonne l’enquête ici :pleading_face:

Hi,

I’m sorry, I am not fluent enough to answer in french.

I believe I have the same problem and relinking seafile-server-latest at least gave me basic functionality regarding file syncing.

What does not work is the seahub service - this is the one responsible for all web services: web page, webdav, etc. It fails with a failure exit code, without any log entries.

I will try to open an issue on the github page.

Does your seahub.service start properly?

systemctl status seahub.service

Same issue here.

hi,

yes, service start properly.

I have a login page without css and a blank page after login… nothing in the logs files… or i don’t find it :face_with_diagonal_mouth:

Which yunohost version is your server running?

yunohost:
repo: stable
version: 11.0.9.14
yunohost-admin:
repo: stable
version: 11.0.10
moulinette:
repo: stable
version: 11.0.9
ssowat:
repo: stable
version: 11.0.9

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