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

unexpected error writing points to database: Socket receive error. errno 104 #87

Closed
zutewas opened this issue Sep 9, 2024 · 5 comments
Labels
bug Something isn't working released Issue has been fixed

Comments

@zutewas
Copy link

zutewas commented Sep 9, 2024

Hallo,

mind. 1-2 mal am Tag werden keine Daten mehr via. MQTT übertragen und es kommt immer zu folgender Meldung:

{"code":"internal error","message":"unexpected error writing points to database: timeout"}[2024-09-09 09:08:52] pid=1 ppid=0 RscpMqttMain.cpp(2634) Error: Socket receive error. errno 104

Ich nutze das Image "image: pvtom/rscp2mqtt:latest-with-influxdb" und muss anschließend den Container immer neu starten. Dann funktioniert es wieder für eine Weile.

Was könnte die Ursache sein bzw. wie kann das Problem weiter geprüft werden? Vielen Dank!

@pvtom
Copy link
Owner

pvtom commented Sep 9, 2024

Hallo,
das sind zwei unterschiedliche Fehler (im Log nicht richtig getrennt):

  1. {"code":"internal error","message":"unexpected error writing points to database: timeout"} kommt von der InfluxDB, die scheinbar Probleme beim Ablegen der Daten hat.
  2. "Socket receive error. errno 104" ist ein Kommunikationsabbruch durch das Hauskraftwerk: 104 steht für "Connection reset by peer". Diesen Abbruch fängt rscp2mqtt nicht sauber ab und hängt sich nach Auftreten auf. Dieses Problem kann ich lösen, so dass nach Auftreten des Abbruchs ein Reconnect durchgeführt wird. -> v3.30 kommt dann in Kürze.

Warum die Abbrüche oder der Timeout bei der InfluxDB auftreten, kann ich nicht sagen. Eine wackelige Netzwerkanbindung vielleicht? Auf welcher Hardware läuft denn der Docker Container und die InfluxDB?

Gruß Thomas

@pvtom pvtom added the bug Something isn't working label Sep 9, 2024
@zutewas
Copy link
Author

zutewas commented Sep 9, 2024

Vielen Dank für die schnelle Rückmeldung.

InfluxDB (influxdb:latest) läuft ebenfalls als Docker mit rscp2mqtt auf einem Celeron J6412 Host. Beide Container sind im selben Docker-Netzwerk.

@pvtom
Copy link
Owner

pvtom commented Sep 14, 2024

v3.30 ist jetzt verfügbar.

  • errno 104 wird jetzt abgefangen. Das Programm hängt sich nicht mehr auf
  • zum InfluxDB-Timeout wurde in der Doku eine Erhöhung der Batchsize empfohlen. Das habe ich ich umgesetzt. Hoffe, dass der Fehler nicht mehr auftritt

@pvtom pvtom added the released Issue has been fixed label Oct 26, 2024
@pvtom
Copy link
Owner

pvtom commented Oct 26, 2024

Ich hoffe, das hat sich erledigt.

@pvtom pvtom closed this as completed Oct 26, 2024
@zutewas
Copy link
Author

zutewas commented Dec 4, 2024

Sorry für die sehr späte Rückmeldung. Es läuft bis jetzt stabil und ich hatte keine Probleme mehr. Vielen Dank für deine Arbeit. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Issue has been fixed
Projects
None yet
Development

No branches or pull requests

2 participants