Im trying to upgrade our Seafile Docker Container from 9.0.x to the latest Docker release 10.x.
i tried it two times today, but always I end up with this in the log:
*** Running /etc/my_init.d/01_create_data_links.sh…
*** Booting runit daemon…
*** Runit started as PID 25
*** Running /scripts/enterpoint.sh…
2023-07-20 16:28:03 Nginx ready
2023-07-20 16:28:03 This is an idle script (infinite loop) to keep container running.
[07/20/2023 16:28:03][upgrade]: The container was recreated, start fix the media symlinks
mv: cannot stat ‘/opt/seafile/seafile-server-9.0.9/seahub/media/avatars/’: No such file or directory
[2023-07-20 16:28:03] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
Traceback (most recent call last):
File “/scripts/start.py”, line 95, in
File “/scripts/start.py”, line 61, in main
File “/scripts/upgrade.py”, line 95, in check_upgrade
File “/scripts/upgrade.py”, line 79, in fix_media_symlinks
call('mv -n %s/ %s’ % (avatars_dir, dst_avatars_dir))
File “/scripts/utils.py”, line 70, in call
return subprocess.check_call(*a, *kw)
File “/usr/lib/python3.8/subprocess.py”, line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'mv -n /opt/seafile/seafile-server-9.0.9/seahub/media/avatars/ /shared/seafile/seahub-data/avatars’ returned non-zero exit status 1.
What am I doing wrong?
Server: Docker 20.10.18 on Debian11
Deployment: Compose file with MariaDB Memcache and Seafile