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

DOMAIN2 ... DOMAIN3 ... generating errors #64

Open
woobenjamin opened this issue Mar 12, 2022 · 0 comments
Open

DOMAIN2 ... DOMAIN3 ... generating errors #64

woobenjamin opened this issue Mar 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@woobenjamin
Copy link

woobenjamin commented Mar 12, 2022

Summary

I have several domains that I am hosting on Docker. Whenever I add a second, third, ..., eighth domain, I am getting an error

Steps to reproduce

      - DOMAIN1=$DOMAIN1
      - DOMAIN1_ZONE_ID=$CLOUDFLARE_ZONEID_DOMAIN1 
      - DOMAIN1_PROXIED=TRUE
      - DOMAIN2=$DOMAIN2
      - DOMAIN2_ZONE_ID=$CLOUDFLARE_ZONEID_DOMAIN2 # Copy from Cloudflare Overview page
      - DOMAIN2_PROXIED=TRUE
      - DOMAIN3=$DOMAIN3
      - DOMAIN3_ZONE_ID=$CLOUDFLARE_ZONEID_DOMAIN3
      - DOMAIN3_PROXIED=TRUE```

### What is the expected *correct* behavior?
```2022-03-11.19:08:36 [NOTICE] ** [container-init] Detected Container that has been restarted - Cleaning '/tmp/state' files
2022-03-11.19:08:36 [NOTICE] ** [scheduling] Disabling Scheduling
2022-03-11.19:08:36 [STARTING] ** [traefik-cloudflare-companion] [1] Starting Traefik Cloudflare Companion```

<!-- Describe what should be seen instead. -->
```2022-03-11.19:08:30 [STARTING] ** [traefik-cloudflare-companion] [610] Starting Traefik Cloudflare Companion
Traceback (most recent call last):
  File "/usr/sbin/cloudflare-companion", line 466, in <module>
    sync_mappings(get_initial_mappings(traefik_included_hosts, traefik_excluded_hosts), doms)
  File "/usr/sbin/cloudflare-companion", line 354, in sync_mappings
    if point_domain(k, domain_infos):
  File "/usr/sbin/cloudflare-companion", line 168, in point_domain
    records = cf.zones.dns_records.get(domain_info['zone_id'], params={u'name': name})
  File "/usr/lib/python3.9/site-packages/CloudFlare/cloudflare.py", line 672, in get
    return self._base.call_with_auth('GET', self._parts,
  File "/usr/lib/python3.9/site-packages/CloudFlare/cloudflare.py", line 126, in call_with_auth
    return self._call(method, headers, parts,
  File "/usr/lib/python3.9/site-packages/CloudFlare/cloudflare.py", line 502, in _call
    raise CloudFlareAPIError(code, message)
CloudFlare.exceptions.CloudFlareAPIError: Authentication error```

I don't know why it's showing an Authentication error because the ```CF_TOKEN``` is working when I just use DOMAIN1. I've confirmed the Zone IDs for all of my other domains.

### Relevant logs and/or screenshots
<!-- Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise. -->

Please see above

### Environment
https://pastebin.com/P3rvUFHR

- Image version / tag:  v6.8.2
- Host OS: Ubuntu 20.04 LTS
Docker 20.10.12 (API: 1.41)

<details>
<summary>Any logs | docker-compose.yml</summary>
</details>

<!-- Include anything additional -->
### Possible fixes
<!-- If you can, provide details to the root cause that might be responsible for the problem. -->

Thanks!
@woobenjamin woobenjamin added the bug Something isn't working label Mar 12, 2022
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