I’m trying to use the docker-compose.yml file to upgrade my previously working Seafile installation and it’s not working. I’m getting the following error in the seafile container logs:
[root@beast seafile]# docker logs seafile -f
*** Running /etc/my_init.d/01_create_data_links.sh…
*** Booting runit daemon…
*** Runit started as PID 24
*** Running /scripts/enterpoint.sh…
nginx: [warn] the “ssl” directive is deprecated, use the “listen … ssl” directive instead in /etc/nginx/sites-enabled/seafile.nginx.conf:20
2022-03-14 19:25:13 Nginx ready
2022-03-14 19:25:13 This is a idle script (infinite loop) to keep container running.
Certificate will not expire
Created a crontab to auto renew the cert for letsencrypt.
nginx: [warn] the “ssl” directive is deprecated, use the “listen … ssl” directive instead in /etc/nginx/sites-enabled/seafile.nginx.conf:20
[03/14/2022 19:25:13][upgrade]: Running script /opt/seafile/seafile-server-9.0.4/upgrade/upgrade_1.2_1.3.sh
This script would upgrade your seafile server from 1.2.0 to 1.3.0
Press [ENTER] to contiune
Can’t find a python executable of version 2.6 or above in PATH
Install python 2.6+ before continue.
Or if you installed it in a non-standard PATH, set the PYTHON enviroment varirable to it
[2022-03-14 19:25:13] Preparing for letsencrypt …
[2022-03-14 19:25:13] Found existing cert file /shared/ssl/cloud.hackno.org.crt
[2022-03-14 19:25:13] Skip letsencrypt verification since we have a valid certificate
[2022-03-14 19:25:13] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
[2022-03-14 19:25:13] Running scripts /opt/seafile/seafile-server-9.0.4/upgrade/upgrade_1.2_1.3.sh
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 58, in main
check_upgrade()
File “/scripts/upgrade.py”, line 108, in check_upgrade
run_script_and_update_version_stamp(script, new_version)
File “/scripts/upgrade.py”, line 59, in run_script_and_update_version_stamp
call(script)
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 ‘/opt/seafile/seafile-server-9.0.4/upgrade/upgrade_1.2_1.3.sh’ returned non-zero exit status 1.
I found old logs showing that I was running version 8 before but even trying to run that version does the same thing. It says it can’t find Python 2.x. What do I do? I backed up the database and files but when I go to copy things back over and reimport the database I’m back to this error.