-
-
Notifications
You must be signed in to change notification settings - Fork 720
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
Influxdb: add insecure option #16025
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
I do see in the changes that it will be applied to influxdb2.0 (also or only?) - I would need the change for influxdb1.8 - just to make sure... |
server/influxdb.go
Outdated
options := influxdb2.DefaultOptions() | ||
|
||
tlsConfig := options.TLSConfig() | ||
tlsConfig.InsecureSkipVerify = insecure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andig hier ist noch irgendetwas krumm. Wenn InfluxDB konfiguriert crasht die Anwendung hier:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0xa0 pc=0x106872ae0]
goroutine 1 [running]:
github.com/evcc-io/evcc/server.NewInfluxClient({0x14002686240, 0x21}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, ...)
/Users/michael/lab/evcc/server/influxdb.go:41 +0x240
github.com/evcc-io/evcc/cmd.configureInflux(0x109faa4f0)
/Users/michael/lab/evcc/cmd/setup.go:566 +0xe8
github.com/evcc-io/evcc/cmd.runRoot(0x109fa89a0, {0x1069e2590?, 0x7?, 0x1069d5565?})
/Users/michael/lab/evcc/cmd/root.go:187 +0x954
github.com/spf13/cobra.(*Command).execute(0x109fa89a0, {0x1400018c190, 0x2, 0x2})
/Users/michael/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989 +0x81c
github.com/spf13/cobra.(*Command).ExecuteC(0x109fa89a0)
/Users/michael/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x344
github.com/spf13/cobra.(*Command).Execute(...)
/Users/michael/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
github.com/evcc-io/evcc/cmd.Execute()
/Users/michael/lab/evcc/cmd/root.go:107 +0x24
main.main()
/Users/michael/lab/evcc/main.go:44 +0x38
exit status 2
@naltatis Fehler sollte behoben sein. Hast Du einen Test? |
Manueller Test gegen eigenen Server war erfolgreich. |
Fix #16024