Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreaspeters/45f1f94f9027494f8fc6265e14908b26 to your computer and use it in GitHub Desktop.
Save andreaspeters/45f1f94f9027494f8fc6265e14908b26 to your computer and use it in GitHub Desktop.
Traefik Fehler 1
./traefik
INFO[0000] Configuration loaded from file: /home/andreas/Projekte/go/traefik.toml
INFO[2021-08-19T18:55:04+02:00] Traefik version 2.5.0-rc5 built on 2021-08-03T18:04:59Z
INFO[2021-08-19T18:55:04+02:00]
Stats collection is disabled.
Help us improve Traefik by turning this feature on :)
More details on: https://doc.traefik.io/traefik/contributing/data-collection/
plugins-local/src/github.com/AVENTER-UG/traefik-mesos-provider/mesos.go:63:18: panic
panic: reflect.Set: value of type map[string]*struct { Tasks []struct { ID string "json:\"id\""; Name string "json:\"name\""; FrameworkID string "json:\"framework_id\""; ExecutorID string "json:\"executor_id\""; SlaveID string "json:\"slave_id\""; State string "json:\"state\""; Resources struct { Disk int "json:\"disk\""; Mem int "json:\"mem\""; Gpus int "json:\"gpus\""; Cpus float64 "json:\"cpus\""; Ports string "json:\"ports\"" } "json:\"resources\""; Role string "json:\"role\""; Statuses []interface {} "json:\"statuses\""; Labels []struct { Key string "json:\"key\""; Value string "json:\"value\"" } "json:\"labels\""; Discovery struct { Visibility string "json:\"visibility\""; Name string "json:\"name\""; Ports struct { Ports []interface {} "json:\"ports\"" } "json:\"ports\"" } "json:\"discovery\""; Container struct { Type string "json:\"type\""; Docker struct { Image string "json:\"image\""; Network string "json:\"network\""; PortMappings []struct { HostPort int "json:\"host_port\""; ContainerPort int "json:\"container_port\""; Protocol string "json:\"protocol\"" } "json:\"port_mappings\""; Privileged bool "json:\"privileged\""; Parameters []struct { Key string "json:\"key\""; Value string "json:\"value\"" } "json:\"parameters\""; ForcePullImage bool "json:\"force_pull_image\"" } "json:\"docker\"" } "json:\"container\""; HealthCheck struct { DelaySeconds int "json:\"delay_seconds\""; IntervalSeconds int "json:\"interval_seconds\""; TimeoutSeconds int "json:\"timeout_seconds\""; ConsecutiveFailures int "json:\"consecutive_failures\""; GracePeriodSeconds int "json:\"grace_period_seconds\""; Type string "json:\"type\""; HTTP struct { Protocol string "json:\"protocol\""; Scheme string "json:\"scheme\""; Port int "json:\"port\""; Path string "json:\"path\"" } "json:\"http\"" } "json:\"health_check\"" } } is not assignable to type map[string]*interface {} [recovered]
panic: reflect.Set: value of type map[string]*struct { Tasks []struct { ID string "json:\"id\""; Name string "json:\"name\""; FrameworkID string "json:\"framework_id\""; ExecutorID string "json:\"executor_id\""; SlaveID string "json:\"slave_id\""; State string "json:\"state\""; Resources struct { Disk int "json:\"disk\""; Mem int "json:\"mem\""; Gpus int "json:\"gpus\""; Cpus float64 "json:\"cpus\""; Ports string "json:\"ports\"" } "json:\"resources\""; Role string "json:\"role\""; Statuses []interface {} "json:\"statuses\""; Labels []struct { Key string "json:\"key\""; Value string "json:\"value\"" } "json:\"labels\""; Discovery struct { Visibility string "json:\"visibility\""; Name string "json:\"name\""; Ports struct { Ports []interface {} "json:\"ports\"" } "json:\"ports\"" } "json:\"discovery\""; Container struct { Type string "json:\"type\""; Docker struct { Image string "json:\"image\""; Network string "json:\"network\""; PortMappings []struct { HostPort int "json:\"host_port\""; ContainerPort int "json:\"container_port\""; Protocol string "json:\"protocol\"" } "json:\"port_mappings\""; Privileged bool "json:\"privileged\""; Parameters []struct { Key string "json:\"key\""; Value string "json:\"value\"" } "json:\"parameters\""; ForcePullImage bool "json:\"force_pull_image\"" } "json:\"docker\"" } "json:\"container\""; HealthCheck struct { DelaySeconds int "json:\"delay_seconds\""; IntervalSeconds int "json:\"interval_seconds\""; TimeoutSeconds int "json:\"timeout_seconds\""; ConsecutiveFailures int "json:\"consecutive_failures\""; GracePeriodSeconds int "json:\"grace_period_seconds\""; Type string "json:\"type\""; HTTP struct { Protocol string "json:\"protocol\""; Scheme string "json:\"scheme\""; Port int "json:\"port\""; Path string "json:\"path\"" } "json:\"http\"" } "json:\"health_check\"" } } is not assignable to type map[string]*interface {}
goroutine 1 [running]:
github.com/traefik/yaegi/interp.runCfg.func1(0xc0011236b0, 0xc000cdcc00, 0xc00121f2b0)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.9.21/interp/run.go:185 +0x253
panic(0x3047140, 0xc000fc0b10)
/usr/local/golang/1.10.8/go/src/runtime/panic.go:965 +0x1b9
reflect.Value.assignTo(0xc000ef57a0, 0xc000fc2240, 0x15, 0x3821191, 0xb, 0xc000b18d80, 0x0, 0xc000ef57a0, 0x0, 0xc000fc2240)
/usr/local/golang/1.10.8/go/src/reflect/value.go:2451 +0x3f7
reflect.Value.Set(0xc000b18d80, 0xc00112bae0, 0x195, 0xc000ef57a0, 0xc000fc2240, 0x15)
/usr/local/golang/1.10.8/go/src/reflect/value.go:1564 +0xbd
github.com/traefik/yaegi/interp._make.func5(0xc0011236b0, 0xc000f7ac30)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.9.21/interp/run.go:3240 +0xaf
github.com/traefik/yaegi/interp.runCfg(0xc000cdcc00, 0xc0011236b0)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.9.21/interp/run.go:191 +0x87
github.com/traefik/yaegi/interp.genFunctionWrapper.func2.1(0x5b3fa30, 0x0, 0x0, 0x5b3fa30, 0xc000fc0560, 0x33c6c00)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.9.21/interp/run.go:952 +0x3e8
github.com/traefik/traefik/v2/pkg/plugins._PP.Init(...)
/home/semaphore/go/src/github.com/traefik/traefik/pkg/plugins/providers.go:33
github.com/traefik/traefik/v2/pkg/plugins.(*Provider).Init(0xc001168240, 0x383014c, 0x10)
/home/semaphore/go/src/github.com/traefik/traefik/pkg/plugins/providers.go:143 +0x34
github.com/traefik/traefik/v2/pkg/provider/aggregator.(*ProviderAggregator).AddProvider(0xc00121f8f0, 0x3dacf68, 0xc001168240, 0x5, 0xc0005f9890)
/home/semaphore/go/src/github.com/traefik/traefik/pkg/provider/aggregator/aggregator.go:98 +0x35
main.setupServer(0xc000292400, 0xc00098ee40, 0x1e, 0xc00047b220)
/home/semaphore/go/src/github.com/traefik/traefik/cmd/traefik/traefik.go:243 +0x692
main.runCmd(0xc000292400, 0x0, 0x0)
/home/semaphore/go/src/github.com/traefik/traefik/cmd/traefik/traefik.go:122 +0x3a5
main.main.func1(0xc00011e1f0, 0x0, 0x0, 0x0, 0xc000292480)
/home/semaphore/go/src/github.com/traefik/traefik/cmd/traefik/traefik.go:63 +0x2c
github.com/traefik/paerser/cli.run(0xc000292480, 0xc00011e1f0, 0x0, 0x0, 0x80, 0xc0006a38d0)
/home/semaphore/go/pkg/mod/github.com/traefik/paerser@v0.1.4/cli/commands.go:133 +0x171
github.com/traefik/paerser/cli.execute(0xc000292480, 0xc00011e1f0, 0x1, 0x1, 0x5b0ec01, 0x0, 0xc000096778)
/home/semaphore/go/pkg/mod/github.com/traefik/paerser@v0.1.4/cli/commands.go:57 +0x8ed
github.com/traefik/paerser/cli.Execute(...)
/home/semaphore/go/pkg/mod/github.com/traefik/paerser@v0.1.4/cli/commands.go:51
main.main()
/home/semaphore/go/src/github.com/traefik/traefik/cmd/traefik/traefik.go:79 +0x41d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment