[ckan-dev] "Failed to get credentials for storage upload"

barbra blmack at gmail.com
Thu Jul 12 21:38:54 UTC 2012


Hi

Just realized that my first reply to this bounced back for length. So,
repasting edited version here:

***

Thanks much for responding quickly.

So, I'll just reply to both responses in this one email:

1. I am logged, with the admin account that I created during installation,
with the following:

paster --plugin=ckan sysadmin add admin --config=/etc/ckan/std/std.ini

2. If I go to http://your-ckan-instance/api/storage/auth/form/abc I get the
following:
"An internal server error occured"
A slew of errors are in the log, that when I pasted before made my message
bounce back. So, I'm just listing first part here:

**

Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] Error - <class
'pkg_resources.
DistributionNotFound'>: argparse
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] URL:
http://localhost/api/storage/auth/form/abc
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/weberror/errormiddleware.py', line 162 in
__call__
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   app_iter =
self.application(environ, sr_checker)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/beaker/middleware.py', line 73 in __call__
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   return
self.app(environ, start_response)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/beaker/middleware.py', line 152 in __call__
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   return
self.wrap_app(environ, session_start_response)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/routes/middleware.py', line 130 in __call__
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   response =
self.app(environ, start_response)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/pylons/wsgiapp.py', line 125 in __call__
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   response =
self.dispatch(controller, environ, start_response)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/pylons/wsgiapp.py', line 324 in dispatch
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   return
controller(environ, start_response)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/ckan/lib/base.py', line 218 in __call__
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   res =
WSGIController.__call__(self, environ, start_response)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/pylons/controllers/core.py', line 221 in
__call__
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   response =
self._dispatch_call()
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/pylons/controllers/core.py', line 172 in
_dispatch_call
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   response =
self._inspect_call(func)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/pylons/controllers/core.py', line 107 in
_inspect_call
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   result =
self._perform_call(func, args)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/pylons/controllers/core.py', line 60 in
_perform_call
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   return func(**args)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File '<string>', line
2 in auth_form
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/ckan/lib/jsonp.py', line 26 in jsonpify
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   data = func(*args,
**kwargs)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/ckan/controllers/storage.py', line 408 in
auth_form
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   authorize(method,
bucket, label, c.userobj, self.ofs)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/ckan/controllers/storage.py', line 198 in ofs
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]
StorageAPIController._ofs_impl = get_ofs()
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/ckan/controllers/storage.py', line 79 in
get_ofs
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   ofs =
get_impl(storage_backend)(**kw)
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/usr/lib/pymodules/python2.6/ofs/factory.py', line 5 in get_impl
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1]   return ep.load()
[Wed Jul 11 20:26:42 2012] [error] [client 127.0.0.1] File
'/var/lib/ckan/std/pyenv/lib/python2.6/site-packages/distribute-0.6.27-py2.6.egg/pkg_resources.py',
line 2016 in load

***

3. I did just did the package install for 1.7 and followed the instructions
here:
docs.ckan.org/en/ckan-1.7.1/install-from-package.html

4. I played around with the permissions. And even tried giving my files
directory rwx for all (this is all local not live). And still nothing.

5. Pairtree is installed. I get the following:
"Requirement already satisfied: pairtree in /usr/lib/pymodules/python2.6"

6. Here is what I added under [app:main]
ckan.storage.bucket = /home/blmak/files
ofs.impl = pairtree
ofs.storage_dir = /home/blmak/files

7. Here is what I get when I run pip freeze:

Babel==0.9.4
Beaker==1.5.1
BeautifulSoup==3.1.0.1
Brlapi==0.5.4
Cheetah==2.0.1
CouchDB==0.6
FormAlchemy==1.4.1
FormEncode==1.2.2
GnuPGInterface==0.3.2
Mako==0.2.5
MarkupSafe==0.9.2
PAM==0.4.2
PIL==1.1.7
Pairtree==0.7.1-T
Paste==1.7.2
PasteDeploy==1.3.3
PasteScript==1.7.3
Pygments==1.2.2
Pylons==0.9.7
Routes==1.11
SQLAlchemy==0.5.8
Tempita==0.4
Twisted-Core==10.0.0
Twisted-Names==10.0.0
Twisted-Web==10.0.0
WebError==0.10.1
WebHelpers==0.6.4
WebOb==0.9.7.1
WebTest==1.2
adium-theme-ubuntu==0.1
apachemiddleware==0.1.1
apturl==0.4.1ubuntu4.1
autoneg==0.5
ckan==1.7.1
command-not-found==0.1
configglue==0.2dev
cups==1.0
decorator==3.1.2
distribute==0.6.10
flup==1.0.2
fstab==1.4
gnome-app-install==0.4.
2ubuntu2
httplib2==0.7.2
jockey==0.5.8
launchpadlib==1.6.0
lazr.restfulclient==0.9.11
lazr.uri==1.0.2
licenses==0.6.1
louis==1.7.0
lxml==2.2.4
nose==0.11.1
nvidia-common==0.0.0
oauth==1.0a
ofs==0.4.1
onboard==0.93.0
papyon==0.4.8
pexpect==2.3
protobuf==2.2.0
psycopg2==2.0.13
pyOpenSSL==0.10
pycrypto==2.0.1
pycurl==7.19.0
pyinotify==0.8.9
pyserial==2.3
python-apt==0.7.94.2ubuntu6.4
python-debian==0.1.14ubuntu2
python-ldap==2.3.10
python-openid==2.2.4
pyutilib.component.core==4.1
pyxdg==0.18
rdflib==2.4.2
repoze.who==1.0.18
repoze.who-friendlyform==1.0b3
repoze.who-testutil==1.0rc1
repoze.who.plugins.ldap==1.0
repoze.who.plugins.openid==0.5
repoze.who.plugins.sa==1.0rc2
scgi==1.13
screen-resolution-extra==0.0.0
simplejson==2.0.9
smbc==1.0
solr==0.9.4
speechd==0.3
speechd-config==0.0
system-service==0.1.6
ubuntuone-storage-protocol==1.2.0
ufw==0.30pre1-0ubuntu2
unattended-upgrades==0.1
usb-creator==0.2.22
vdm==0.10
virtkey==0.01
virtualenv==1.4.5
wadllib==1.1.4
web.py==0.33
wsgiref==0.1.2
xkit==0.0.0
zope.interface==3.5.3

Thanks for your help so far.
-Barbra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20120712/ea944bea/attachment-0001.html>


More information about the ckan-dev mailing list