请问能否直接由6.3.4版本升级至9.0.4版本(社区版)?

我按照升级提示操作:

出错,说什么Python问题,然后我也安装了Python,还是一直报这个错,请问是什么回事?我需要怎么处理?

seafile-mysql | 2022-03-17 10:12:48 0 [Note] InnoDB: Using Linux native AIO
seafile-mysql | 2022-03-17 10:12:48 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
seafile-mysql | 2022-03-17 10:12:48 0 [Note] InnoDB: Completed initialization of buffer pool
seafile-mysql | 2022-03-17 10:12:48 0 [Note] InnoDB: 128 rollback segments are active.
seafile-mysql | 2022-03-17 10:12:48 0 [Note] InnoDB: Creating shared tablespace for temporary tables
seafile-mysql | 2022-03-17 10:12:48 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
seafile-mysql | 2022-03-17 10:12:48 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
seafile-mysql | 2022-03-17 10:12:48 0 [Note] InnoDB: 10.5.15 started; log sequence number 2913153; transaction id 4242
seafile-mysql | 2022-03-17 10:12:48 0 [Note] Plugin 'FEEDBACK' is disabled.
seafile-mysql | 2022-03-17 10:12:48 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
seafile-mysql | 2022-03-17 10:12:48 0 [Note] Server socket created on IP: '::'.
seafile      | *** Running /etc/my_init.d/01_create_data_links.sh...
seafile-mysql | 2022-03-17 10:12:48 0 [Note] InnoDB: Buffer pool(s) load completed at 220317 10:12:48
seafile-mysql | 2022-03-17 10:12:48 0 [Warning] 'user' entry 'root@c03ef74c6bd1' ignored in --skip-name-resolve mode.
seafile-mysql | 2022-03-17 10:12:48 0 [Warning] 'user' entry '@c03ef74c6bd1' ignored in --skip-name-resolve mode.
seafile-mysql | 2022-03-17 10:12:48 0 [Warning] 'proxies_priv' entry '@% root@c03ef74c6bd1' ignored in --skip-name-resolve mode.
seafile-mysql | 2022-03-17 10:12:48 0 [ERROR] Incorrect definition of table mysql.event: expected column 'sql_mode' at position 14 to have type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT'), found type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALU
seafile-mysql | 2022-03-17 10:12:48 0 [ERROR] mysqld: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
seafile-mysql | 2022-03-17 10:12:48 1 [Warning] InnoDB: Table mysql/innodb_table_stats has length mismatch in the column name table_name.  Please run mysql_upgrade
seafile-mysql | 2022-03-17 10:12:48 1 [Warning] InnoDB: Table mysql/innodb_index_stats has length mismatch in the column name table_name.  Please run mysql_upgrade
seafile-mysql | 2022-03-17 10:12:48 0 [Note] Reading of all Master_info entries succeeded
seafile-mysql | 2022-03-17 10:12:48 0 [Note] Added new Master_info '' to hash table
seafile-mysql | 2022-03-17 10:12:48 0 [Note] mysqld: ready for connections.
seafile-mysql | Version: '10.5.15-MariaDB-1:10.5.15+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
seafile      | *** Booting runit daemon...
seafile      | *** Runit started as PID 23
seafile      | *** Running /scripts/enterpoint.sh...
seafile      | 2022-03-17 10:12:48 Nginx ready
seafile      | 2022-03-17 10:12:48 This is a idle script (infinite loop) to keep container running.
seafile-mysql | 2022-03-17 10:12:48 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'seafile' host: '172.19.0.4' (Got an error reading communication packets)
seafile      | [03/17/2022 10:12:48][upgrade]: Running script /opt/seafile/seafile-server-9.0.4/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      | Can't find a python executable of version 2.7 or above in PATH
seafile      | Install python 2.7+ before continue.
seafile      | Or if you installed it in a non-standard PATH, set the PYTHON enviroment varirable to it
seafile      |
seafile      | [2022-03-17 10:12:48] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
seafile      | [2022-03-17 10:12:48] Running scripts /opt/seafile/seafile-server-9.0.4/upgrade/upgrade_6.3_7.0.sh
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 108, in check_upgrade
seafile      |     run_script_and_update_version_stamp(script, new_version)
seafile      |   File "/scripts/upgrade.py", line 59, in run_script_and_update_version_stamp
seafile      |     call(script)
seafile      |   File "/scripts/utils.py", line 70, in call
seafile      |     return subprocess.check_call(*a, **kw)
seafile      |   File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
seafile      |     raise CalledProcessError(retcode, cmd)
seafile      | subprocess.CalledProcessError: Command '/opt/seafile/seafile-server-9.0.4/upgrade/upgrade_6.3_7.0.sh' returned non-zero exit status 1.


seafile-mysql | 2022-03-22 10:34:47 0 [Note] InnoDB: Cannot open '/var/lib/mysql/ib_buffer_pool' for reading: No such file or directory
seafile-mysql | 2022-03-22 10:34:47 0 [Note] Server socket created on IP: '::'.
seafile-mysql | 2022-03-22 10:34:47 0 [Warning] 'user' entry 'root@2268581854bb' ignored in --skip-name-resolve mode.
seafile-mysql | 2022-03-22 10:34:47 0 [Warning] 'user' entry '@2268581854bb' ignored in --skip-name-resolve mode.
seafile-mysql | 2022-03-22 10:34:47 0 [Warning] 'proxies_priv' entry '@% root@2268581854bb' ignored in --skip-name-resolve mode.
seafile-mysql | 2022-03-22 10:34:47 0 [ERROR] Incorrect definition of table mysql.event: expected column 'sql_mode' at position 14 to have type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT'), found type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALU
seafile-mysql | 2022-03-22 10:34:47 0 [ERROR] mysqld: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
seafile-mysql | 2022-03-22 10:34:47 1 [Warning] InnoDB: Table mysql/innodb_table_stats has length mismatch in the column name table_name.  Please run mysql_upgrade
seafile-mysql | 2022-03-22 10:34:47 1 [Warning] InnoDB: Table mysql/innodb_index_stats has length mismatch in the column name table_name.  Please run mysql_upgrade
seafile-mysql | 2022-03-22 10:34:47 0 [Note] Reading of all Master_info entries succeeded
seafile-mysql | 2022-03-22 10:34:47 0 [Note] Added new Master_info '' to hash table
seafile-mysql | 2022-03-22 10:34:47 0 [Note] mysqld: ready for connections.
seafile-mysql | Version: '10.5.15-MariaDB-1:10.5.15+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
seafile      | *** Running /etc/my_init.d/01_create_data_links.sh...
seafile      | *** Booting runit daemon...
seafile      | *** Runit started as PID 25
seafile      | *** Running /scripts/enterpoint.sh...
seafile      | 2022-03-22 10:34:47 Nginx ready
seafile      | 2022-03-22 10:34:47 This is a idle script (infinite loop) to keep container running.
seafile-mysql | 2022-03-22 10:34:47 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'seafile' host: '172.20.0.4' (Got an error reading communication packets)
seafile      | [03/22/2022 10:34:47][upgrade]: Running script /opt/seafile/seafile-server-9.0.4/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      | Traceback (most recent call last):
seafile      |   File "/opt/seafile/seafile-server-9.0.4/upgrade/db_update_helper.py", line 10, in <module>
seafile      |     import pymysql
seafile      |   File "/opt/seafile/seafile-server-9.0.4/seahub/thirdpart/pymysql/__init__.py", line 59, in <module>
seafile      |     from . import connections  # noqa: E402
seafile      |   File "/opt/seafile/seafile-server-9.0.4/seahub/thirdpart/pymysql/connections.py", line 167
seafile      |     *,
seafile      |      ^
seafile      | SyntaxError: invalid syntax
seafile      |
seafile      | Failed to upgrade your database
seafile      |
seafile      | [2022-03-22 10:34:47] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
seafile      | [2022-03-22 10:34:47] Running scripts /opt/seafile/seafile-server-9.0.4/upgrade/upgrade_6.3_7.0.sh
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 108, in check_upgrade
seafile      |     run_script_and_update_version_stamp(script, new_version)
seafile      |   File "/scripts/upgrade.py", line 59, in run_script_and_update_version_stamp
seafile      |     call(script)
seafile      |   File "/scripts/utils.py", line 70, in call
seafile      |     return subprocess.check_call(*a, **kw)
seafile      |   File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
seafile      |     raise CalledProcessError(retcode, cmd)
seafile      | subprocess.CalledProcessError: Command '/opt/seafile/seafile-server-9.0.4/upgrade/upgrade_6.3_7.0.sh' returned non-zero exit status 1.