okfn / docker-ckan

Docker images and Docker Compose setup for CKAN [Not Maintained]
GNU Affero General Public License v3.0
83 stars 91 forks source link

/var/lib/ckan/storage/ and /var/lib/ckan/resources/ are owned by root #45

Closed chris48s closed 4 years ago

chris48s commented 4 years ago

These should be owned by the ckan user out-of-the-box

adborden commented 4 years ago

I'm running into this too. It looks like that because some of the CKAN initialization commands are run as root within the Dockerfile and start script, when CKAN creates non-existent directories, they are owned by root.

The tricky thing is that some paster commands should be run as root, while some should be run as ckan.

https://github.com/okfn/docker-ckan/pull/42 is a catch all and seems like a reasonable fix.

amercader commented 4 years ago

I believe this is now fixed (by #46)