Skip to content

Bug: "Remote access requires a sponsor token" #31604

Closed

Description

@ScumbagSteve

Describe the bug

I noticed twice already, that my set up remote access stopped working.
The first time I can't tell what the circumstances are, but this time it was directly after I updated the docker.
Remote access page says "feedback welcome" so here I go.

After the update of docker, I noticed the remote access is no longer working:

Image

Log shows:

[remote] WARN 2026/07/08 23:35:43 remote access requires a sponsor token 

Sponsorship shows:
Image

Sponsoring page itself looks fine:
Image

All other functions seem to work.

Except these two issues I never had any issues. I would say 50% the first issue was also after a docker update or reboot.
After rebooting the docker, the issue vanished. Still wanted to report this bug, even if not critical.

Steps to reproduce

  1. Update docker?
  2. (???)
  3. Sponsorship status can't be authenticated

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

Docker container

External automation

  • 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

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

Version

evcc version 0.311.0 (744b649)

Activity

  1. naltatis commented on Jul 9, 2026

    @naltatis
    Member

    "sponsorship unavailable" means, that you're instance was not able to contact the sponsor server on boot. Do you have this permanently or only sometimes after docker update?

  2. added
    question
    on Jul 9, 2026
  3. ScumbagSteve commented on Jul 9, 2026

    @ScumbagSteve
    Author

    "sponsorship unavailable" means, that you're instance was not able to contact the sponsor server on boot. Do you have this permanently or only sometimes after docker update?

    I assumed that, but I don't see a reason for it. My internet was working at the point of docker boot. It was fixed after a new reboot of the docker.

    I can test again these days if it happens more often with docker reboots.

  4. naltatis commented on Jul 9, 2026

    @naltatis
    Member

    I can test again these days if it happens more often with docker reboots.

    Yes please do. If we can make boot more reliable we should do that.

    I haven't experienced similar docker issues in my setup (daily reboot / nightly). So we should rule out connectivity issues first. Remote access not working is a subsequent effect of this - explicit sponsor checking before connect was introduced a couple of days ago. I'll close here for now. Please create a new one if you can isolate/reproduce this behavior.

  5. ScumbagSteve commented on Jul 10, 2026

    @ScumbagSteve
    Author

    @naltatis The access does not work currently. I tried with two phones, from Wifi and from mobile data plan.
    Config shows:

    Image

    I don't get what "ladebereit" means in this relation. Is it a label bug and it should normally show "online" or something?

    I don't see any issues in the log, but both phones say "Suche nach Verbindung...".

    I can try restarting the docker, but I would prefer taking some steps to come to the root cause of it. Is there any command I can run to debug the situation? This happened to me once already, which I fixed with adding the phones again and deleting the old devices.
    Not sure if it's the same root cause this time.

  6. naltatis commented on Jul 10, 2026

    @naltatis
    Member

    What does the log say?

  7. ScumbagSteve commented on Jul 10, 2026

    @ScumbagSteve
    Author

    I don't see any issues in the log, but both phones say "Suche nach Verbindung...".

    When I try to connect I see nothing in the log - no error entry 😕
    I don't know if maybe one error appeared when the problem started.

    My log doesn't reach back so far.

  8. naltatis commented on Jul 10, 2026

    @naltatis
    Member

    @ScumbagSteve can you send me your subdomain so I can check server logs? michael@evcc.io or via slack

  9. ScumbagSteve commented on Jul 10, 2026

    @ScumbagSteve
    Author

    @ScumbagSteve can you send me your subdomain so I can check server logs?

    Sent!

  10. naltatis commented on Jul 10, 2026

    @naltatis
    Member

    Found it. Today at 10:13:28Z an infra restart forced a reconnect of all clients. Due to a server error you're instance (and likely many others) the sponsoring could not be validated. The behavior introduced in #31267 makes clients give up connecting.

  11. ScumbagSteve commented on Jul 10, 2026

    @ScumbagSteve
    Author

    Nice, glad you could identify it based on this!
    I don't see any sponsoring issues on my side, so it seems to be purely server-side.

  12. naltatis commented on Jul 10, 2026

    @naltatis
    Member

    You screenshot also shows a misleading ui state.
    #31604 (comment)

    "Ladebereit" actually means "Aktiviert" (reuse of existing loadpoint key) and the "Verbunden: Nein" should not be green but red.
    I'll issue a fix for this.

  13. ScumbagSteve commented on Jul 10, 2026

    @ScumbagSteve
    Author

    I thought "verbunden" shows me if clients are currently connected (because in the next screen you see the clients and when they last accessed evcc).

    Maybe "Serververbindung" (aktiv / inaktiv) oder "Dienst verbunden" (ja / nein) is less misleading.

  14. naltatis commented on Jul 10, 2026

    @naltatis
    Member

    @ScumbagSteve I've updated #31667. Instead of changing the wording we now always show (if enabled) the number of connected clients. this ways it should be clear what "Connected" means without using a long word 😄

    Btw: I've deployed an infrastructure fix for the above mentioned issue. You can now restart your docker and it should connect. Please open another issue if you notice a behavior like this in the future. Thanks 🙌

  15. ScumbagSteve commented on Jul 10, 2026

    @ScumbagSteve
    Author

    Thanks, reboot of docker fixed it.

  16. DanielGlaas commented on Jul 10, 2026

    @DanielGlaas
    Sponsor

    I had the same problem.

    The restart within evcc (see screenshot) didn't solve the problem:
    Image

    It was necessary to recreate the complete docker container via docker compose up -d evcc --force-recreate

    BTW: What is the difference between these two methods of restarting evcc?

  17. ScumbagSteve commented on Jul 10, 2026

    @ScumbagSteve
    Author

    Did you try restarting docker instead of just restarting evcc service (via gui)?
    I restarted the whole docker

  18. DanielGlaas commented on Jul 10, 2026

    @DanielGlaas
    Sponsor

    Did you try restarting docker instead of just restarting evcc service (via gui)? I restarted the whole docker

    As stated in the sentence after the screenshot: In the second attempt, I restarted complete docker container and then the remote access worked again.

  19. ScumbagSteve commented on Jul 10, 2026

    @ScumbagSteve
    Author

    Okay so you did not just restart the docker.
    You forced a recreate. Your command forces Docker Compose to stop the existing container and create a brand new one.

    If it would really be necessary to recreate the container, that would hint towards a more low-level issue.
    If you just restart evcc via GUI, there could be other services inside the docker still running. I am not in the details to answer this precise, but a docker restart is probably a "deeper" restart than just restarting evcc service via GUI. Recreation is even deeper than restarting, as it creates a completely new container.

  20. andig commented on Jul 12, 2026

    @andig
    Member

    If it would really be necessary to recreate the container, that would hint towards a more low-level issue.

    It isn't from evcc point of view. Since we're not giving any specific Docker support, moving to discussions.

  21. locked and limited conversation to collaborators on Jul 12, 2026
  22. converted this issue into a discussion #31728 on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions