Jodie Sauer commented on issue #733 at global / Code / DevOps

Jodie Sauer
2026-04-07T11:20:18Z

@jens.moeller Ich komme bei der Installation des Portals nicht weiter. Das Portal ist schon fertig eingerichtet, was die nötigen Pakte und Libraries angeht. Es fehlen nur die clean_installation manage.py tasks, um das setup abzuschließen. Dabei kommt es zu diesem Fehler:

- name: "Clean installation: update portal"
^ column 3

fatal: [dev-03.host.wechange.cloud]: FAILED! =>
changed: false
cmd:
- ./manage.py
- shell
- -c
- from cosinnus.models import CosinnusPortal;p = CosinnusPortal.objects.first();p.slug
= '';p.name = '';p.save();
- --pythonpath=/srv/http/dev-03.wechange.de/htdocs/.venv/bin/python
msg: |4-

:stderr: /srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/google/auth/__init__.py:52: FutureWarning: You are using a Python version 3.8 past its end of life. Google will update google-auth with critical bug fixes on a best-effort basis, but not with any other fixes or features. Please upgrade your Python version, and then update google-auth.
warnings.warn(eol_message.format("3.8"), FutureWarning)
/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/google/oauth2/__init__.py:38: FutureWarning: You are using a Python version 3.8 past its end of life. Google will update google-auth with critical bug fixes on a best-effort basis, but not with any other fixes or features. Please upgrade your Python version, and then update google-auth.
warnings.warn(eol_message.format("3.8"), FutureWarning)
/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/google/api_core/_python_version_support.py:246: FutureWarning: You are using a non-supported Python version (3.8.20). Google will not post any further updates to google.api_core supporting this Python version. Please upgrade to the latest Python version, or at least Python 3.10, and then update google.api_core.
warnings.warn(message, FutureWarning)
Traceback (most recent call last):
File "./manage.py", line 7, in <module>
cosinnus_manage(base_path)
File "/srv/http/dev-03.wechange.de/htdocs/.venv/src/cosinnus-core/cosinnus/utils/system.py", line 164, in cosinnus_manage
execute_from_command_line(args)
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/django/core/management/commands/shell.py", line 117, in handle
exec(options["command"], globals())
File "<string>", line 1, in <module>
File "/srv/http/dev-03.wechange.de/htdocs/.venv/src/cosinnus-core/cosinnus/models/group.py", line 789, in save
self.compile_custom_stylesheet()
File "/srv/http/dev-03.wechange.de/htdocs/.venv/src/cosinnus-core/cosinnus/models/group.py", line 834, in compile_custom_stylesheet
'Wrote Custom Portal CSS file to:', extra={'Portal': CosinnusPortal.get_current().id, 'css_path': css_path}
File "/srv/http/dev-03.wechange.de/htdocs/.venv/src/cosinnus-core/cosinnus/models/group.py", line 766, in get_current
portal = cache.get(CosinnusPortal._CURRENT_PORTAL_CACHE_KEY)
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/django/core/cache/backends/memcached.py", line 75, in get
return self._cache.get(key, default)
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/pymemcache/client/hash.py", line 347, in get
return self._run_cmd("get", key, default, default=default, **kwargs)
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/pymemcache/client/hash.py", line 322, in _run_cmd
return self._safely_run_func(client, func, default_val, *args, **kwargs)
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/pymemcache/client/hash.py", line 211, in _safely_run_func
result = func(*args, **kwargs)
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/pymemcache/client/base.py", line 687, in get
return self._fetch_cmd(b"get", [key], False, key_prefix=self.key_prefix).get(
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/pymemcache/client/base.py", line 1133, in _fetch_cmd
self._connect()
File "/srv/http/dev-03.wechange.de/htdocs/.venv/lib/python3.8/site-packages/pymemcache/client/base.py", line 424, in _connect
sock.connect(sockaddr)
FileNotFoundError: [Errno 2] No such file or directory
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
path: /srv/http/dev-03.wechange.de/htdocs/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
syspath:
- /tmp/ansible_community.general.django_manage_payload_69v48xrv/ansible_community.general.django_manage_payload.zip
- /usr/lib/python312.zip
- /usr/lib/python3.12
- /usr/lib/python3.12/lib-dynload
- /usr/local/lib/python3.12/dist-packages
- /usr/lib/python3/dist-packages
- /usr/lib/python3.12/dist-packages

Es geht um diesen Task: https://git.wechange.de/gl/code/ansible-roles/portal/-/blob/main/tasks/clean_installation.yml?ref_type=heads#L58

Die Fehlermeldung deutet auf ein Problem mit pymemcache hin. Der Memcache Dienst portal-dev-03-memcached.service und der Socket /srv/http/dev-03.wechange.de/run/memcached.socket laufen auf dem Server.

@marvin.wilke Hast du eine Idee, was hier schiefläuft?