用boltdb后端启动traefik时出现恐慌

时间:2017-06-29 08:58:29

标签: go traefik

我正在尝试使用boltdb后端启动traefik。可悲的是,我总是感到恐慌。按照我的设置和终端输出。

启动命令

./traefik_darwin-amd64 -d -c config.toml

config.toml

debug = true
defaultEntryPoints = ["http"]
[entryPoints]
  [entryPoints.http]
  address = ":8081"

[web]
address = ":8082"

[boltdb]
endpoint = "/Users/tochti/Tmp/traefik.db"
watch = true
prefix = "/traefik"

终端输出

经过很长时间的等待后,会显示以下恐慌

https://pastebin.com/1vUXbgTU

traefik version的输出:(您使用的是什么版本的Traefik?

Version:      v1.3.1
Codename:     raclette
Go version:   go1.8.3
Built:        2017-06-16_11:00:34AM
OS/Arch:      darwin/amd64

您的环境和环境是什么?配置(参数,toml,提供者,平台,......)?

{
 "GraceTimeOut": 10000000000,
 "Debug": true,
 "CheckNewVersion": true,
 "AccessLogsFile": "",
 "TraefikLogsFile": "",
 "LogLevel": "ERROR",
 "EntryPoints": {
  "http": {
   "Network": "",
   "Address": ":8081",
   "TLS": null,
   "Redirect": null,
   "Auth": null,
   "Compress": false
  }
 },
 "Cluster": null,
 "Constraints": [],
 "ACME": null,
 "DefaultEntryPoints": [
  "http"
 ],
 "ProvidersThrottleDuration": 2000000000,
 "MaxIdleConnsPerHost": 200,
 "IdleTimeout": 180000000000,
 "InsecureSkipVerify": false,
 "Retry": null,
 "HealthCheck": {
  "Interval": 30000000000
 },
 "Docker": null,
 "File": null,
 "Web": {
  "Address": ":8082",
  "CertFile": "",
  "KeyFile": "",
  "ReadOnly": false,
  "Statistics": null,
  "Metrics": null,
  "Path": "",
  "Auth": null
 },
 "Marathon": null,
 "Consul": null,
 "ConsulCatalog": null,
 "Etcd": null,
 "Zookeeper": null,
 "Boltdb": {
  "Watch": true,
  "Filename": "",
  "Constraints": [],
  "Endpoint": "/Users/tochti/Tmp/traefik.db",
  "Prefix": "/traefik",
  "TLS": null,
  "Username": "",
  "Password": ""
 },
 "Kubernetes": null,
 "Mesos": null,
 "Eureka": null,
 "ECS": null,
 "Rancher": null,
 "DynamoDB": null,
 "ConfigFile": "/Users/tochti/Tmp/traefik_test/config.toml"
}

Bolt“traefik”Bucket Items

/traefik/backends/srv1_example_com/servers/server_1/url http://127.0.0.1:32001
/traefik/frontends/srv1_example_com/backend srv1_example_com
/traefik/frontends/srv1_example_com/routes/test_1/rule Host:srv1.example.com

感谢您的帮助!

0 个答案:

没有答案