是否可以帮助我解决以下问题?
我一直都会遇到这个错误,他们常见的是url显示以下/ storage / f /。 。 。 存储路径中不存在该路径。 我只是说我已经从CKAN 2.1.2升级到2.3 我认为最好的解决方案是从资源表中删除它们,还是更好的解决方案。 所有资源也可在正确的路径中使用。 部分资源已删除状态。
Module ckan.controllers.storage:168 in file
>> exists = self.ofs.exists(BUCKET, label)
Module ckan.controllers.storage:115 in ofs
>> StorageController._ofs_impl = get_ofs()
Module ckan.controllers.storage:71 in get_ofs
>> storage_backend = config['ofs.impl']
Module paste.registry:146 in __getitem__
>> 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 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 0x7`enter code here`f7e92761150>>
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'})
答案 0 :(得分:0)
问题解决了
必须在.ini文件中设置以下内容
ofs.impl = pairtree
ofs.storage_dir =。 。
/东铭