Upgrade from 7.1.17 to 8.0.3 issue

Upgrade from PRO 7.1.17 to PRO 8.0.3 was ok…:

seafile          | [04/28/2021 12:11:03][upgrade]: The container was recreated, running minor-upgrade.sh to fix the media symlinks
seafile          | [04/28/2021 12:11:03][upgrade]: Running script /opt/seafile/seafile-pro-server-8.0.3/upgrade/minor-upgrade.sh
seafile          | /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
seafile          | 
seafile          | -------------------------------------------------------------
seafile          | This script would do the minor upgrade for you.
seafile          | Press [ENTER] to contiune
seafile          | -------------------------------------------------------------
seafile          | 
seafile          | 
seafile          | renaming the gunicorn.conf to gunicorn.conf.py ...
seafile          | 
seafile          | Done
seafile          | 
seafile          | ------------------------------
seafile          | migrating avatars ...
seafile          | 
seafile          | 
seafile          | DONE
seafile          | ------------------------------
seafile          | 
seafile          | 
seafile          | Moving the elasticsearch's configuration file ...
seafile          | 
seafile          | /bin/cp: '/opt/seafile/seafile-server-latest/pro/elasticsearch/config/jvm.options' and '/opt/seafile/seafile-pro-server-8.0.3/pro/elasticsearch/config/jvm.options' are the same file
seafile          | 
seafile          | updating seafile-server-latest symbolic link to /opt/seafile/seafile-pro-server-8.0.3 ...
seafile          | 
seafile          | DONE
seafile          | ------------------------------
seafile          | 
seafile          | /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
seafile          | 
seafile          | ** Message: 12:11:03.644: seafile-controller.c(932): loading seafdav config from /opt/seafile/conf/seafdav.conf
seafile          | 
seafile          | 2021-04-28 12:11:03 ../common/seaf-utils.c(409): Use database Mysql
seafile          | 2021-04-28 12:11:03 http-server.c(230): fileserver: worker_threads = 10
seafile          | 2021-04-28 12:11:03 http-server.c(243): fileserver: backlog = 32
seafile          | 2021-04-28 12:11:03 http-server.c(258): fileserver: fixed_block_size = 8388608
seafile          | 2021-04-28 12:11:03 http-server.c(273): fileserver: web_token_expire_time = 3600
seafile          | 2021-04-28 12:11:03 http-server.c(288): fileserver: max_indexing_threads = 1
seafile          | 2021-04-28 12:11:03 http-server.c(303): fileserver: max_index_processing_threads= 3
seafile          | 2021-04-28 12:11:03 http-server.c(325): fileserver: cluster_shared_temp_file_mode = 600
seafile          | 2021-04-28 12:11:03 http-server.c(403): fileserver: enable_async_indexing = 0
seafile          | 2021-04-28 12:11:03 http-server.c(415): fileserver: async_indexing_threshold = 700
seafile          | 2021-04-28 12:11:03 http-server.c(428): fileserver: fs_id_list_request_timeout = 300
seafile          | 2021-04-28 12:11:03 http-server.c(441): fileserver: max_sync_file_count = 100000
seafile          | 2021-04-28 12:11:03 ../common/license.c(716): License file /opt/seafile/seafile-license.txt does not exist, allow at most 3 trial users
seafile          | License file /opt/seafile/seafile-license.txt does not exist, allow at most 3 trial users
seafile          | Starting seafile server, please wait ...
seafile          | ** Message: 12:11:03.698: seafile-controller.c(932): loading seafdav config from /opt/seafile/conf/seafdav.conf
seafile          | 
seafile          | Seafile server started
seafile          | 
seafile          | Done.

Until this has hit me:

seafile          | /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
seafile          | 
seafile          | Starting seahub at port 8000 ...
seafile          | Error:Seahub failed to start.
seafile          | Please try to run "./seahub.sh start" again
seafile          | [2021-04-28 12:11:03] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
seafile          | Traceback (most recent call last):
seafile          |   File "/scripts/start.py", line 88, in <module>
seafile          |     main()
seafile          |   File "/scripts/start.py", line 73, in main
seafile          |     call('{} start'.format(get_script('seahub.sh')))
seafile          |   File "/scripts/utils/__init__.py", line 70, in call
seafile          |     return subprocess.check_call(*a, **kw)
seafile          |   File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
seafile          |     raise CalledProcessError(retcode, cmd)
seafile          | subprocess.CalledProcessError: Command '/opt/seafile/seafile-pro-server-8.0.3/seahub.sh start' returned non-zero exit status 1.

Any idea what is wrong?

Curious where you got 8.0.3 docker? Also when I pull latest from docker – I get 7.1.14 - you’re saying you have 7.1.17?
I happened to just build the 8.0.3 docker image tonight and was coming on to post about the upgrade path; I’m a bit nervous to test it on my current live instance. It’s not showing up on the docker hub… so I built my own. Also I ended up with pyhon 3.6 – yours is 3.7 I see.

In your case, aren’t you save doing a docker compose down. ? I will resetup the net container when you start it again (I think) …

Being a software engineer I just don’t get how they can manage all these versions and such; seems a bit wonky to me. I appreciate the software, so it’s hard to complain.

Sorry for a lack of precision. I build my own docker image. In fact I am very impatient, and I don’t like to wait for the Seafile Team to provide with a build. It is always late. I am also crazy paranoid, so I craft all my docker images myself.
The issue described above appears regardless if I try to upgrade from a lower version or I try to provision a new instance. Something dodgy with seahub in version 8.