Deleting certificates on updated systems throws an error

On updated machines the file ..actions/delete-certificate/validate-output.json which isn’t in the code anymore, may still exist and it throws a “Something went wrong” message but the certificate is deleted tough:

JSON Schema output validation aborted at step /home/traefik1/.config/actions/delete-certificate/validate-output.json: JSON unmarshal error: unexpected end of JSON input. Input data: []

After removing the file /home/traefik1/.config/actions/delete-certificate/validate-output.json the error doesn’t occur anymore.

1 Like

I don’t know if this error has anything to do with this topic. Today I wanted to delete a requested certificate that I no longer need. When I delete it, I get this error message.

JSON Schema output validation aborted at step /home/traefik1/.config/actions/delete-certificate/validate-output.json: JSON unmarshal error: unexpected end of JSON input. Input data: [ ]

After refreshing the page, the certificate is no longer displayed, but the certificate is still present in the file /home/traefik1/.config/state/acme/acme.json.

How can I permanently delete the certificate?

Best, Erwin

Hi @Niwre ,

I moved your post to the right topic with similar error message.

@mrmarkuz Many thanks Markus.

1 Like

Thank you for the bug report Markus!

I didn’t try it, but I bet you’re workaround is good.

I’m afraid this bug still bites: Application update does not clean up old files · Issue #7058 · NethServer/dev · GitHub

The merged code resolves the bug for future module updates. It is effective starting from the 2nd update after the fixed core has been installed.

And before Traefik 3.0.0, the app last release was dated Sep 2024 :roll_eyes:

I will quickly release a Traefik 3.0.2 that fixes this issue.

2 Likes

The fix is in Testing, you can try it with

api-cli run update-module --data '{"module_url":"ghcr.io/nethserver/traefik:3.0.2-dev.1","instances":["traefik1"]}'

See

Please confirm if the bug is fixed as expected.

1 Like

Unfortunately the bug isn’t fixed.
Even after emptying the file /home/traefik1/.config/actions/delete-certificate/validate-output.json it throws the same error on certificate deletion.
As soon as the file is removed there’s no error anymore.

1 Like

Thank you for the test, it’s my mistake.

Now a new testing release (3.0.2-dev.2) is available, please repeat the test with it:

 api-cli run update-module --data '{"module_url":"ghcr.io/nethserver/traefik:3.0.2-dev.2","instances":["traefik1"]}'
2 Likes

This one is working :+1:
A certificate can be deleted now without error.

3 Likes

Thank you for the quick response! The fix is released in Traefik 3.0.2.

2 Likes