How to properly upgrade a docker deployed community 7 server to docker deployed pro 7?
I changed my docker-compose to comply with
This new documentation for version 7 says nothing about migration from community to pro. Nevertheless the
pro.py still exists and has the option
But in docker containers this does not work:
Traceback (most recent call last): File "./pro/pro.py", line 836, in <module> main() File "./pro/pro.py", line 833, in main args.func(args) File "./pro/pro.py", line 704, in do_setup env_mgr.read_seafile_conf_dir() File "./pro/pro.py", line 341, in read_seafile_conf_dir with open(seafile_ini, 'r') as fp: IOError: [Errno 2] No such file or directory: '/opt/seafile/ccnet/seafile.ini'
The ccnet directory is in the /shared directory not in the /opt/seafile but this is not known to the script.
If I copy the
/shared/seafile and execute the
pro.py setup --migrate script, it succeeds without error.
But now I have the problem that all libraries are somehow unconnected. And in seafile.log I have:
Error prepare statement [...] Table 'seafile_db.RepoStorageId' doesn't exist. Table 'seafile_db.FileLocks' doesn't exist.
So the pro migration script did not create all necessary tables.
On this forum I found a post from a seafile official that recommends creating the sql tables by hand in another case. So I have done that in this case according to:
Now “everything” works. So if there is an official way I did not find it. But my way worked somehow. I will report back if I encounter errors.