Closed slewantoski closed 11 months ago
Same problem here... same is also true with 0.121.4
I have the same problem.. with 0.121.3 and 0.121.4. The downgrade to 0.121.2 works fine again.
Failure:
...
[lp-1 ] DEBUG 2023/10/28 23:54:13 vehicle odometer: 84147km
[lp-1 ] DEBUG 2023/10/28 23:54:13 charge currents: [0 0 0]A
[lp-1 ] DEBUG 2023/10/28 23:54:13 charger status: A
[lp-1 ] INFO 2023/10/28 23:54:13 car disconnected
[lp-1 ] DEBUG 2023/10/28 23:54:13 set charge mode: pv
[lp-1 ] DEBUG 2023/10/28 23:54:13 set target soc: 85
[lp-1 ] DEBUG 2023/10/28 23:54:13 set max current: 16
panic: reflect.Value.Interface: cannot return value obtained from unexported field or method
goroutine 293 [running]:
reflect.valueInterface({0x1c564a0?, 0x40016ba108?, 0x4001bb7b10?}, 0x2?)
reflect/value.go:1501 +0xc8
reflect.Value.Interface(...)
reflect/value.go:1490
github.com/evcc-io/evcc/server.(*MQTT).publishComplex(0x1c?, {0x4001f44160, 0x1c}, 0x2?, {0x2110580, 0x40016ba108})
github.com/evcc-io/evcc/server/mqtt.go:97 +0x390
github.com/evcc-io/evcc/server.(*MQTT).publish(0x2183edd?, {0x4001f44160?, 0x48996e0?}, 0x20?, {0x2110580?, 0x40016ba108?})
github.com/evcc-io/evcc/server/mqtt.go:123 +0x84
github.com/evcc-io/evcc/server.(*MQTT).Run(0x4000912020, {0x2bba440?, 0x40018ed800}, 0x0?)
github.com/evcc-io/evcc/server/mqtt.go:306 +0xabc
created by github.com/evcc-io/evcc/cmd.runRoot in goroutine 1
github.com/evcc-io/evcc/cmd/root.go:202 +
Disabling MQTT solved the problem for me
0.120.4 released
I'm still seeing this problem with 0.121.4.
[main ] INFO 2023/10/29 11:36:45 evcc 0.121.4
...
panic: reflect.Value.Interface: cannot return value obtained from unexported field or method
goroutine 578 [running]:
reflect.valueInterface({0x1c564a0?, 0x40010e84c8?, 0x4000e67b10?}, 0x2?)
reflect/value.go:1501 +0xc8
reflect.Value.Interface(...)
reflect/value.go:1490
github.com/evcc-io/evcc/server.(*MQTT).publishComplex(0x1c?, {0x40014c5e00, 0x1c}, 0x2?, {0x2110580, 0x40010e84c8})
github.com/evcc-io/evcc/server/mqtt.go:97 +0x390
github.com/evcc-io/evcc/server.(*MQTT).publish(0x2183eea?, {0x40014c5e00?, 0x4899740?}, 0xa0?, {0x2110580?, 0x40010e84c8?})
github.com/evcc-io/evcc/server/mqtt.go:123 +0x84
github.com/evcc-io/evcc/server.(*MQTT).Run(0x4000bc11c0, {0x2bba4c0?, 0x40012bf000}, 0x0?)
github.com/evcc-io/evcc/server/mqtt.go:306 +0xabc
created by github.com/evcc-io/evcc/cmd.runRoot in goroutine 1
github.com/evcc-io/evcc/cmd/root.go:202 +0xcbc
Same problem here - with 0.121.3 and 0.121.4 (just tested). Must return to 0.121.2 ... I've using MQTT as well...
Error was:
evcc panic: reflect.Value.Interface: cannot return value obtained from unexported field or method
Not fixed with 0.121.4. Same Problem:
[main ] INFO 2023/10/29 08:42:11 evcc 0.121.4
[main ] INFO 2023/10/29 08:42:11 using config file: /etc/evcc.yaml
[main ] INFO 2023/10/29 08:42:11 starting ui and api at :7070
[db ] INFO 2023/10/29 08:42:12 using sqlite database: /root/.evcc/evcc.db
[mqtt ] INFO 2023/10/29 08:42:12 connecting evcc at tcp://192.168.0.70:1883
[mqtt ] DEBUG 2023/10/29 08:42:12 tcp://192.168.0.70:1883 connected
[mqtt ] DEBUG 2023/10/29 08:42:12 tcp://192.168.0.70:1883 subscribe pvpower/pv
[site ] INFO 2023/10/29 08:42:22 site config:
[site ] INFO 2023/10/29 08:42:22 meters: grid ✓ pv ✓ battery ✓
[site ] INFO 2023/10/29 08:42:22 grid: power ✓ energy ✗ currents ✗
[site ] INFO 2023/10/29 08:42:22 pv 1: power ✓ energy ✗ currents ✗
[site ] INFO 2023/10/29 08:42:22 battery 1: power ✓ energy ✗ currents ✗ soc ✓ capacity ✗
[site ] INFO 2023/10/29 08:42:22 vehicles:
[site ] INFO 2023/10/29 08:42:22 vehicle 1: range ✗ finish ✗ status ✗ climate ✗ wakeup ✗
[lp-1 ] INFO 2023/10/29 08:42:22 loadpoint 1:
[lp-1 ] INFO 2023/10/29 08:42:22 mode: off
[lp-1 ] INFO 2023/10/29 08:42:22 charger: power ✗ energy ✗ currents ✗ phases ✗ wakeup ✓
[lp-1 ] INFO 2023/10/29 08:42:22 meters: charge ✗
[lp-1 ] DEBUG 2023/10/29 08:42:22 phase timer inactive
[lp-1 ] DEBUG 2023/10/29 08:42:22 pv timer inactive
[lp-1 ] DEBUG 2023/10/29 08:42:22 guard timer inactive
[site ] WARN 2023/10/29 08:42:22 interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval
[site ] DEBUG 2023/10/29 08:42:22 ----
[lp-1 ] DEBUG 2023/10/29 08:42:22 charge power: 0W
[site ] DEBUG 2023/10/29 08:42:22 pv power: 161W
[site ] DEBUG 2023/10/29 08:42:22 battery soc: 0%
[site ] DEBUG 2023/10/29 08:42:22 battery power: 1W
[site ] DEBUG 2023/10/29 08:42:22 grid power: 505W
[site ] DEBUG 2023/10/29 08:42:22 site power: 706W
[lp-1 ] DEBUG 2023/10/29 08:42:22 charger status: A
[lp-1 ] INFO 2023/10/29 08:42:22 car disconnected
[lp-1 ] DEBUG 2023/10/29 08:42:22 set charge mode: off
[lp-1 ] DEBUG 2023/10/29 08:42:22 set min current: 6
[lp-1 ] DEBUG 2023/10/29 08:42:22 set max current: 16
[lp-1 ] DEBUG 2023/10/29 08:42:22 set priority: 0
panic: reflect.Value.Interface: cannot return value obtained from unexported field or method
goroutine 47 [running]:
reflect.valueInterface({0x1c564a0?, 0x40009d5200?, 0x4000d57b10?}, 0x2?)
reflect/value.go:1501 +0xc8
reflect.Value.Interface(...)
reflect/value.go:1490
github.com/evcc-io/evcc/server.(*MQTT).publishComplex(0x1c?, {0x400157a100, 0x1c}, 0x2?, {0x2110580, 0x40009d5200})
github.com/evcc-io/evcc/server/mqtt.go:97 +0x390
github.com/evcc-io/evcc/server.(*MQTT).publish(0x2183eea?, {0x400157a100?, 0x4899740?}, 0xa0?, {0x2110580?, 0x40009d5200?})
github.com/evcc-io/evcc/server/mqtt.go:123 +0x84
github.com/evcc-io/evcc/server.(*MQTT).Run(0x40014e8980, {0x2bba4c0?, 0x40014be400}, 0x40011b2000?)
github.com/evcc-io/evcc/server/mqtt.go:306 +0xabc
created by github.com/evcc-io/evcc/cmd.runRoot in goroutine 1
github.com/evcc-io/evcc/cmd/root.go:202 +0xcbc
Also see: #10549
Fixed! THANK YOU!
Describe the bug
After updating my evcc from 0.121.2 to 0.121.3 it instantly crashes on startup. Same configuration works perfectly with the older versions.
Steps to reproduce
Configuration details
Log details
What type of operating system are you running?
Linux
Version
evcc version 0.121.3