2017-09-06 1 views
0

最近、1ノードのTraefikインストール(設定ファイルを使用していた)から3ノードのTraefikクラスタに変更したいと考えました。クラスタモードでTraefikを起動するとクラッシュする

はドキュメントに続いて、私はコンフィギュレーションをアップロード:

$ traefik storeconfig 

それは何のエラーが表示されていない、と領事のKVをチェックし、キーがあります。

しかし、クラスタモードでTraefikを起動するとき、私は、セグメンテーションフォールトを取得:

$ traefik --cluster=true -d 

INFO[0001] Using TOML configuration file /etc/traefik/traefik.toml 
panic: runtime error: invalid memory address or nil pointer dereference 
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x83500e] 

goroutine 1 [running]: 
github.com/containous/traefik/cluster.NewLeadership(0x2e08560, 0xc420557840, 0xc4202a1340, 0x0) 
    /go/src/github.com/containous/traefik/cluster/leadership.go:28 +0x6e 
github.com/containous/traefik/server.NewServer(0x2540be400, 0x100, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc42035b930, 0x5, 0xc4205ef740, ...) 
    /go/src/github.com/containous/traefik/server/server.go:105 +0x63e 
main.run(0xc4205678c0) 
    /go/src/github.com/containous/traefik/cmd/traefik/traefik.go:307 +0x6f6 
main.main.func1(0xc42016cdc0, 0xc4202b31a0) 
    /go/src/github.com/containous/traefik/cmd/traefik/traefik.go:61 +0xd9 
github.com/containous/traefik/vendor/github.com/containous/staert.(*Staert).Run(0xc4206c1f30, 0x1aa1940, 0xc420496300) 
    /go/src/github.com/containous/traefik/vendor/github.com/containous/staert/staert.go:83 +0x2e 
main.main() 
    /go/src/github.com/containous/traefik/cmd/traefik/traefik.go:218 +0x1bf1 

私は両方が同じエラーを表示し、最新の安定、1.3.7および1.4.0-rc1のリリースで試してみました。

アイデア?

答えて

0

あなたのtraefik.tomlが間違っていて、あなたの領事のバックエンドに適切な設定がないような気がします。

あなたのコマンドとしてこれを使用してみてくださいまたは設定する@ /etc/traefik/traefik.tomlの領事セクションを変更

traefik --consul --consul.endpoint = YOURENDPOINTHERE --cluster =真-d

私はもともとそれを試してみたが、まったく同じ問題へのリードんでした。この https://docs.traefik.io/configuration/backends/consul/

+0

を参照してください。奇妙なことに、私は--clusterなしですべてのTraefikインスタンスを起動できますが、時折ロック問題が発生しても、同じACME証明書と設定を共有します。 クラスタフラグについてはわからないので、今すぐドキュメントで見つけることさえできません。多分それはもはや必要ではないでしょうか? – beniwtv

関連する問題