[ckan-discuss] ERROR creating test data
Roxana Chavarria
roxana.stallman at gmail.com
Wed Feb 6 19:00:38 GMT 2013
I got this error when I'm triying create test data
(ckanenv)localhost:ckan blackmamba$ paster --plugin=ckan create-test-data
gov
2013-02-06 12:58:33,435 INFO [ckan.lib.maintain] Function
subnav_named_route() in module ckan.lib.helpers has been deprecated.
h.subnav_named_route is deprecated please use h.nav_named_link
Running setup_config() from ckan.websetup
2013-02-06 12:58:34,304 INFO [ckan.model] Database tables created
2013-02-06 12:58:34,305 INFO [ckan.websetup] Creating tables: SUCCESS
Creating gov test data
2013-02-06 12:58:35,092 ERROR [ckan.lib.search.index] HTTP code=400,
reason=ERROR:unknown field 'res_description'
Traceback (most recent call last):
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/index.py", line
236, in index_package
conn.add_many([pkg_dict], _commit=commit)
File "build/bdist.macosx-10.8-intel/egg/solr/core.py", line 698, in
add_many
return Solr.add_many(self, docs, commit=_commit)
File "build/bdist.macosx-10.8-intel/egg/solr/core.py", line 326, in
wrapper
return self._update(content, query)
File "build/bdist.macosx-10.8-intel/egg/solr/core.py", line 550, in
_update
rsp = self._post(selector, request, self.xmlheaders)
File "build/bdist.macosx-10.8-intel/egg/solr/core.py", line 639, in _post
return check_response_status(self.conn.getresponse())
File "build/bdist.macosx-10.8-intel/egg/solr/core.py", line 1097, in
check_response_status
raise ex
SolrException: HTTP code=400, reason=ERROR:unknown field 'res_description'
2013-02-06 12:58:35,094 ERROR [ckan.lib.search] HTTP code=400,
reason=ERROR:unknown field 'res_description'
Traceback (most recent call last):
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/__init__.py",
line 99, in dispatch_by_operation
index.insert_dict(entity)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/index.py", line
72, in insert_dict
return self.update_dict(data)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/index.py", line
97, in update_dict
self.index_package(pkg_dict, defer_commit)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/index.py", line
239, in index_package
raise SearchIndexError(e)
SearchIndexError: HTTP code=400, reason=ERROR:unknown field
'res_description'
2013-02-06 12:58:35,094 ERROR [ckan.model.modification] HTTP code=400,
reason=ERROR:unknown field 'res_description'
Traceback (most recent call last):
File "/Users/blackmamba/ckanenv/src/ckan/ckan/model/modification.py",
line 68, in notify
observer.notify(entity, operation)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/__init__.py",
line 126, in notify
operation
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/__init__.py",
line 99, in dispatch_by_operation
index.insert_dict(entity)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/index.py", line
72, in insert_dict
return self.update_dict(data)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/index.py", line
97, in update_dict
self.index_package(pkg_dict, defer_commit)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/index.py", line
239, in index_package
raise SearchIndexError(e)
SearchIndexError: HTTP code=400, reason=ERROR:unknown field
'res_description'
Traceback (most recent call last):
File "/Users/blackmamba/ckanenv/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
File
"/Users/blackmamba/ckanenv/lib/python2.7/site-packages/PasteScript-1.7.3-py2.7.egg/paste/script/command.py",
line 84, in run
invoke(command, command_name, options, args[1:])
File
"/Users/blackmamba/ckanenv/lib/python2.7/site-packages/PasteScript-1.7.3-py2.7.egg/paste/script/command.py",
line 123, in invoke
exit_code = runner.run(args)
File
"/Users/blackmamba/ckanenv/lib/python2.7/site-packages/PasteScript-1.7.3-py2.7.egg/paste/script/command.py",
line 218, in run
result = self.command()
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/cli.py", line 1254, in
command
CreateTestData.create_gov_test_data()
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/create_test_data.py",
line 34, in create_gov_test_data
cls.create_arbitrary(gov_items, extra_user_names=extra_users)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/create_test_data.py",
line 249, in create_arbitrary
model.repo.commit_and_remove()
File
"/Users/blackmamba/ckanenv/lib/python2.7/site-packages/vdm-0.10-py2.7.egg/vdm/sqlalchemy/tools.py",
line 112, in commit_and_remove
self.commit()
File
"/Users/blackmamba/ckanenv/lib/python2.7/site-packages/vdm-0.10-py2.7.egg/vdm/sqlalchemy/tools.py",
line 102, in commit
self.session.commit()
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/orm/scoping.py", line
114, in do
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/orm/session.py", line
703, in commit
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/orm/session.py", line
361, in commit
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/orm/session.py", line
329, in _prepare_impl
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/event.py", line 377,
in __call__
File "/Users/blackmamba/ckanenv/src/ckan/ckan/model/extension.py", line
103, in before_commit
methodcaller('before_commit', session)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/model/extension.py", line
38, in notify_observers
func(observer)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/model/modification.py",
line 37, in before_commit
self.notify(obj, domain_object.DomainObjectOperation.new)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/model/modification.py",
line 68, in notify
observer.notify(entity, operation)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/__init__.py",
line 126, in notify
operation
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/__init__.py",
line 99, in dispatch_by_operation
index.insert_dict(entity)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/index.py", line
72, in insert_dict
return self.update_dict(data)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/index.py", line
97, in update_dict
self.index_package(pkg_dict, defer_commit)
File "/Users/blackmamba/ckanenv/src/ckan/ckan/lib/search/index.py", line
239, in index_package
raise SearchIndexError(e)
ckan.lib.search.common.SearchIndexError: HTTP code=400,
reason=ERROR:unknown field 'res_description'
Roxana Chavarria Cruz
I'm gonna Kill Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20130206/8e89e448/attachment.htm>
More information about the ckan-discuss
mailing list