When I add an ip address range now I get:
Traceback (most recent call last):
File “/home/traefik1/.config/pypkg/get_route.py”, line 119, in get_route
with urllib.request.urlopen(f’http://127.0.0.1/{api_path}/api/http/middlewares/{module}-ipallowlist@file’) as res:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/urllib/request.py”, line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/urllib/request.py”, line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/urllib/request.py”, line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/urllib/request.py”, line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/urllib/request.py”, line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File “/usr/lib/python3.11/urllib/request.py”, line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/traefik1/.config/actions/set-route/29waitsync”, line 16, in
while get_route(data).get(‘instance’) != data[‘instance’] and retry <= 10:
^^^^^^^^^^^^^^^
File “/home/traefik1/.config/pypkg/get_route.py”, line 122, in get_route
raise Exception(f’Error reaching traefik daemon (middlewares): {e.reason}')
Exception: Error reaching traefik daemon (middlewares): Not Found
Which if I read correctly mean’s it can’t find the ipallowlist@file?, and yet all my routes are working, and I have access to cluster-admin, but the new changes to allow list are not being applied.
Any help would be greatly appreciated. Do I need to check redis again? or start debugging python code. *ie modify the module to display {api_path}{module} and see if the paths have allowed access for the required traefik1 user.
ps: Looking at the configuration files, it looks okay:
-rw-r–r-- 1 traefik1 traefik1 461 Apr 11 2025 _api.yml
-rw-r–r-- 1 traefik1 traefik1 202 May 30 2025 _default_cert.yml
-rw-r–r-- 1 traefik1 traefik1 120 Apr 11 2025 _http2https.yml
-rw-r–r-- 1 traefik1 traefik1 1265 Mar 18 08:19 cluster-admin.yml