CentOS implementation REDIS issue.

When things doesn't work as they should.
Post Reply
Posts: 8
Joined: Tue Nov 13, 2018 7:28 am

CentOS implementation REDIS issue.

Post by hercovandyk » Tue Nov 27, 2018 11:08 am


I recently deployed a Mayan at a client following the direct deployment guide. It is installed on CentOS 7. (I have Mayan running flawlessly on centos on a local dev machine already.)

However, all my celery workers end up with the following redis error:

Code: Select all

[2018-11-27 11:03:53,696: ERROR/MainProcess] Unrecoverable error: AttributeError("'unicode' object has no attribute 'iteritems'",)
Traceback (most recent call last):
  File "/opt/mayan-edms/lib/python2.7/site-packages/celery/worker/__init__.py", line 206, in start
  File "/opt/mayan-edms/lib/python2.7/site-packages/celery/bootsteps.py", line 123, in start
  File "/opt/mayan-edms/lib/python2.7/site-packages/celery/bootsteps.py", line 374, in start
    return self.obj.start()
  File "/opt/mayan-edms/lib/python2.7/site-packages/celery/worker/consumer.py", line 280, in start
  File "/opt/mayan-edms/lib/python2.7/site-packages/celery/bootsteps.py", line 123, in start
  File "/opt/mayan-edms/lib/python2.7/site-packages/celery/worker/consumer.py", line 884, in start
  File "/opt/mayan-edms/lib/python2.7/site-packages/celery/worker/loops.py", line 76, in asynloop
  File "/opt/mayan-edms/lib/python2.7/site-packages/kombu/async/hub.py", line 340, in create_loop
  File "/opt/mayan-edms/lib/python2.7/site-packages/kombu/transport/redis.py", line 1019, in on_readable
  File "/opt/mayan-edms/lib/python2.7/site-packages/kombu/transport/virtual/__init__.py", line 534, in _callback
    self.qos.append(message, message.delivery_tag)
  File "/opt/mayan-edms/lib/python2.7/site-packages/kombu/transport/redis.py", line 146, in append
    pipe.zadd(self.unacked_index_key, delivery_tag, time()) \
  File "/opt/mayan-edms/lib/python2.7/site-packages/redis/client.py", line 2263, in zadd
    for pair in iteritems(mapping):
  File "/opt/mayan-edms/lib/python2.7/site-packages/redis/_compat.py", line 94, in iteritems
    return x.iteritems()
AttributeError: 'unicode' object has no attribute 'iteritems'
If I upload documents through the front end I get nothing in Mayan, although there is a green tick. And when I upload documents programatically it uploads them to the shared-file directory.

I see that no documents_cache or documents_storage was created in my media folder. I am assuming this is all due to the redis/worker failures.

Posts: 2
Joined: Sun Dec 09, 2018 1:59 am

Re: CentOS implementation REDIS issue.

Post by Mdoc » Sun Dec 09, 2018 2:08 am

Can you tell me how did you got it running on Centos7?
I am ripping my hair off trying to (i'm a unix newbie)

Post Reply