certificates: Transaction conflict when renewing certificates (ACME)

Subject of the issue

I use step-ca as an ACME directory for other services, Caddy being the biggest consumer. I’ve noticed that often renewal transactions are not completing. They work just fine for a while, both issuing and renewals, but then they stop renewing.

Your environment

  • OS - CentOS 8.1.1911
  • Version - 0.14.4
  • Podman - 1.9.1

Steps to reproduce

I just followed your blog post on how to set up the ACME server, then configured Caddy to use the url.

Expected behaviour

Certificates needs to be renewed.

Actual behaviour

Certificates are not renewed, with the following log entry:

time="2020-05-29T11:07:02+02:00" level=error duration=38.041128ms duration-ns=38041128 error="error creating order: error storing order IDs for account xxxx: failed to commit badger transaction: Transaction Conflict. Please retry" fields.time="2020-05-29T11:07:02+02:00" method=POST name=ca nonce=xxxx path=/acme/acme/new-order protocol=HTTP/1.1 referer= remote-address=x.x.x.x request-id=xxxx size=228 status=500 user-agent="CertMagic Caddy/2.0.0 xenolf-acme/3.6.0 (release; linux; amd64)" user-id=

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (12 by maintainers)

Most upvoted comments

Built and deployed, gonna give it a few days and see if I can get the issue to reproduce.