[ckan-dev] Problem creating resources after deploy

Carl Lange carl at derilinx.com
Mon Nov 21 10:48:31 UTC 2016


Hi Lucia,

Did you set the permissions for that directory the same as in the docs?
http://docs.ckan.org/en/latest/maintaining/filestore.html?highlight=filestore#setup-file-uploads

For you, that seems like

chown www-data /data/ckan/default
sudo chmod u+rwx /data/ckan/default

Cheers,
Carl

On Mon, 21 Nov 2016 at 10:32 <lucia.espona at wsl.ch> wrote:

> Dear all
>
> I just deployed my current CKAN instance following the instructions in
> http://docs.ckan.org/en/latest/maintaining/installing/deployment.html.
> Everything seems ok, except that I cannot create resources:
>
> [Mon Nov 21 11:15:28.580885 2016] OSError: [Errno 13] Permission denied:
> '/data/ckan/default/resources/fba/2f6'
>
> The parent folder has owner 'espona' (my user), should I change the
> ownership to 'www-data'?
> I found a similar wokaround here for an older version:
> https://github.com/datagovua/ckan-vagrant-chef/issues/6
>
> chown -R www-data /data/ckan/default
>
> Is it there some other directory I should change ownership or rights?
>
> Best,
>
> Lucia
>
> _________________________________________________________
> Dr. Lucia Espona Pernas
>
> Swiss Federal Institute for Forest, Snow and Landscape Research WSL
> Hauptgebäaude Labortrakt (HL C21)
> Zürcherstrasse 111
> 8903 Birmensdorf
> Switzerland
>
> +41 44 739 28 71 <+41%2044%20739%2028%2071> phone direct
> +41 44 739 21 11 <+41%2044%20739%2021%2011> reception
>
> www.wsl.ch_______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161121/333e721c/attachment-0003.html>


More information about the ckan-dev mailing list