datapusher icon indicating copy to clipboard operation
datapusher copied to clipboard

Error: Process completed but unable to post to result_url

Open tanmatt opened this issue 9 years ago • 8 comments

When I click on "Upload to Datastore" button in "Datastore" tab of the manage resource page, datapusher starts updating datastore tables as expected. The process ends successfully with message like "Successfully pushed 10 entries to "f2abad8a-5f95-437f-9c86-77418d096fef"." Even I checked the entries in datastore table and everything is fine and as expected till now.

But when I refresh the same page (datastore tab), I see error message as "Error: Process completed but unable to post to result_url". What might be causing this error message to trigger even-though everything works fine?

tanmatt avatar Sep 08 '15 18:09 tanmatt

I'm just troubleshooting the same error. @tanmaythakur have you set up the datapusher as per docs? Other than Solr, which is accessed locally, CKAN will access the datapusher from the "outside", so your datapusher port (8800) needs to be open - if so, it will turn up here:

netstat -plant | grep 8800

Can you curl localhost:8800 and curl SITE_URL:8800 (where HOSTNAME is your CKAN's SITE_URL)?

florianm avatar Nov 16 '15 03:11 florianm

Hi, I am facing this problem, after I have set SSL. any ideas? I have done what's related above but none of the suggestions worked out. Thanks

gustavomwk avatar Oct 10 '17 14:10 gustavomwk

Affects me too.

I'm using a self-signed certificate and have SSL_VERIFY = False in my datapusher_settings.py, yet still receive the error described above.

Relevant line from my nginx error log suggests that some verification still occurs.

2017/11/30 23:22:19 [info] 21780#21780: *278 SSL_do_handshake() failed (SSL: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:SSL alert number 48) while SSL handshaking, client: 192.168.2.185, server: 0.0.0.0:5000

When I disable TLS on the CKAN port (5000), subsequent uploads are completed without errors.

There are no additional errors or exceptions in CKAN or DataPusher logs.

trendspotter avatar Nov 30 '17 22:11 trendspotter

After a brief investigation, it turned out that this particular request is originating from service provider's web.py. I'll reopen the issue in the correct repo - https://github.com/ckan/ckan-service-provider/issues/36

trendspotter avatar Nov 30 '17 23:11 trendspotter

Hi @trendspotter , were you able to run datapusher using HTTPs via nginx?

iamarnavgarg avatar May 10 '19 04:05 iamarnavgarg

We have eventually worked around the problem by adding the self-signed certificate to requests and certify cacert.pem trust stores.

But I have tried just now on vanilla CKAN + DataPusher and can confirm that the fix from https://github.com/ckan/ckan-service-provider/pull/44 works like a charm.

So yes, it's working and this issue can be closed.

trendspotter avatar May 14 '19 16:05 trendspotter

I am also unable run datapusher, My ckan is hosted using docker on http and accessed by nginx(deployed using docker on another node,different from ckan) on HTTPs. Thus @trendspotter , my certificates have been installed on nginx node. I access ckan via nginx on HTTPs. Thus whenever, I use datapusher I receive the following error:

image


And,

image

ansh1221 avatar May 15 '19 14:05 ansh1221

Anything new on this topic?

maxclac avatar Jul 27 '21 13:07 maxclac