evcc icon indicating copy to clipboard operation
evcc copied to clipboard

evcc loses E3/DC connectivity after some time. Restart fixes the connection

Open goebelmeier opened this issue 1 year ago • 23 comments

Describe the bug

Like described in #20773 newer evcc releases lose the connectivity towards E3/DC devices after some time. Restarting evcc reliably fixes this issue for some time.

Steps to reproduce

  1. Configure meters of type E3/DC
  2. Start evcc
  3. Let in run some time (days)
  4. Experience the following errors:
[site  ] ERROR 2025/05/27 09:54:53 
2025-05-27 09:54:46.46598817 +0200 CEST m=+328205.966000823 !!  23ms authentication error: EOF
2025-05-27 09:54:46.51072451 +0200 CEST m=+328206.010737187 !!  28ms authentication error: EOF
2025-05-27 09:54:46.567629747 +0200 CEST m=+328206.067642421 !!  23ms authentication error: EOF
2025-05-27 09:54:46.62731407 +0200 CEST m=+328206.127326719 !!  23ms authentication error: EOF

Configuration details

meters:
  - name: e3dc-pv
    type: template
    template: e3dc-rscp
    usage: pv
    host: 192.168.4.77
    user: [email protected] # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.) (optional)
    password: PASSWORD # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen) (optional)
    key: RSCPKEY # optiona
  - name: e3dc-grid
    type: template
    template: e3dc-rscp
    usage: grid
    host: 192.168.4.77
    user: [email protected] # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.) (optional)
    password: PASSWORD # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen) (optional)
    key: RSCPKEY # optional
  - name: e3dc-battery
    type: template
    template: e3dc-rscp
    usage: battery
    host: 192.168.4.77
    user: [email protected] # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.) (optional)
    password: PASSWORD # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen) (optional)
    key: RSCPKEY # optional

Log details

[site  ] ERROR 2025/05/27 09:54:44 battery 1 power: authentication error: EOF
[site  ] ERROR 2025/05/27 09:54:44 battery 1 soc: authentication error: EOF
[site  ] ERROR 2025/05/27 09:54:44 grid power: authentication error: EOF
[site  ] DEBUG 2025/05/27 09:54:46 ----
[lp-1  ] DEBUG 2025/05/27 09:54:46 charge power: 0W
[lp-1  ] DEBUG 2025/05/27 09:54:46 charge currents: [0 0 0]A
[site  ] ERROR 2025/05/27 09:54:53 
2025-05-27 09:54:46.46598817 +0200 CEST m=+328205.966000823 !!  23ms authentication error: EOF
2025-05-27 09:54:46.51072451 +0200 CEST m=+328206.010737187 !!  28ms authentication error: EOF
2025-05-27 09:54:46.567629747 +0200 CEST m=+328206.067642421 !!  23ms authentication error: EOF
2025-05-27 09:54:46.62731407 +0200 CEST m=+328206.127326719 !!  23ms authentication error: EOF
2025-05-27 09:54:46.709633331 +0200 CEST m=+328206.209646007 !!   9ms authentication error: EOF
2025-05-27 09:54:46.838995771 +0200 CEST m=+328206.339008377 !!   6ms authentication error: EOF
2025-05-27 09:54:47.039462099 +0200 CEST m=+328206.539474776 !!   8ms authentication error: EOF
2025-05-27 09:54:47.225912678 +0200 CEST m=+328206.725925366 !!   7ms authentication error: EOF
2025-05-27 09:54:47.674169958 +0200 CEST m=+328207.174182629 !!  14ms authentication error: EOF
2025-05-27 09:54:48.269877062 +0200 CEST m=+328207.769889668 !!   6ms authentication error: EOF
2025-05-27 09:54:48.842234077 +0200 CEST m=+328208.342246765 !!  13ms authentication error: EOF
2025-05-27 09:54:50.502212727 +0200 CEST m=+328210.002225408 !!   8ms authentication error: EOF
2025-05-27 09:54:51.611632684 +0200 CEST m=+328211.111645361 !!   8ms authentication error: EOF
2025-05-27 09:54:53.422481909 +0200 CEST m=+328212.922494598 !!   8ms authentication error: EOF

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

goebelmeier avatar May 27 '25 08:05 goebelmeier

I've switches [site] logging from DEBUG to TRACE now and will deliver trace logs as soon as it happens next time.

goebelmeier avatar May 27 '25 08:05 goebelmeier

Still struggling with correct TRACE logging. But the issue appeared quite fast today:

[lp-1  ] DEBUG 2025/05/27 10:49:43 charger status: B
[lp-1  ] DEBUG 2025/05/27 10:49:43 pv charge current: 0A = 0A + -2.08A (478W @ 1p)
[site  ] DEBUG 2025/05/27 10:49:43 solar forecast: accumulated 0.634kWh, produced 0.950kWh, scale 1.499
[site  ] DEBUG 2025/05/27 10:49:53 ----
[lp-1  ] DEBUG 2025/05/27 10:49:53 charge power: 0W
[lp-1  ] DEBUG 2025/05/27 10:49:53 charge currents: [0 0 0]A
[site  ] DEBUG 2025/05/27 10:49:53 battery 1 power: 354W
[site  ] DEBUG 2025/05/27 10:49:53 grid power: -2W
[site  ] DEBUG 2025/05/27 10:49:53 pv 1 power: 1111W
[site  ] DEBUG 2025/05/27 10:49:53 battery 1 soc: 26%
[site  ] DEBUG 2025/05/27 10:49:53 site power: 452W
[lp-1  ] DEBUG 2025/05/27 10:49:53 charge voltages: [229 0 0]V
[lp-1  ] DEBUG 2025/05/27 10:49:53 detected connected phases: 1p
[lp-1  ] DEBUG 2025/05/27 10:49:53 charge total import: 23218.195kWh
[lp-1  ] DEBUG 2025/05/27 10:49:53 charger status: B
[lp-1  ] DEBUG 2025/05/27 10:49:53 pv charge current: 0A = 0A + -1.97A (452W @ 1p)
[site  ] DEBUG 2025/05/27 10:49:53 solar forecast: accumulated 0.636kWh, produced 0.953kWh, scale 1.499
[site  ] DEBUG 2025/05/27 10:50:03 ----
[lp-1  ] DEBUG 2025/05/27 10:50:03 charge power: 0W
[lp-1  ] DEBUG 2025/05/27 10:50:03 charge currents: [0 0 0]A
[site  ] ERROR 2025/05/27 10:50:11 
2025-05-27 10:50:03.131172092 +0200 CEST m=+2695.485858961 !!   3ms EOF
2025-05-27 10:50:03.165264001 +0200 CEST m=+2695.519950891 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.198570992 +0200 CEST m=+2695.553257879 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.258340162 +0200 CEST m=+2695.613026994 !!   0ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.329172189 +0200 CEST m=+2695.683859009 !!   0ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.450586283 +0200 CEST m=+2695.805273159 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.6681138 +0200 CEST m=+2696.022800687 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.78664324 +0200 CEST m=+2696.141330129 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:04.164988503 +0200 CEST m=+2696.519675394 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:04.786103819 +0200 CEST m=+2697.140790710 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:05.723411298 +0200 CEST m=+2698.078098190 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:06.79457753 +0200 CEST m=+2699.149264395 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:08.195320604 +0200 CEST m=+2700.550007508 !!  53ms authentication error: EOF
2025-05-27 10:50:11.118224296 +0200 CEST m=+2703.472911161 !!   8ms authentication error: EOF

[site  ] ERROR 2025/05/27 10:50:11 battery 1 power: authentication error: EOF
[site  ] ERROR 2025/05/27 10:50:11 battery 1 soc: authentication error: EOF
[site  ] ERROR 2025/05/27 10:50:11 
2025-05-27 10:50:03.130302334 +0200 CEST m=+2695.484989200 !!   4ms EOF
2025-05-27 10:50:03.153677452 +0200 CEST m=+2695.508364340 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.175449923 +0200 CEST m=+2695.530136799 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.206649197 +0200 CEST m=+2695.561336086 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.257463487 +0200 CEST m=+2695.612150318 !!   0ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.325270055 +0200 CEST m=+2695.679956876 !!   0ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.552645198 +0200 CEST m=+2695.907332018 !!   0ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:03.727387679 +0200 CEST m=+2696.082074585 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:04.201193302 +0200 CEST m=+2696.555880203 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:04.869387008 +0200 CEST m=+2697.224073903 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:05.440296221 +0200 CEST m=+2697.794983052 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:06.463024163 +0200 CEST m=+2698.817710985 !!   0ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:07.812164111 +0200 CEST m=+2700.166851004 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 10:50:11.37775126 +0200 CEST m=+2703.732438094 !!  11ms authentication error: EOF

[site  ] ERROR 2025/05/27 10:50:11 pv 1 power: authentication error: EOF
[site  ] ERROR 2025/05/27 10:50:13 grid power: authentication error: EOF
[site  ] DEBUG 2025/05/27 10:50:13 ----
[lp-1  ] DEBUG 2025/05/27 10:50:13 charge power: 0W
[lp-1  ] DEBUG 2025/05/27 10:50:13 charge currents: [0 0 0]A
[site  ] ERROR 2025/05/27 10:50:21 
2025-05-27 10:50:13.190207308 +0200 CEST m=+2705.544894186 !!  24ms authentication error: EOF
2025-05-27 10:50:13.239282783 +0200 CEST m=+2705.593969686 !!  21ms authentication error: EOF
2025-05-27 10:50:13.283377597 +0200 CEST m=+2705.638064488 !!  20ms authentication error: EOF
2025-05-27 10:50:13.331662772 +0200 CEST m=+2705.686349663 !!   6ms authentication error: EOF
2025-05-27 10:50:13.43677946 +0200 CEST m=+2705.791466350 !!  26ms authentication error: EOF
2025-05-27 10:50:13.523200803 +0200 CEST m=+2705.877887695 !!  10ms authentication error: EOF
2025-05-27 10:50:13.669684637 +0200 CEST m=+2706.024371468 !!   9ms authentication error: EOF
2025-05-27 10:50:13.852670726 +0200 CEST m=+2706.207357548 !!  14ms authentication error: EOF
2025-05-27 10:50:14.225817222 +0200 CEST m=+2706.580504124 !!   9ms authentication error: EOF
2025-05-27 10:50:14.856434802 +0200 CEST m=+2707.211121708 !!  13ms authentication error: EOF
2025-05-27 10:50:15.303412744 +0200 CEST m=+2707.658099648 !!  11ms authentication error: EOF
2025-05-27 10:50:16.663134054 +0200 CEST m=+2709.017820946 !!   9ms authentication error: EOF
2025-05-27 10:50:17.913725065 +0200 CEST m=+2710.268411886 !!   8ms authentication error: EOF
2025-05-27 10:50:21.127077045 +0200 CEST m=+2713.481763935 !!  14ms authentication error: EOF
time="2025-05-27T11:27:39+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:27:39+02:00" level=info msg="successfully connected to 192.168.4.77:5033"
time="2025-05-27T11:27:39+02:00" level=info msg="hiding auth request for security, use debug >= 99 to debug authentication"
time="2025-05-27T11:27:39+02:00" level=info msg=disconnected
time="2025-05-27T11:27:39+02:00" level=warning msg="Hint: EOF during authentification usually is due a wrong rscp key"

goebelmeier avatar May 27 '25 09:05 goebelmeier

Maybe there is some reconnection issue, e.g. some stubs left which blocks a complete clean reconnect?

goebelmeier avatar May 27 '25 09:05 goebelmeier

[lp-1  ] DEBUG 2025/05/27 11:51:09 charge currents: [19 0 0]A
time="2025-05-27T11:51:09+02:00" level=debug msg="write [{ EMS_REQ_POWER_GRID None <nil> }]"
time="2025-05-27T11:51:09+02:00" level=debug msg="write [{ EMS_REQ_POWER_PV None <nil> } { EMS_REQ_POWER_ADD None <nil> }]"
time="2025-05-27T11:51:09+02:00" level=debug msg="write [{ EMS_REQ_POWER_BAT None <nil> }]"
[site  ] DEBUG 2025/05/27 11:51:09 battery 1 power: 2898W
[site  ] DEBUG 2025/05/27 11:51:09 grid power: 1817W
time="2025-05-27T11:51:09+02:00" level=debug msg="write [{ EMS_REQ_BAT_SOC None <nil> }]"
[site  ] DEBUG 2025/05/27 11:51:09 pv 1 power: 633W
[site  ] DEBUG 2025/05/27 11:51:09 battery 1 soc: 13%
[site  ] DEBUG 2025/05/27 11:51:09 site power: 4815W
[lp-1  ] DEBUG 2025/05/27 11:51:09 charge voltages: [225 0 0]V
[lp-1  ] DEBUG 2025/05/27 11:51:09 detected connected phases: 1p
[lp-1  ] DEBUG 2025/05/27 11:51:09 detected active phases: 1p
[lp-1  ] DEBUG 2025/05/27 11:51:09 charge total import: 23219.196kWh
[lp-1  ] DEBUG 2025/05/27 11:51:09 charger status: C
[lp-1  ] DEBUG 2025/05/27 11:51:09 vehicle soc: 57%
[lp-1  ] DEBUG 2025/05/27 11:51:09 vehicle soc limit: 100%
[lp-1  ] DEBUG 2025/05/27 11:51:09 vehicle range: 279km
[site  ] DEBUG 2025/05/27 11:51:09 solar forecast: accumulated 0.378kWh, produced 0.258kWh, scale 0.682
[site  ] DEBUG 2025/05/27 11:51:19 ----
[lp-1  ] DEBUG 2025/05/27 11:51:19 charge power: 4487W
[lp-1  ] DEBUG 2025/05/27 11:51:19 charge currents: [19 0 0]A
time="2025-05-27T11:51:19+02:00" level=debug msg="write [{ EMS_REQ_POWER_PV None <nil> } { EMS_REQ_POWER_ADD None <nil> }]"
time="2025-05-27T11:51:19+02:00" level=info msg=disconnected
time="2025-05-27T11:51:19+02:00" level=debug msg="write [{ EMS_REQ_POWER_GRID None <nil> }]"
time="2025-05-27T11:51:19+02:00" level=debug msg="write [{ EMS_REQ_POWER_BAT None <nil> }]"
time="2025-05-27T11:51:19+02:00" level=info msg=disconnected
time="2025-05-27T11:51:19+02:00" level=info msg=disconnected
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:19+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:20+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:20+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:20+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:20+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:20+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:20+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:20+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:21+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:21+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:22+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:22+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:23+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:23+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:23+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:25+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:25+02:00" level=info msg="successfully connected to 192.168.4.77:5033"
time="2025-05-27T11:51:25+02:00" level=info msg="hiding auth request for security, use debug >= 99 to debug authentication"
time="2025-05-27T11:51:25+02:00" level=info msg=disconnected
time="2025-05-27T11:51:25+02:00" level=warning msg="Hint: EOF during authentification usually is due a wrong rscp key"
time="2025-05-27T11:51:25+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:25+02:00" level=info msg="successfully connected to 192.168.4.77:5033"
time="2025-05-27T11:51:25+02:00" level=info msg="hiding auth request for security, use debug >= 99 to debug authentication"
time="2025-05-27T11:51:25+02:00" level=info msg=disconnected
time="2025-05-27T11:51:25+02:00" level=warning msg="Hint: EOF during authentification usually is due a wrong rscp key"
[site  ] ERROR 2025/05/27 11:51:25 
2025-05-27 11:51:19.20442965 +0200 CEST m=+1104.690442934 !!   1ms EOF
2025-05-27 11:51:19.227423755 +0200 CEST m=+1104.713437046 !!   0ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.253989407 +0200 CEST m=+1104.740002752 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.310908329 +0200 CEST m=+1104.796921626 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.408079502 +0200 CEST m=+1104.894092864 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.512987003 +0200 CEST m=+1104.999000319 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.659356994 +0200 CEST m=+1105.145370351 !!   6ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.936822353 +0200 CEST m=+1105.422835716 !!   9ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:20.313945263 +0200 CEST m=+1105.799958624 !!   3ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:20.738505256 +0200 CEST m=+1106.224518568 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:21.59473956 +0200 CEST m=+1107.080752920 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:22.699933046 +0200 CEST m=+1108.185946404 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:23.580748271 +0200 CEST m=+1109.066761631 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:25.237794478 +0200 CEST m=+1110.723807851 !!  14ms authentication error: EOF

[site  ] ERROR 2025/05/27 11:51:25 pv 1 power: authentication error: EOF
time="2025-05-27T11:51:25+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:25+02:00" level=info msg="successfully connected to 192.168.4.77:5033"
time="2025-05-27T11:51:25+02:00" level=info msg="hiding auth request for security, use debug >= 99 to debug authentication"
time="2025-05-27T11:51:25+02:00" level=info msg=disconnected
time="2025-05-27T11:51:25+02:00" level=warning msg="Hint: EOF during authentification usually is due a wrong rscp key"
time="2025-05-27T11:51:28+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:28+02:00" level=info msg="successfully connected to 192.168.4.77:5033"
time="2025-05-27T11:51:28+02:00" level=info msg="hiding auth request for security, use debug >= 99 to debug authentication"
time="2025-05-27T11:51:28+02:00" level=info msg=disconnected
time="2025-05-27T11:51:28+02:00" level=warning msg="Hint: EOF during authentification usually is due a wrong rscp key"
[site  ] ERROR 2025/05/27 11:51:28 
2025-05-27 11:51:19.204739782 +0200 CEST m=+1104.690753066 !!   3ms EOF
2025-05-27 11:51:19.219245467 +0200 CEST m=+1104.705258772 !!   0ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.263572898 +0200 CEST m=+1104.749586260 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.294858892 +0200 CEST m=+1104.780872202 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.345584751 +0200 CEST m=+1104.831598085 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.438205152 +0200 CEST m=+1104.924218443 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.549822569 +0200 CEST m=+1105.035835925 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:19.818210492 +0200 CEST m=+1105.304223853 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:20.316811891 +0200 CEST m=+1105.802825250 !!   4ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:20.731895658 +0200 CEST m=+1106.217909016 !!   1ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:21.399719103 +0200 CEST m=+1106.885732467 !!   2ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:23.064117903 +0200 CEST m=+1108.550131265 !!   3ms dial tcp 192.168.4.77:5033: connect: connection refused
2025-05-27 11:51:25.069953593 +0200 CEST m=+1110.555966950 !!  33ms authentication error: EOF
2025-05-27 11:51:28.640115264 +0200 CEST m=+1114.126128555 !!  18ms authentication error: EOF

I don't know if i can produce some more TRACE logging anyhow?

goebelmeier avatar May 27 '25 09:05 goebelmeier

Something seems odd with the Authentication:

[site  ] ERROR 2025/05/27 11:51:25 pv 1 power: authentication error: EOF
time="2025-05-27T11:51:25+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:25+02:00" level=info msg="successfully connected to 192.168.4.77:5033"
time="2025-05-27T11:51:25+02:00" level=info msg="hiding auth request for security, use debug >= 99 to debug authentication"
time="2025-05-27T11:51:25+02:00" level=info msg=disconnected
time="2025-05-27T11:51:25+02:00" level=warning msg="Hint: EOF during authentification usually is due a wrong rscp key"
time="2025-05-27T11:51:28+02:00" level=info msg="Connecting to 192.168.4.77:5033"
time="2025-05-27T11:51:28+02:00" level=info msg="successfully connected to 192.168.4.77:5033"
time="2025-05-27T11:51:28+02:00" level=info msg="hiding auth request for security, use debug >= 99 to debug authentication"
time="2025-05-27T11:51:28+02:00" level=info msg=disconnected
time="2025-05-27T11:51:28+02:00" level=warning msg="Hint: EOF during authentification usually is due a wrong rscp key"
[site  ] ERROR 2025/05/27 11:51:28 
2025-05-27 11:51:19.204739782 +0200 CEST m=+1104.690753066 !!   3ms EOF

/cc @spali

andig avatar May 27 '25 10:05 andig

I also had this error multiple times on wednesday. evcc restart could fix it, but only for a short period of time. A restart of the E3/DC controller made the error disappear since then (for two days now).

0x3d13f avatar May 30 '25 04:05 0x3d13f

Same Issue here. Works fine for a while. Sometimes hours, sometimes days. Then this Error occurs. Latest version of EVCC installed.

mattschie avatar Jun 06 '25 11:06 mattschie

@spali any idea what might be wrong here?

andig avatar Jun 09 '25 16:06 andig

@spali any idea what might be wrong here?

Not sure, I mostly use connection for polling, so no long living connection. May be a bad implementation on the server or client side. The client of the library is far not perfect. I would just try re-create the client and reconnect in such cases for defined max tries. Or extends the client to be more generous for such situations. But from the gut, I think E3DC has memory leaks or something that breaks over time server side, which can be fixed by restarting the controller.

spali avatar Jun 09 '25 17:06 spali

In recent versions, evcc closes the connection (Disconnect) whenever any error occurs, hence we should have a fresh start when reconnecting. Does the library possibly leave anything behind on disconnect?

Anything else we could test on the device side, maybe power-cycling is worth a try just to see of E3DC is the culprit?

andig avatar Jun 10 '25 07:06 andig

In recent versions, evcc closes the connection (Disconnect) whenever any error occurs, hence we should have a fresh start when reconnecting. Does the library possibly leave anything behind on disconnect?

Possible, but not aware of anything.

Anything else we could test on the device side, maybe power-cycling is worth a try just to see of E3DC is the culprit?

No other idea than restarting the E3DC controller.

spali avatar Jun 10 '25 09:06 spali

No further insights, giving up :/a

andig avatar Jun 18 '25 18:06 andig

I also had this error multiple times on wednesday. evcc restart could fix it, but only for a short period of time. A restart of the E3/DC controller made the error disappear since then (for two days now).

Has the error reoccured since the restart?

phL9r avatar Jul 09 '25 20:07 phL9r

It came back. Then I disabled the function to delay battery charge based on weather forecast in the E3/DC controller. Since then all problems are gone.

0x3d13f avatar Jul 09 '25 20:07 0x3d13f

Interesting. But not clear, why this should lead to authentication errors? Very odd...

andig avatar Jul 09 '25 21:07 andig

Maybe a factor to induce the execution of code areas with some kind of memory leak issues in the E3/DC controller.

0x3d13f avatar Jul 10 '25 03:07 0x3d13f

The function was never activated on my plant and the errors occured anyway. I now installed a crontab to restart the evcc service everyday at 5am... Maybe this helps

phL9r avatar Jul 13 '25 18:07 phL9r

I have the same EOF issue with my E3DC S10E. I tested different refresh intervalls in evcc (30sec, 45sec, 60sec). The EOF error occurs earlier, the shortes the refresh intervall is set. (evcc.yml value: interval: 30s)

For my heating controler there is also heavy ModbusIP communication with E3DC (10 registers every 15sec), i cannot gurantee this has no influence on RCSP behavoir, but i did no tests for this. ModbusIP is always responding correctly while E3DC RCSP with evcc has the EOF every oder every secound day.

Probaly using the old "e3dc" template instead of "e3dc-rcsp" is more stable

mk-devs avatar Jul 26 '25 09:07 mk-devs

What refesh interval?

andig avatar Jul 26 '25 09:07 andig

Ok refreh intervall was misleading, it just creates more RSCP requestest and a network i/o error ocurrs more likely

My test/research showed: The problem occurs when there is a network i/o error and as error handling in e3dc.go the m.conn.Disconnet() is called. Authentication is not possible after reconnecting. To force this error i just execute a Disconnect().

Creating a new Client after Disconnect() works at my system as a temporay workaround. I would like to have this behavoir checked before working on the RSCP lib to fix the disconnect reconnect error. Therefore i added this https://github.com/evcc-io/evcc/pull/22642

mk-devs avatar Jul 31 '25 14:07 mk-devs