evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Passwort wird nicht akzeptiert obwohl korrekt

Open Soundchef opened this issue 5 months ago • 5 comments

Describe the bug

Nach dem Update auf 0.309.0 kann ich nicht mehr auf die Konfigurationsseite gehen. Nach dem aufrufen der Konfiguration erscheint die Passwortabfrage, ich gebe das korrekte Passwort ein und die folgende Fehlermeldung erscheint.

Image

Ich nutze die EVCC App auf einem iPhone. Jedoch erscheint der Fehler auch wenn ich EVCC via Browser (Safari) auf dem iPhone öffne. Neustart von EVCC und vom iPhone/App/Browser brachte keine Änderung. Auch das öffnen im neuen Tab bringt das gleiche Verhalten

Melde ich mich jedoch über Google Chrome auf einem PC an, funktioniert es.

Steps to reproduce

  1. Reboot Device
  2. Open new Tab
  3. Reboot Browser/App on iPhone

Configuration details

Screenshot

Log details

will add later

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

Soundchef avatar Jun 10 '26 21:06 Soundchef

Guten Morgen, selbe Situation bei mir. Ich nutze evcc in coreos podman hinter einem Authenik reverse proxy, Ich sehe im Log keine relevanten Ausgaben diesbezüglich.

Hier das evcc Konfigurationsquadlet:

[Unit] Description=EVCC Elektroauto-Ladesteuerung Requires=dockernet-network.service macvlan_bridge-network.service After=network-online.target dockernet-network.service macvlan_bridge-network.service mqtt.service modbus-proxy.service traefik.service Wants=mqtt.service modbus-proxy.service traefik.service

[Container] Image=docker.io/evcc/evcc:latest ContainerName=evcc SeccompProfile=unconfined SecurityLabelDisable=true Environment=TZ=Europe/Berlin

Volume=/var/lib/containers/appdata/evcc/evcc.yaml:/etc/evcc.yaml:Z Volume=/var/lib/containers/appdata/evcc/.evcc:/root/.evcc:Z

PublishPort=8887:8887 PublishPort=7090:7090/udp PublishPort=9522:9522/udp

Network=dockernet:ip=192.168.100.20,metric=100 Network=macvlan_bridge:ip=192.168.10.34,gateway=192.168.10.1,metric=10

Label=traefik.enable=true Label=traefik.http.services.evcc.loadbalancer.server.port=7070 Label=traefik.http.routers.evcc-ext.rule=Host(evcc.test.dedyn.io) Label=traefik.http.routers.evcc-ext.entrypoints=websecure Label=traefik.http.routers.evcc-ext.tls=true Label=traefik.http.routers.evcc-ext.tls.certresolver=myresolver Label=traefik.http.routers.evcc-ext.middlewares=auth-evcc@docker Label=traefik.http.routers.evcc-ext.tls.domains[0].main=test.dedyn.io Label=traefik.http.routers.evcc-ext.tls.domains[0].sans=*.test.dedyn.io Label=traefik.http.routers.evcc-ext.service=evcc Label=traefik.http.routers.evcc-int.rule="Host(evcc.test.network) || Host(evcc)" Label=traefik.http.routers.evcc-int.entrypoints=web Label=traefik.http.routers.evcc-int.service=evcc

Label=homepage.group="Smarthome & Energy" Label=homepage.name=evcc Label=homepage.icon=evcc.svg Label=homepage.href=https://evcc.test.dedyn.io Label=homepage.description="Wallbox Ladesteuerung" Label=homepage.weight=10 Label=homepage.widget.type=evcc Label=homepage.widget.url=http://evcc:7070

AutoUpdate=registry

[Service] Restart=always RestartSec=10

[Install] WantedBy=multi-user.target

peterphilipp avatar Jun 11 '26 05:06 peterphilipp

Bei mir trat dasselbe Problem unter Caddy auf. Die Lösung ist, im Caddyfile header_up -Authorization anzugeben. Da müsst ihr schauen, was bei dem jeweiligen Reverse Proxy eurer Wahl die korrekte Einstellung ist.

evcc.domain.de {
        basic_auth {
                user $xxx/xxx
        }
        reverse_proxy ip:7070 {
                header_up -Authorization
        }
}

jannisif avatar Jun 11 '26 10:06 jannisif

Ah, cooler Hinweis @jannisif. Ist in Traefik (in der Trafik Container, nicht im evcc Container config) auch einfach lösbar:

Label=traefik.http.middlewares.auth-evcc.basicauth.removeheader=true

Läuft wieder.

peterphilipp avatar Jun 11 '26 12:06 peterphilipp

With the introduced api key in https://github.com/evcc-io/evcc/pull/29431 we were rejecting all request with invalid "Authorization" headers. Changed this in https://github.com/evcc-io/evcc/pull/30757 so that these header will be ignored and we'll do standard cookie check instead.

naltatis avatar Jun 12 '26 10:06 naltatis

With the introduced api key in #29431 we were rejecting all request with invalid "Authorization" headers. Changed this in #30757 so that these header will be ignored and we'll do standard cookie check instead.

Thank you for your quick help with this issue!!!!

Soundchef avatar Jun 12 '26 15:06 Soundchef