[ckan-dev] ckan-qa error in ckan 2.2
Nigel Babu
nigel.babu at okfn.org
Thu May 1 05:27:19 UTC 2014
Glad you have it working!
Nigel Babu
Developer, Open Knowledge
On 30 April 2014 23:18, Isabel Ruiz <isaruizmellado at gmail.com> wrote:
> Hi,
>
> Finally it works!
>
> The steps I have followed:
>
> 1- I have opened ckanext-archiver/ckanext/archiver/tasks.py file
> 2- replaced return json.dumps(headers) with return json.dumps(dict(headers
> )),
> 3- I have killed supervisord process.
> 4- I have started supervisord process.
> 5- I have executed paster qa update
>
> Which was my problem/error?
>
> Supervisord was hung up, if I restared it, server showed me this error
> "supervisord cannot run, because another process is listening same port".
> If I stop supervisord, supervisord didnt die.
> So I had to kill supervisord and started again and now "qa update" process
> works.
>
> Thanks a lot for your help!
>
> Isa.
>
>
>
>
>
> On Wed, Apr 30, 2014 at 7:20 AM, Nigel Babu <nigel.babu at okfn.org> wrote:
>
>> Hi Isabella,
>>
>> The command by itself should work. I've just checked locally for a random
>> request. Are you sure you fixed it in the right place. Can you paste the
>> full traceback to pastebin.com and send us a link?
>>
>> Nigel Babu
>> Developer, Open Knowledge
>>
>>
>> On 29 April 2014 15:06, Isabel Ruiz <isaruizmellado at gmail.com> wrote:
>>
>>> Hi !
>>>
>>> I have followed https://github.com/kennethreitz/requests/issues/1380
>>> and
>>> https://github.com/ckan/ckanext-archiver/blob/master/ckanext/archiver/tasks.py#L365links,
>>>
>>> I mean:
>>> 1- I have opened ckanext-archiver/ckanext/archiver/tasks.py file,
>>> 2- replaced return json.dumps(headers) with return json.dumps(dict(
>>> headers)),
>>> 3- I have restarted ckan and
>>> 4- executed paster qa update command.
>>>
>>> It returns same error: Unknown error: CaseInsensitiveDict({'content-length':
>>> '20', 'content-encoding': 'gzip', 'accept-ranges': 'bytes', 'vary':
>>> 'Accept-Encoding', 'server': 'Apache/2.2.22 (Ubuntu), cacheinter at CEMI',
>>> 'last-modified': 'Wed, 02 Apr 2014 10:17:03 GMT', 'etag':
>>> '"17000000001ffc-92371-4f60c95f8e5c0"', 'date': 'Mon, 07 Apr 2014
>>> 22:00:49 GMT', 'content-type': 'text/csv'}) is not JSON serializable
>>>
>>> Any suggestions about this error ?
>>>
>>> Thanks a lot!
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Apr 8, 2014 at 11:00 AM, Ross Jones <ross at servercode.co.uk>wrote:
>>>
>>>> Actually, my mistake. The problem is in the archiver (the two
>>>> extensions are dependant) at
>>>> https://github.com/ckan/ckanext-archiver/blob/master/ckanext/archiver/tasks.py#L365
>>>>
>>>> Although headers is declared as {} the call at
>>>> https://github.com/ckan/ckanext-archiver/blob/master/ckanext/archiver/tasks.py#L339 will
>>>> be on the path to the problem.
>>>>
>>>> Ross
>>>>
>>>>
>>>> On 8 Apr 2014, at 09:50, Ross Jones <ross at servercode.co.uk> wrote:
>>>>
>>>> I think it is the problem described at
>>>> https://github.com/kennethreitz/requests/issues/1380, perhaps it is
>>>> running a slightly different version of requests than previously?
>>>>
>>>> Maybe a bug report mentioning that QA should use
>>>> json.dumps(dict(r.headers)) rather than json.dumps(r.headers) ? Or, better
>>>> yet a pull request :)
>>>>
>>>> Ross
>>>>
>>>>
>>>> On 8 Apr 2014, at 09:30, Isabel Ruiz <isaruizmellado at gmail.com> wrote:
>>>>
>>>> Hi!
>>>>
>>>> We have installed ckan-qa in ckan 2.1a and it worked fine.
>>>> We have celery 2.4.2
>>>>
>>>> Now, we have upgraded to ckan 2.2.
>>>>
>>>> We have executed paster qa update --config=/etc/ckan/default/malaga.ini
>>>>
>>>> This instruction starts and it seems working fine.
>>>>
>>>> But if we go to resource page details QA returns this:
>>>>
>>>> Puntuación: Unknown error: CaseInsensitiveDict({'content-length':
>>>> '20', 'content-encoding': 'gzip', 'accept-ranges': 'bytes', 'vary':
>>>> 'Accept-Encoding', 'server': 'Apache/2.2.22 (Ubuntu), cacheinter at CEMI',
>>>> 'last-modified': 'Wed, 02 Apr 2014 10:17:03 GMT', 'etag':
>>>> '"17000000001ffc-92371-4f60c95f8e5c0"', 'date': 'Mon, 07 Apr 2014 22:00:49
>>>> GMT', 'content-type': 'text/csv'}) is not JSON serializable
>>>>
>>>> What can be worng?
>>>>
>>>> Is ckan-qa and ckan 2.2 compatibles?
>>>>
>>>>
>>>>
>>>> --
>>>> Isabel M. Ruiz Mellado
>>>> http://about.me/isabelruiz
>>>> _______________________________________________
>>>> ckan-dev mailing list
>>>> ckan-dev at lists.okfn.org
>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>>
>>>>
>>>> _______________________________________________
>>>> ckan-dev mailing list
>>>> ckan-dev at lists.okfn.org
>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> ckan-dev mailing list
>>>> ckan-dev at lists.okfn.org
>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Isabel M. Ruiz Mellado
>>> http://about.me/isabelruiz
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>
>>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
>
> --
> Isabel M. Ruiz Mellado
> http://about.me/isabelruiz
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140501/e63c9aaf/attachment-0002.html>
More information about the ckan-dev
mailing list