Closed hvwaldow closed 4 years ago
🙏
Hey folks, anything holding up this PR? This resolves https://github.com/okfn/docker-ckan/issues/45 for me.
@amercader can you have a look at this?
@JGulic @avdata99 @hvwaldow Apologies for the late reply on this
I don't like running a chown command here, the permissions should be set at build time here. If the problem is that prerun.py
is run by root
let's fix that instead. Can you try if #46 fixes the issue for you? I gave it a try and worked for me.
Closed in favour of #46
Issue: In production, create an organization and upload an image. There will be a server-error:
This is because
prerun.py
, in whichinit_db()
creates/var/lib/ckan/storage
, runs as root. UWSGI in production however runs asckan
. That is also the reason this problem doesn't show in development.This fix sets the permissions right.