求助:seafile 8.0.3 64位只能使用本地MySQL数据库,远程MySQL无法使用


#1

远程数据库导入的是本地数据库的备份,数据库版本也一样,命令行登录远程数据库正常。

1)./seafile.sh start没有报错,但其实未启动成功,seaf-server未能成功运行,后台8082没有监听进程;

2)./seahub.sh start报“Error happened during creating seafile admin.”

3)logs/controller.log日志
[03/17/21 09:35:45] seafile-controller.c(189): starting seaf-server …
[03/17/21 09:35:45] seafile-controller.c(80): spawn_process: seaf-server -F /yunpan/8.0.3/conf -c /yunpan/8.0.3/ccnet -d /yunpan/8.0.3/seafile-data -l /yunpan/8.0.3/logs/seafile.log -P /yunpan/8.0.3/pids/seaf-server.pid -p /yunpan/8.0.3/seafile-server-8.0.3/runtime
[03/17/21 09:35:45] seafile-controller.c(114): spawned seaf-server, pid 407469
[03/17/21 09:35:55] seafile-controller.c(426): path /proc/407472 doesn’t exist, restart progress [1]
[03/17/21 09:35:55] seafile-controller.c(436): seaf-server need restart…
[03/17/21 09:35:55] seafile-controller.c(189): starting seaf-server …
[03/17/21 09:35:55] seafile-controller.c(80): spawn_process: seaf-server -F /yunpan/8.0.3/conf -c /yunpan/8.0.3/ccnet -d /yunpan/8.0.3/seafile-data -l /yunpan/8.0.3/logs/seafile.log -P /yunpan/8.0.3/pids/seaf-server.pid -p /yunpan/8.0.3/seafile-server-8.0.3/runtime
[03/17/21 09:35:55] seafile-controller.c(114): spawned seaf-server, pid 407513
[03/17/21 09:36:05] seafile-controller.c(426): path /proc/407514 doesn’t exist, restart progress [1]
[03/17/21 09:36:05] seafile-controller.c(436): seaf-server need restart…
[03/17/21 09:36:05] seafile-controller.c(189): starting seaf-server …
[03/17/21 09:36:05] seafile-controller.c(80): spawn_process: seaf-server -F /yunpan/8.0.3/conf -c /yunpan/8.0.3/ccnet -d /yunpan/8.0.3/seafile-data -l /yunpan/8.0.3/logs/seafile.log -P /yunpan/8.0.3/pids/seaf-server.pid -p /yunpan/8.0.3/seafile-server-8.0.3/runtime
[03/17/21 09:36:05] seafile-controller.c(114): spawned seaf-server, pid 407534

4)logs/seaf-fuse.log为空

5)logs/seafile.log日志
[03/17/21 09:35:45] socket file exists, delete it anyway
[03/17/21 09:35:45] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:35:45] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:35:45] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:35:45] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:35:45] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:35:45] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:35:45] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/17/21 09:35:55] socket file exists, delete it anyway
[03/17/21 09:35:55] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:35:55] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:35:55] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:35:55] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:35:55] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:35:55] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:35:55] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/17/21 09:36:05] socket file exists, delete it anyway
[03/17/21 09:36:05] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:36:05] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:36:05] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:36:05] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:36:05] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:36:05] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:36:05] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/17/21 09:36:15] socket file exists, delete it anyway
[03/17/21 09:36:15] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:36:15] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:36:15] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:36:15] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:36:15] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:36:15] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:36:15] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/17/21 09:36:35] socket file exists, delete it anyway
[03/17/21 09:36:35] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:36:35] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:36:35] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:36:35] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:36:35] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:36:35] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:36:35] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/17/21 09:36:45] socket file exists, delete it anyway
[03/17/21 09:36:45] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:36:45] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:36:45] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:36:45] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:36:45] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:36:45] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:36:45] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/17/21 09:36:55] socket file exists, delete it anyway
[03/17/21 09:36:55] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:36:55] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:36:55] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:36:55] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:36:55] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:36:55] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:36:55] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/17/21 09:37:05] socket file exists, delete it anyway
[03/17/21 09:37:05] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:37:05] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:37:05] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:37:05] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:37:05] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:37:05] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:37:05] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/17/21 09:37:15] socket file exists, delete it anyway
[03/17/21 09:37:15] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:37:15] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:37:15] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:37:15] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:37:15] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:37:15] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:37:15] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/17/21 09:37:25] socket file exists, delete it anyway
[03/17/21 09:37:25] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:37:25] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:37:25] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:37:25] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:37:25] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:37:25] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:37:25] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600
[03/17/21 09:37:35] socket file exists, delete it anyway
[03/17/21 09:37:35] …/common/seaf-utils.c(333): Use database Mysql
[03/17/21 09:37:35] http-server.c(192): fileserver: worker_threads = 10
[03/17/21 09:37:35] http-server.c(207): fileserver: fixed_block_size = 8388608
[03/17/21 09:37:35] http-server.c(222): fileserver: web_token_expire_time = 3600
[03/17/21 09:37:35] http-server.c(237): fileserver: max_indexing_threads = 1
[03/17/21 09:37:35] http-server.c(252): fileserver: max_index_processing_threads= 3
[03/17/21 09:37:35] http-server.c(274): fileserver: cluster_shared_temp_file_mode = 600

6)logs/seahub.log日志为空


#2

数据库什么版本?


#3

本地数据库是5.7.29,远程数据库是:5.7.29和5.7.26-log都不行


#5

版本是5.7.29


#6

云数据库吗?


#7

远程是阿里云的RDS,但我用另外一台虚机上的MySQL,也不行


#8

远程是阿里云的RDS,但我用另外一台虚机上的MySQL,也不行


#9

使用mariadb吧,应该可以,阿里云的mariadb 也是支持的


#10

好的,多谢,这会我又找了一台MySQL RDS,导入备份的数据库,竟然可以了,但说不清之前2台MySQL为什么不行,应该就是数据库本身的问题