evcc icon indicating copy to clipboard operation
evcc copied to clipboard

0.300.1: panic: runtime error: invalid memory address or nil pointer dereference

Open effen28 opened this issue 11 months ago • 24 comments

Describe the bug

Nach Update auf 0.300.1 wird der Server nicht mehr erreicht

Steps to reproduce

  1. restart Evcc 2.also downgrade tried 3.same issue ...

Configuration details

.

Log details

Nicht vorhanden

What type of operating system or environment does evcc run on?

Linux

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

0.300.1

effen28 avatar Dec 31 '25 12:12 effen28

I have the Same issue

renek-boop avatar Dec 31 '25 12:12 renek-boop

Hello Andig, and how can I fit it? because you closed it, but it is not working or did I something wrong?

effen28 avatar Dec 31 '25 12:12 effen28

Das Mindeste wäre ein Logfile und je nach Fehler auch die Konfiguration.

VolkerK62 avatar Dec 31 '25 12:12 VolkerK62

Hallo VolkerK62, da ich nicht auf das System komme, habe ich auch keine Logfiles

effen28 avatar Dec 31 '25 12:12 effen28

Und das soll genau was heissen? Wenn SSH kaputt ist liegts nicht an evcc...

andig avatar Dec 31 '25 13:12 andig

Hallo andig, ich bin hier wirklich kein Experte und bin gerade am verzweifeln, da mein evcc nicht mehr läuft.

Was ist SSH?

Nett wäre wenn mir kurz einer sagen würde ob es eine Lösung gibt oder nicht. Wenn ja, dann wie.....

DANKE

effen28 avatar Dec 31 '25 13:12 effen28

Es braucht ein Logfile. In der Doku steht wie das geht.

andig avatar Dec 31 '25 13:12 andig

Wenn man sich nicht einmal mit dem mindesten an Wissen angereichert hat um zu verstehen wie das Programm im simpelsten funktioniert, wie soll dir dann hier jemand helfen??

Ein paar grundlegende Infos zum Beispiel... Läuft es in Docker, wie ist deine Config, etc...

Maxxxe avatar Dec 31 '25 13:12 Maxxxe

[main  ] INFO 2025/12/31 13:49:59 evcc 0.300.1
[main  ] INFO 2025/12/31 13:49:59 config file not found, database-only mode
[main  ] INFO 2025/12/31 13:49:59 using sqlite database: /root/.evcc/evcc.db?_pragma=busy_timeout(5000)
[main  ] INFO 2025/12/31 13:49:59 OCPP local:    ws://127.0.0.1:8887/<stationId>
[main  ] INFO 2025/12/31 13:49:59 UI local:      http://127.0.0.1:7070
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1d0 pc=0x22a3fe8]
goroutine 1 [running]:
github.com/evcc-io/evcc/core.(*Site).Boot(0x7822608, 0x7857ca0, {0x754e278, 0x1, 0x1}, 0x786c000)
	github.com/evcc-io/evcc/core/site.go:178 +0x4b8
github.com/evcc-io/evcc/cmd.configureSite(0x0, {0x754e278, 0x1, 0x1}, 0x786c000)
	github.com/evcc-io/evcc/cmd/setup.go:1103 +0x64
github.com/evcc-io/evcc/cmd.configureSiteAndLoadpoints(0x624e500)
	github.com/evcc-io/evcc/cmd/setup.go:1045 +0x430
github.com/evcc-io/evcc/cmd.runRoot(0x624cf68, {0x633cd28, 0x0, 0x0})
	github.com/evcc-io/evcc/cmd/root.go:247 +0xf98
github.com/spf13/cobra.(*Command).execute(0x624cf68, {0x70a6090, 0x0, 0x0})
	***@***.***/command.go:1019 +0xa2c
github.com/spf13/cobra.(*Command).ExecuteC(0x624cf68)
	***@***.***/command.go:1148 +0x490
github.com/spf13/cobra.(*Command).Execute(...)
	***@***.***/command.go:1071
github.com/evcc-io/evcc/cmd.Execute()
	github.com/evcc-io/evcc/cmd/root.go:128 +0x20
main.main()
	github.com/evcc-io/evcc/main.go:44 +0x3c

renek-boop avatar Dec 31 '25 13:12 renek-boop

bei mir läufts über nen Docker auf dem pi. Bin mittlerweile wieder auf die vorherige Version gewechselt

renek-boop avatar Dec 31 '25 13:12 renek-boop

@renek-boop could you please email your config database to [email protected]?

@iseeberg79 this is indeed 300.1, so there must be another issue, too.

andig avatar Dec 31 '25 13:12 andig

@renek-boop could you please try nighly build in 30min?

andig avatar Dec 31 '25 13:12 andig

@andig same issue here with 0.300.1 (HA), but with nightly.20251231-7cc9adc system starts and works... Database and config are the same on my side für nightly and official version... Any other Information needed where I can support you with?

LutzDi avatar Dec 31 '25 13:12 LutzDi

@LutzDi could you try the latest nightly b21db18?

andig avatar Dec 31 '25 13:12 andig

@lutzdi and did you try 0.300.0 before and did it work? Then nightly should now work, too.

andig avatar Dec 31 '25 14:12 andig

@andig, checked and b21db18 works fine too... I can't confirm the version 0.300.0, I installed it but the 0.300.1 followed so fast...that I installed them directly after each other...

LutzDi avatar Dec 31 '25 14:12 LutzDi

die version 0.300.0 funktioniert; ich habe damit ein Auto geladen.

Heinrich-Huldsessen avatar Dec 31 '25 14:12 Heinrich-Huldsessen

Same issue here w/ 0.300.1 with evcc as rpi4 home assistant add-on. Luckily had a backup of 0.211.1.

Side question: any pointer on how to update to nightlies from the HA evcc add-on?

Ch74b avatar Dec 31 '25 14:12 Ch74b

@Ch74b, I hope I got your question right. You need to know how to install the nightly for HA? If so just go to addon store and you will see the nightly beside the official release

Image

Just install it in addition to the official version, copy the YAML and DB to the normal file system of HA and make the config of official and nightly the same so that both are using the same config and DB.... Then you can switch whenever you want...

LutzDi avatar Dec 31 '25 14:12 LutzDi

Same here with 300.1. I installed 300.0 which worked without problems.

Normal docker install, not HA-addon

Delta1977 avatar Dec 31 '25 14:12 Delta1977