[ckan-dev] KeyError:'ofs.impl'

Tonny Andersen toan at aarhus.dk
Wed Aug 5 12:55:12 UTC 2015


Hi

is a person who can help me with the following problems?

I get this error all the time, common to them is the url show the following /storage/f/. . .
The path did not exist in the storage path.
I'll just be with that I have run an upgrade from CKAN 2.1.2 to 2.3
I think the best solution is delete them from the ressource table or is it better solutions.
All resources also available in the right path.
Some of the resources have status deleted.

Module ckan.controllers.storage:168 in file
<<      def file(self, label):
               exists = self.ofs.exists(BUCKET, label)
               if not exists:
                   # handle erroneous trailing slash by redirecting to url w/o slash
>>  exists = self.ofs.exists(BUCKET, label)
Module ckan.controllers.storage:115 in ofs
<<      def ofs(self):
               if not StorageController._ofs_impl:
                   StorageController._ofs_impl = get_ofs()
               return StorageController._ofs_impl
>>  StorageController._ofs_impl = get_ofs()
Module ckan.controllers.storage:71 in get_ofs
<<      """Return a configured instance of the appropriate OFS driver.
           """
           storage_backend = config['ofs.impl']
           kw = {}
           for k, v in config.items():
>>  storage_backend = config['ofs.impl']
Module paste.registry:146 in __getitem__
<<      def __getitem__(self, key):
               return self._current_obj()[key]

           def __setitem__(self, key, value):
>>  return self._current_obj()[key]
KeyError: 'ofs.impl'
CGI Variables

CKAN_CURRENT_URL

'/storage/f/2013-02-27T08%3A13%3A31.811Z/hele-befolkningen-1-januar-2013.xls'

CKAN_LANG

'da_DK'

CKAN_LANG_IS_DEFAULT

True

CONTENT_TYPE

'; charset=utf-8'

DOCUMENT_ROOT

'/etc/apache2/htdocs'

GATEWAY_INTERFACE

'CGI/1.1'

HTTP_ACCEPT

'*/*'

HTTP_ACCEPT_ENCODING

'gzip'

HTTP_CONNECTION

'close'

HTTP_HOST

'www.odaa.dk'

HTTP_USER_AGENT

'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)'

HTTP_X_FORWARDED_FOR

'68.180.230.173'

HTTP_X_REAL_IP

'68.180.230.173'

PATH_INFO

'/storage/f/2013-02-27T08:13:31.811Z/hele-befolkningen-1-januar-2013.xls'

PATH_TRANSLATED

'/etc/ckan/default/apache.wsgi/storage/f/2013-02-27T08:13:31.811Z/hele-befolkningen-1-januar-2013.xls'

REMOTE_ADDR

'127.0.0.1'

REMOTE_PORT

'49023'

REQUEST_METHOD

'GET'

REQUEST_URI

'/storage/f/2013-02-27T08:13:31.811Z/hele-befolkningen-1-januar-2013.xls'

SCRIPT_FILENAME

'/etc/ckan/default/apache.wsgi'

SERVER_ADDR

'127.0.0.1'

SERVER_ADMIN

'[no address given]'

SERVER_NAME

'www.odaa.dk'

SERVER_PORT

'80'

SERVER_PROTOCOL

'HTTP/1.0'

SERVER_SIGNATURE

'<address>Apache/2.2.22 (Ubuntu) Server at www.odaa.dk<http://www.odaa.dk> Port 80</address>\n'

SERVER_SOFTWARE

'Apache/2.2.22 (Ubuntu)'


WSGI Variables

application

<fanstatic.publisher.Delegator object at 0x7f7e92e36450>

beaker.cache

<beaker.cache.CacheManager object at 0x7f7e92e36810>

beaker.get_session

<bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x7f7e92761150>>

beaker.session

{'_accessed_time': 1438776699.971767, '_creation_time': 1438776699.971767}

fanstatic.needed

<fanstatic.core.NeededResources object at 0x7f7e8ce63e50>

mod_wsgi.application_group

'default.ckanhosted.com|'

mod_wsgi.callable_object

'application'

mod_wsgi.handler_script

''

mod_wsgi.input_chunked

'0'

mod_wsgi.listener_host

''

mod_wsgi.listener_port

'8080'

mod_wsgi.process_group

'ckan_default'

mod_wsgi.request_handler

'wsgi-script'

mod_wsgi.script_reloading

'1'

mod_wsgi.version

(3, 3)

paste.cookies

(<SimpleCookie: >, '')

paste.registry

<paste.registry.Registry object at 0x7f7e748ebd50>

paste.throw_errors

True

pylons.action_method

<bound method StorageController.file of <ckan.controllers.storage.StorageController object at 0x7f7e8ce63cd0>>

pylons.controller

<ckan.controllers.storage.StorageController object at 0x7f7e8ce63cd0>

pylons.environ_config

{'session': 'beaker.session', 'cache': 'beaker.cache'}

pylons.pylons

<pylons.util.PylonsContext object at 0x7f7e8ce63a90>

pylons.routes_dict

{'action': u'file', 'controller': u'ckan.controllers.storage:StorageController', 'label': u'2013-02-27T08:13:31.811Z/hele-befolkningen-1-januar-2013.xls'}

repoze.who.api

<repoze.who.api.API object at 0x7f7e748eb4d0>

repoze.who.logger

<logging.Logger object at 0x7f7e92e36390>

repoze.who.plugins

{'ckan.lib.authenticator:UsernamePasswordAuthenticator': <ckan.lib.authenticator.UsernamePasswordAuthenticator object at 0x7f7e921fed90>, 'friendlyform': <FriendlyFormPlugin 140181604998672>, 'auth_tkt': <CkanAuthTktCookiePlugin 140181604998608>}

routes.route

<routes.route.Route object at 0x7f7e9337bcd0>

routes.url

<routes.util.URLGenerator object at 0x7f7e8ce63e90>

webob._parsed_query_vars

(GET([]), '')

webob.adhoc_attrs

{'response': <Response at 0x7f7e8ce632d0 200 OK>, 'language': 'en-us'}

wsgi process

'Multi process AND threads (?)'

wsgi.file_wrapper

<built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f7e6c6587b0>

wsgi.version

(1, 1)

wsgiorg.routing_args

(<routes.util.URLGenerator object at 0x7f7e8ce63e90>, {'action': u'file', 'controller': u'ckan.controllers.storage:StorageController', 'label': u'2013-02-27T08:13:31.811Z/hele-befolkningen-1-januar-2013.xls'})




Med venlig hilsen

Tonny Andersen
Udvikler

D +45 4185 6657 E toan at aarhus.dk

ITK LAB
Kultur og Borgerservice
Aarhus Kommune

[Dokk1 mailsignatur sort]<http://www.dokk1.dk/>

Hack Kampmanns Plads 2, 8000 Aarhus C
www.dokk1.dk<http://www.dokk1.dk/>

www.odaa.dk
[ODAA logo copy]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150805/6c4878a9/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2141 bytes
Desc: image001.gif
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150805/6c4878a9/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 3953 bytes
Desc: image002.png
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150805/6c4878a9/attachment-0002.png>


More information about the ckan-dev mailing list