Skip to content

Memcached Issues after 2.6.1 -> 3.0-0 Upgrade #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
H8to opened this issue Jul 18, 2020 · 2 comments
Closed

Memcached Issues after 2.6.1 -> 3.0-0 Upgrade #265

H8to opened this issue Jul 18, 2020 · 2 comments

Comments

@H8to
Copy link

H8to commented Jul 18, 2020

Hi there,

The server keeps sending the following issues when there is activity on the server.
I'm running the 3.0-0 release from Dockerhub, that you just published.
I started the server manually first, to see if the database migration happens, which did appear in the logs.

Should memcached have received an update too? The creation date for all other containers are older (7 weeks).
image

I use docker-compose. This issue might have to do with #250 as the docker hostname might have changed during the upgrade. However, this seems to be fixed? I have not restarted the container any time between installation and now as it just worked like a charm up to now. 👍

Authentication error:

Logger django.pylibmc, from module django_pylibmc.memcached line 146:
Error generated by Anonymous user (not logged in) on deef374586b8 deployment

Traceback (most recent call last):
  File "/home/zulip/deployments/2020-07-17-22-37-44/zulip-py3-venv/lib/python3.6/site-packages/django_pylibmc/memcached.py", line 130, in get
    return super(PyLibMCCache, self).get(key, default, version)
  File "/home/zulip/deployments/2020-07-17-22-37-44/zulip-py3-venv/lib/python3.6/site-packages/django/core/cache/backends/memcached.py", line 75, in get
    val = self._cache.get(key)
pylibmc.Error: error 41 from memcached_get(:1:ef2783a2e1787f30b2831fd3636cb): (0x2f687b0) AUTHENTICATION FAILURE,  host: memcached:11211 -> libmemcached/sasl.cc:292

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/zulip/deployments/2020-07-17-22-37-44/zulip-py3-venv/lib/python3.6/site-packages/django_pylibmc/memcached.py", line 140, in set
    **COMPRESS_KWARGS)
pylibmc.ServerDown: error 47 from memcached_set: (0x2f687b0) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY,  host: memcached:11211 -> libmemcached/connect.cc:720


Deployed code:
- git: None
- ZULIP_VERSION: 3.0


Request info: none

Sever failed:

Logger django.pylibmc, from module django_pylibmc.memcached line 146:
Error generated by Anonymous user (not logged in) on deef374586b8 deployment

Traceback (most recent call last):
  File "/home/zulip/deployments/2020-07-17-22-37-44/zulip-py3-venv/lib/python3.6/site-packages/django_pylibmc/memcached.py", line 130, in get
    return super(PyLibMCCache, self).get(key, default, version)
  File "/home/zulip/deployments/2020-07-17-22-37-44/zulip-py3-venv/lib/python3.6/site-packages/django/core/cache/backends/memcached.py", line 75, in get
    val = self._cache.get(key)
pylibmc.ServerDown: error 47 from memcached_get(:1:ef2783a2e1787f30b2831fd3636cb): (0x3fde550) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY, memcached:11211,  host: memcached:11211 -> libmemcached/connect.cc:811

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/zulip/deployments/2020-07-17-22-37-44/zulip-py3-venv/lib/python3.6/site-packages/django_pylibmc/memcached.py", line 140, in set
    **COMPRESS_KWARGS)
pylibmc.ServerDown: error 47 from memcached_set: (0x3fde550) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY,  host: memcached:11211 -> libmemcached/connect.cc:720


Deployed code:
- git: None
- ZULIP_VERSION: 3.0


Request info: none

AttributeError: 'SessionStore' object has no attribute '_session_cache'

Logger django.pylibmc, from module django_pylibmc.memcached line 146:
Error generated by Anonymous user (not logged in) on deef374586b8 deployment

Traceback (most recent call last):
  File "/home/zulip/deployments/2020-07-17-22-37-44/zulip-py3-venv/lib/python3.6/site-packages/django/contrib/sessions/backends/base.py", line 189, in _get_session
    return self._session_cache
AttributeError: 'SessionStore' object has no attribute '_session_cache'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/zulip/deployments/2020-07-17-22-37-44/zulip-py3-venv/lib/python3.6/site-packages/django_pylibmc/memcached.py", line 130, in get
    return super(PyLibMCCache, self).get(key, default, version)
  File "/home/zulip/deployments/2020-07-17-22-37-44/zulip-py3-venv/lib/python3.6/site-packages/django/core/cache/backends/memcached.py", line 75, in get
    val = self._cache.get(key)
pylibmc.ServerDown: error 47 from memcached_get(:1:django.contrib.sessions.cache): (0x4419ac0) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY, memcached:11211,  host: memcached:11211 -> libmemcached/connect.cc:811

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/zulip/deployments/2020-07-17-22-37-44/zulip-py3-venv/lib/python3.6/site-packages/django_pylibmc/memcached.py", line 140, in set
    **COMPRESS_KWARGS)
pylibmc.ServerDown: error 47 from memcached_set: (0x4419ac0) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY,  host: memcached:11211 -> libmemcached/connect.cc:720


Deployed code:
- git: None
- ZULIP_VERSION: 3.0


Request info: none

If you need any additional info just ask. I'm happy to help :)

@henrixapp
Copy link

henrixapp commented Jul 18, 2020

I ran into the same issue. Updating the docker-compose.yml according to #250 (comment) reduced the number of emails resp. receiving them later.

@H8to
Copy link
Author

H8to commented Jul 18, 2020

Thanks (Danke:1st_place_medal:) @henrixapp
Adding echo "zulip@localhost:$$MEMCACHED_PASSWORD" >> "$$MEMCACHED_SASL_PWDB" to the docker-compose.yml did the trick for me.

@H8to H8to closed this as completed Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants