Upgrading seafile error

hi i have been following the “support/docker/6.3 upgrade to 7.0.md” guide

but i get this back when running the last step:

Recreating seafile-mysql ... 
Recreating seafile-mysql ... done
Recreating seafile       ... done
Attaching to seafile-memcached, seafile-mysql, seafile
seafile-mysql | 2019-07-30 17:18:01 140267870918656 [Note] mysqld (mysqld 10.1.40-MariaDB-1~bionic) starting as process 1 ...
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: Using mutexes to ref count buffer pool pages
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: The InnoDB memory heap is disabled
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: Compressed tables use zlib 1.2.11
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: Using Linux native AIO
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: Using SSE crc32 instructions
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: Initializing buffer pool, size = 256.0M
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: Completed initialization of buffer pool
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: Highest supported file format is Barracuda.
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: 128 rollback segment(s) are active.
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB: Waiting for purge to start
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.43-84.3 started; log sequence number 1616757
seafile-mysql | 2019-07-30 17:18:02 140266912610048 [Note] InnoDB: Dumping buffer pool(s) not yet started
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] Plugin 'FEEDBACK' is disabled.
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] Server socket created on IP: '::'.
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Warning] 'proxies_priv' entry '@% root@0eff8a5c4ef9' ignored in --skip-name-resolve mode.
seafile-mysql | 2019-07-30 17:18:02 140267870918656 [Note] mysqld: ready for connections.
seafile-mysql | Version: '10.1.40-MariaDB-1~bionic'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
seafile      | *** Running /etc/my_init.d/01_create_data_links.sh...
seafile      | *** Running /etc/my_init.d/10_syslog-ng.init...
seafile      | *** Booting runit daemon...
seafile      | *** Runit started as PID 31
seafile      | *** Running /scripts/start.py...
seafile      | Jul 30 17:18:04 fa1a5e46616a syslog-ng[25]: syslog-ng starting up; version='3.13.2'
seafile      | Jul 30 17:18:04 fa1a5e46616a cron[36]: (CRON) INFO (pidfile fd = 3)
seafile      | Jul 30 17:18:04 fa1a5e46616a cron[36]: (CRON) INFO (Running @reboot jobs)
seafile      | [2019-07-30 17:18:05] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
seafile      | [2019-07-30 17:18:05] Running scripts /opt/seafile/seafile-server-7.0.3/upgrade/upgrade_6.3_7.0.sh
seafile      | [07/30/2019 17:18:05][upgrade]: Running script /opt/seafile/seafile-server-7.0.3/upgrade/upgrade_6.3_7.0.sh
seafile      | 
seafile      | -------------------------------------------------------------
seafile      | This script would upgrade your seafile server from 6.3 to 7.0
seafile      | Press [ENTER] to contiune
seafile      | -------------------------------------------------------------
seafile      | 
seafile      | 
seafile      | Updating seafile/seahub database ...
seafile      | 
seafile      | [INFO] You are using MySQL
seafile      | [INFO] updating ccnet database...
seafile      | [ERROR] Failed to connect to mysql database ccnet_db: Access denied for user 'seafile'@'172.18.0.4' (using password: YES)
seafile      | 
seafile      | Failed to upgrade your database
seafile      | 
seafile      | Traceback (most recent call last):
seafile      |   File "/scripts/start.py", line 86, in <module>
seafile      |     main()
seafile      |   File "/scripts/start.py", line 58, in main
seafile      |     check_upgrade()
seafile      |   File "/scripts/upgrade.py", line 109, in check_upgrade
seafile      |     run_script_and_update_version_stamp(script, new_version)
seafile      |   File "/scripts/upgrade.py", line 60, in run_script_and_update_version_stamp
seafile      |     call(script)
seafile      |   File "/scripts/utils/__init__.py", line 69, in call
seafile      |     return subprocess.check_call(*a, **kw)
seafile      |   File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
seafile      |     raise CalledProcessError(retcode, cmd)
seafile      | subprocess.CalledProcessError: Command '/opt/seafile/seafile-server-7.0.3/upgrade/upgrade_6.3_7.0.sh' returned non-zero exit status 1
seafile      | *** /scripts/start.py exited with status 1.
seafile      | *** Shutting down runit daemon (PID 31)...
seafile      | *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...
seafile      | Jul 30 17:18:05 fa1a5e46616a syslog-ng[25]: syslog-ng shutting down; version='3.13.2'
seafile      | *** Killing all processes...
seafile exited with code 1

any clues on how to solve this ?

there is your error - just solve the access denied

2 Likes

thanks for the tip.
im trying to fix it but i trying to give permissions by redoing the “Modify MariaDB permissions” steps but it keeps giving me sn error that there is no such directory as “/usr/bin/mysql” . i tried with “/usr/local/mysql” as well where i can find the mysql shortcut for the “mysql-8.0.17-macos10.14-x86_64” folder there (tried with that one too btw ) but no luck.
it gives me errors like these: OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused “exec: “/usr/local/mysql-8.0.17-macos10.14-x86_64”: stat /usr/local/mysql-8.0.17-macos10.14-x86_64: no such file or directory”: unknown