Missing sites on server restart #54
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every time my server restarts, I find myself having to rerun the npx greenlock add command...
here is the error I receive
Warning:
find({})
returned 0 sites.Does
@greenlock/manager
implementfind({})
?Did you add sites?
npx greenlock add --subject example.com --altnames example.com
Why does this happen?
Most likely it's because you're using some sort of system like EC2 or Docker or "serverless" that doesn't actually store any information between restarts.
I'd recommend using Digital Ocean's $5/month VPS "droplets", which are persistent servers. I hear good things about Vultr, OVH, and Scaleway as well - but I've used DO for years and they're rock solid reliably and competitively priced.
Otherwise you need to look into mounted volumes, database storage, or something else that's probably more complex and less reliable than what you really want for a simple server.
I'm assuming that because you didn't respond that this was the solution to your problem.
Closing, but re-open if needed.