Hi,
I run a Seafile 7.1.3 Pro-Version and have some problems with the garbage collection:
seafile@seafile:~$ /opt/seafile/seafile-pro-server-7.1.3/seaf-gc.sh -r
/opt/seafile/seafile-pro-server-7.1.3/seaf-gc.sh: line 96: read_seafile_data_dir: command not found
Starting seafserv-gc, please wait ...
[05/04/20 16:16:20] gc-core.c(673): === Repos deleted by users ===
seafserv-gc run done
Done.
Without the option -r the process runs but throws the same error at the beginning:
seafile@seafile:~$ /opt/seafile/seafile-pro-server-7.1.3/seaf-gc.sh
/opt/seafile/seafile-pro-server-7.1.3/seaf-gc.sh: line 96: read_seafile_data_dir: command not found
Starting seafserv-gc, please wait ...
[05/04/20 16:18:05] gc-core.c(803): Database is MySQL/Postgre/Oracle, use online GC.
[05/04/20 16:18:05] gc-core.c(827): Using up to 1 threads to run GC.
...
Hi, Found this block of code in the pre v7.1 seafile releases:
function read_seafile_data_dir () {
seafile_ini=${default_ccnet_conf_dir}/seafile.ini
if [[ ! -f ${seafile_ini} ]]; then
echo “${seafile_ini} not found. Now quit”
exit 1
fi
seafile_data_dir=$(cat “${seafile_ini}”)
if [[ ! -d ${seafile_data_dir} ]]; then
echo “Your seafile server data directory "${seafile_data_dir}" is invalid or doesn’t exits.”
echo “Please check it first, or create this directory yourself.”
echo “”
exit 1;
fi
./seaf-gc.sh: ligne96: read_seafile_data_dir : commande introuvable
Starting seafserv-gc, please wait …
[05/16/22 16:57:31] gc-core.c(806): Database is MySQL/Postgre/Oracle, use online GC.
[05/16/22 16:57:31] gc-core.c(830): Using up to 1 threads to run GC.
[05/16/22 16:57:31] gc-core.c(882): === GC is finished ===
seafserv-gc run done