Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL errors during startup are not reported over mqtt #12890

Closed
thomas-hutterer-tik opened this issue Mar 12, 2024 · 12 comments
Closed

FATAL errors during startup are not reported over mqtt #12890

thomas-hutterer-tik opened this issue Mar 12, 2024 · 12 comments
Labels
enhancement New feature or request stale Outdated and ready to close

Comments

@thomas-hutterer-tik
Copy link

Is your feature request related to a problem? Please describe.
when e.g. the IP address of a configured wall box changes, evcc dies in the startup process with a message like
Mar 12 19:43:20 iWattControllerV3 evcc[36822]: [main ] FATAL 2024/03/12 19:43:20 cannot create charger 'OpenWbSeries2-1': cannot create charger type 'template': cannot create charger type 'openwb': error connecting: network Error : dial tcp 192.168.10.31:1883: i/o timeout

Describe the solution you'd like
I would like to see fatal errors reported over the mqtt interface, to my service will be able to react and report this further to the user

Describe alternatives you've considered
I considered parsing the log file of the evcc process, but this seems like a tedious and solution as we do all the other communication via the mqtt interface

Additional context
not using the evcc UI, but our mobile and web app

@andig
Copy link
Member

andig commented Mar 13, 2024

@thomas-hutterer-tik gibts den nur auf MQTT nicht oder gar nicht (auch nicht /api/state)? Schaust Du unter error oder unter fatal?

@andig andig added the question Rather clarification than issue label Mar 13, 2024
@thomas-hutterer-tik
Copy link
Author

thomas-hutterer-tik commented Mar 13, 2024

das /api/state liefert in dem Fall 404:

pi@raspberrypi:~ $ journalctl -o cat -fu evcc
Stopped evcc.
evcc.service: Consumed 1min 36.971s CPU time.
Started evcc.
[main ] INFO 2024/03/13 20:15:06 evcc 0.122.1
[main ] INFO 2024/03/13 20:15:06 using config file: /etc/evcc.yaml
[main ] INFO 2024/03/13 20:15:06 starting ui and api at :7070
[db ] INFO 2024/03/13 20:15:07 using sqlite database: /var/lib/evcc/evcc.db
[mqtt ] INFO 2024/03/13 20:15:07 connecting evcc-1489565960 at tcp://127.0.0.1:1883
[main ] FATAL 2024/03/13 20:15:08 cannot create charger 'Keba-1': cannot create charger 'template': cannot create charger 'keba-udp': recv timeout
[main ] FATAL 2024/03/13 20:15:08 will attempt restart in: 5m0s
^C
pi@raspberrypi:~ $ curl localhost:7070/api/state
404 page not found

auf mqtt gibt es eine /site/error topic aber kein /site/fatal

@andig
Copy link
Member

andig commented Mar 15, 2024

Kann gut sein, dass das Beenden im Fall von fatal schneller geht, als gepublished wird.

@thomas-hutterer-tik
Copy link
Author

wäre fein wenn das geändert wird, damit wir das mit bekommen und eine Fehlermeldung anzeigen können

@andig andig added enhancement New feature or request and removed question Rather clarification than issue labels Mar 17, 2024
@andig
Copy link
Member

andig commented Mar 28, 2024

das /api/state liefert in dem Fall 404:
^C

Naja- nachdem Du den Prozess mit ^C abgeschossen hast läuft natürlich kein Webserver mehr. Du musst also bitte vorher schauen.

@thomas-hutterer-tik
Copy link
Author

ich habe journalctl mit ^C beendet. Der evcc process hat sich zuvor schon selbst beendet.

@umrath

This comment was marked as outdated.

@andig

This comment was marked as off-topic.

@umrath

This comment was marked as off-topic.

@andig

This comment was marked as off-topic.

@umrath

This comment was marked as off-topic.

@andig
Copy link
Member

andig commented Apr 23, 2024

HA als OT markiert. Wir halten fest: es gibt keine Indikationen für Crashes.

@github-actions github-actions bot added the stale Outdated and ready to close label May 14, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale Outdated and ready to close
Projects
None yet
Development

No branches or pull requests

3 participants