[ckan-dev] Problem creating resources after deploy - SOLVED
lucia.espona at wsl.ch
lucia.espona at wsl.ch
Mon Nov 21 11:17:07 UTC 2016
Thanks Harald, Carl and Stefan for your help,
It works now after:
sudo chown -R www-data /data/ckan/default/
sudo chmod -R u+rwx /data/ckan/default/
@Stefan: Good to know, I will try not to run anything with paster on the instance.
@Carl: I didn't saw that page, thanks. I did the same as suggested there for /data/ckan/default, I guess it can be a different path.
@Harald: Since I run with -R, that should fix it for all subdirectories
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 phone direct
+41 44 739 21 11 reception
www.wsl.ch
-----"ckan-dev" <ckan-dev-bounces at lists.okfn.org> wrote: -----
To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
From: Harald von Waldow
Sent by: "ckan-dev"
Date: 21.11.2016 12:07
Subject: Re: [ckan-dev] Problem creating resources after deploy
Hi Lucia,
yes, 'www-data' is the right owner. I also have set the group-owner to
'www-data'.
> Is it there some other directory I should change ownership or rights?
I guess you should also chown -R www-data:www-data
/data/ckan/default/storage.
Best,
Harald
On 2016-11-21 11: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 phone direct
> +41 44 739 21 11 reception
>
> www.wsl.ch <http://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
>
--
Harald von Waldow
Eawag
ICT Services
Ueberlandstrasse 133
8600 Duebendorf
http://www.eawag.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
[attachment "signature.asc" removed by Lucia Espona Pernas/WSL]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161121/8dcc8526/attachment-0003.html>
More information about the ckan-dev
mailing list