Troubleshooting
A service does not start
A configuration error stops api, collector or web at startup, with the reason in the logs:
docker compose ps
docker compose logs api collector webHealth
docker compose ps shows each service's health. The images have no shell: the healthcheck runs the binary itself (/app healthcheck), which requests /healthz. The API and the web interface answer while they serve, the collector while its passes go through. Docker does not restart an unhealthy container; it restarts one that stops.
Nothing new is read
The Connection page of the web interface tells what the collector did on its latest pass over each vehicle, in words that depend on its brand (Connection):
- Grant lost: a Volvo's Volvo ID must be connected again (a grant lasts 6 months at most).
- Quota: the daily call volume of the Volvo application is used up; reading resumes when it is renewed. Trips and charges missed meanwhile are found afterwards, as reconstructed.
- Paused: the API refused too many calls; the collector waits.
- Market not served: the Volvo Cars API refuses the car, its market being one it does not serve ("Vehicle does not belong to allowed markets"). Nothing can be read of it: the collector marks it and no longer polls it. A new connection of the Volvo ID tries it again.
- Polestar credential refused, vehicle no longer shared, domain not granted: the Data Portal refused the owner's credential (expired after its 90 days), no longer lets it read the car, or it lacks a domain (Your Polestar). The instance must reach
pc-api.polestar.comover https. - Tesla refresh token refused, vehicle no longer in the account: the Tesla token was revoked or the car left the account (Your Tesla).
- BMW connection refused, stream held by another application: BMW ended Runsten's access, or Home Assistant's CarData integration or evcc holds the account's only stream (Your BMW or Mini).
- Polestar ID refused: the Polestar ID ended the session or refused the password; connect it again (Your Polestar, with the Polestar ID).
- Collector stopped: no pass for 15 minutes. Look at
docker compose logs collector.
Debug page
The Connection page is meant for users; the debug page is for developers: every call with its raw response, VINs and locations included. Set RUNSTEN_DEBUG_ADDR=0.0.0.0:8090 in .env (the container side), run docker compose up -d, and open http://127.0.0.1:8090 on the server, or through ssh -L 8090:127.0.0.1:8090 server. Never publish it.