[ECODP-dev] creating correct empty ckan impossible

Bert Van Nuffelen bert.van.nuffelen at tenforce.com
Thu Jun 20 09:11:19 UTC 2013


Hi John,

you have to investigate on the internal test server 192.168.33.87.

Bert

2013/6/20 John Glover <john.glover at okfn.org>:
> Hi Dimitrios,
>
> I believe that was necessary as you were installing it into a database where
> it had already been previously installed (and this is not currently
> supported). I do not think that you had the problem where the command was
> trying to find the wrong config file, but correct me if I'm wrong.
>
> I am currently unable to connect to the acceptance server to investigate
> this as the server (at least the ssh server) seems to be down.
>
> Regards,
> John
>
>
> On 20 June 2013 10:56, Dimitrios Mexis <dimitrios.mexis at tenforce.com> wrote:
>>
>> Hi John,
>>
>> No not really "without problems"
>> I had to delete a couple of tables.
>> There was a middleman action.
>>
>> Kind regards
>>
>>
>>
>> On Thu, Jun 20, 2013 at 10:54 AM, John Glover <john.glover at okfn.org>
>> wrote:
>>>
>>> Hi Bert,
>>>
>>> Is this on the acceptance server at the moment? I will need to have a
>>> look, it seems that your searchcloud-install-tables command is still
>>> attempting to read the wrong config file which is quite unusual. Nothing
>>> should have changed in this command, and Dimitrios was able to run it
>>> without problems a few days ago.
>>>
>>> Regards,
>>> John
>>>
>>>
>>> On 20 June 2013 01:07, Bert Van Nuffelen <bert.van.nuffelen at tenforce.com>
>>> wrote:
>>>>
>>>> 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
>>>>
>>>> _______________________________________________
>>>> Ecodp-dev mailing list
>>>> Ecodp-dev at lists.okfn.org
>>>> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>>>>
>>>
>>>
>>> _______________________________________________
>>> Ecodp-dev mailing list
>>> Ecodp-dev at lists.okfn.org
>>> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>>>
>>
>>
>> _______________________________________________
>> Ecodp-dev mailing list
>> Ecodp-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>>
>
>
> _______________________________________________
> Ecodp-dev mailing list
> Ecodp-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>



-- 
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




More information about the ecodp-dev mailing list