1

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

启动命令

./traefik_darwin-amd64 -d -c 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"
}

螺栓“traefik”桶项目

/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

感谢帮助!

4

0 回答 0