evcc icon indicating copy to clipboard operation
evcc copied to clipboard

sponsorship rpc error: code = Unknown desc = token has invalid claims: token is expired - get a fresh one from https://sponsor.evcc.io

Open Oberfranke opened this issue 7 months ago • 3 comments

Describe the bug

Hallo zusammen,

ich bekomme seit kurzem die Fehlermeldung: sponsorship rpc error: code = Unknown desc = token has invalid claims: token is expired - get a fresh one from https://sponsor.evcc.io

Einen frischen Token habe ich schon 2 oder 3 mal geholt. Nach dem ich es in der YAML eingefügt habe, war immer noch die Ansicht "Fehler beim Starten"...

Wenn ich das System in ruhe lasse, geht es irgendwann wieder von alleine... So weit so gut, aber sobald irgend ein Update wieder kommt, startet EVCC nach dem Update wieder nicht und ich bekomme wieder die Meldung aus dem Betreff... Also wieder die Schritte neuen token usw und dann wieder 1/2 Tag bis Tag warten, bis es wieder geht...

Das ganze läuft auf HomeAssistant. Das ganze lief bis zum Update 0.304.0.

Was ist die dauerhafte Lösung?

VG Oberfranke

Steps to reproduce

...

Configuration details

#

Log details

[site  ] DEBUG 2026/04/12 10:56:17 battery 1 power: -1636W
[site  ] DEBUG 2026/04/12 10:56:17 battery 1 soc: 35%
[site  ] DEBUG 2026/04/12 10:56:17 grid power: -86W
[site  ] DEBUG 2026/04/12 10:56:17 pv 1 power: 2738W
[site  ] DEBUG 2026/04/12 10:56:17 !! solar production: accumulate add pv2 0.000W power (was: Accumulated: 162.549kWh updated: 2026-04-12 10:56:14 +0200 CEST)
[site  ] DEBUG 2026/04/12 10:56:17 !! solar production: accumulate moved pv2 from 162.549 to 162.551
[site  ] DEBUG 2026/04/12 10:56:17 battery has priority at soc 35% (< 100%)
[site  ] DEBUG 2026/04/12 10:56:17 site power: 14W
[lp-1  ] DEBUG 2026/04/12 10:56:17 charger status: B
[lp-1  ] DEBUG 2026/04/12 10:56:17 !! plan: plan time zero
[lp-1  ] DEBUG 2026/04/12 10:56:17 pv charge current: 0A = 0A + -0.0609A (14W @ 1p)
[site  ] DEBUG 2026/04/12 10:56:20 ----
[lp-1  ] DEBUG 2026/04/12 10:56:20 charge power: 0W
[site  ] DEBUG 2026/04/12 10:56:20 battery 1 power: -1661W
[site  ] DEBUG 2026/04/12 10:56:20 grid power: -49W
[site  ] DEBUG 2026/04/12 10:56:20 battery 1 soc: 35%
[site  ] DEBUG 2026/04/12 10:56:20 pv 1 power: 2747W
[site  ] DEBUG 2026/04/12 10:56:20 !! solar production: accumulate add pv2 0.000W power (was: Accumulated: 162.551kWh updated: 2026-04-12 10:56:17 +0200 CEST)
[site  ] DEBUG 2026/04/12 10:56:20 !! solar production: accumulate moved pv2 from 162.551 to 162.553
[site  ] DEBUG 2026/04/12 10:56:20 battery has priority at soc 35% (< 100%)
[site  ] DEBUG 2026/04/12 10:56:20 site power: 51W
[lp-1  ] DEBUG 2026/04/12 10:56:20 charger status: B
[lp-1  ] DEBUG 2026/04/12 10:56:20 !! plan: plan time zero
[lp-1  ] DEBUG 2026/04/12 10:56:20 pv charge current: 0A = 0A + -0.222A (51W @ 1p)
[site  ] DEBUG 2026/04/12 10:56:23 ----
[lp-1  ] DEBUG 2026/04/12 10:56:23 charge power: 0W
[site  ] DEBUG 2026/04/12 10:56:23 battery 1 power: -1710W
[site  ] DEBUG 2026/04/12 10:56:23 grid power: -50W
[site  ] DEBUG 2026/04/12 10:56:23 battery 1 soc: 35%
[site  ] DEBUG 2026/04/12 10:56:23 pv 1 power: 2768W
[site  ] DEBUG 2026/04/12 10:56:23 !! solar production: accumulate add pv2 0.000W power (was: Accumulated: 162.553kWh updated: 2026-04-12 10:56:20 +0200 CEST)
[site  ] DEBUG 2026/04/12 10:56:23 !! solar production: accumulate moved pv2 from 162.553 to 162.555
[site  ] DEBUG 2026/04/12 10:56:23 battery has priority at soc 35% (< 100%)
[site  ] DEBUG 2026/04/12 10:56:23 site power: 50W
[lp-1  ] DEBUG 2026/04/12 10:56:23 charger status: B
[lp-1  ] DEBUG 2026/04/12 10:56:23 !! plan: plan time zero
[lp-1  ] DEBUG 2026/04/12 10:56:23 pv charge current: 0A = 0A + -0.217A (50W @ 1p)
[site  ] DEBUG 2026/04/12 10:56:26 ----
[lp-1  ] DEBUG 2026/04/12 10:56:26 charge power: 0W
[site  ] DEBUG 2026/04/12 10:56:26 battery 1 power: -1716W
[site  ] DEBUG 2026/04/12 10:56:26 grid power: -45W
[site  ] DEBUG 2026/04/12 10:56:26 battery 1 soc: 35%
[site  ] DEBUG 2026/04/12 10:56:26 pv 1 power: 2789W
[site  ] DEBUG 2026/04/12 10:56:26 !! solar production: accumulate add pv2 0.000W power (was: Accumulated: 162.555kWh updated: 2026-04-12 10:56:23 +0200 CEST)
[site  ] DEBUG 2026/04/12 10:56:26 !! solar production: accumulate moved pv2 from 162.555 to 162.558
[site  ] DEBUG 2026/04/12 10:56:26 battery has priority at soc 35% (< 100%)
[site  ] DEBUG 2026/04/12 10:56:26 site power: 55W
[lp-1  ] DEBUG 2026/04/12 10:56:26 charger status: B
[lp-1  ] DEBUG 2026/04/12 10:56:26 !! plan: plan time zero
[lp-1  ] DEBUG 2026/04/12 10:56:26 pv charge current: 0A = 0A + -0.239A (55W @ 1p)
[site  ] DEBUG 2026/04/12 10:56:29 ----
[lp-1  ] DEBUG 2026/04/12 10:56:29 charge power: 0W
[site  ] DEBUG 2026/04/12 10:56:29 battery 1 power: -1725W
[site  ] DEBUG 2026/04/12 10:56:29 grid power: -40W
[site  ] DEBUG 2026/04/12 10:56:29 battery 1 soc: 35%
[site  ] DEBUG 2026/04/12 10:56:29 pv 1 power: 2793W
[site  ] DEBUG 2026/04/12 10:56:29 !! solar production: accumulate add pv2 0.000W power (was: Accumulated: 162.558kWh updated: 2026-04-12 10:56:26 +0200 CEST)
[site  ] DEBUG 2026/04/12 10:56:29 !! solar production: accumulate moved pv2 from 162.558 to 162.560
[site  ] DEBUG 2026/04/12 10:56:29 battery has priority at soc 35% (< 100%)
[site  ] DEBUG 2026/04/12 10:56:29 site power: 60W
[lp-1  ] DEBUG 2026/04/12 10:56:29 charger status: B
[lp-1  ] DEBUG 2026/04/12 10:56:29 !! plan: plan time zero
[lp-1  ] DEBUG 2026/04/12 10:56:29 pv charge current: 0A = 0A + -0.261A (60W @ 1p)
Config: configured (/config/evcc.yaml), exists
Database: configured (/data/evcc.db), exists
[main  ] INFO 2026/04/12 10:56:33 evcc 0.304.3
[main  ] INFO 2026/04/12 10:56:33 using config file: /config/evcc.yaml
[main  ] INFO 2026/04/12 10:56:33 using sqlite database: /data/evcc.db?_pragma=busy_timeout(5000)
[main  ] INFO 2026/04/12 10:56:33 OCPP local url:    ws://127.0.0.1:8887/<stationId>
[main  ] INFO 2026/04/12 10:56:33 UI local url:      http://127.0.0.1:7070
[main  ] FATAL 2026/04/12 10:56:33 sponsorship rpc error: code = Unknown desc = token has invalid claims: token is expired - get a fresh one from https://sponsor.evcc.io
[main  ] FATAL 2026/04/12 10:56:33 will attempt restart in: 15m0s
Config: configured (/config/evcc.yaml), exists
Database: configured (/data/evcc.db), exists
[main  ] INFO 2026/04/12 14:13:16 evcc 0.304.3
[main  ] INFO 2026/04/12 14:13:16 using config file: /config/evcc.yaml
[main  ] INFO 2026/04/12 14:13:16 using sqlite database: /data/evcc.db?_pragma=busy_timeout(5000)
[main  ] INFO 2026/04/12 14:13:16 OCPP local url:    ws://127.0.0.1:8887/<stationId>
[main  ] INFO 2026/04/12 14:13:17 UI local url:      http://127.0.0.1:7070
[main  ] FATAL 2026/04/12 14:13:17 sponsorship rpc error: code = Unknown desc = token has invalid claims: token is expired - get a fresh one from https://sponsor.evcc.io
[main  ] FATAL 2026/04/12 14:13:17 will attempt restart in: 15m0s
[main  ] INFO 2026/04/12 14:15:05 evcc was stopped by user. OS should restart the service. Or restart manually.
Config: configured (/config/evcc.yaml), exists
Database: configured (/data/evcc.db), exists
[main  ] INFO 2026/04/12 14:15:06 evcc 0.304.3
[main  ] INFO 2026/04/12 14:15:06 using config file: /config/evcc.yaml
[main  ] INFO 2026/04/12 14:15:06 using sqlite database: /data/evcc.db?_pragma=busy_timeout(5000)
[main  ] INFO 2026/04/12 14:15:06 OCPP local url:    ws://127.0.0.1:8887/<stationId>
[main  ] INFO 2026/04/12 14:15:06 UI local url:      http://127.0.0.1:7070
[main  ] FATAL 2026/04/12 14:15:06 sponsorship rpc error: code = Unknown desc = token has invalid claims: token is expired - get a fresh one from https://sponsor.evcc.io
[main  ] FATAL 2026/04/12 14:15:06 will attempt restart in: 15m0s
Config: configured (/config/evcc.yaml), exists
Database: configured (/data/evcc.db), exists
[main  ] INFO 2026/04/12 14:16:05 evcc 0.304.3
[main  ] INFO 2026/04/12 14:16:05 using config file: /config/evcc.yaml
[main  ] INFO 2026/04/12 14:16:05 using sqlite database: /data/evcc.db?_pragma=busy_timeout(5000)
[main  ] INFO 2026/04/12 14:16:05 OCPP local url:    ws://127.0.0.1:8887/<stationId>
[main  ] INFO 2026/04/12 14:16:05 UI local url:      http://127.0.0.1:7070
[main  ] FATAL 2026/04/12 14:16:05 sponsorship rpc error: code = Unknown desc = token has invalid claims: token is expired - get a fresh one from https://sponsor.evcc.io
[main  ] FATAL 2026/04/12 14:16:05 will attempt restart in: 15m0s

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

HomeAssistant Add-on

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

Oberfranke avatar Apr 12 '26 12:04 Oberfranke

Anscheinend machst Du das Token beim kopieren kaputt. Im Zweifel mit Token an [email protected] wenden.

andig avatar Apr 12 '26 12:04 andig

Leider besteht das Problem immer noch. Der Token ist in Ordnung.

Oberfranke avatar Apr 12 '26 13:04 Oberfranke

Nein, ist er nicht. Deine Installation hier verwendet offensichtlich ein anderes Token als das per Email ausgetauschte. Also Datenbank und YAML überprüfen. Irgendwo steht ein falsches oder evcc verwendet eine andere Konfiguration als du glaubst.

andig avatar Apr 12 '26 13:04 andig