[ckan-dev] Harvest error
Pippo pippo
ckanappoggio at gmail.com
Mon Feb 17 12:08:16 UTC 2014
I ended up reinstalling everything from scratch and I am not using the
harvest extension now but I still have the other CKAN instance and if I
enable the harvest plugin and I try to launch my CKAN instance I get this:
2014-02-17 12:58:52,656 DEBUG [ckanext.harvest.model] Harvest tables
defined in memory
2014-02-17 12:58:52,662 DEBUG [ckanext.harvest.model] Harvest tables
already exist
2014-02-17 12:58:52,886 DEBUG [ckanext.harvest.model] Creating harvest
source datasets for 1 existing sources
2014-02-17 12:58:58,267 ERROR [ckan.model.modification] "Action
'harvest_source_show_status' not found"
Traceback (most recent call last):
File "/home/ckan/ckan/lib/default/src/ckan/ckan/model/modification.py",
line 79, in notify
observer.notify(entity, operation)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/lib/search/__init__.py",
line 128, in notify
{'id': entity.id}),
File "/home/ckan/ckan/lib/default/src/ckan/ckan/logic/__init__.py", line
419, in wrapped
result = _action(context, data_dict, **kw)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/logic/action/get.py",
line 869, in package_show
item.after_show(context, package_dict)
File
"/home/ckan/ckan/lib/default/src/ckanext-harvest/ckanext/harvest/plugin.py",
line 89, in after_show
data_dict['status'] =
p.toolkit.get_action('harvest_source_show_status')(context, {'id': source.id
})
File "/home/ckan/ckan/lib/default/src/ckan/ckan/logic/__init__.py", line
349, in get_action
raise KeyError("Action '%s' not found" % action)
KeyError: "Action 'harvest_source_show_status' not found"
Traceback (most recent call last):
File "/usr/lib/ckan/default/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
line 104, in run
invoke(command, command_name, options, args[1:])
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
line 143, in invoke
exit_code = runner.run(args)
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
line 238, in run
result = self.command()
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/serve.py",
line 284, in command
relative_to=base, global_conf=vars)
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/serve.py",
line 321, in loadapp
**kw)
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 272, in loadobj
return context.create()
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 710, in create
return self.object_type.invoke(self)
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 146, in invoke
return fix_call(context.object, context.global_conf,
**context.local_conf)
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/deploy/util.py",
line 56, in fix_call
val = callable(*args, **kw)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/config/middleware.py",
line 57, in make_app
load_environment(conf, app_conf)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/config/environment.py",
line 232, in load_environment
p.load_all(config)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/plugins/core.py", line
134, in load_all
load(*plugins)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/plugins/core.py", line
167, in load
plugins_update()
File "/home/ckan/ckan/lib/default/src/ckan/ckan/plugins/core.py", line
116, in plugins_update
environment.update_config()
File "/home/ckan/ckan/lib/default/src/ckan/ckan/config/environment.py",
line 357, in update_config
plugin.configure(config)
File
"/home/ckan/ckan/lib/default/src/ckanext-harvest/ckanext/harvest/plugin.py",
line 191, in configure
model_setup()
File
"/home/ckan/ckan/lib/default/src/ckanext-harvest/ckanext/harvest/model/__init__.py",
line 81, in setup
migrate_v3_create_datasets(sources_to_migrate)
File
"/home/ckan/ckan/lib/default/src/ckanext-harvest/ckanext/harvest/model/__init__.py",
line 487, in migrate_v3_create_datasets
new_package_id = logic.get_action('package_create')(context,
package_dict)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/logic/__init__.py", line
419, in wrapped
result = _action(context, data_dict, **kw)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/logic/action/create.py",
line 193, in package_create
model.repo.commit()
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/vdm/sqlalchemy/tools.py",
line 102, in commit
self.session.commit()
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py",
line 114, in do
return getattr(self.registry(), name)(*args, **kwargs)
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py",
line 656, in commit
self.transaction.commit()
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py",
line 314, in commit
self._prepare_impl()
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py",
line 290, in _prepare_impl
self.session.dispatch.before_commit(self.session)
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/event.py",
line 291, in __call__
fn(*args, **kw)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/model/extension.py", line
112, in before_commit
methodcaller('before_commit', session)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/model/extension.py", line
92, in notify_observers
func(observer)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/model/modification.py",
line 47, in before_commit
self.notify(obj, domain_object.DomainObjectOperation.new)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/model/modification.py",
line 79, in notify
observer.notify(entity, operation)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/lib/search/__init__.py",
line 128, in notify
{'id': entity.id}),
File "/home/ckan/ckan/lib/default/src/ckan/ckan/logic/__init__.py", line
419, in wrapped
result = _action(context, data_dict, **kw)
File "/home/ckan/ckan/lib/default/src/ckan/ckan/logic/action/get.py",
line 869, in package_show
item.after_show(context, package_dict)
File
"/home/ckan/ckan/lib/default/src/ckanext-harvest/ckanext/harvest/plugin.py",
line 89, in after_show
data_dict['status'] =
p.toolkit.get_action('harvest_source_show_status')(context, {'id': source.id
})
File "/home/ckan/ckan/lib/default/src/ckan/ckan/logic/__init__.py", line
349, in get_action
raise KeyError("Action '%s' not found" % action)
KeyError: "Action 'harvest_source_show_status' not found"
Thank you anyway for your support!
- Fabrizio
On Mon, Feb 17, 2014 at 12:22 PM, Adrià Mercader <adria.mercader at okfn.org>wrote:
> Hi Fabrizio,
>
> That's strange, I can't see how both things are related. Did you use
> the Clear button to remove the job and the metadata?
>
> When do you get this exception, do you have a traceback?
>
> Have you tried running the following in the ckanext-harvest directory
> with your virtualenv activated:
>
> python setup.py develop
>
>
> Adrià
>
> On 14 February 2014 10:03, Pippo pippo <ckanappoggio at gmail.com> wrote:
> > Hi guys, I have configured CKAN properly on a Ubuntu 12.04 32bit virtual
> > machine and everything was working fine until I configured the harvest
> > plugin. I created a job but, since it was stuck with a particular dataset
> > trying to import its metadata, I deleted the job and all the imported
> > metadata.
> > Now if I lunch my CKAN instance with the harvest and ckan-harvester
> plugins
> > I get an error:
> >
> > "Action 'harvest_source_show_status' not found"
> >
> > If I disable the plugin everything works fine.
> >
> > Do you know what I am doing wrong?
> >
> > Cheers,
> >
> > - Fabrizio
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140217/18c9759b/attachment-0003.html>
More information about the ckan-dev
mailing list