seafile启动后,web访问报500错误。


#1

seahub_django_request.log:
2016-10-31 14:56:48,158 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/ping/
Traceback (most recent call last):
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/handlers/base.py”, line 108, in get_response
response = middleware_method(request)
File “/usr/local/seafile/seafile-server-6.0.5/seahub/seahub/base/middleware.py”, line 57, in process_request
cur_note = cache.get(‘CUR_TOPINFO’) if cache.get(‘CUR_TOPINFO’) else
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/cache/backends/filebased.py”, line 41, in get
if not self._is_expired(f):
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/cache/backends/filebased.py”, line 138, in _is_expired
exp = pickle.load(f)
EOFError

ccnet日志
[10/31/16 15:10:21] …/common/peer.c(943): Local peer down
[10/31/16 15:10:21] …/common/peer.c(943): Local peer down
[10/31/16 15:10:30] …/common/session.c(398): Accepted a local client
[10/31/16 15:10:30] …/common/session.c(398): Accepted a local client
[10/31/16 15:11:06] …/common/session.c(398): Accepted a local client
[10/31/16 15:11:06] …/common/peer.c(943): Local peer down
[10/31/16 15:15:06] …/common/session.c(398): Accepted a local client
[10/31/16 15:15:06] …/common/peer.c(943): Local peer down
[10/31/16 15:16:16] …/common/peer.c(943): Local peer down
[10/31/16 15:16:16] …/common/peer.c(943): Local peer down
[10/31/16 15:16:20] …/common/session.c(398): Accepted a local client
[10/31/16 15:16:20] …/common/session.c(398): Accepted a local client
[10/31/16 15:16:27] …/common/session.c(398): Accepted a local client
[10/31/16 15:16:27] …/common/peer.c(943): Local peer down


seafile日志:

[10/31/2016 02:02:15 PM] http-server.c(1188): Remote head commit d3eda80a-f8b1-4ed0-b25e-e50b77e3f9fc:ee5bfea1823a2a63091b6f4051a161f26b6a61f2 not found.
[10/31/2016 02:35:31 PM] …/common/mq-mgr.c(54): [mq client] mq cilent is started
[10/31/2016 02:49:56 PM] Disconnected from daemon
[10/31/2016 02:53:12 PM] …/common/mq-mgr.c(54): [mq client] mq cilent is started
[10/31/2016 02:56:56 PM] Disconnected from daemon
[10/31/2016 02:59:29 PM] …/common/mq-mgr.c(54): [mq client] mq cilent is started
[10/31/2016 03:09:50 PM] …/common/mq-mgr.c(54): [mq client] mq cilent is started
[10/31/2016 03:10:30 PM] …/common/mq-mgr.c(54): [mq client] mq cilent is started
[10/31/2016 03:16:20 PM] …/common/mq-mgr.c(54): [mq client] mq cilent is started


#2

seahub的缓存后端有问题,检查下 /tmp/seahub_cache/ 目录的权限,或切换到memcached试试,https://manual-cn.seafile.com/deploy/add_memcached.html


#3

谢谢,我试试看,能不能解决问题!


#4

需要什么权限呢?
我现在的是


#5

https://manual-cn.seafile.com/deploy/add_memcached.html
按照这个加了配置,启动seahub报错,起不来。


#6

./seahub.sh start出错信息贴下


#7

你看下,
没有提示详细


#8

其他的日志没有看到不一样的呢?


#9

能加下我QQ:37628372吗?帮忙解决,谢谢!


#10

运行 ./seahub.sh start-fastcgi 可以直接看错误。


#11

谢谢,我试下看看。谢谢!


#12

./seahub.sh start-fastcgi 8001

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub (fastcgi) at 127.0.0.1:8001 …
Traceback (most recent call last):
File “/usr/local/seafile/seafile-server-6.0.5/seahub/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/management/init.py”, line 354, in execute_from_command_line
utility.execute()
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/management/init.py”, line 328, in execute
django.setup()
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/init.py”, line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/apps/registry.py”, line 108, in populate
app_config.import_models(all_models)
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/apps/config.py”, line 198, in import_models
self.models_module = import_module(models_module_name)
File “/usr/local/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/registration/models.py”, line 13, in
from seahub.base.accounts import User
File “/usr/local/seafile/seafile-server-6.0.5/seahub/seahub/base/accounts.py”, line 24, in
from seahub.utils.mail import send_html_email_with_dj_template, MAIL_PRIORITY
File “/usr/local/seafile/seafile-server-6.0.5/seahub/seahub/utils/mail.py”, line 3, in
from post_office import mail
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/mail.py”, line 12, in
from .models import Email, EmailTemplate, PRIORITY, STATUS
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/models.py”, line 22, in
from post_office import cache
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/cache.py”, line 7, in
cache_backend = get_cache_backend()
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/settings.py”, line 66, in get_cache_backend
return get_cache(“default”)
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/settings.py”, line 13, in get_cache
return caches[name]
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/cache/init.py”, line 113, in getitem
cache = _create_cache(alias)
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/cache/init.py”, line 88, in _create_cache
return backend_cls(location, params)
File “/usr/local/seafile/seafile-server-6.0.5/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/core/cache/backends/memcached.py”, line 167, in init
import memcache
ImportError: No module named memcache
Error:Seahub failed to start.

这个错怎么解决啊。哪位有遇到过,帮忙看看,谢谢!


#13

https://manual-cn.seafile.com/deploy/add_memcached.html

安装 Memcached 能够显著提高系统性能,首先安装 memcached 和相应的库:

    memcached
    python memcached module (python-memcache or python-memcached)


#14

这个已经安装了,然后配置上memchae后seahub启动报错了。启不来。错误信息贴出来了。


#15

解决了。哈哈,真开心!虽然回答的兄弟没有帮上忙,还是谢谢!


#16

是怎么解决的也说一下吧,万一其他人也遇到同样的问题,省了麻烦。


#17

请问你是怎么解决的,我现在遇到和你相同的问题


#18

问题错误500 能说一下wen’t


#19

看一下log中有什么错误信息


#20

怎么解决的也说一下啊,兄弟