Seafile 11.0.9 install directory

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.2.21.2
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:
If your request is related to an app, specify its name and version: Seafile 11.0.9~ynh1

Description of my issue

I am running out of space on my VPS. I would like to run the seafile garbage collector, so I am looking for the script “seaf-gc.sh” thats supposed to be in the seafile server folder.

Looking in /opt/yunohost/seafile/ I found that the simlink seafile-server-latest is broken and I am not sure how to fix it. Also I have no idea where is the actual install dir seafile-server-11.0.9

Any advise?

ls -l /opt/yunohost/seafile/
total 24
drwx------ 2 seafile seafile 4096 Nov 26 2022 ccnet
drwx------ 3 seafile seafile 4096 Jul 17 18:58 conf
drwxr----- 2 seafile seafile 4096 Nov 26 2022 installed
lrwxrwxrwx 1 root root 16 Jul 17 18:57 logs → /var/log/seafile
drwxr----- 2 seafile seafile 4096 Jul 15 11:49 pids
lrwxrwxrwx 1 root root 39 Jul 17 18:57 seafile-data → /home/yunohost.app/seafile/seafile-data
lrwxrwxrwx 1 seafile seafile 31 Nov 26 2022 seafile-data20240322.230826 → /home/yunohost.app/seafile-data
lrwxrwxrwx 1 seafile seafile 26 Mar 22 23:08 seafile-data_20240717.185751 → /home/yunohost.app/seafile
drwxrwxrwx+ 21 root root 4096 Jul 17 18:58 seafile_image
lrwxrwxrwx 1 seafile seafile 20 Mar 22 23:09 seafile-server-latest → seafile-server-9.0.9
lrwxrwxrwx 1 root root 38 Jul 17 18:57 seahub-data → /home/yunohost.app/seafile/seahub-data
drwxr----- 6 seafile seafile 4096 Mar 22 23:08 venv


Mon serveur YunoHost

Matériel: VPS acheté en ligne
Version de YunoHost: 11.2.21.2
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Si votre requête est liée à une applicatio, précisez son nom et sa version: Seafile 11.0.9~ynh1

Description du problème

Je manque d’espace sur mon VPS. Je voudrais lancer le garbage collector de seafile, donc je cherche le script « seaf-gc.sh » qui est supposé être dans le dossier du serveur seafile.

En regardant dans /opt/yunohost/seafile/ j’ai trouvé que le simlink seafile-server-latest est cassé et je ne suis pas sûr de savoir comment le réparer. Je ne sais pas non plus où se trouve le répertoire d’installation de seafile-server-11.0.9.

Un conseil ?

ls -l /opt/yunohost/seafile/
total 24
drwx------ 2 seafile seafile 4096 Nov 26 2022 ccnet
drwx------ 3 seafile seafile 4096 Jul 17 18:58 conf
drwxr----- 2 seafile seafile 4096 Nov 26 2022 installed
lrwxrwxrwx 1 root root 16 Jul 17 18:57 logs → /var/log/seafile
drwxr----- 2 seafile seafile 4096 Jul 15 11:49 pids
lrwxrwxrwx 1 root root 39 Jul 17 18:57 seafile-data → /home/yunohost.app/seafile/seafile-data
lrwxrwxrwx 1 seafile seafile 31 Nov 26 2022 seafile-data20240322.230826 → /home/yunohost.app/seafile-data
lrwxrwxrwx 1 seafile seafile 26 Mar 22 23:08 seafile-data_20240717.185751 → /home/yunohost.app/seafile
drwxrwxrwx+ 21 root root 4096 Jul 17 18:58 seafile_image
lrwxrwxrwx 1 seafile seafile 20 Mar 22 23:09 seafile-server-latest → seafile-server-9.0.9
lrwxrwxrwx 1 root root 38 Jul 17 18:57 seahub-data → /home/yunohost.app/seafile/seahub-data
drwxr----- 6 seafile seafile 4096 Mar 22 23:08 venv

sudo find / -iname “seaf-gc.sh” -type f
/opt/yunohost/seafile/seafile_image/opt/seafile/seafile-server-11.0.9/seaf-gc.sh
/opt/yunohost/seafile/seafile_image/opt/seafile/seafile-server-11.0.9/seahub/scripts/seaf-gc.sh

I dont know what happened during the update to 11.0.9 but install dir has changed to
/opt/yunohost/seafile/seafile_image/opt/seafile/

I tried to run seaf-gc.sh from there but it was failing. Looking at the script I found that the data dir path was wrong.

Updated line default_seafile_data_dir=${TOPDIR}/seafile-data to ${TOPDIR}/seafile-data/seafile-data

After I was getting another error:
Starting seafserv-gc, please wait …
2024-07-20 23:03:56 seafile-session.c(60): Failed to load config file.
2024-07-20 23:03:56 seafserv-gc.c(135): Failed to create seafile session.

Then I found out /opt/yunohost/seafile/seafile_image/opt/seafile/conf was empty.
But conf files were available in /opt/yunohost/seafile/conf
So I made a copy of conf files to the new folder and then I was able to run seaf-gc :star_struck:

Hello,

Just to give more detail on this, since seafile 11 we use the docker image instead of the binary for some reason. So yes it’s a bit more complicated to run a command like this. Maybe the better way is to use systemd-run with the same settings than for the seafile service. You can have the exact file content in /etc/systemd/system/seafile.service.

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