[ECODP-dev] ODP-226

Darwin Peltan darwin.peltan at okfn.org
Thu Jan 16 20:41:07 UTC 2014


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
<http://twitter.com/darwin>*

*The Open Knowledge Foundation <http://okfn.org/>*

*Empowering through Open Knowledge*

*http://okfn.org/ <http://okfn.org/>  |  @okfn <http://twitter.com/OKFN>  |
 OKF on Facebook <https://www.facebook.com/OKFNetwork>  |  Blog
<http://blog.okfn.org/>  |  Newsletter <http://okfn.org/about/newsletter>*

*CKAN | http://ckan.org <http://ckan.org/> | @ckanproject
<http://twitter.com/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
>> <http://twitter.com/darwin>*
>>
>> *The Open Knowledge Foundation <http://okfn.org/>*
>>
>> *Empowering through Open Knowledge*
>>
>> *http://okfn.org/ <http://okfn.org/>  |  @okfn <http://twitter.com/OKFN>
>>  |  OKF on Facebook <https://www.facebook.com/OKFNetwork>  |  Blog
>> <http://blog.okfn.org/>  |  Newsletter <http://okfn.org/about/newsletter>*
>>
>> *CKAN | http://ckan.org <http://ckan.org/> | @ckanproject
>> <http://twitter.com/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
>>>> <http://twitter.com/darwin>*
>>>>
>>>> *The Open Knowledge Foundation <http://okfn.org/>*
>>>>
>>>> *Empowering through Open Knowledge*
>>>>
>>>> *http://okfn.org/ <http://okfn.org/>  |  @okfn
>>>> <http://twitter.com/OKFN>  |  OKF on Facebook
>>>> <https://www.facebook.com/OKFNetwork>  |  Blog <http://blog.okfn.org/>  |
>>>>  Newsletter <http://okfn.org/about/newsletter>*
>>>>
>>>> *CKAN | http://ckan.org <http://ckan.org/> | @ckanproject
>>>> <http://twitter.com/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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20140116/8f30fed1/attachment-0001.html>


More information about the ecodp-dev mailing list