[ckan-dev] Datastorer error: Can't find logic function: datastore_create

Adrià Mercader adria.mercader at okfn.org
Fri Oct 26 07:41:35 UTC 2012


Great to know!

Good luck,

Adrià



On 25 October 2012 12:31, Jose Luis Barrera
<jl.barrera.trancoso at gmail.com> wrote:
> Ok, I used the next command:
>
> pip install -e
> git+git://github.com/okfn/ckanext-datastorer.git@datastore-v1#egg=ckanext-datastorer
>
>
> I restart apache2, nginx and celeryd daemon and datastorer it's working!
>
>
> Thanks you!
>
>
>
> 2012/10/25 Jose Luis Barrera <jl.barrera.trancoso at gmail.com>
>>
>> Ok, thank yo for the response.
>>
>> How can I clone git tag repository? The command for install is:
>>
>> $ (pyenv) pip install -e
>> git+git://github.com/okfn/ckanext-datastorer.git#egg=ckanext-datastorer
>>
>> But this url is for master git repository. I think that I need to change
>> this url for the git tag datastore-v1?
>>
>> Thank you
>> Jose
>>
>> 2012/10/24 Adrià Mercader <amercadero at gmail.com>
>>>
>>> Sorry again, it's too early...
>>>
>>> If you are using CKAN version 1.7 you need to checkout the
>>> "datastore-v1" tag of the ckanext-datastorer repo. That's the version
>>> that work against the datastore version that CKAN 1.7 uses.
>>>
>>> I strongly suggest that if you are going to do long term wrok with the
>>> datastore consider upgrading to CKAN 1.8, which has a new Postgres
>>> based datastore which will be the one that will be further developed
>>> and maintained.
>>>
>>> http://docs.ckan.org/en/ckan-1.8/datastore.html
>>>
>>> Hope this helps,
>>>
>>> Adrià
>>>
>>> On 24 October 2012 08:55, Adrià Mercader <amercadero at gmail.com> wrote:
>>> > Hi again José (sorry for the previous empty email),
>>> >
>>> > If you are using CKAN version 1.7 you need to checkout the
>>> > "datastore-v1" tag of the ckanext-datastorer repo
>>> >
>>> > http://docs.ckan.org/en/ckan-1.7/datastore.html
>>> >
>>> > On 24 October 2012 08:51, Adrià Mercader <amercadero at gmail.com> wrote:
>>> >> Hi José,
>>> >>
>>> >>
>>> >>
>>> >> On 24 October 2012 08:49, Jose Luis Barrera
>>> >> <jl.barrera.trancoso at gmail.com> wrote:
>>> >>> The version of CKAN is 1.7, I'm install from package in Ubuntu 10.04
>>> >>> system.
>>> >>>
>>> >>> I haved installed ckanext-datastorer following the instrucctions in
>>> >>> github
>>> >>> project: https://github.com/okfn/ckanext-datastorer
>>> >>>
>>> >>> Thanks
>>> >>> Jose
>>> >>>
>>> >>> 2012/10/23 Rufus Pollock <rufus.pollock at okfn.org>
>>> >>>>
>>> >>>> What version of CKAN are you running and have you enabled the
>>> >>>> datastore plugin as per the install instructions:
>>> >>>>
>>> >>>> http://docs.ckan.org/en/latest/datastore.html
>>> >>>>
>>> >>>> Rufus
>>> >>>>
>>> >>>> On 23 October 2012 10:31, Jose Luis Barrera
>>> >>>> <jl.barrera.trancoso at gmail.com> wrote:
>>> >>>> > Hello, I'm installing datastorer plugin and celeryd show me the
>>> >>>> > next
>>> >>>> > error
>>> >>>> > when I upload a resource:
>>> >>>> >
>>> >>>> > Task datastorer.upload[5635827b-e9b4-4c6d-bf17-9dce1b2db279]
>>> >>>> > raised
>>> >>>> > exception: DatastorerException(u'Datastorer bad response code
>>> >>>> > (500) on
>>> >>>> > http://host/api/action/datastore_create. Response was <Response
>>> >>>> > [500]>',)
>>> >>>> > Traceback (most recent call last):
>>> >>>> >   File
>>> >>>> >
>>> >>>> >
>>> >>>> > "/var/lib/ckan/std/pyenv/lib/python2.6/site-packages/celery/execute/trace.py",
>>> >>>> > line 47, in trace
>>> >>>> >     return cls(states.SUCCESS, retval=fun(*args, **kwargs))
>>> >>>> >   File
>>> >>>> >
>>> >>>> >
>>> >>>> > "/var/lib/ckan/std/pyenv/lib/python2.6/site-packages/celery/app/task/__init__.py",
>>> >>>> > line 247, in __call__
>>> >>>> >     return self.run(*args, **kwargs)
>>> >>>> >   File
>>> >>>> >
>>> >>>> >
>>> >>>> > "/var/lib/ckan/std/pyenv/lib/python2.6/site-packages/celery/app/__init__.py",
>>> >>>> > line 175, in run
>>> >>>> >     return fun(*args, **kwargs)
>>> >>>> >   File
>>> >>>> >
>>> >>>> >
>>> >>>> > "/var/lib/ckan/std/pyenv/src/ckanext-datastorer/ckanext/datastorer/tasks.py",
>>> >>>> > line 85, in datastorer_upload
>>> >>>> >     return _datastorer_upload(context, data, logger)
>>> >>>> >   File
>>> >>>> >
>>> >>>> >
>>> >>>> > "/var/lib/ckan/std/pyenv/src/ckanext-datastorer/ckanext/datastorer/tasks.py",
>>> >>>> > line 172, in _datastorer_upload
>>> >>>> >     send_request(data)
>>> >>>> >   File
>>> >>>> >
>>> >>>> >
>>> >>>> > "/var/lib/ckan/std/pyenv/src/ckanext-datastorer/ckanext/datastorer/tasks.py",
>>> >>>> > line 158, in send_request
>>> >>>> >     check_response_and_retry(response,
>>> >>>> > datastore_create_request_url)
>>> >>>> >   File
>>> >>>> >
>>> >>>> >
>>> >>>> > "/var/lib/ckan/std/pyenv/src/ckanext-datastorer/ckanext/datastorer/tasks.py",
>>> >>>> > line 53, in check_response_and_retry
>>> >>>> >     (response.status_code, datastore_create_request_url,
>>> >>>> > response))
>>> >>>> > DatastorerException: Datastorer bad response code (500) on
>>> >>>> > http://host/api/action/datastore_create. Response was <Response
>>> >>>> > [500]>
>>> >>>> >
>>> >>>> > In the log of the ckan instance I can see:
>>> >>>> >
>>> >>>> > ERROR [ckan.controllers.api] Can't find logic function:
>>> >>>> > datastore_create
>>> >>>> >
>>> >>>> > Any ideas?
>>> >>>> >
>>> >>>> > Thanks in advance
>>> >>>> >
>>> >>>> > _______________________________________________
>>> >>>> > ckan-dev mailing list
>>> >>>> > ckan-dev at lists.okfn.org
>>> >>>> > http://lists.okfn.org/mailman/listinfo/ckan-dev
>>> >>>> >
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> --
>>> >>>> Co-Founder, Open Knowledge Foundation
>>> >>>> Promoting Open Knowledge in a Digital Age
>>> >>>> http://www.okfn.org/ - http://blog.okfn.org/
>>> >>>>
>>> >>>> _______________________________________________
>>> >>>> ckan-dev mailing list
>>> >>>> ckan-dev at lists.okfn.org
>>> >>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>> >>>
>>> >>>
>>> >>>
>>> >>> _______________________________________________
>>> >>> ckan-dev mailing list
>>> >>> ckan-dev at lists.okfn.org
>>> >>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>> >>>
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>
>>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe:
> http://lists.okfn.org/mailman/options/ckan-dev/adria.mercader%40okfn.org?password=kira2010&unsub=1&unsubconfirm=1
>




More information about the ckan-dev mailing list