服务器错误,资料库错误!!!

网页登录之后显示资料库显示错误,本人小白,用ubuntu16.4,按照文档使用sql部署的,期间没报错,但是进入网页之后资料库显示错误,求解决!

以下为seahub log

root@ubuntu:/home/waps/HSD/logs# vi seahub.log

2018-06-08 09:18:07,260 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /
Traceback (most recent call last):
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py”, line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/seahub/auth/decorators.py”, line 27, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/seahub/base/decorators.py”, line 40, in _decorated
return func(request, *args, **kwargs)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/seahub/views/init.py”, line 718, in libraries
create_default_library(request)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/seahub/views/init.py”, line 673, in create_default_library
passwd=None)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seafile/lib/python2.7/site-packages/seaserv/api.py”, line 73, in create_repo
return seafserv_threaded_rpc.create_repo(name, desc, username, passwd, storage_id)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seafile/lib/python2.7/site-packages/pysearpc/client.py”, line 110, in newfunc
ret_str = self.call_remote_func_sync(fcall_str)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seafile/lib/python2.7/site-packages/ccnet/rpc.py”, line 75, in call_remote_func_sync
req_id = self._start_service(client)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seafile/lib/python2.7/site-packages/ccnet/rpc.py”, line 36, in _start_service
raise SearpcError(“Error received: %s %s (In _start_service)” % (rsp.code, rsp.code_msg))
SearpcError: Error received: 511 Unknown service (In _start_service)
2018-06-08 09:18:15,415 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/repos/
Traceback (most recent call last):
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py”, line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/views/decorators/csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/views/generic/base.py”, line 71, in view
return self.dispatch(request, *args, **kwargs)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/seahub/api2/base.py”, line 23, in dispatch
response = super(APIView, self).dispatch(*a, **kw)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py”, line 466, in dispatch
response = self.handle_exception(exc)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/seahub/api2/base.py”, line 20, in handle_exception
return super(APIView, self).handle_exception(exc)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/thirdpart/djangorestframework-3.3.2-py2.7.egg/rest_framework/views.py”, line 463, in dispatch
response = handler(request, *args, **kwargs)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seahub/seahub/api2/views.py”, line 577, in get
ret_corrupted=True)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seafile/lib/python2.7/site-packages/seaserv/api.py”, line 120, in get_owned_repo_list
start, limit)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seafile/lib/python2.7/site-packages/pysearpc/client.py”, line 110, in newfunc
ret_str = self.call_remote_func_sync(fcall_str)
File “/home/waps/HSD/seafile-pro-server-6.2.9/seafile/lib/python2.7/site-packages/ccnet/rpc.py”, line 75, in call_remote_func_sync
req_id = self._start_service(client)

应该是数据库的问题吧,但是我是小白,刚开始接触,希望各位老司机能帮我一下,谢谢了

用论坛添加seahubsetting.py和删除seafilecache都试过了,没用,求大神解决啊

index.log

6/08/2018 02:39:03 [INFO] root:194 main: storage: using filesystem storage backend
06/08/2018 02:39:03 [INFO] root:196 main: index office pdf: True
06/08/2018 02:39:04 [INFO] seafes:147 start_index_local: Index process initialized.
06/08/2018 02:39:04 [INFO] seafes:52 run: starting worker0 worker threads for indexing
06/08/2018 02:39:04 [INFO] seafes:52 run: starting worker1 worker threads for indexing
06/08/2018 02:39:04 [ERROR] root:92 get_repo_id_commit_id: (_mysql_exceptions.ProgrammingError) (1146, “Table ‘seafile-db.Branch’ doesn’t exist”) %s, %s’] [parameters: (‘master’, 0, 1000)]
06/08/2018 02:39:04 [ERROR] seafes:64 run: Error: (_mysql_exceptions.ProgrammingError) (1146, “Table ‘seafile-db.Branch’ doesn’t exist”) [SQL: u’S [parameters: (‘master’, 0, 1000)]
06/08/2018 02:39:06 [INFO] seafes:108 thread_task: worker0 worker updated at 2018-06-08 02:39 time
06/08/2018 02:39:03 [INFO] root:194 main: storage: using filesystem storage backend
06/08/2018 02:39:03 [INFO] root:196 main: index office pdf: True
06/08/2018 02:39:04 [INFO] seafes:147 start_index_local: Index process initialized.
06/08/2018 02:39:04 [INFO] seafes:52 run: starting worker0 worker threads for indexing
06/08/2018 02:39:04 [INFO] seafes:52 run: starting worker1 worker threads for indexing
06/08/2018 02:39:04 [ERROR] root:92 get_repo_id_commit_id: (_mysql_exceptions.ProgrammingError) (1146, “Table ‘seafile-db.Branch’ doesn’t exist”) [SQL: u’SELECT repo_id, commit_id\n FROM Branch WHERE name = %s\n AND repo_id NOT IN (SELECT repo_id from VirtualRepo)\n limit %s, %s’] [parameters: (‘master’, 0, 1000)]
06/08/2018 02:39:04 [ERROR] seafes:64 run: Error: (_mysql_exceptions.ProgrammingError) (1146, “Table ‘seafile-db.Branch’ doesn’t exist”) [SQL: u’SELECT repo_id, commit_id\n FROM Branch WHERE name = %s\n AND repo_id NOT IN (SELECT repo_id from VirtualRepo)\n limit %s, %s’] [parameters: (‘master’, 0, 1000)]
06/08/2018 02:39:06 [INFO] seafes:108 thread_task: worker0 worker updated at 2018-06-08 02:39 time
06/08/2018 02:39:06 [INFO] seafes:108 thread_task: worker1 worker updated at 2018-06-08 02:39 time
06/08/2018 02:39:06 [INFO] seafes:44 clear_worker: All worker threads has stopped.
06/08/2018 02:39:06 [INFO] seafes:150 start_index_local:

Index updated, statistic report:

06/08/2018 02:39:06 [INFO] seafes:151 start_index_local: [commit read] 0
06/08/2018 02:39:06 [INFO] seafes:152 start_index_local: [dir read] 0
06/08/2018 02:39:06 [INFO] seafes:153 start_index_local: [file read] 0
06/08/2018 02:39:06 [INFO] seafes:154 start_index_local: [block read] 0
06/08/2018 02:49:03 [INFO] root:194 main: storage: using filesystem storage backend
06/08/2018 02:49:03 [INFO] root:196 main: index office pdf: True
06/08/2018 02:49:03 [INFO] seafes:147 start_index_local: Index process initialized.
06/08/2018 02:49:03 [INFO] seafes:52 run: starting worker0 worker threads for indexing
06/08/2018 02:49:03 [INFO] seafes:52 run: starting worker1 worker threads for indexing
06/08/2018 02:49:03 [ERROR] root:92 get_repo_id_commit_id: (_mysql_exceptions.ProgrammingError) (1146, “Table ‘seafile-db.Branch’ doesn’t exist”) [SQL: u’SELECT repo_id, commit_id\n FROM Branch WHERE name = %s\n AND repo_id NOT IN (SELECT repo_id from VirtualRepo)\n limit %s, %s’] [parameters: (‘master’, 0, 1000)]
06/08/2018 02:49:03 [ERROR] seafes:64 run: Error: (_mysql_exceptions.ProgrammingError) (1146, “Table ‘seafile-db.Branch’ doesn’t exist”) [SQL: u’SELECT repo_id, commit_id\n FROM Branch WHERE name = %s\n AND repo_id NOT IN (SELECT repo_id from VirtualRepo)\n limit %s, %s’] [parameters: (‘master’, 0, 1000)]
06/08/2018 02:49:05 [INFO] seafes:108 thread_task: worker0 worker updated at 2018-06-08 02:49 time
06/08/2018 02:49:05 [INFO] seafes:108 thread_task: worker1 worker updated at 2018-06-08 02:49 time
06/08/2018 02:49:05 [INFO] seafes:44 clear_worker: All worker threads has stopped.
06/08/2018 02:49:05 [INFO] seafes:150 start_index_local:

Index updated, statistic report:

06/08/2018 02:49:05 [INFO] seafes:151 start_index_local: [commit read] 0
06/08/2018 02:49:05 [INFO] seafes:152 start_index_local: [dir read] 0
06/08/2018 02:49:05 [INFO] seafes:153 start_index_local: [file read] 0
06/08/2018 02:49:05 [INFO] seafes:154 start_index_local: [block read] 0
06/08/2018 02:59:03 [INFO] root:194 main: storage: using filesystem storage backend

可以试试如下方法
rm -rf /tmp/seahub_cache/*
systemctl restart seafile.service

试过了,没用的,装了这么十几次只有一次成功