[ckan-dev] uploding files

Alex Urbanowicz alex.urbanowicz at gmail.com
Mon Feb 11 10:17:30 UTC 2013


While we are at this:

CKAN 1.8, fresh package install on Ubuntu, I try to enable filestore
and datastore for this. I try to run

paster --plugin=ckan datastore set-permissions postgres
--config=/etc/ckan/<siteid>/<siteid>.ini

to set permissions, but it fails with the following trace:

Traceback (most recent call last):
  File "/usr/bin/paster", line 18, in <module>
    command.run()
  File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/pymodules/python2.6/paste/script/command.py", line
123, in invoke
    exit_code = runner.run(args)
  File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 218, in run
    result = self.command()
  File "/usr/lib/pymodules/python2.6/ckanext/datastore/commands.py",
line 60, in command
    readonlyuser=self.db_read_url_parts['db_user']
  File "/usr/lib/pymodules/python2.6/ckanext/datastore/bin/datastore_setup.py",
line 35, in set_permissions
    with open(filepath) as f:
IOError: [Errno 2] No such file or directory:
'/usr/lib/pymodules/python2.6/ckanext/datastore/bin/set_permissions.sql'

Why is this file missing from the distribution? Directory
/usr/lib/pymodules/python2.6/ckanext/datastore exists but the sql file
is missing.

On Mon, Feb 11, 2013 at 10:29 AM, Mark Wainwright
<mark.wainwright at okfn.org> wrote:
> Hi,
>
> Hopefully this thread on stackoverflow will help you with this:
>
> http://stackoverflow.com/questions/13971622/error-when-trying-to-upload-a-file-to-ckan-failed-to-get-credentials-for-stora
>
> Mark
>
>
> On 08/02/2013, Jameleddine Mejri <mejri.jameleddine at gmail.com> wrote:
>> Good day,
>>
>> i went to add new resource by uploading a new file with ckan1.8 but i
>> alwase recive this message
>> "Failed to get credentials for storage upload. Upload cannot proceed"
>> would you please help me i use ubuntu10.04.
>>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev



-- 
--
http://about.me/weirdnik | crypto 0x46399138




More information about the ckan-dev mailing list