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

Pastehunter service random connection error #74

Open
sgbloke opened this issue Apr 22, 2019 · 0 comments
Open

Pastehunter service random connection error #74

sgbloke opened this issue Apr 22, 2019 · 0 comments

Comments

@sgbloke
Copy link

sgbloke commented Apr 22, 2019

Hi,

The pastehunter.py is giving me random connection issues. Details as follows:
When running fine, there are 7 tasks when I do "systemctl status pastehunter.service"

Main PID: 89222 (python3)
Tasks: 7 (limit: 4633)
CGroup: /system.slice/pastehunter.service
├─89222 /usr/bin/python3 /opt/pastehunter/pastehunter.py
├─89259 /usr/bin/python3 /opt/pastehunter/pastehunter.py
├─89260 /usr/bin/python3 /opt/pastehunter/pastehunter.py
├─89261 /usr/bin/python3 /opt/pastehunter/pastehunter.py
├─89262 /usr/bin/python3 /opt/pastehunter/pastehunter.py
└─89263 /usr/bin/python3 /opt/pastehunter/pastehunter.pyMain PID: 89222 (python3)

When error occurs, the task becomes 2.

Tasks: 2 (limit: 4633)

CGroup: /system.slice/pastehunter.service
└─2390 /usr/bin/python3 /opt/pastehunter/pastehunter.py

Following are errors from "systemctl status pastehunter.service"

Apr 21 21:43:32 pbsvr python3[80377]: raise ConnectionError(e, request=request)
Apr 21 21:43:32 pbsvr python3[80377]: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='scrape.pastebin.com', port=443): Max retries exceeded with url: /api_scrape_item.php?i=uRnqq9Gj (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f1092269710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
2)
Apr 21 01:55:23 pbsvr python3[80305]: ERROR:pastebin.py:Unable to parse paste results: HTTPSConnectionPool(host='scrape.pastebin.com', port=443): Max retries exceeded with url: /api_scraping.php?limit=200 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fdbddf56a58>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))

I have to do a systemctl retsart pastehunter.service to restart the service.
Please help to suggest how to prevent the connection error.

Thank you.

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

1 participant