/var/lib/pulp/content defined in pulp_content_dir parameter doesn’t exist or is unreadable


File at /var/lib/pulp/content defined in pulp_content_dir parameter doesn’t exist or is unreadable

I got this warning in foreman 2.2 rc3 with katello 3.17 , please advice ?

The issue is that the software reporting the error is ran by user ‘foreman-proxy’ and it has no access to the directory.

Setting ACLs for ‘foreman-proxy’ should fix it

1 Like

what you think below command will fix it ?

setfacl -m u:foreman-proxy:r /var/lib/pulp/content

Yes, you might also see a similar warning for /var/lib/mongodb/, same issue.

yes and I fix with above command (which I find on this forum in other post)

but I find out no directory is there name content and two folder one is upload and other is uploads
and upload only come after I trying to upload some files.

ls -la -la /var/lib/pulp/
total 12
drwxrwxr-x. 11 pulp pulp 186 Oct 15 12:20 .
drwxr-xr-x. 42 root root 4096 Oct 10 17:14 …
-rw-r–r--. 1 apache apache 2 Oct 10 17:00 0005_puppet_module_name_change.txt
drwxr-xr-x. 6 pulp pulp 78 Oct 10 16:59 assets
drwxrwxr-x. 3 pulp pulp 22 Oct 11 19:36 docroot
drwxr-xr-x. 2 foreman foreman 6 Oct 10 17:00 katello-export
drwxr-xr-x. 2 apache apache 6 Oct 10 16:59 packages
drwxrwxr-x. 5 apache pulp 45 Oct 10 16:47 published
drwxrwxr-x. 2 apache pulp 25 Oct 10 16:59 static
drwxrwxr-x. 15 pulp pulp 4096 Oct 23 18:15 tmp
drwxr-xr-x 2 pulp pulp 94 Oct 15 12:21 upload
drwxrwxr-x. 2 apache pulp 6 Jul 13 15:23 uploads

where I didn’t try to upload file it not showing me upload folder but uploads.

file properly uploaded in upload folder but not in uploads folder

I have recognized the same issue that /var/lib/pulp/content is not created on a smart-proxy with foreman version 2.3

I guess, the directory is created by the foreman-installer. Does someone know where this directory should be created?

That is a Pulp 2 data directory. If you’re only testing a Foreman Proxy (without content) I wouldn’t expect it to exist. With Katello 4.0 it should also be gone since it drops Pulp 2.