@daniel.pan
查看日志仍然有缺失的表。
root@ubuntu:/opt/seafile/logs# cat seafile.log
[06/19/19 10:23:19] http-server.c(220): fileserver: worker_threads = 10
[06/19/19 10:23:19] http-server.c(233): fileserver: backlog = 32
[06/19/19 10:23:19] http-server.c(248): fileserver: fixed_block_size = 8388608
[06/19/19 10:23:19] http-server.c(263): fileserver: web_token_expire_time = 3600
[06/19/19 10:23:19] http-server.c(278): fileserver: max_indexing_threads = 1
[06/19/19 10:23:19] http-server.c(293): fileserver: max_index_processing_threads= 3
[06/19/19 10:23:19] http-server.c(315): fileserver: cluster_shared_temp_file_mode = 600
[06/19/2019 10:23:19 AM] http-server.c(393): fileserver: enable_async_indexing = 1
[06/19/2019 10:23:19 AM] http-server.c(405): fileserver: async_indexing_threshold = 700
[06/19/2019 10:23:19 AM] http-server.c(418): fileserver: fs_id_list_request_timeout = -1
[06/19/2019 10:23:19 AM] ../common/mq-mgr.c(61): [mq client] mq cilent is started
[06/19/2019 10:23:19 AM] filelock-mgr.c(973): Cleaning expired file locks.
[06/19/19 10:31:15] http-server.c(220): fileserver: worker_threads = 10
[06/19/19 10:31:15] http-server.c(233): fileserver: backlog = 32
[06/19/19 10:31:15] http-server.c(248): fileserver: fixed_block_size = 8388608
[06/19/19 10:31:15] http-server.c(263): fileserver: web_token_expire_time = 3600
[06/19/19 10:31:15] http-server.c(278): fileserver: max_indexing_threads = 1
[06/19/19 10:31:15] http-server.c(293): fileserver: max_index_processing_threads= 3
[06/19/19 10:31:15] http-server.c(315): fileserver: cluster_shared_temp_file_mode = 600
[06/19/2019 10:31:15 AM] http-server.c(393): fileserver: enable_async_indexing = 1
[06/19/2019 10:31:15 AM] http-server.c(405): fileserver: async_indexing_threshold = 700
[06/19/2019 10:31:15 AM] http-server.c(418): fileserver: fs_id_list_request_timeout = -1
[06/19/2019 10:31:15 AM] ../common/mq-mgr.c(61): [mq client] mq cilent is started
[06/19/2019 10:31:15 AM] filelock-mgr.c(973): Cleaning expired file locks.
[06/19/2019 10:31:52 AM] ../common/seaf-db.c(460): Error prepare statement SELECT org_id FROM OrgRepo WHERE repo_id = ?: mysql_stmt_prepare failed: Table 'seafile_db.OrgRepo' doesn't exist.
[06/19/2019 10:31:58 AM] ../common/seaf-db.c(460): Error prepare statement SELECT org_id FROM OrgRepo WHERE repo_id = ?: mysql_stmt_prepare failed: Table 'seafile_db.OrgRepo' doesn't exist.
[06/19/2019 10:32:14 AM] ../common/seaf-db.c(460): Error prepare statement SELECT org_id FROM OrgRepo WHERE repo_id = ?: mysql_stmt_prepare failed: Table 'seafile_db.OrgRepo' doesn't exist.
[06/19/2019 10:33:02 AM] ../common/seaf-db.c(460): Error prepare statement SELECT r.repo_id, p.timestamp FROM Repo r LEFT JOIN FolderPermTimestamp p ON r.repo_id=p.repo_id WHERE r.repo_id IN ('7816e488-e5ec-4a08-826c-8e8b26fd2ad8', '22363595-787f-48be-8a62-8d6694953c72'): mysql_stmt_prepare failed: Table 'seafile_db.FolderPermTimestamp' doesn't exist.
[06/19/2019 10:33:02 AM] http-server.c(3259): Failed to get folder perm timestamp.
[06/19/2019 10:33:02 AM] http-server.c(3349): Failed to find origin repo perm ts. Returning empty array. Request content is: [{"repo_id":"22363595-787f-48be-8a62-8d6694953c72","token":"640cdbd969ce2c481196d18a68424da6e8a143de","ts":0},{"repo_id":"7816e488-e5ec-4a08-826c-8e8b26fd2ad8","token":"43c35825ccc633b930780a5c9549ec611fb520c2","ts":0}]
[06/19/2019 10:33:02 AM] ../common/seaf-db.c(460): Error prepare statement SELECT r.repo_id, l.update_time FROM Repo r LEFT JOIN FileLockTimestamp l ON r.repo_id=l.repo_id WHERE r.repo_id IN ('7816e488-e5ec-4a08-826c-8e8b26fd2ad8', '22363595-787f-48be-8a62-8d6694953c72'): mysql_stmt_prepare failed: Table 'seafile_db.FileLockTimestamp' doesn't exist.
[06/19/2019 10:33:02 AM] http-server.c(3513): Failed to get file lock timestamp.
[06/19/2019 10:33:02 AM] http-server.c(3601): Failed to find origin repo lock ts. Returing empty array. Request content is: [{"repo_id":"22363595-787f-48be-8a62-8d6694953c72","token":"640cdbd969ce2c481196d18a68424da6e8a143de","ts":0},{"repo_id":"7816e488-e5ec-4a08-826c-8e8b26fd2ad8","token":"43c35825ccc633b930780a5c9549ec611fb520c2","ts":0}]
[06/19/2019 10:33:19 AM] ../common/seaf-db.c(460): Error prepare statement SELECT r.repo_id, p.timestamp FROM Repo r LEFT JOIN FolderPermTimestamp p ON r.repo_id=p.repo_id WHERE r.repo_id IN ('7816e488-e5ec-4a08-826c-8e8b26fd2ad8', '22363595-787f-48be-8a62-8d6694953c72'): mysql_stmt_prepare failed: Table 'seafile_db.FolderPermTimestamp' doesn't exist.
[06/19/2019 10:33:19 AM] http-server.c(3259): Failed to get folder perm timestamp.
[06/19/2019 10:33:19 AM] http-server.c(3349): Failed to find origin repo perm ts. Returning empty array. Request content is: [{"repo_id":"22363595-787f-48be-8a62-8d6694953c72","token":"640cdbd969ce2c481196d18a68424da6e8a143de","ts":0},{"repo_id":"7816e488-e5ec-4a08-826c-8e8b26fd2ad8","token":"43c35825ccc633b930780a5c9549ec611fb520c2","ts":0}]
[06/19/2019 10:33:19 AM] ../common/seaf-db.c(460): Error prepare statement SELECT r.repo_id, l.update_time FROM Repo r LEFT JOIN FileLockTimestamp l ON r.repo_id=l.repo_id WHERE r.repo_id IN ('7816e488-e5ec-4a08-826c-8e8b26fd2ad8', '22363595-787f-48be-8a62-8d6694953c72'): mysql_stmt_prepare failed: Table 'seafile_db.FileLockTimestamp' doesn't exist.
[06/19/2019 10:33:19 AM] http-server.c(3513): Failed to get file lock timestamp.
[06/19/2019 10:33:19 AM] http-server.c(3601): Failed to find origin repo lock ts. Returing empty array. Request content is: [{"repo_id":"22363595-787f-48be-8a62-8d6694953c72","token":"640cdbd969ce2c481196d18a68424da6e8a143de","ts":0},{"repo_id":"7816e488-e5ec-4a08-826c-8e8b26fd2ad8","token":"43c35825ccc633b930780a5c9549ec611fb520c2","ts":0}]
[06/19/2019 10:33:49 AM] ../common/seaf-db.c(460): Error prepare statement SELECT r.repo_id, l.update_time FROM Repo r LEFT JOIN FileLockTimestamp l ON r.repo_id=l.repo_id WHERE r.repo_id IN ('7816e488-e5ec-4a08-826c-8e8b26fd2ad8', '22363595-787f-48be-8a62-8d6694953c72'): mysql_stmt_prepare failed: Table 'seafile_db.FileLockTimestamp' doesn't exist.
[06/19/2019 10:33:49 AM] http-server.c(3513): Failed to get file lock timestamp.
[06/19/2019 10:33:49 AM] http-server.c(3601): Failed to find origin repo lock ts. Returing empty array. Request content is: [{"repo_id":"22363595-787f-48be-8a62-8d6694953c72","token":"640cdbd969ce2c481196d18a68424da6e8a143de","ts":0},{"repo_id":"7816e488-e5ec-4a08-826c-8e8b26fd2ad8","token":"43c35825ccc633b930780a5c9549ec611fb520c2","ts":0}]
[06/19/2019 10:33:49 AM] ../common/seaf-db.c(460): Error prepare statement SELECT r.repo_id, p.timestamp FROM Repo r LEFT JOIN FolderPermTimestamp p ON r.repo_id=p.repo_id WHERE r.repo_id IN ('7816e488-e5ec-4a08-826c-8e8b26fd2ad8', '22363595-787f-48be-8a62-8d6694953c72'): mysql_stmt_prepare failed: Table 'seafile_db.FolderPermTimestamp' doesn't exist.
[06/19/2019 10:33:49 AM] http-server.c(3259): Failed to get folder perm timestamp.
[06/19/2019 10:33:49 AM] http-server.c(3349): Failed to find origin repo perm ts. Returning empty array. Request content is: [{"repo_id":"22363595-787f-48be-8a62-8d6694953c72","token":"640cdbd969ce2c481196d18a68424da6e8a143de","ts":0},{"repo_id":"7816e488-e5ec-4a08-826c-8e8b26fd2ad8","token":"43c35825ccc633b930780a5c9549ec611fb520c2","ts":0}]
另外 controller.log 中出现很多下面的错误,而且不断增长中。
[06/19/19 10:39:56] seafile-controller.c(594): pid file /opt/seafile/pids/elasticsearch.pid does not exist
[06/19/19 10:39:56] seafile-controller.c(637): elasticsearch need restart...
[06/19/19 10:39:56] seafile-controller.c(94): spawn_process: /opt/seafile/seafile-pro-server-7.0.3/pro/elasticsearch/bin/elasticsearch -Epath.logs=/opt/seafile/logs -Epath.data=/opt/seafile/pro-data/search/data -Enetwork.host=127.0.0.1 -p /opt/seafile/pids/elasticsearch.pid
[06/19/19 10:39:56] seafile-controller.c(109): spawned /opt/seafile/seafile-pro-server-7.0.3/pro/elasticsearch/bin/elasticsearch, pid 31551
再次查看cat elasticsearch.log 发现
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[elasticsearch-5.6.13.jar:5.6.13]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) ~[elasticsearch-5.6.13.jar:5.6.13]
... 6 more
难道不能用 root ?