[ckan-dev] Docker create_datastore
Jorge Jeferson
jeferson.si at gmail.com
Tue May 29 14:04:41 UTC 2018
Has anyone ever experienced this?
help!
*Rastreamento do erro:*
File "/usr/local/lib/python2.7/site-packages/apscheduler/scheduler.py",
line 512, in _run_job
retval = job.func(*job.args, **job.kwargs)
File "/usr/src/app/datapusher/jobs.py", line 222, in push_to_datastore
resource = get_resource(resource_id, ckan_url, api_key)
File "/usr/src/app/datapusher/jobs.py", line 178, in get_resource
'Authorization': api_key}
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line
94, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line
49, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py",
line 457, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py",
line 569, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/adapters.py",
line 407, in send
raise ConnectionError(err, request=request)
ConnectionError(ProtocolError('Connection aborted.', error(110,
'Connection timed out')),)
--
Jorge Jeferson
Salvador - BA | Tel.: (55) 71.9.8822.2585
About.me <http://about.me/jorgejeferson> | GitHub
<https://github.com/jorgejeferson> | Google+
<https://plus.google.com/+JorgeJeferson>
Facebook <https://www.facebook.com/jjcjesus> | Twitter
<http://twitter.com/jorgejeferson> | Linkedin
<http://www.linkedin.com/in/jefersonsi>
Em sex, 25 de mai de 2018 às 13:47, Jorge Jeferson <jeferson.si at gmail.com>
escreveu:
> Thanks, I was able to solve it, the first instruction of the 3
> documentation item is not necessary, since it was already executed during
> the ckan installation process.
>
>>
>> http://docs.ckan.org/en/2.8/maintaining/installing/install-from-docker-compose.html#datastore-and-datapusher
>
>
> I continued with the installation and finished, now I can not solve an
> error during the registration of a file, you are presenting this message,
> can you help me?
>
> [image: errodatastore.PNG]
>
> --
>
> Jorge Jeferson
> Salvador - BA | Tel.: (55) 71.9.8822.2585
> About.me <http://about.me/jorgejeferson> | GitHub
> <https://github.com/jorgejeferson> | Google+
> <https://plus.google.com/+JorgeJeferson>
> Facebook <https://www.facebook.com/jjcjesus> | Twitter
> <http://twitter.com/jorgejeferson> | Linkedin
> <http://www.linkedin.com/in/jefersonsi>
>
>
> Em sex, 25 de mai de 2018 às 10:32, Ryan Brooks <ryan at slatehorse.com>
> escreveu:
>
>> Hi Jorge,
>>
>> Which version of CKAN are you using? For 2.8 that file is in
>> /docker-entrypoint-initdb.d/00_create_datastore.sh (notably not .sql).
>>
>> However, because it’s baked into the container in
>> /docker-entrypoint-initdb.d, it should be run when the container is first
>> created.
>>
>> So the easy answer might be: skip over that and carry on.
>>
>> Cheers,
>>
>> Ryan
>>
>> Further reading:
>>
>> - https://docs.docker.com/samples/library/postgres/, details how to
>> extend the image, and how /docker-entrypoint-initdb.d works.
>> -
>> https://github.com/ckan/ckan/blob/2.8/contrib/docker/postgresql/Dockerfile#L15
>> shows where the file is added to the Docker image.
>> -
>> https://github.com/ckan/ckan/blob/2.8/contrib/docker/postgresql/docker-entrypoint-initdb.d/00_create_datastore.sh
>> is the file you’re after.
>> _______________________________________________
>> 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/20180529/e3f946ab/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: errodatastore.PNG
Type: image/png
Size: 50038 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20180529/e3f946ab/attachment-0002.png>
More information about the ckan-dev
mailing list