[ECODP-dev] ODP-226
David Raznick
david.raznick at okfn.org
Mon Jan 20 11:40:43 UTC 2014
Hello Bert
Yes when using the paster command most config choices have to be
"valid" i.e it will check them as valid when the command is run.
This is useful to spot config errors early.
Sp for this case if the maintanence.json file is invalid paster will
refuse to work entirely.
Thanks
David
On 17 January 2014 08:14, Bert Van Nuffelen
<bert.van.nuffelen at tenforce.com> wrote:
> Hi Darwin,
>
> So if I understand your answer right, then the paster will create first a
> full "validated" CKAN environment in which all configuration settings of the
> ecportal.ini file are parsed and interpreted. E.g. for a setting
> <parameter>=<file>
> the paster will create a data structure which holds a the parameter value
> (the <file>) and will read also already the <file> in an associated
> structure.
>
> Consequently all parameters and all the content of these values have to be
> "valid" all the time.
>
> kind regards,
>
> Bert
>
>
>
> 2014/1/16 Darwin Peltan <darwin.peltan at okfn.org>
>>
>> Hi Bert,
>>
>> That paster command references the ecportal.ini config file which contains
>> the path to the maintenance message JSON. Therefore if that maintenance file
>> is not valid the command is likely to give an error. Note you can remove the
>> path if the message isn't being used.
>>
>> Darwin
>>
>> Darwin Peltan
>>
>> Project Manager | skype: darwinp | twitter: @darwin
>>
>> The Open Knowledge Foundation
>>
>> Empowering through Open Knowledge
>>
>> http://okfn.org/ | @okfn | OKF on Facebook | Blog | Newsletter
>>
>>
>> CKAN | http://ckan.org | @ckanproject | open source data management
>> platform
>>
>>
>> On 16 January 2014 15:57, Bert Van Nuffelen
>> <bert.van.nuffelen at tenforce.com> wrote:
>>>
>>> Hi Darwin,
>>>
>>> I understand you cannot advice on all aspects, neither do I.
>>> But can you answer my question: is the plugin import-csv-translations
>>> using the maintenance.json file?
>>>
>>> kind regards,
>>>
>>> Bert
>>>
>>>
>>>
>>> 2014/1/16 Darwin Peltan <darwin.peltan at okfn.org>
>>>>
>>>> Hi Bert,
>>>>
>>>> Without having a test case with the steps to recreate the issue it's
>>>> very difficult for us to advise on this. However from the error message it
>>>> looks like the most likely cause is an invalid JSON hence my suggestion to
>>>> check that the file is valid JSON and to try it yourselves with the exact
>>>> same JSON that they are using.
>>>>
>>>> Best,
>>>>
>>>> Darwin
>>>>
>>>>
>>>> Darwin Peltan
>>>>
>>>> Project Manager | skype: darwinp | twitter: @darwin
>>>>
>>>> The Open Knowledge Foundation
>>>>
>>>> Empowering through Open Knowledge
>>>>
>>>> http://okfn.org/ | @okfn | OKF on Facebook | Blog | Newsletter
>>>>
>>>>
>>>> CKAN | http://ckan.org | @ckanproject | open source data management
>>>> platform
>>>>
>>>>
>>>> On 15 January 2014 07:58, Bert Van Nuffelen
>>>> <bert.van.nuffelen at tenforce.com> wrote:
>>>>>
>>>>> Hi Darwin,
>>>>>
>>>>> hmm, I do not understand your remark.
>>>>> As far I know the import-csv-translations will use only the
>>>>> csv-translations file, therefore I find it strange it reports an error on
>>>>> "maintenance.json". The 2 are for an outside perspective unrelated.
>>>>> That is the origin of the question 1. Is there some dependency between
>>>>> them?
>>>>>
>>>>>
>>>>> kind regards,
>>>>>
>>>>> Bert
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 2014/1/14 Darwin Peltan <darwin.peltan at okfn.org>
>>>>>>
>>>>>> Hi Bert,
>>>>>>
>>>>>> Have you tried running the command with json files? It may be that one
>>>>>> of the json files isn't valid?
>>>>>>
>>>>>> Darwin
>>>>>>
>>>>>>
>>>>>> Darwin Peltan
>>>>>>
>>>>>> Project Manager | skype: darwinp | twitter: @darwin
>>>>>>
>>>>>> The Open Knowledge Foundation
>>>>>>
>>>>>> Empowering through Open Knowledge
>>>>>>
>>>>>> http://okfn.org/ | @okfn | OKF on Facebook | Blog | Newsletter
>>>>>>
>>>>>>
>>>>>> CKAN | http://ckan.org | @ckanproject | open source data management
>>>>>> platform
>>>>>>
>>>>>>
>>>>>> On 14 January 2014 09:28, Bert Van Nuffelen
>>>>>> <bert.van.nuffelen at tenforce.com> wrote:
>>>>>>>
>>>>>>> Dear David,
>>>>>>>
>>>>>>> Can you assist me on the following ticket?
>>>>>>>
>>>>>>> "
>>>>>>> This fails with the following erroneous output on production:
>>>>>>>
>>>>>>> source paster.sh
>>>>>>> (ecportal)bash-4.1$ paster --plugin=ckanext-ecportal ecportal
>>>>>>> import-csv-translations -c
>>>>>>> /applications/ecodp/users/ecodp/ckan/conf/ecportal.ini
>>>>>>> 2013-12-19 09:34:26,818 ERROR
>>>>>>> [/applications/ecodp/users/ecodp/ckan/ecportal/src/ckanext-ecportal-release-v1.8.1/ckanext/ecportal/plugin.pyc]
>>>>>>> Cannot load homepage content JSON file
>>>>>>> /applications/ecodp/users/ecodp/ckan/ecportal/src/ckanext-ecportal/data/maintenance.json
>>>>>>> 2013-12-19 09:34:26,818 ERROR
>>>>>>> [/applications/ecodp/users/ecodp/ckan/ecportal/src/ckanext-ecportal-release-v1.8.1/ckanext/ecportal/plugin.pyc]
>>>>>>> Expecting property name: line 4 column 5 (char 41)
>>>>>>> "
>>>>>>>
>>>>>>> I have run the above paster command myself on our test environment
>>>>>>> and it finishes successfully without a problem.
>>>>>>> But the PO gets the above message on production.
>>>>>>>
>>>>>>> Some questions:
>>>>>>> a) for import-csv-translations: does the module searches for the
>>>>>>> maintenance.json file?
>>>>>>> b) What is the best way to get more info on the situation over there?
>>>>>>>
>>>>>>> kind regards,
>>>>>>>
>>>>>>> Bert
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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
>>>>>>> https://lists.okfn.org/mailman/listinfo/ecodp-dev
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> ecodp-dev mailing list
>>>>>> ecodp-dev at lists.okfn.org
>>>>>> https://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
>>>>>
>>>>> _______________________________________________
>>>>> ecodp-dev mailing list
>>>>> ecodp-dev at lists.okfn.org
>>>>> https://lists.okfn.org/mailman/listinfo/ecodp-dev
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> ecodp-dev mailing list
>>>> ecodp-dev at lists.okfn.org
>>>> https://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
>>>
>>> _______________________________________________
>>> ecodp-dev mailing list
>>> ecodp-dev at lists.okfn.org
>>> https://lists.okfn.org/mailman/listinfo/ecodp-dev
>>>
>>
>>
>> _______________________________________________
>> ecodp-dev mailing list
>> ecodp-dev at lists.okfn.org
>> https://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
>
> _______________________________________________
> ecodp-dev mailing list
> ecodp-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ecodp-dev
>
More information about the ecodp-dev
mailing list