Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caddy's service is always restarting #18

Open
a-parser opened this issue Mar 25, 2021 · 3 comments
Open

Caddy's service is always restarting #18

a-parser opened this issue Mar 25, 2021 · 3 comments

Comments

@a-parser
Copy link

Hi, I'm trying to run a single host version of swarmstack and getting stuck with caddy, their container always restarts without any useful information in logs:

swarmstack_caddy.1.ttwgq6x4mlaa@backend.com    | 2021/03/25 05:25:52 [INFO] Caddy version: unknown
swarmstack_caddy.1.ttwgq6x4mlaa@backend.com    | 2021/03/25 05:25:52 [INFO][cache:0xc0004fa500] Started certificate maintenance routine
swarmstack_caddy.1.ttwgq6x4mlaa@backend.com    | 2021/03/25 05:25:52 self-signed: certificate has no names
swarmstack_caddy.1.0qsfcypou1mx@backend.com    | 2021/03/25 05:26:10 [INFO] Caddy version: unknown
swarmstack_caddy.1.0qsfcypou1mx@backend.com    | 2021/03/25 05:26:10 [INFO][cache:0xc000181ea0] Started certificate maintenance routine
swarmstack_caddy.1.0qsfcypou1mx@backend.com    | 2021/03/25 05:26:10 self-signed: certificate has no names

any advice to debug this?

@diraol
Copy link

diraol commented Feb 28, 2022

Hi, I'm seeing the sam here. Any tips @mh720 ? :)

@diraol
Copy link

diraol commented Feb 28, 2022

I guess the problem is the Caddy config file.

/conf # caddy validate -config Caddyfile-singlebox
2022/02/28 20:47:33.631 INFO    using provided configuration    {"config_file": "Caddyfile-singlebox", "config_adapter": ""}
validate: adapting config using caddyfile: Caddyfile-singlebox:4: unrecognized directive: errors

Not sure it is ready to be used: caddyserver/caddy#2502 (comment)

@diraol
Copy link

diraol commented Mar 1, 2022

hum.... the above validation was done using caddy/caddy image, not swarmstack/caddy.
I don't know which version of caddy is being used at swarmstack/caddy. It is totally different, caddy commands are prefixed with - and there is a ton of other commands that I can't see in caddy/caddy.

Also, -version outputs unkown.

And using swarmstack/caddy the Caddyfile-singlebox file do pass the validation btw, so it seems the problem is related to -version indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants