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

Influxdb: add insecure option #16025

Merged
merged 4 commits into from
Sep 24, 2024
Merged

Influxdb: add insecure option #16025

merged 4 commits into from
Sep 24, 2024

Conversation

andig
Copy link
Member

@andig andig commented Sep 11, 2024

Fix #16024

@andig andig added the enhancement New feature or request label Sep 11, 2024
server/influxdb.go Outdated Show resolved Hide resolved
@ftoerner

This comment was marked as off-topic.

@andig andig marked this pull request as draft September 11, 2024 16:39
@naltatis naltatis self-assigned this Sep 13, 2024
@github-actions github-actions bot added the stale Outdated and ready to close label Sep 20, 2024
@ftoerner
Copy link

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...

@github-actions github-actions bot removed the stale Outdated and ready to close label Sep 23, 2024
options := influxdb2.DefaultOptions()

tlsConfig := options.TLSConfig()
tlsConfig.InsecureSkipVerify = insecure
Copy link
Member

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
Copy link
Member

Setting ist im Config UI für v1 und v2 hinzugefügt.

Bildschirmfoto 2024-09-23 um 09 27 47

Bildschirmfoto 2024-09-23 um 09 27 51

@naltatis naltatis assigned andig and unassigned naltatis Sep 23, 2024
@andig andig marked this pull request as ready for review September 23, 2024 16:00
@andig
Copy link
Member Author

andig commented Sep 23, 2024

@naltatis Fehler sollte behoben sein. Hast Du einen Test?

@naltatis
Copy link
Member

Manueller Test gegen eigenen Server war erfolgreich.

@andig andig merged commit e627fbd into master Sep 24, 2024
6 checks passed
@andig andig deleted the fix/influx branch September 24, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

influxdb option
4 participants