Skip to content
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

nil pointer with kubernetes ingress #934

Closed
Hades32 opened this issue Dec 4, 2016 · 2 comments
Closed

nil pointer with kubernetes ingress #934

Hades32 opened this issue Dec 4, 2016 · 2 comments
Labels
kind/bug/confirmed a confirmed bug (reproducible). priority/P0 needs hot fix status/5-frozen-due-to-age
Milestone

Comments

@Hades32
Copy link
Contributor

Hades32 commented Dec 4, 2016

Traefik v1.1.1 Kubernets 1.4.6

Log:

time="2016-12-04T22:30:59Z" level=error msg="Error in Go routine: runtime error: invalid memory address or nil pointer dereference"
goroutine 34 [running]:
runtime/debug.Stack(0x0, 0x0, 0x0)
        /usr/local/go/src/runtime/debug/stack.go:24 +0x74
runtime/debug.PrintStack()
        /usr/local/go/src/runtime/debug/stack.go:16 +0x18
github.com/containous/traefik/safe.defaultRecoverGoroutine(0x99af60, 0x4420016020)
        /go/src/github.com/containous/traefik/safe/routine.go:135 +0x70
github.com/containous/traefik/safe.GoWithRecover.func1.1(0xb69740)
        /go/src/github.com/containous/traefik/safe/routine.go:126 +0x4c
panic(0x99af60, 0x4420016020)
        /usr/local/go/src/runtime/panic.go:458 +0x4c0
github.com/containous/traefik/provider.(*Kubernetes).loadIngresses(0x442030d400, 0xf4c3c0, 0x442044e1c0, 0x1, 0x0, 0x0)
        /go/src/github.com/containous/traefik/provider/kubernetes.go:199 +0x378
github.com/containous/traefik/provider.(*Kubernetes).Provide.func1.1(0x0, 0x0)
        /go/src/github.com/containous/traefik/provider/kubernetes.go:131 +0x4e8
github.com/containous/traefik/vendor/github.com/cenk/backoff.RetryNotify(0x4420448750, 0xf47880, 0x44204246b0, 0xb696e0, 0x0, 0x0)
        /go/src/github.com/containous/traefik/vendor/github.com/cenk/backoff/retry.go:32 +0x48
github.com/containous/traefik/provider.(*Kubernetes).Provide.func1(0x4420434150)
        /go/src/github.com/containous/traefik/provider/kubernetes.go:153 +0x188
github.com/containous/traefik/safe.(*Pool).Go.func1()
        /go/src/github.com/containous/traefik/safe/routine.go:73 +0x44
github.com/containous/traefik/safe.GoWithRecover.func1(0xb69740, 0x4420448150)
        /go/src/github.com/containous/traefik/safe/routine.go:129 +0x5c
created by github.com/containous/traefik/safe.GoWithRecover
        /go/src/github.com/containous/traefik/safe/routine.go:130 +0x3c

Ingress.yaml

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: v2c-path-ingress
#  annotations:
#    traefik.frontend.rule.type: pathprefix
spec:
  rules:
#  - host: k8s.local
   - http:
      paths:
      - path: /v2c
        backend:
          serviceName: v2c
          servicePort: http
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: v2c-host-ingress
spec:
  rules:
   - host: v2c.my.secret-host.de
   - http:
      paths:
      - backend:
          serviceName: v2c
          servicePort: http
@Hades32
Copy link
Contributor Author

Hades32 commented Dec 4, 2016

I had to kill my traefik pod to see any k8s updates after this...

@emilevauge emilevauge added bug priority/P0 needs hot fix labels Dec 5, 2016
@emilevauge emilevauge added this to the 1.1 milestone Dec 5, 2016
@emilevauge
Copy link
Member

Fixed by #944

@ldez ldez added the kind/bug/confirmed a confirmed bug (reproducible). label Apr 29, 2017
@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug/confirmed a confirmed bug (reproducible). priority/P0 needs hot fix status/5-frozen-due-to-age
Projects
None yet
Development

No branches or pull requests

4 participants