Closed akovalenko closed 4 months ago
Why do you have an empty HOME in the first place? That sounds like a system misconfiguration, not really something Caddy should be expected to deal with.
@francislavoie I created a user for running caddy, like useradd -m caddy
. His home directory is initially empty, all paths like $HOME/.local/share/caddy
are supposed to be created on demand. And they are indeed created by caddy, but in one place caddy's doing it wrong (after creating a directory without exec permission it cannot create anything under it).
By the way, the same problem would happen for a user with non-empty HOME who has never run caddy before, so he has no ~/.local/share/caddy
yet.
When I try to reproduce this locally, everything works OK for me.
I set HOME to a folder that doesn't exist, and when I run Caddy, I don't get that error. :thinking: Everything works fine. This is also the first report we've had of this which is odd. Seems like almost everyone would have this problem.
How can I reproduce the error? (I already did the steps in your last comment.)
See https://caddyserver.com/docs/running#manual-installation, this is how our .deb
package sets up the user as well, and we don't have issues with that. :man_shrugging:
Same here! Debian + Caddy v2.8.0 h1:7ZCvB9R7qBsEydqBkYCOHaMNrDEF/fj0ZouySV2D474= Fresh installation.
See PR #6340 for a fix