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

Failed to establish a new connection #109

Open
femabeh opened this issue Sep 12, 2024 · 0 comments
Open

Failed to establish a new connection #109

femabeh opened this issue Sep 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@femabeh
Copy link

femabeh commented Sep 12, 2024

I tried following Setup with some changes: https://mattdyson.org/blog/2024/02/using-traefik-with-cloudflare-tunnels/

First he couldn't connect to Traefik (with same error), that is fixed by requesting in the internal docker network. No he cant connect to Clouflare with following error:

2024-09-12T07:46:43.008334414Z Traceback (most recent call last):
2024-09-12T07:46:43.008390164Z   File "/usr/sbin/cloudflare-companion", line 551, in <module>
2024-09-12T07:46:43.008924409Z     sync_mappings(get_initial_mappings(traefik_included_hosts, traefik_excluded_hosts), doms)
2024-09-12T07:46:43.009117459Z   File "/usr/sbin/cloudflare-companion", line 405, in sync_mappings
2024-09-12T07:46:43.009759153Z     if point_domain(k, domain_infos):
2024-09-12T07:46:43.010074995Z        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-12T07:46:43.010104572Z   File "/usr/sbin/cloudflare-companion", line 177, in point_domain
2024-09-12T07:46:43.010507192Z     records = cf.zones.dns_records.get(domain_info['zone_id'], params={u'name': name})
2024-09-12T07:46:43.011216018Z               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-12T07:46:43.011271589Z   File "/usr/lib/python3.12/site-packages/CloudFlare/cloudflare.py", line 747, in get
2024-09-12T07:46:43.012259753Z     raise CloudFlareAPIError(e=e) from None
2024-09-12T07:46:43.012536635Z CloudFlare.exceptions.CloudFlareAPIError: network request connection error: HTTPSConnectionPool(host='api.cloudflare.com', port=443): Max retries exceeded with url: /client/v4/zones/**************/dns_records?name=traefik.***.*** (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f407ef85fa0>: Failed to establish a new connection: [Errno -3] Try again'))

My .env file:

ROOT_DOMAIN=***.***
HTTP_TIMEOUT=60
POLLING_INTERVAL=10
PROPAGATION_TIMEOUT=3600
TTL=300
LOG_LEVEL=DEBUG

Log and docker Compose file (as txt because github doesn't allow .yml files):
log.txt
docker-compose.txt

@femabeh femabeh added the bug Something isn't working label Sep 12, 2024
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

1 participant