Closed urzparat closed 2 months ago
Did you follow the instructions from here: https://pulpproject.org/pulp-oci-images/docs/admin/tutorials/quickstart/#single-container? I just did it on Fedora 40, docker 24.0.5 and it worked fine for me. What does your logs look like for the single container, docker logs pulp
?
Thank you for your reply!
settings.py
and additionally added TOKEN_AUTH_DISABLED=true
Logs show the following:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pulpcore/app/settings.py", line 474, in <module>
with open(DB_ENCRYPTION_KEY, "rb") as key_file:
PermissionError: [Errno 13] Permission denied: '/etc/pulp/certs/database_fields.symmetric.key'
Do I need to generate this key?
No this key should be generated on the first run of the container. Can you see if this file exists already in your settings/certs/
folder? And if it does exist can you check who has perms on this file? On my system the file has these perms:
-rw-r-----. 1 root 700 45 Sep 16 16:23 database_fields.symmetric.key
The 700 user should be the pulp user inside the container which is what allows Pulp to read this file. If the file doesn't exist then I would remove the container and rerun the docker run
command.
The following files exist:
└── settings
├── certs
│ ├── database_fields.symmetric.key
│ ├── pulp_webserver.crt
│ ├── pulp_webserver.csr
│ ├── pulp_webserver.key
│ ├── token_private_key.pem
│ └── token_public_key.pem
└── settings.py
And the permissions of the key are the same as you've listed:
-rw-r----- 1 root 700 45 17. Sep 07:45 database_fields.symmetric.key
Strange, does your system have selinux enabled perchance? I'm not exactly sure what other reasons there could be for the container to not be able to read the file, maybe docker root user issue? https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
Well when its something with my system, I'd best try it on a clean machine. Thank you for your time and sorry for the noise.
Version I tried to get started with pulp with docker:
Docker version 27.2.1, build 9e34c9b
Debian 12 (bookworm) 6.1.0-25-amd64
Describe the bug When I try to use pulp with the following command:
I can't reset the password (
pulpcore-manager reset-admin-password
), because of the following error:So I tried it with the
docker compose
way (with/pulp-oci-images/images/compose/compose.yml
) and getting even more errors:Errors
It seems nobody else has those problems, so maybe something with my host-system is wrong? Help would be apreciated, because I really would like to test pulp.