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
Segfault when getting certificate - Traefik on Swarm with Consul #2556
Comments
Thanks @Horgix for reporting. For the record, does this segfault make traefik crash or does Traefik recover from it ? |
It plainly crashes from what I remember, and a new Traefik instance was launched right away by Docker to replace it since it runs as a swarm service |
Have to note that has the same issue with etcd KV backend. panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x806c37]
goroutine 124 [running]:
github.com/containous/traefik/vendor/github.com/xenolf/lego/acme.(*Client).getChallenges.func1(0x0, 0xc4205fbd40, 0xc4205fbce0, 0xc42035deb0, 0x10)
/go/src/github.com/containous/traefik/vendor/github.com/xenolf/lego/acme/client.go:540 +0xd7
created by github.com/containous/traefik/vendor/github.com/xenolf/lego/acme.(*Client).getChallenges
/go/src/github.com/containous/traefik/vendor/github.com/xenolf/lego/acme/client.go:537 +0x133 P.S. Run 1.4.5-alpine |
We recently fixed a problem with Moreover @softkot, you use the deprecated option Can you try to launch your environment :
|
Hi! I'm Træfiker 🤖 the bot in charge of tidying up the issues. I have to close this one because of its lack of activity 😞 Feel free to re-open it or join our Slack workspace for more community #support. |
Hello,
I would like to report a segmentation fault on latest versions of Traefik when trying to get an ACME certificate with Traefik running in Docker, on a swarm mode cluster with configuration stored in Consul.
What did you do?
Tried to access some endpoint through Traefik, with HTTPS and certificate generation via Let's Encrypt.
What did you expect to see?
Expected to get a certificate generated and served.
What did you see instead?
Segfault when trying to load the ACME certificate when resolving the Challenge:
Traefik version
Reproduced with 3 different official Traefik images:
traefik:v1.4.3-alpine
traefik:v1.4.5-alpine
traefik:v1.5.0-rc2-alpine
Output for the
traefik:v1.5.0-rc2-alpine
:What is your environment & configuration (arguments, toml, provider, platform, ...)?
global
mode, with a 3 node cluster so 3 Traefik instancereplicated
mode with a single replicatraefik.toml
that has been stored in Consul throughtraefik storeconfig
(hit #927 btw):docker-compose.yml
used to spawn the service:Note
For the record, I finally solved the segfault by changing
storage
tostoragefile
(at least I think it's what solved it) and by playing with what was stored in ConsulThe text was updated successfully, but these errors were encountered: