Problem:
Api returns 500 error.
Expected outcome:
Pulpcore version:
pulpcore 3.22.21
Pulp plugins installed and their versions:
Operating system - distribution and version:
pulp-ansible 0.16.1
pulp-cli 0.23.1
pulp-deb 2.20.2
pulp-file 1.12.0
pulp-glue 0.23.1
pulp-rpm 3.19.3
pulpcore 3.22.21
django-currentuser 0.5.3
django-filter 22.1
django-guid 3.3.0
django-import-export 3.3.6
django-lifecycle 1.0.0
django-readonly-field 1.1.2
django-storages 1.14.2
djangorestframework 3.14.0
djangorestframework-queryfields 1.0.0
Other relevant data:
We are currently running 3.22.4 with external postgres, redis and web authentication. We added a new physical host running api, content and worker instances. The new instances share the same postgres and redis. The pulp_installer picked up the latest version for 3.22.21. The new api instance return 500 error and we got the errors below. We tried to downgrade the django to match the version that we are currently running and it didn’t work. Please advise how this can be fixed.
Current Pulp Instance:
pulp-ansible 0.16.1
pulp-cli 0.19.0
pulp-deb 2.20.2
pulp-file 1.12.0
pulp-glue 0.19.0
pulp-rpm 3.19.3
pulp-rpm-client 3.19.3
pulpcore 3.22.4
pulpcore-client 3.22.4
django-currentuser 0.5.3
django-extensions 3.2.3
django-filter 22.1
django-guid 3.3.0
django-import-export 3.0.2
django-lifecycle 1.0.0
django-readonly-field 1.1.2
django-storages 1.13.2
djangorestframework 3.13.1
djangorestframework-queryfields 1.0.0
New instance:
pulp-ansible 0.16.1
pulp-cli 0.23.1
pulp-deb 2.20.2
pulp-file 1.12.0
pulp-glue 0.23.1
pulp-rpm 3.19.3
pulpcore 3.22.21
django-currentuser 0.5.3
django-filter 22.1
django-guid 3.3.0
django-import-export 3.3.6
django-lifecycle 1.0.0
django-readonly-field 1.1.2
django-storages 1.14.2
djangorestframework 3.14.0
djangorestframework-queryfields 1.0.0
<an 31 12:41:40 pulphost2 gunicorn[72949]: pulp [ae6a778784124c96bf28de9f02936bc5]: django.request:ERROR: Internal Server Error: /pulp/api>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: Traceback (most recent call last):
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/cryptography/fernet.py”, line >
Jan 31 12:41:40 pulphost2 gunicorn[72949]: h.verify(data[-32:])
Jan 31 12:41:40 pulphost2 gunicorn[72949]: cryptography.exceptions.InvalidSignature: Signature did not match digest.
Jan 31 12:41:40 pulphost2 gunicorn[72949]: During handling of the above exception, another exception occurred:
Jan 31 12:41:40 pulphost2 gunicorn[72949]: Traceback (most recent call last):
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File "/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/core/handlers/exception>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: response = get_response(request)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/core/handlers/base.py”,>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: response = wrapped_callback(request, *callback_args, **callback_kwargs)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File "/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/views/decorators/csrf.p>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: return view_func(*args, **kwargs)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/viewsets.py”, l>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: return self.dispatch(request, *args, **kwargs)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/views.py”, line>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: response = self.handle_exception(exc)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/views.py”, line>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: self.raise_uncaught_exception(exc)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/views.py”, line>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: raise exc
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/views.py”, line>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: response = handler(request, *args, **kwargs)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/mixins.py”, lin>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: return self.get_paginated_response(serializer.data)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/serializers.py”>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: ret = super().data
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/serializers.py”>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: self._data = self.to_representation(self.instance)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/serializers.py”>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: return [
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/serializers.py”>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: self.child.to_representation(item) for item in iterable
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/serializers.py”>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: attribute = field.get_attribute(instance)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/relations.py”, >
Jan 31 12:41:40 pulphost2 gunicorn[72949]: return super().get_attribute(instance)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/fields.py”, lin>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: return get_attribute(instance, self.source_attrs)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/rest_framework/fields.py”, lin>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: instance = getattr(instance, attr)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File "/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/fields/relate>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: rel_obj = self.get_object(instance)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File "/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/fields/relate>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: return qs.get(self.field.get_reverse_related_filter(instance))
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/query.py”, li>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: num = len(clone)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/query.py”, li>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: self._fetch_all()
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/query.py”, li>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: self._result_cache = list(self._iterable_class(self))
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/query.py”, li>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: for row in compiler.results_iter(results):
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File "/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/django/db/models/sql/compiler.>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: value = converter(value, expression, connection)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/pulpcore/app/models/fields.py”>
Jan 31 12:41:40 pulphost2 gunicorn[72949]: return force_str(self._fernet.decrypt(force_bytes(value)))
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/cryptography/fernet.py”, line >
Jan 31 12:41:40 pulphost2 gunicorn[72949]: return self._decrypt_data(data, timestamp, time_info)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/cryptography/fernet.py”, line >
Jan 31 12:41:40 pulphost2 gunicorn[72949]: self._verify_signature(data)
Jan 31 12:41:40 pulphost2 gunicorn[72949]: File “/opt/utils/venv/pulp/3.9.7/lib64/python3.9/site-packages/cryptography/fernet.py”, line >
Jan 31 12:41:40 pulphost2 gunicorn[72949]: raise InvalidToken
Jan 31 12:41:40 pulphost2 gunicorn[72949]: cryptography.fernet.InvalidToken
→