[ckan-dev] Unable to set permission to DataStore
Harald von Waldow
harald.vonwaldow at eawag.ch
Fri Jan 15 13:56:13 UTC 2016
Or Natalia looked at the wrong docu-version. Natalia, which version of
CKAN are you running?
On 15.01.2016 13:32, David Read wrote:
> Harald,
> I can see no error in the documentation here. I think Natalia just misread it.
> http://docs.ckan.org/en/latest/maintaining/datastore.html#set-permissions
> David
>
> On 14 January 2016 at 22:22, Harald von Waldow
> <harald.vonwaldow at eawag.ch> wrote:
>> I guess there is an error in the documentation. Try this:
>>
>> paster --plugin=ckan datastore set-permissions
>> -c /etc/ckan/default/production.ini| sudo -u postgres psql
>>
>> I guess it is also not such a good idea to run everything as root ...
>>
>> Cheers,
>> Harald
>>
>> On 14.01.2016 22:01, Natalia Queiroz wrote:
>>> Hello Harold,
>>>
>>> I removed the pdf_view, now I got this ...
>>>
>>> (default)root at localhost:/home/nataliaoliveira# paster --plugin=ckan
>>> datastore set-permissions postgres -c /etc/ckan/default/production.ini
>>> 2016-01-14 18:56:53,648 WARNI [ckanext.datastore.plugin] Omitting
>>> permission checks because you are running paster commands.
>>> usage: paster datastore [-h] {set-permissions} ...
>>> paster datastore: error: unrecognized arguments: postgres
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Jan 14, 2016 at 5:41 PM, Harald von Waldow
>>> <harald.vonwaldow at eawag.ch <mailto:harald.vonwaldow at eawag.ch>> wrote:
>>>
>>> Remove pdf_view from ckan.plugins in your production.ini or,
>>> alternatively, install ckanext-pdfview
>>> (https://github.com/ckan/ckanext-pdfview).
>>>
>>> Cheers,
>>> Harald
>>>
>>> On 14.01.2016 20:09, Natalia Queiroz wrote:
>>> > Hello group,
>>> >
>>> > I'm following the ckan documentation to install DataStore on my
>>> environment.
>>> >
>>> >
>>> http://docs.ckan.org/en/ckan-2.4.1/maintaining/datastore.html#datapusher-automatically-add-data-to-the-datastore
>>> >
>>> > In the topic Set permissions, this is the error from the command
>>> >
>>> > root at localhost:/etc/ckan/default# . /usr/lib/ckan/default/bin/activate
>>> > (default)root at localhost:/etc/ckan/default# cd
>>> /usr/lib/ckan/default/src/ckan
>>> > (default)root at localhost:/usr/lib/ckan/default/src/ckan# paster
>>> > --plugin=ckan datastore set-permissions postgres -c
>>> > /etc/ckan/default/production.ini
>>> > Traceback (most recent call last):
>>> > File "/usr/lib/ckan/default/bin/paster", line 9, in <module>
>>> > load_entry_point('PasteScript==1.7.5', 'console_scripts',
>>> 'paster')()
>>> > File
>>> >
>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
>>> > line 104, in run
>>> > invoke(command, command_name, options, args[1:])
>>> > File
>>> >
>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
>>> > line 143, in invoke
>>> > exit_code = runner.run(args)
>>> > File
>>> >
>>> "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
>>> > line 238, in run
>>> > result = self.command()
>>> > File "/usr/lib/ckan/default/src/ckan/ckanext/datastore/commands.py",
>>> > line 70, in command
>>> > self._load_config()
>>> > File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 147, in
>>> > _load_config
>>> > load_environment(conf.global_conf, conf.local_conf)
>>> > File
>>> "/usr/lib/ckan/default/src/ckan/ckan/config/environment.py", line
>>> > 232, in load_environment
>>> > p.load_all(config)
>>> > File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line
>>> 134,
>>> > in load_all
>>> > load(*plugins)
>>> > File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line
>>> 148,
>>> > in load
>>> > service = _get_service(plugin)
>>> > File "/usr/lib/ckan/default/src/ckan/ckan/plugins/core.py", line
>>> 255,
>>> > in _get_service
>>> > raise PluginNotFoundException(plugin_name)
>>> > ckan.plugins.core.PluginNotFoundException: pdf_view
>>> >
>>> > Any idea?
>>> >
>>> > --
>>> >
>>> >
>>> > Natália Oliveira
>>> >
>>> >
>>> > _______________________________________________
>>> > ckan-dev mailing list
>>> > ckan-dev at lists.okfn.org <mailto: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 <mailto:ckan-dev at lists.okfn.org>
>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> Natália Oliveira
>>>
>>>
>>> _______________________________________________
>>> 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
>>
> _______________________________________________
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160115/816aa5a8/attachment-0003.sig>
More information about the ckan-dev
mailing list