[GH-ISSUE #12] Error being thrown when acme.json is empty #10

Closed
opened 2026-05-06 12:22:39 +02:00 by BreizhHardware · 3 comments

Originally created by @wolfnacht44 on GitHub (Apr 7, 2026).
Original GitHub issue: https://github.com/chr0nzz/traefik-manager/issues/12

Originally assigned to: @chr0nzz on GitHub.

Linux Native v0.10.3
a minor one

Error getting thrown in journalctl when acme.json exists, but is empty.

populating acme.json with generic data resolved the error. This would only persist on fresh installs without certs, or installs using custom certs.

gunicorn[18307]: 2026-04-07 05:39:42,114 [INFO] [traefik-manager] 127.0.0.1 → GET /api/traefik/certs
gunicorn[18307]: 2026-04-07 05:39:42,120 [ERROR] [traefik-manager] Error reading acme.json
gunicorn[18307]: Traceback (most recent call last):
gunicorn[18307]:   File "/opt/traefik-manager/app.py", line 1225, in api_certs
gunicorn[18307]:     acme_data = _json.load(f)
gunicorn[18307]:                 ^^^^^^^^^^^^^
gunicorn[18307]:   File "/usr/lib/python3.12/json/__init__.py", line 293, in load
gunicorn[18307]:     return loads(fp.read(),
gunicorn[18307]:            ^^^^^^^^^^^^^^^^
gunicorn[18307]:   File "/usr/lib/python3.12/json/__init__.py", line 346, in loads
gunicorn[18307]:     return _default_decoder.decode(s)
gunicorn[18307]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^
gunicorn[18307]:   File "/usr/lib/python3.12/json/decoder.py", line 337, in decode
gunicorn[18307]:     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
gunicorn[18307]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gunicorn[18307]:   File "/usr/lib/python3.12/json/decoder.py", line 355, in raw_decode
gunicorn[18307]:     raise JSONDecodeError("Expecting value", s, err.value) from None
Originally created by @wolfnacht44 on GitHub (Apr 7, 2026). Original GitHub issue: https://github.com/chr0nzz/traefik-manager/issues/12 Originally assigned to: @chr0nzz on GitHub. Linux Native v0.10.3 a minor one Error getting thrown in journalctl when acme.json exists, but is empty. populating acme.json with generic data resolved the error. This would only persist on fresh installs without certs, or installs using custom certs. ``` gunicorn[18307]: 2026-04-07 05:39:42,114 [INFO] [traefik-manager] 127.0.0.1 → GET /api/traefik/certs gunicorn[18307]: 2026-04-07 05:39:42,120 [ERROR] [traefik-manager] Error reading acme.json gunicorn[18307]: Traceback (most recent call last): gunicorn[18307]: File "/opt/traefik-manager/app.py", line 1225, in api_certs gunicorn[18307]: acme_data = _json.load(f) gunicorn[18307]: ^^^^^^^^^^^^^ gunicorn[18307]: File "/usr/lib/python3.12/json/__init__.py", line 293, in load gunicorn[18307]: return loads(fp.read(), gunicorn[18307]: ^^^^^^^^^^^^^^^^ gunicorn[18307]: File "/usr/lib/python3.12/json/__init__.py", line 346, in loads gunicorn[18307]: return _default_decoder.decode(s) gunicorn[18307]: ^^^^^^^^^^^^^^^^^^^^^^^^^^ gunicorn[18307]: File "/usr/lib/python3.12/json/decoder.py", line 337, in decode gunicorn[18307]: obj, end = self.raw_decode(s, idx=_w(s, 0).end()) gunicorn[18307]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ gunicorn[18307]: File "/usr/lib/python3.12/json/decoder.py", line 355, in raw_decode gunicorn[18307]: raise JSONDecodeError("Expecting value", s, err.value) from None ```
BreizhHardware 2026-05-06 12:22:39 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@wolfnacht44 commented on GitHub (Apr 7, 2026):

further testing revealed that simply placing {} in the acme.json resolved the error, no need to populate the file further on a clean install of traefik && traefik-manager.

<!-- gh-comment-id:4196888257 --> @wolfnacht44 commented on GitHub (Apr 7, 2026): further testing revealed that simply placing `{}` in the acme.json resolved the error, no need to populate the file further on a clean install of traefik && traefik-manager.
Author
Owner

@chr0nzz commented on GitHub (Apr 7, 2026):

thanks, I will have this fixed for next release

<!-- gh-comment-id:4199171423 --> @chr0nzz commented on GitHub (Apr 7, 2026): thanks, I will have this fixed for next release
Author
Owner

@chr0nzz commented on GitHub (Apr 8, 2026):

update out

<!-- gh-comment-id:4209655844 --> @chr0nzz commented on GitHub (Apr 8, 2026): update out
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/traefik-manager#10
No description provided.