[ECODP-dev] creating correct empty ckan impossible
Bert Van Nuffelen
bert.van.nuffelen at tenforce.com
Wed Jun 19 23:07:55 UTC 2013
Hi,
After installing the latest rpm.
we activate the ckan_reset_db.sh script
This return an empty db with an sysadmin user active.
however it does not contain the searchcloud tables.
Any attempt to create them end is a failure.
[root at rpm-tester bin]#
/applications/ecodp/users/ecodp/ckan/ecportal/bin/paster
--plugin=ckanext-ecportal ecportal searchcloud-install-tables –c
/applications/ecodp/users/ecodp/ckan/conf/ecportal.ini
Traceback (most recent call last):
File "/applications/ecodp/users/ecodp/ckan/ecportal/bin/paster",
line 9, in <module>
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File "/applications/ecodp/users/ecodp/ckan/ecportal/lib/python2.6/site-packages/paste/script/command.py",
line 104, in run
invoke(command, command_name, options, args[1:])
File "/applications/ecodp/users/ecodp/ckan/ecportal/lib/python2.6/site-packages/paste/script/command.py",
line 143, in invoke
exit_code = runner.run(args)
File "/applications/ecodp/users/ecodp/ckan/ecportal/lib/python2.6/site-packages/paste/script/command.py",
line 238, in run
result = self.command()
File "/applications/ecodp/users/ecodp/ckan/ecportal/src/ckanext-ecportal-release-v1.8.1/ckanext/ecportal/commands.py",
line 89, in command
self._load_config()
File "/applications/ecodp/users/ecodp/ckan/ecportal/src/ckan/ckan/lib/cli.py",
line 76, in _load_config
raise AssertionError('Config filename %r does not exist.' % self.filename)
AssertionError: Config filename
'/applications/ecodp/users/ecodp/ckan/bin/development.ini' does not
exist.
The next commands are those of the ckan_reset_db.sh script.
paster --plugin=ckan db clean -c $CKAN_INI
paster --plugin=ckan db init -c $CKAN_INI
paster --plugin=ckan search-index rebuild -c $CKAN_INI
# upload the publishers
#paster --plugin=ckanext-ecportal ecportal update-publishers
-c/applications/ecodp/users/ecodp/ckan/etc/ecodp/ecodp.ini
paster --plugin=ckanext-ecportal ecportal create-all-vocabs -c $CKAN_INI
# create a new user
# Run the paster command, referencing the .ini file
paster --plugin=ckan sysadmin add $1 -c $CKAN_INI
paster --plugin=ckan user $1 -c $CKAN_INI
--
Bert Van Nuffelen
Semantic Technologies Software Architect at TenForce
www.tenforce.be
Bert.Van.Nuffelen at tenforce.com
Office: +32 (0)16 31 48 60
Mobile:+32 479 06 24 26
skype: bert.van.nuffelen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecportal.ini
Type: application/octet-stream
Size: 9712 bytes
Desc: not available
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130620/99f42c56/attachment-0001.obj>
More information about the ecodp-dev
mailing list