Fröling: [ANNOUNCE] p4d - Visualisierung und Einstellung der S-3200 via COM1

Es gibt 4.973 Antworten in diesem Thema, welches 1.643.476 mal aufgerufen wurde. Der letzte Beitrag () ist von Car1Pe.

  • @horchi,
    Ja, da hast du vollkommen recht. Ich hatte gestern Abend noch mal Version 0.3.23 drüber installier. Ich hatte vermutet, dass vielleicht während der Installation irgend ein File nicht upgedatet werden konnte. War aber nicht so. Egal. Jetzt gehts. :)


    hoppel,


    könnten wir uns dann auf die Fehlermeldungen konzentrieren, sofern keine Fehler mehr da sind.. Ich denke aktuell bekommt ihr die Daten wie FHEM sie benötigt. Die anderen noch angemerkten Punkte sind meines Erachtens sinnvolle Optimierung, aber haben keinen funktionellen Mehrwert, und haben für mich auch keine Prio. Mir wäre geholfen, wenn wir den letzten Vorschlag für die Fehlermeldungen aufgreifen und mal eine Vorgabe für Horchi festlegen. Dann kann er das machen, wenn er mag und es bei ihm rein passt. ;)


    VG


    Reachy

  • @Reachy :) Ja, das können wir gern so machen. Ich sammle die Optimierungsmöglichkeiten dann erstmal. Das hat für mich persönlich auch alles keine Priorität, sollte aber auch noch gemacht werden, wenn horchi die Zeit dafür hat.


    Ich habe heute keine Zeit das ganze großartig weiter zu testen. Meine Holde hat Geburtstag. Ich habe gerade schon Ärger bekommen, als sie mich am PC erwischt hat. ;)


    Schönen Abend noch

  • @horchi,

    • Was ich wirklich wichtig fände ist, dass die Verbindung zum MQTTServer mittels User und Passwort gesichert ist. Aktuell hab ich das abgeschalten, weil ja der p4d sich sonst nicht verbinden kann. Da es für diejenigen, die keine User-Passwort-Anmeldung eingestellt haben auf dem MQTT-Server, keine Auswirkung hätte, ob dieses Info mit kommt beim connect oder nicht, könnte man das unproblematisch einbauen. Vielleicht hast mal Zeit und Lust. Sind ja nur die 2 zusätzlichen Parameter im Setup und beim Connect-Aufruf.


    Viele Grüße


    Reachy

  • Code
    2020-05-01:  version 0.3.26
       - change: Moved many config options fron p4d.conf to WEBIF
       - change: Minor rework of config page
       - added:  optional user/password for MQTT

    Seit Oktober 2009:
    Fröling P4 mit 1000l Pufferspeicher

  • Code
    2020-05-01:  version 0.3.26
       - change: Moved many config options fron p4d.conf to WEBIF
       - change: Minor rework of config page
       - added:  optional user/password for MQTT

    nach den Update konnte ich starten. Dann hab User und Passwort für MQTT eingetragen und die Konfig gespeichert. Jetzt startet der Dämon aber nicht mehr. Kann es sein, dass beim Speichern der neuen Paramter noch was nicht passt und die Konfig jetzt kaputt.


    pi@raspberrypi:~ $ sudo systemctl status p4d
    ● p4d.service - Deamon to capture data of the P4 pellet heating
    Loaded: loaded (/etc/systemd/system/p4d.service; enabled; vendor preset: enabled)
    Active: failed (Result: signal) since Fri 2020-05-01 16:26:34 CEST; 18s ago
    Process: 1047 ExecStart=/usr/bin/p4d (code=killed, signal=SEGV)



    Mai 01 16:26:34 raspberrypi systemd[1]: p4d.service: Service RestartSec=100ms expired, scheduling restart.
    Mai 01 16:26:34 raspberrypi systemd[1]: p4d.service: Scheduled restart job, restart counter is at 5.
    Mai 01 16:26:34 raspberrypi systemd[1]: Stopped Deamon to capture data of the P4 pellet heating.
    Mai 01 16:26:34 raspberrypi systemd[1]: p4d.service: Start request repeated too quickly.
    Mai 01 16:26:34 raspberrypi systemd[1]: p4d.service: Failed with result 'signal'.
    Mai 01 16:26:34 raspberrypi systemd[1]: Failed to start Deamon to capture data of the P4 pellet heating.


    Läuft der Dämon bei dir ohne Probleme?


    VG


    Reachy

  • am besten an der Kommandozeile starten


    systemctl stop p4d
    ulimit -c unlimited
    p4d -t -n


    warten bis er crashed dann


    gdb /usr/bin/p4d core


    mot Pfad und name vom core File falls abweichend

    Seit Oktober 2009:
    Fröling P4 mit 1000l Pufferspeicher

  • Merci!! Hier wäre der Trace:


    pi@raspberrypi:~ $ sudo gdb /usr/bin/p4d core
    GNU gdb (Raspbian 8.2.1-2) 8.2.1
    Copyright (C) 2018 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "arm-linux-gnueabihf".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.



    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from /usr/bin/p4d...done.
    [New LWP 1310]
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
    Core was generated by `p4d -t -n'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0 strlen () at ../sysdeps/arm/armv6/strlen.S:26
    26 ../sysdeps/arm/armv6/strlen.S: Datei oder Verzeichnis nicht gefunden.
    (gdb)

  • pi@raspberrypi:/tmp $ sudo gdb /usr/bin/p4d core
    GNU gdb (Raspbian 8.2.1-2) 8.2.1
    Copyright (C) 2018 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "arm-linux-gnueabihf".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.



    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from /usr/bin/p4d...done.
    [New LWP 1323]
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
    Core was generated by `p4d -t -n'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0 strlen () at ../sysdeps/arm/armv6/strlen.S:26
    26 ../sysdeps/arm/armv6/strlen.S: Datei oder Verzeichnis nicht gefunden.
    (gdb) bt
    #0 strlen () at ../sysdeps/arm/armv6/strlen.S:26
    #1 0x766cd558 in __GI___strdup (s=0x0) at strdup.c:41
    #2 0x0004a6f4 in P4d::getConfigItem (this=0x166930, name=0x5208c "mqttUser", value=@0x166a8c: 0x0, def=0x0) at p4d.c:2474
    #3 0x000410b4 in P4d::readConfiguration (this=0x166930) at p4d.c:482
    #4 0x000405d0 in P4d::initDb (this=0x166930) at p4d.c:400
    #5 0x0003e9a8 in P4d::init (this=0x166930) at p4d.c:91
    #6 0x0002ecac in main (argc=3, argv=0x7ec507c4) at main.c:190

  • Hallo Horchi,


    Erstmal großes Lob an deine Arbeit hier. Auch an alle anderen die hier gute Lösungen bereitstellen.
    Ich habe jetzt schon viel gelesen und heute auch das P4d installiert auf einen Raspberry Pi 4 . Installiert habe ich nach der Anleitung von GitHub.
    Hier mein Problem :
    wenn ich p4 starten mit:


    systemctl start p4d


    kommt das:


    ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
    Legitimierung ist zum Starten von »p4d.service« notwendig.
    Authenticating as: root
    Password:
    polkit-agent-helper-1: pam_authenticate failed: Authentication failure
    ==== AUTHENTICATION FAILED ===
    Failed to start p4d.service: Access denied
    See system logs and 'systemctl status p4d.service' for details.


    wenn ich die system logs anzeigen lasse kommt das:




    ● p4d.service - Deamon to capture data of the P4 pellet heating
    Loaded: loaded (/etc/systemd/system/p4d.service; enabled; vendor preset: enabled)
    Active: failed (Result: signal) since Fri 2020-05-01 17:06:21 CEST; 2h 11min ago



    Mai 01 17:06:21 FroelingRasp systemd[1]: p4d.service: Service RestartSec=100ms expired, scheduling restart.
    Mai 01 17:06:21 FroelingRasp systemd[1]: p4d.service: Scheduled restart job, restart counter is at 5.
    Mai 01 17:06:21 FroelingRasp systemd[1]: Stopped Deamon to capture data of the P4 pellet heating.
    Mai 01 17:06:21 FroelingRasp systemd[1]: p4d.service: Start request repeated too quickly.
    Mai 01 17:06:21 FroelingRasp systemd[1]: p4d.service: Failed with result 'signal'.
    Mai 01 17:06:21 FroelingRasp systemd[1]: Failed to start Deamon to capture data of the P4 pellet heating.



    Da ich nur Linux Laie bin, hier meine Frage : Wer ist diesere Deamon?? Auf der Main.php steht : Warnung p4d Deamon offline
    Ist das vielleicht mein Holzkessel?



    Gruß Martin

  • Servus Martin,


    die Meldung sagt aus, dass du ohne Admin-Rechte startest. Beim installieren darauf achten, dass du alles unter Root-Rechte installierst, oder immer Das Kommand Sudo davor schreibst. Das bewirkt dass die Installation als Admin gemacht wird.
    Probier doch mal Folgendes. Starte als Admin:


    Sudo systemctl start p4d


    Viele Grüße


    Reachy

  • Bei der installation habe ich auf die Admin rechte geachtet. Ohne ging ja nicht.


    den Befehl kennt er jetzt nicht mit : Sudo systemctl start p4d


    sudo: systemct1: Befehl nicht gefunden

  • Sorry mein SchreibFehler jetzt kommt das:


    Job for p4d.service failed because a fatal signal was delivered to the control process.
    See "systemctl status p4d.service" and "journalctl -xe" for details.


    wenn ich das eingebe :journalctl -xe



    Mai 01 19:48:39 FroelingRasp systemd[1]: Stopped Deamon to capture data of the P
    -- Subject: A stop job for unit p4d.service has finished
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    --
    -- A stop job for unit p4d.service has finished.
    --
    -- The job identifier is 1136 and the job result is done.
    Mai 01 19:48:39 FroelingRasp systemd[1]: p4d.service: Start request repeated too
    Mai 01 19:48:39 FroelingRasp systemd[1]: p4d.service: Failed with result 'signal
    -- Subject: Unit failed
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    --
    -- The unit p4d.service has entered the 'failed' state with result 'signal'.
    Mai 01 19:48:39 FroelingRasp systemd[1]: Failed to start Deamon to capture data
    -- Subject: A start job for unit p4d.service has failed
    -- Defined-By: systemd
    -- Support: https://www.debian.org/support
    --
    -- A start job for unit p4d.service has finished with a failure.
    --
    -- The job identifier is 1136 and the job result is failed.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!