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

OSM import on Pleiades is broken #342

Closed
serviliusahala opened this issue May 16, 2018 · 6 comments
Closed

OSM import on Pleiades is broken #342

serviliusahala opened this issue May 16, 2018 · 6 comments
Assignees

Comments

@serviliusahala
Copy link

An error occurred while attempting to import an OSM node to create a location for a new place that, in turn, had been migrated from being a subordinate location on another place page.

https://pleiades.stoa.org/places/153179566/@@create-location-osm

We’re sorry, but there seems to be an error…
Here is the full error message:

Display traceback as text

Traceback (innermost last):

Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.PleiadesEntity.browser.osm, line 57, in call
Module newrelic.api.external_trace, line 124, in dynamic_wrapper
Module httplib2, line 1609, in request
Module httplib2, line 1404, in _request
Module newrelic.api.external_trace, line 124, in dynamic_wrapper
Module httplib2, line 1609, in request
Module httplib2, line 1351, in _request
Module httplib2, line 1272, in _conn_request
Module newrelic.api.external_trace, line 124, in dynamic_wrapper
Module httplib2, line 1059, in connect
SSLHandshakeError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

@paregorios
Copy link
Member

I saw this error on a different OSM import this morning. On the face of it, it looks like OpenStreetMap has allowed the SSL certificate on their API server to expire or it has been configured incorrectly. But perhaps it has to do with library upgrades, possibly required on our side:

hotosm/osm-tasking-manager2#976

@paregorios
Copy link
Member

Other users are now reporting this problem too.

@serviliusahala
Copy link
Author

serviliusahala commented Jun 7, 2018 via email

@paregorios
Copy link
Member

Yeah, it's clearly a universal problem. OSM import on Pleiades is broken.

@paregorios paregorios changed the title error during OSM import OSM import on Pleiades is broken Jun 7, 2018
@paregorios
Copy link
Member

paregorios commented Jun 8, 2018

Code inspection and some non-production testing indicates that the problem may be that we are building the OSM API request with http which then should redirect to https, but something is going wrong somewhere in that process. Perhaps simply by updating to use https and possibly also switching from using httplib2 to requests (which is already in the stack for more recent code that interacts with Flickr and Zotero), we can get around this problem.

@paregorios paregorios self-assigned this Jun 8, 2018
@paregorios
Copy link
Member

Fixed with @d2f561ab6cd837352732cbc9a6faef8c82f2b974 on Pleiades entity and version pin update in pleiades-buildout: c59e0a5c6963e229b5cb9a96e6d54a8843514ba5

Deploy to production.

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

No branches or pull requests

2 participants