step-ca breaks after some time #598
Replies: 1 comment 9 replies
-
Hi @MCWertGaming hard to say if this is a step-ca issue or some interaction between step-ca and caddy. It certainly seems like a step-ca issue in how we are handling requests for domains that don't exist. In terms of "production" environment with lots of requests, generally speaking a single step-ca instance can handle a lot of ACME traffic and it doesn't require a lot of CPU to issue certificates. I'd suggest checking out our Production Considerations documentation. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have step-ca running in a docker container inside of an lxc and faced the problem that one of my reverse proxies (caddy) tried to order certificates for an internal domain which is not set up in my DNS server. The result was that step-ca created 100% cpu usage in my lxc and was not responding anymore (the health check was still passing, but certificate orders and renews were not possible anymore.) As I restarted the lxc, step-ca was functioning normally again. Some days later the same problem (with an different caddy that started ordering for one or two days). This time I restarted the step-ca lxc again but the docker container was refusing to start because it returned that there is a problem with the badger database:
value log truncate required to run db. this might result in data loss
The database was over 200mb in size and as I have found nothing via a google search, I have simply deleted the database to let step-ca re-create it. Apparently step-ca started and I could order certificates for my hypervisor, but as I started my caddy reverse proxy, step-ca complained that it had read/write errors in the badger database file. I restarted it and not even starts since then as it immediately shows an error that it can't write into the badger database...
My question is why is step-ca / badger broken just because of many certificate requests? And how do I prevent those errors? Or are there other recommendations about hosting step-ca in a "production environment"? (in quotes because it's just for my private and local infrastructure)
Beta Was this translation helpful? Give feedback.
All reactions