openfaas / cron-connector

Invoke functions on a schedule.
MIT License
39 stars 10 forks source link

Cron Connector stuck in crash loop when installing #22

Open kferrone opened 3 years ago

kferrone commented 3 years ago

Expected Behaviour

The cron-connector should install without issue.

Current Behaviour

When I install the cron-connector using the helm chart with the following values set:

basicAuth: false

I get this error in the pod for the connector and it never fully installs:

2021/08/27 16:50:55 Version: aa14f05b4e3d2c771d631671523736886aeaa66c   Commit: 0.5.0
2021/08/27 16:50:55 Gateway URL: http://gateway.openfaas:8080
2021/08/27 16:50:55 Async Invocation: false
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x68c883]

goroutine 1 [running]:
main.startFunctionProbe(0x2540be400, 0x70d419, 0xd, 0xc000056370, 0xc00000e040, 0xc000074400, 0x0, 0x0)
    /go/src/github.com/openfaas/cron-connector/main.go:115 +0x83
main.main()
    /go/src/github.com/openfaas/cron-connector/main.go:57 +0x41f

Are you a GitHub Sponsor (Yes/No?)

Check at: https://github.com/sponsors/openfaas

List All Possible Solutions and Workarounds

I'm totally brand new to OpenFaas, I have no idea what is wrong.

Which Solution Do You Recommend?

na

Steps to Reproduce (for bugs)

  1. install the cron-connector helm chart with basicAuth=false
  2. watch error in pod

Context

Can't use the cron-connector

Your Environment

alexellis commented 3 years ago

I would really recommend that you don't turn basic authentication off for internal components.

If you use openfaas as recommended, does this problem go away?