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

bug: MaxRetryError for checkip.amazonaws.com #1413

Closed
1 task done
null-ref-0000 opened this issue Sep 4, 2024 · 3 comments
Closed
1 task done

bug: MaxRetryError for checkip.amazonaws.com #1413

null-ref-0000 opened this issue Sep 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@null-ref-0000
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Homepage does not load

Expected Behavior

Homepage should load without error

Steps To Reproduce

Unclear steps at this time how to reproduce, but I believe it occurs when the homepage is loaded to often.

Environment

- reNgine: 2.1.3
- OS: Debian 12
- Python: 3.11
- Docker Engine: 26.1.2, build 211e74b
- Docker Compose: v2.5.0
- Browser: Chrome

Anything else?

externalIp = requests.get('https://checkip.amazonaws.com').text.strip()
web-1 | urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f3992fee290>, 'Connection to checkip.amazonaws.com timed out. (connect timeout=None)')
web-1 | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='checkip.amazonaws.com', port=443): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f3992fee290>, 'Connection to checkip.amazonaws.com timed out. (connect timeout=None)'))

@null-ref-0000 null-ref-0000 added the bug Something isn't working label Sep 4, 2024
Copy link
Contributor

github-actions bot commented Sep 4, 2024

Hey @null-ref-0000! 👋 Thanks for flagging this bug! 🐛🔍

You're our superhero bug hunter! 🦸‍♂️🦸‍♀️ Before we suit up to squash this bug, could you please:

📚 Double-check our documentation: https://rengine.wiki
🕵️ Make sure it's not a known issue
📝 Provide all the juicy details about this sneaky bug

Once again - thanks for your vigilance! 🛠️🚀

@null-ref-0000
Copy link
Contributor Author

I believe this can be resolved by caching the footer.html. Perhaps should be cache ttl should be one hour?

https://docs.djangoproject.com/en/5.1/topics/cache/#template-fragment-caching

@yogeshojha
Copy link
Owner

Hi @null-ref-0000 I have removed this ip check in reNgine 2.2.0. I don't see any benefit of having an IP check or even showing external IP on page, so I had removed. Once 2.2.0 is released I will close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants