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

Check temporary data collection issues #348

Closed
1 task
jpmckinney opened this issue Apr 26, 2024 · 8 comments
Closed
1 task

Check temporary data collection issues #348

jpmckinney opened this issue Apr 26, 2024 · 8 comments
Assignees
Labels
bug Something isn't working operations Actions to be performed by administrators in the normal operation of the system
Milestone

Comments

@jpmckinney
Copy link
Member

jpmckinney commented Apr 26, 2024

e.g. after a week, in case there's a temporary IP ban or similar. These are currently frozen until issue is resolved.

  • https://contrataciones.gov.py/datos/api/v3/doc/oauth/token DNSLookupError from server, but not locally.
    • Note: In Sentry, can filter these out with !title:"DNSLookupError: DNS lookup failed: no results for hostname lookup: contrataciones.gov.py." or !title:"Gave up retrying <POST https://contrataciones.gov.py/datos/api/v3/doc/oauth/token> (failed 3 time...", depending on the issue.
  • We also witnessed title:"DNSLookupError: DNS lookup failed: no results for hostname lookup: nocopo.bpp.gov.ng." but nigeria_portal succeeded more recently. In another issue, saw the corresponding title:"Gave up retrying <GET https://nocopo.bpp.gov.ng/ocdsjson.ashx?ocid=all> (failed 3 times): DNSLook..."

The following are not temporary:

@jpmckinney jpmckinney added bug Something isn't working operations Actions to be performed by administrators in the normal operation of the system labels Apr 26, 2024
@yolile
Copy link
Member

yolile commented Apr 26, 2024

  • The same issue was seen for Uruguay Retrying <GET http://comprasestatales.gub.uy/ocds/rss/2024/04> (failed 1 times): DNS lookup failed: no results for hostname lookup: comprasestatales.gub.uy. but then it worked again

@yolile
Copy link
Member

yolile commented Apr 26, 2024

@yolile
Copy link
Member

yolile commented Apr 26, 2024

@yolile
Copy link
Member

yolile commented Apr 26, 2024

https://contrataciones.gov.py/datos/api/v3/doc/oauth/token DNSLookupError from server, but not locally.

I get curl: (6) Could not resolve host: contrataciones.gov.py in the server

I've frozen paraguay_dncp for now

@jpmckinney
Copy link
Member Author

jpmckinney commented Apr 27, 2024

dig contrataciones.gov.py and nslookup contrataciones.gov.py also fail from the data support server (ocp23), but not from Linode. So, it's like an IP block is banned.

For Montreal, the data support server can collect it (in under 3 mins):

curl -n https://collect.kingfisher.open-contracting.org/schedule.json -d project=kingfisher -d spider=canada_montreal -d note="Started by James." -d steps=

On ocp13, setting a user agent with curl still succeeds:

curl -A 'Scrapy/2.11.1 (+https://scrapy.org)' 'https://ville.montreal.qc.ca/vuesurlescontrats/api/releases.json?limit=10000'

@jpmckinney jpmckinney added this to the Priority milestone Apr 27, 2024
@jpmckinney
Copy link
Member Author

jpmckinney commented Apr 27, 2024

I'm proxying Montreal now and it works. I unfroze it.

Not sure why you froze Buenos Aires. I now set validate_json = True, because it returns incomplete JSON. open-contracting/kingfisher-collect#874 It also occasionally returns 503.

@yolile
Copy link
Member

yolile commented Apr 27, 2024 via email

@jpmckinney
Copy link
Member Author

Closing here as now a deployment issue with Bob.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working operations Actions to be performed by administrators in the normal operation of the system
Projects
None yet
Development

No branches or pull requests

2 participants