[ckan-dev] Adding ressources to the filestore

DA SILVA Alexandre ALEXANDRE.DASILVA at atos.net
Thu Dec 13 10:27:40 UTC 2012


Hi,

I did a clean install from CKAN's sources (1.7.2). Everything is going fine minus
the resources upload into the filestore.

Here is the error in the graphical interface:

"Failed to get credentials for storage upload. Upload cannot proceed"

I went through the past mails in the mailing list to look for an answer but here I am.

Pairtree and argparse are installed

In the development.ini

ckan.datastore.enabled = 1
ckan.storage.bucket = my-bucket-name
ofs.impl = pairtree
ofs.storage_dir = /mnt/datalocale

ckan user has the UNIX permissions on the folder

Here are the authorizations (but I am using a sysadmin user):

# Default authorizations for new domain objects
ckan.default_roles.Package = {"visitor": ["reader"], "logged_in": ["reader"]}
ckan.default_roles.Group = {"visitor": ["reader"], "logged_in": ["reader"]}
ckan.default_roles.System = {"visitor": ["anon_editor"], "logged_in": ["editor"]}
ckan.default_roles.AuthorizationGroup = {"visitor": ["reader"], "logged_in": ["reader"]}

And finally the error log of CKAN:

Error - <type 'exceptions.TypeError'>: __init__() got an unexpected keyword argument 'storage.dir'
URL: http://catalogue.datalocale.fr/api/storage/auth/form/2012-12-12T165041/AfTerFibre_21nov2011.csv
File '/opt/python2.6/lib/python2.6/site-packages/weberror/errormiddleware.py', line 162 in __call__
  app_iter = self.application(environ, sr_checker)
File '/opt/python2.6/lib/python2.6/site-packages/beaker/middleware.py', line 73 in __call__
  return self.app(environ, start_response)
File '/opt/python2.6/lib/python2.6/site-packages/beaker/middleware.py', line 155 in __call__
  return self.wrap_app(environ, session_start_response)
File '/opt/python2.6/lib/python2.6/site-packages/routes/middleware.py', line 130 in __call__
  response = self.app(environ, start_response)
File '/opt/python2.6/lib/python2.6/site-packages/pylons/wsgiapp.py', line 125 in __call__
  response = self.dispatch(controller, environ, start_response)
File '/opt/python2.6/lib/python2.6/site-packages/pylons/wsgiapp.py', line 324 in dispatch
  return controller(environ, start_response)
File '/home/opendata/ckan/src/ckan/lib/base.py', line 218 in __call__
  res = WSGIController.__call__(self, environ, start_response)
File '/opt/python2.6/lib/python2.6/site-packages/pylons/controllers/core.py', line 221 in __call__
  response = self._dispatch_call()
File '/opt/python2.6/lib/python2.6/site-packages/pylons/controllers/core.py', line 172 in _dispatch_call
  response = self._inspect_call(func)
File '/opt/python2.6/lib/python2.6/site-packages/pylons/controllers/core.py', line 107 in _inspect_call
  result = self._perform_call(func, args)
File '/opt/python2.6/lib/python2.6/site-packages/pylons/controllers/core.py', line 60 in _perform_call
  return func(**args)
File '<string>', line 2 in auth_form
File '/home/opendata/ckan/src/ckan/lib/jsonp.py', line 26 in jsonpify
  data = func(*args, **kwargs)
File '/home/opendata/ckan/src/ckan/controllers/storage.py', line 413 in auth_form
  authorize(method, bucket, label, c.userobj, self.ofs)
File '/home/opendata/ckan/src/ckan/controllers/storage.py', line 198 in ofs
  StorageAPIController._ofs_impl = get_ofs()
File '/home/opendata/ckan/src/ckan/controllers/storage.py', line 79 in get_ofs
  ofs = get_impl(storage_backend)(**kw)
TypeError: __init__() got an unexpected keyword argument 'storage.dir'

I hope it will help you help me.

Thank you for your time,

Alexandre Da Silva
________________________________


Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos ne pourra être engagée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être engagée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.


More information about the ckan-dev mailing list