django.pylibmc 错误请大神帮忙分析下


#1

环境 CENTOS7.2 NGINX 社区版,web页面上传文件一直报此错误
[root@sea634 logs]# cat seahub.log
2019-09-27 13:11:20,759 [ERROR] django.pylibmc:132 get MemcachedError: error 26 from

memcached_get(:1:autofilled): Transport endpoint is not connected
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/django_pylibmc/memcached.py”, line 130, in get
return super(PyLibMCCache, self).get(key, default, version)
File "/opt/cloudpan/seafile-server-

6.3.4/seahub/thirdpart/django/core/cache/backends/memcached.py", line 79, in get
val = self._cache.get(key)
Error: error 26 from memcached_get(:1:autofilled): Transport endpoint is not connected
2019-09-27 13:12:28,404 [ERROR] django.pylibmc:132 get MemcachedError: error 26 from

memcached_get(:1:autofilled): Transport endpoint is not connected
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/django_pylibmc/memcached.py”, line 130, in get
return super(PyLibMCCache, self).get(key, default, version)
File "/opt/cloudpan/seafile-server-

6.3.4/seahub/thirdpart/django/core/cache/backends/memcached.py", line 79, in get
val = self._cache.get(key)
Error: error 26 from memcached_get(:1:autofilled): Transport endpoint is not connected
2019-09-27 13:12:28,420 [ERROR] django.pylibmc:132 get MemcachedError: error 26 from

memcached_get(:1:autofilled): Transport endpoint is not connected
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/django_pylibmc/memcached.py”, line 130, in get
return super(PyLibMCCache, self).get(key, default, version)
File "/opt/cloudpan/seafile-server-

6.3.4/seahub/thirdpart/django/core/cache/backends/memcached.py", line 79, in get
val = self._cache.get(key)
Error: error 26 from memcached_get(:1:autofilled): Transport endpoint is not connected
2019-09-27 13:12:28,478 [ERROR] django.pylibmc:132 get MemcachedError: error 26 from

memcached_get(:1:autofilled): Transport endpoint is not connected
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/django_pylibmc/memcached.py”, line 130, in get
return super(PyLibMCCache, self).get(key, default, version)
File "/opt/cloudpan/seafile-server-

6.3.4/seahub/thirdpart/django/core/cache/backends/memcached.py", line 79, in get
val = self._cache.get(key)
Error: error 26 from memcached_get(:1:autofilled): Transport endpoint is not connected

补充一个seahub_settings.py文件
[root@sea634 conf]# cat seahub_settings.py

  • 列表条目

-- coding: utf-8 --

SECRET_KEY = “ot6t@$c0l=59@w)^rjvy2z@74q3y523ojppew*7r+w94=nx!@c

DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘seahub-db’,
‘USER’: ‘seafile’,
‘PASSWORD’: ‘123456’,
‘HOST’: ‘127.0.0.1’,
‘PORT’: ‘3306’
}
}

CACHES = {
‘default’: {
‘BACKEND’: ‘django_pylibmc.memcached.PyLibMCCache’,
‘LOCATION’: ‘127.0.0.1:11211’,
},
‘locmem’: {
‘BACKEND’: ‘django.core.cache.backends.locmem.LocMemCache’,
},
}
COMPRESS_CACHE_BACKEND = ‘locmem’

QQ%E5%9B%BE%E7%89%8720190927212658
由于上面的文件内容复制粘贴的时候有问题,所以截图一张


#2

检查下你的memcached服务是否运行正常,是否能为seafile提供服务。


#3

memcached服务正常启动,下面是截图,帮我分析分析,谢谢,


#4

建议升级seafile版本,看能否解决这个问题


#5

这个是704版本的错误截图
seahub.log
2019-09-30 12:54:12,235 [ERROR] root:68 Failed to import seafevents package.
Traceback (most recent call last):
File “/opt/seafile/seafile-server-7.0.4/seahub/seahub/utils/init.py”, line 65, in
from seafevents import seafevents_api
ImportError: No module named seafevents
2019-09-30 12:54:12,244 [ERROR] root:565 Failed to import seafevents package.
Traceback (most recent call last):
File “/opt/seafile/seafile-server-7.0.4/seahub/seahub/utils/init.py”, line 561, in
import seafevents
ImportError: No module named seafevents

seafile.log
[08/05/19 02:07:30] http-server.c(257): fileserver: cluster_shared_temp_file_mode = 600
[08/05/2019 02:07:30 AM] …/common/mq-mgr.c(54): [mq client] mq cilent is started
[08/05/2019 02:30:17 AM] Disconnected from daemon
[09/30/19 20:54:09] http-server.c(175): fileserver: worker_threads = 10
[09/30/19 20:54:09] http-server.c(190): fileserver: fixed_block_size = 8388608
[09/30/19 20:54:09] http-server.c(205): fileserver: web_token_expire_time = 3600
[09/30/19 20:54:09] http-server.c(220): fileserver: max_indexing_threads = 1
[09/30/19 20:54:09] http-server.c(235): fileserver: max_index_processing_threads= 3
[09/30/19 20:54:09] http-server.c(257): fileserver: cluster_shared_temp_file_mode = 600
[09/30/2019 08:54:09 PM] …/common/mq-mgr.c(54): [mq client] mq cilent is started

controller.log
[09/30/19 21:14:39] seafile-controller.c(486): seafevents need restart…
[09/30/19 21:14:39] seafile-controller.c(79): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --logfile /opt/seafile/logs/seafevents.log -P /opt/seafile/pids/seafevents.pid
[09/30/19 21:14:39] seafile-controller.c(94): spawned /usr/bin/python2.7, pid 8744
[09/30/19 21:14:49] seafile-controller.c(453): pid file /opt/seafile/pids/seafevents.pid does not exist
[09/30/19 21:14:49] seafile-controller.c(486): seafevents need restart…
[09/30/19 21:14:49] seafile-controller.c(79): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --logfile /opt/seafile/logs/seafevents.log -P /opt/seafile/pids/seafevents.pid
[09/30/19 21:14:49] seafile-controller.c(94): spawned /usr/bin/python2.7, pid 8745
[09/30/19 21:14:59] seafile-controller.c(453): pid file /opt/seafile/pids/seafevents.pid does not exist
[09/30/19 21:14:59] seafile-controller.c(486): seafevents need restart…
[09/30/19 21:14:59] seafile-controller.c(79): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --logfile /opt/seafile/logs/seafevents.log -P /opt/seafile/pids/seafevents.pid
[09/30/19 21:14:59] seafile-controller.c(94): spawned /usr/bin/python2.7, pid 8746
[09/30/19 21:15:09] seafile-controller.c(453): pid file /opt/seafile/pids/seafevents.pid does not exist
[09/30/19 21:15:09] seafile-controller.c(486): seafevents need restart…
[09/30/19 21:15:09] seafile-controller.c(79): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --logfile /opt/seafile/logs/seafevents.log -P /opt/seafile/pids/seafevents.pid
[09/30/19 21:15:09] seafile-controller.c(94): spawned /usr/bin/python2.7, pid 8747
[09/30/19 21:15:19] seafile-controller.c(453): pid file /opt/seafile/pids/seafevents.pid does not exist
[09/30/19 21:15:19] seafile-controller.c(486): seafevents need restart…
[09/30/19 21:15:19] seafile-controller.c(79): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --logfile /opt/seafile/logs/seafevents.log -P /opt/seafile/pids/seafevents.pid
[09/30/19 21:15:19] seafile-controller.c(94): spawned /usr/bin/python2.7, pid 8748
[09/30/19 21:15:29] seafile-controller.c(453): pid file /opt/seafile/pids/seafevents.pid does not exist
[09/30/19 21:15:29] seafile-controller.c(486): seafevents need restart…
[09/30/19 21:15:29] seafile-controller.c(79): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --logfile /opt/seafile/logs/seafevents.log -P /opt/seafile/pids/seafevents.pid
[09/30/19 21:15:29] seafile-controller.c(94): spawned /usr/bin/python2.7, pid 8749
[09/30/19 21:15:39] seafile-controller.c(453): pid file /opt/seafile/pids/seafevents.pid does not exist
[09/30/19 21:15:39] seafile-controller.c(486): seafevents need restart…
[09/30/19 21:15:39] seafile-controller.c(79): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --logfile /opt/seafile/logs/seafevents.log -P /opt/seafile/pids/seafevents.pid
[09/30/19 21:15:39] seafile-controller.c(94): spawned /usr/bin/python2.7, pid 8750
[09/30/19 21:15:49] seafile-controller.c(453): pid file /opt/seafile/pids/seafevents.pid does not exist
[09/30/19 21:15:49] seafile-controller.c(486): seafevents need restart…
[09/30/19 21:15:49] seafile-controller.c(79): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --logfile /opt/seafile/logs/seafevents.log -P /opt/seafile/pids/seafevents.pid
[09/30/19 21:15:49] seafile-controller.c(94): spawned /usr/bin/python2.7, pid 8751
[09/30/19 21:15:59] seafile-controller.c(453): pid file /opt/seafile/pids/seafevents.pid does not exist
[09/30/19 21:15:59] seafile-controller.c(486): seafevents need restart…
[09/30/19 21:15:59] seafile-controller.c(79): spawn_process: /usr/bin/python2.7 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --logfile /opt/seafile/logs/seafevents.log -P /opt/seafile/pids/seafevents.pid
[09/30/19 21:15:59] seafile-controller.c(94): spawned /usr/bin/python2.7, pid 8752

704版本服务状态
![704%E6%9C%8D%E5%8A%A1%E7%8A%B6%E6%80%81|690x285]
(upload://6urBcVvffPlSg7UJXL59aElZrNK.png)

704版本seahub_setting.py
py

704版本controller.log

704版本seafile.log

704版本seahub.log

704PID目录

704CONF目录
conf%E7%9B%AE%E5%BD%95


#6

你这部署的有问题吧,开源版的应该没有seafevents的,你把seafevents.conf配置文件去掉重启看看