[ECODP-dev] Reseting new database error with vocabularies

John Glover john.glover at okfn.org
Mon Sep 9 09:11:58 UTC 2013


Hi Dimitrios,

Yes, this command has changed from create- to update- with release 1 (as
these commands can now be used to update vocabularies as well as creating
them). This will be in the release notes / operations manual for this
release, for now the items that we have to add are in this document:
https://docs.google.com/a/okfn.org/document/d/1TGnYuj7GdRswxh0089EO_6Ms8yQRnWrj9OXAIxQJiPo/edit?usp=sharing

So, you should run:

paster --plugin=ckanext-ecportal ecportal update-all-vocabs -c <config>
paster --plugin=ckanext-ecportal ecportal update-publishers <file
(optional)> -c <config>

Regards,
John


On 9 September 2013 11:04, Dimitrios Mexis <dimitrios.mexis at tenforce.com>wrote:

>  The following in our test environment for release one, fail:
>
> paster --plugin=ckan db clean -c $CKAN_INI
> paster --plugin=ckan db init  -c $CKAN_INI
> paster --plugin=ckanext-ecportal ecportal create-all-vocabs -c $CKAN_INI
>
> please read the following also for your help....
>
> Thank you
>
>
> On 6/09/2013 10:33, Dimitrios Mexis wrote:
>
> Hello John/David,
>
> under directory */applications/ecodp/users/ecodp/ckan/bin/*
> there is the script :
> /applications/ecodp/users/ecodp/ckan/bin/*ckan_reset_db.sh*
>
> which uses the paster commands to reset database and import the necessary
> staff.
>
> We get an error. check please the last line. the db is unusable later.
> Keep in mind that we reset a database that is already upgraded.
>
> Initialising DB: SUCCESS
> Creating the search_query table ...
> done.
> Creating the search_popular_latest table ...
> done.
> Creating the search_popular_approved table ...
> done.
> Creating the search_query_date index ...
> done.
> 2013-09-06 10:25:50,739 INFO  [ckan.lib.search] Rebuilding search index...
> 2013-09-06 10:25:50,742 INFO  [ckan.lib.search] Rebuilding the whole
> index...
> 2013-09-06 10:25:50,825 INFO  [ckan.lib.search] Finished rebuilding search
> index.
> 2013-09-06 10:25:50,832 INFO  [ckan.lib.search] Commited pending changes
> on the search index
> *2013-09-06 10:25:51,853 ERROR [root] Command "create-all-vocabs" not
> recognized*
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130909/cfc26b94/attachment.html>


More information about the ecodp-dev mailing list