Open ghost opened 3 years ago
Any idea, anyone?
Have you tried installing ndg-httpsclient?
pip install ndg-httpsclient
If it doesn't help, at least it could also help with debugging your SSL issues.
https://github.com/cedadev/ndg_httpsclient/#running-ndg_httpclient
Thank you for the suggestion! I will try this and let you know.
I am sorry but I would need more help here. How this tool works exactly?
Also, just noticed host='ckan.example.com' in your trace log:
requests.exceptions.SSLError: HTTPSConnectionPool(host='ckan.example.com', port=443): Max retries exceeded with url: /dataset/12baf1af-1b92-4b37-834c-660ee75e19e5/resource/9e577061-19a0-47e4-ba5b-e0a4b3da4063/download/file.xlsx (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))
Is your ckan.site_url
set correctly?
No, I just replaced my actual url with this, so that I don't reveal it.
Got the suggestion from https://stackoverflow.com/questions/33410577/python-requests-exceptions-sslerror-eof-occurred-in-violation-of-protocol.
It should help with SSL certificate issues, but like you said, you had SSL_VERIFY
set to False.
Anyway, its most likely an configuration issue on your end as Datapusher works with SSL and it will have to be a process of elimination.
First off, does the Datapusher work when you run CKAN without SSL?
G'luck!
Thanks! I would rather not turn off SSL unless I really have to, as it is a productive running CKAN instance.
I was thinking about using xloader instead, but it is not so straightforward.
Hey @maxclac, we were having this same issue building datapusher in a Docker container. After a lot of trial and error, we tried changing the base image from ubuntu:20.04
to debian:buster
and everything just started working.
I can only assume that there is some incompatibility in the ssl libraries provided by the operating system and the python libraries used by datapusher?
Anyway, might help you resolve the issue. Good luck!
Interesting! Thank you, I will have a look.
We've been through a few rounds of trying to get this working nicely... If you have the ability to use a pre-built docker image in your environment I heartily recommend https://hub.docker.com/r/keitaro/ckan-datapusher... worked nicely out of the box for me, can override some settings with environment vars etc
I see. It means that I can disable my current Datapusher, and use a container from this Docker image instead? Do I understand that right?
Hi! Just an update, I am still having this problem and would still appreciate help.
It is working when I set SSL_VERIFY = False
in /usr/lib/ckan/datapusher/src/datapusher/datapusher/jobs.py
. It would mean that the parameter ckan.datapusher.ssl_verify = False
in my config file is ignored.
Hi!
I am using CKAN 2.9.2 and I am currently having a problem with an Excel file in a dataset that I try to manually push to the Datastore.
I put the
SSL_VERIFY
to False in the config file but it did not help.What can I do?