[ckan-dev] WebApp Error: <class 'ckan.logic.NotFound'>: Resource "707e544e-3ab9-44c6-b304-ab8e972bd2f0" was not found.
Claire Herbert
Claire.Herbert at umanitoba.ca
Wed Oct 26 17:30:04 UTC 2016
Would anyone be able to please help me with this error?
Claire
Module ckan.controllers.package:1142 in resource_read
<< template = self._resource_template(dataset_type)
return render(template, extra_vars=vars)
@maintain.deprecated('Resource preview is deprecated. Please use the new '
>> return render(template, extra_vars=vars)
Module ckan.lib.base:216 in render
<< try:
return cached_template(template_name, render_template,
loader_class=loader_class)
except ckan.exceptions.CkanUrlException, e:
raise ckan.exceptions.CkanUrlException(
>> loader_class=loader_class)
Module pylons.templating:249 in cached_template
<< return content
else:
return render_func()
>> return render_func()
Module ckan.lib.base:154 in render_template
<< del globs['config']
# TODO should we raise error if genshi filters??
return render_jinja2(template_name, globs)
# Genshi templates
>> return render_jinja2(template_name, globs)
Module ckan.lib.base:104 in render_jinja2
<< env = config['pylons.app_globals'].jinja_env
template = env.get_template(template_name)
return template.render(**extra_vars)
>> return template.render(**extra_vars)
Module jinja2.environment:894 in render
<< except Exception:
exc_info = sys.exc_info()
return self.environment.handle_exception(exc_info, True)
def stream(self, *args, **kwargs):
>> return self.environment.handle_exception(exc_info, True)
Module /usr/lib/ckan/default/src/ckanext-scheming/ckanext/scheming/templates/scheming/package/resource_read.html:9 in top-level template code
<< 'format',
] -%}
{%- set schema = h.scheming_get_dataset_schema(dataset_type) -%}
{% block resource_additional_information_inner %}
>> {%- set schema = h.scheming_get_dataset_schema(dataset_type) -%}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/package/resource_read.html:3 in top-level template code
<< {% extends "package/base.html" %}
{% set res = c.resource %}
{% block head_extras -%}
>> {% set res = c.resource %}
Module /usr/lib/ckan/default/src/ckanext-hierarchy/ckanext/hierarchy/templates/package/base.html:1 in top-level template code
<< {% ckan_extends %}
{% block breadcrumb_content %}
>> {% ckan_extends %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/package/base.html:3 in top-level template code
<< {% extends "page.html" %}
{% set pkg = c.pkg_dict or pkg_dict %}
{% block breadcrumb_content_selected %} class="active"{% endblock %}
>> {% set pkg = c.pkg_dict or pkg_dict %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/page.html:1 in top-level template code
<< {% extends "base.html" %}
{%- block page -%}
>> {% extends "base.html" %}
Module /usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/templates/base.html:1 in top-level template code
<< {% ckan_extends %}
{% block styles %}
>> {% ckan_extends %}
Module /usr/lib/ckan/default/src/ckanext-pages/ckanext/pages/theme/templates_main/base.html:1 in top-level template code
<< {% ckan_extends %}
{% block links %}
>> {% ckan_extends %}
Module /usr/lib/ckan/default/lib/python2.7/site-packages/ckanext/geoview/templates/base.html:1 in top-level template code
<< {% ckan_extends %}
{% block styles %}
>> {% ckan_extends %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/base.html:103 in top-level template code
<< {% endblock %}
#}
{%- block page %}{% endblock -%}
{#
>> {%- block page %}{% endblock -%}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/page.html:19 in block "page"
<< {# The content block allows you to replace the content of the page if needed #}
{%- block content %}
{% block maintag %}<div role="main">{% endblock %}
<div id="content" class="container">
>> {%- block content %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/page.html:22 in block "content"
<< {% block maintag %}<div role="main">{% endblock %}
<div id="content" class="container">
{% block main_content %}
{% block flash %}
<div class="flash-messages">
>> {% block main_content %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/page.html:54 in block "main_content"
<< rendering of the main content columns of the page.
#}
{% block pre_primary %}
{% endblock %}
>> {% block pre_primary %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/package/resource_read.html:22 in block "pre_primary"
<< {% block pre_primary %}
{% block resource %}
<section class="module module-resource">
{% block resource_inner %}
>> {% block resource %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/package/resource_read.html:24 in block "resource"
<< {% block resource %}
<section class="module module-resource">
{% block resource_inner %}
<div class="module-content">
<div class="actions">
>> {% block resource_inner %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/package/resource_read.html:76 in block "resource_inner"
<< {% endblock %}
</div>
{% block data_preview %}
{% block resource_view %}
{% block resource_view_nav %}
>> {% block data_preview %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/package/resource_read.html:77 in block "data_preview"
<< </div>
{% block data_preview %}
{% block resource_view %}
{% block resource_view_nav %}
{% set resource_preview = h.resource_preview(c.resource, c.package) %}
>> {% block resource_view %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/package/resource_read.html:91 in block "resource_view"
<< {% endblock %}
<div class="module-content">
{% block resource_view_content %}
<div class="resource-view">
{% set resource_preview = h.resource_preview(c.resource, c.package) %}
>> {% block resource_view_content %}
Module /usr/lib/ckan/default/src/ckan/ckan/templates/package/resource_read.html:101 in block "resource_view_content"
<< {% for resource_view in resource_views %}
{% if resource_view == current_resource_view %}
{% snippet 'package/snippets/resource_view.html',
resource_view=resource_view,
resource=c.resource,
>> {% snippet 'package/snippets/resource_view.html',
Module ckan.lib.jinja_extensions:255 in _call
<< def _call(cls, args, kwargs):
assert len(args) == 1
return base.render_snippet(args[0], **kwargs)
class UrlForStaticExtension(BaseExtension):
>> return base.render_snippet(args[0], **kwargs)
Module ckan.lib.base:79 in render_snippet
<< cache_force = kw.pop('cache_force', None)
output = render(template_name, extra_vars=kw, cache_force=cache_force,
renderer='snippet')
output = '\n<!-- Snippet %s start -->\n%s\n<!-- Snippet %s end -->\n' % (
template_name, output, template_name)
>> renderer='snippet')
Module ckan.lib.base:216 in render
<< try:
return cached_template(template_name, render_template,
loader_class=loader_class)
except ckan.exceptions.CkanUrlException, e:
raise ckan.exceptions.CkanUrlException(
>> loader_class=loader_class)
Module pylons.templating:249 in cached_template
<< return content
else:
return render_func()
>> return render_func()
Module ckan.lib.base:154 in render_template
<< del globs['config']
# TODO should we raise error if genshi filters??
return render_jinja2(template_name, globs)
# Genshi templates
>> return render_jinja2(template_name, globs)
Module ckan.lib.base:104 in render_jinja2
<< env = config['pylons.app_globals'].jinja_env
template = env.get_template(template_name)
return template.render(**extra_vars)
>> return template.render(**extra_vars)
Module jinja2.environment:894 in render
<< except Exception:
exc_info = sys.exc_info()
return self.environment.handle_exception(exc_info, True)
def stream(self, *args, **kwargs):
>> return self.environment.handle_exception(exc_info, True)
Module /usr/lib/ckan/default/src/ckanext-pdfview/ckanext/pdfview/theme/templates/package/snippets/resource_view.html:15 in top-level template code
<< <div class="m-top ckanext-datapreview">
{% if not to_preview and h.resource_view_is_filterable(resource_view) %}
{% snippet 'package/snippets/resource_view_filters.html', resource=resource %}
{% endif %}
{% if not h.resource_view_is_iframed(resource_view) %}
>> {% snippet 'package/snippets/resource_view_filters.html', resource=resource %}
Module ckan.lib.jinja_extensions:255 in _call
<< def _call(cls, args, kwargs):
assert len(args) == 1
return base.render_snippet(args[0], **kwargs)
class UrlForStaticExtension(BaseExtension):
>> return base.render_snippet(args[0], **kwargs)
Module ckan.lib.base:79 in render_snippet
<< cache_force = kw.pop('cache_force', None)
output = render(template_name, extra_vars=kw, cache_force=cache_force,
renderer='snippet')
output = '\n<!-- Snippet %s start -->\n%s\n<!-- Snippet %s end -->\n' % (
template_name, output, template_name)
>> renderer='snippet')
Module ckan.lib.base:216 in render
<< try:
return cached_template(template_name, render_template,
loader_class=loader_class)
except ckan.exceptions.CkanUrlException, e:
raise ckan.exceptions.CkanUrlException(
>> loader_class=loader_class)
Module pylons.templating:249 in cached_template
<< return content
else:
return render_func()
>> return render_func()
Module ckan.lib.base:154 in render_template
<< del globs['config']
# TODO should we raise error if genshi filters??
return render_jinja2(template_name, globs)
# Genshi templates
>> return render_jinja2(template_name, globs)
Module ckan.lib.base:104 in render_jinja2
<< env = config['pylons.app_globals'].jinja_env
template = env.get_template(template_name)
return template.render(**extra_vars)
>> return template.render(**extra_vars)
Module jinja2.environment:894 in render
<< except Exception:
exc_info = sys.exc_info()
return self.environment.handle_exception(exc_info, True)
def stream(self, *args, **kwargs):
>> return self.environment.handle_exception(exc_info, True)
Module /usr/lib/ckan/default/src/ckan/ckan/templates/package/snippets/resource_view_filters.html:5 in top-level template code
<< data-module="resource-view-filters"
data-module-resource-id="{{ resource['id'] }}"
data-module-fields="{{ h.dump_json(h.resource_view_get_fields(resource)) }}"
>
</div>
>> data-module-fields="{{ h.dump_json(h.resource_view_get_fields(resource)) }}"
Module ckan.lib.helpers:1862 in resource_view_get_fields
<< 'limit': 0
}
result = logic.get_action('datastore_search')({}, data)
fields = [field['id'] for field in result.get('fields', [])]
>> result = logic.get_action('datastore_search')({}, data)
Module ckan.logic:416 in wrapped
<< # check_access(action_name, context, data_dict=None)
result = _action(context, data_dict, **kw)
try:
audit = context['__auth_audit'][-1]
>> result = _action(context, data_dict, **kw)
Module ckan.logic:532 in wrapper
<< @functools.wraps(action)
def wrapper(context, data_dict):
return action(context, data_dict)
wrapper.side_effect_free = True
>> return action(context, data_dict)
Module ckanext.datastore.logic.action:445 in datastore_search
<< if not results.rowcount > 0:
raise p.toolkit.ObjectNotFound(p.toolkit._(
'Resource "{0}" was not found.'.format(res_id)
))
>> 'Resource "{0}" was not found.'.format(res_id)
NotFound: Resource "707e544e-3ab9-44c6-b304-ab8e972bd2f0" was not found.
CGI Variables
CKAN_CURRENT_URL
'/dataset/fish-com/resource/707e544e-3ab9-44c6-b304-ab8e972bd2f0'
CKAN_LANG
'ca'
CONTENT_TYPE
'; charset=utf-8'
CONTEXT_DOCUMENT_ROOT
'/var/www'
DOCUMENT_ROOT
'/var/www'
GATEWAY_INTERFACE
'CGI/1.1'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_ENCODING
'gzip,deflate,br'
HTTP_CONNECTION
'close'
HTTP_FROM
'googlebot(at)googlebot.com'
HTTP_HOST
'lwbin-datahub.ad.umanitoba.ca'
HTTP_USER_AGENT
'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
HTTP_X_FORWARDED_FOR
'66.249.75.158'
PATH_INFO
'/dataset/fish-com/resource/707e544e-3ab9-44c6-b304-ab8e972bd2f0'
PATH_TRANSLATED
'/etc/ckan/default/apache.wsgi/ca/dataset/fish-com/resource/707e544e-3ab9-44c6-b304-ab8e972bd2f0'
REMOTE_ADDR
'127.0.0.1'
REMOTE_PORT
'54486'
REQUEST_METHOD
'GET'
REQUEST_SCHEME
'http'
REQUEST_URI
'/ca/dataset/fish-com/resource/707e544e-3ab9-44c6-b304-ab8e972bd2f0'
SCRIPT_FILENAME
'/etc/ckan/default/apache.wsgi'
SERVER_ADDR
'127.0.0.1'
SERVER_ADMIN
'[no address given]'
SERVER_NAME
'lwbin-datahub.ad.umanitoba.ca'
SERVER_PORT
'80'
SERVER_PROTOCOL
'HTTP/1.0'
SERVER_SIGNATURE
'<address>Apache/2.4.7 (Ubuntu) Server at lwbin-datahub.ad.umanitoba.ca Port 80</address>\n'
SERVER_SOFTWARE
'Apache/2.4.7 (Ubuntu)'
WSGI Variables
__no_cache__
True
application
<fanstatic.publisher.Delegator object at 0x7f3d15851590>
beaker.cache
<beaker.cache.CacheManager object at 0x7f3d15851b10>
beaker.get_session
<bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x7f3d15851050>>
beaker.session
{'_accessed_time': 1477493719.835666, '_creation_time': 1477493719.835666}
fanstatic.needed
<fanstatic.core.NeededResources object at 0x7f3d1320fd10>
mod_wsgi.application_group
'ckan.dev|'
mod_wsgi.callable_object
'application'
mod_wsgi.enable_sendfile
'0'
mod_wsgi.handler_script
''
mod_wsgi.input_chunked
'0'
mod_wsgi.listener_host
''
mod_wsgi.listener_port
'8888'
mod_wsgi.process_group
'ckan_default'
mod_wsgi.queue_start
'1477493719690937'
mod_wsgi.request_handler
'wsgi-script'
mod_wsgi.script_reloading
'1'
mod_wsgi.version
(3, 4)
paste.cookies
(<SimpleCookie: >, '')
paste.registry
<paste.registry.Registry object at 0x7f3d1320fe50>
paste.throw_errors
True
pylons.action_method
<bound method PackageController.resource_read of <ckan.controllers.package.PackageController object at 0x7f3d1320f290>>
pylons.controller
<ckan.controllers.package.PackageController object at 0x7f3d1320f290>
pylons.environ_config
{'session': 'beaker.session', 'cache': 'beaker.cache'}
pylons.pylons
<pylons.util.PylonsContext object at 0x7f3d1320fe90>
pylons.routes_dict
{'action': u'resource_read', 'controller': u'package', 'id': u'fish-com', 'resource_id': u'707e544e-3ab9-44c6-b304-ab8e972bd2f0'}
repoze.who.api
<repoze.who.api.API object at 0x7f3d1320f710>
repoze.who.logger
<logging.Logger object at 0x7f3d158441d0>
repoze.who.plugins
{'ckan.lib.authenticator:UsernamePasswordAuthenticator': <ckan.lib.authenticator.UsernamePasswordAuthenticator object at 0x7f3d15865fd0>, 'friendlyform': <FriendlyFormPlugin 139900330860048>, 'auth_tkt': <CkanAuthTktCookiePlugin 139900330859984>}
routes.cached_hostinfo
{'host': 'lwbin-datahub.ad.umanitoba.ca', 'protocol': 'http'}
routes.route
<routes.route.Route object at 0x7f3d16551d90>
routes.url
<routes.util.URLGenerator object at 0x7f3d1320f210>
webob._parsed_query_vars
(GET([]), '')
webob.adhoc_attrs
{'response': <Response at 0x7f3d1320fe10 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 0x7f3d1329e558>
wsgiorg.routing_args
(<routes.util.URLGenerator object at 0x7f3d1320f210>, {'action': u'resource_read', 'controller': u'package', 'id': u'fish-com', 'resource_id': u'707e544e-3ab9-44c6-b304-ab8e972bd2f0'})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161026/3e3248d0/attachment-0002.html>
More information about the ckan-dev
mailing list