Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Process completed but unable to post to result_url #82

Open
tanmatt opened this issue Sep 8, 2015 · 8 comments
Open

Error: Process completed but unable to post to result_url #82

tanmatt opened this issue Sep 8, 2015 · 8 comments

Comments

@tanmatt
Copy link

tanmatt commented Sep 8, 2015

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?

@florianm
Copy link

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)?

@gustavomwk
Copy link

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

@trendspotter
Copy link

trendspotter commented Nov 30, 2017

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
Copy link

trendspotter commented Nov 30, 2017

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 - ckan/ckan-service-provider#36

@iamarnavgarg
Copy link

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

@trendspotter
Copy link

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 ckan/ckan-service-provider#44 works like a charm.

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

@ansh1221
Copy link

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

@maxclac
Copy link

maxclac commented Jul 27, 2021

Anything new on this topic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants