<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Dann mit <br>
    sudo chown vzlogger /var/log/vzlogger.log<br>
    <br>
    Für weitere Test ggf. allen Schreibrechte auf die Datei geben:<br>
    sudo chmod o+w /var/log/vzlogger.log<br>
    <br>
    Gruß<br>
    Maik<br>
    <br>
    <div class="moz-cite-prefix">Am 09.01.22 um 00:18 schrieb Frank
      Richter:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD+U_OD+6Lv_Ki-6UowGj-GEBEh839Af7YEHoTqF5WG3Ecwx-w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">systemctl startet vzlogger unter dem User
        vzlogger. Dein Logfile gehört jetzt wahrscheinlich dem User pi,
        deshalb hat vzlogger wieder keinen Zugriff.</div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Mail <<a
            href="mailto:onlineorder@gmx.de" moz-do-not-send="true"
            class="moz-txt-link-freetext">onlineorder@gmx.de</a>>
          schrieb am Sa., 8. Jan. 2022, 23:57:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div>
            <div style="font-family:Verdana;font-size:12.0px">
              <div> </div>
              <div>
                <div> </div>
                <div>
                  <div>pi@raspberrypi:~ $ sudo systemctl enable vzlogger<br>
                    pi@raspberrypi:~ $ sudo systemctl start vzlogger<br>
                    pi@raspberrypi:~ $ sudo systemctl status vzlogger<br>
                    ● vzlogger.service - vzlogger<br>
                       Loaded: loaded
                    (/etc/systemd/system/vzlogger.service; enabled;
                    vendor preset:<br>
                       Active: failed (Result: exit-code) since Sat
                    2022-01-08 23:51:48 CET; 10s ago<br>
                      Process: 905 ExecStart=/usr/local/bin/vzlogger -c
                    /etc/vzlogger.conf (code=exi<br>
                     Main PID: 905 (code=exited, status=1/FAILURE)</div>
                  <div>Jan 08 23:51:47 raspberrypi systemd[1]: Started
                    vzlogger.<br>
                    Jan 08 23:51:48 raspberrypi systemd[1]:
                    vzlogger.service: Main process exited, c<br>
                    Jan 08 23:51:48 raspberrypi systemd[1]:
                    vzlogger.service: Failed with result 'ex<br>
                    lines 1-9/9 (END)<br>
                     </div>
                  <div>Ein sudo reboot danach half auch nicht. Der
                    Prozess taucht nicht auf.</div>
                  <div> </div>
                  <div>pi@raspberrypi:~ $ vzlogger<br>
                    [Jan 08 23:55:56][main] vzlogger v0.8.0 based on
                    heads/master-0-g033de9dc7d from Wed, 10 Feb 2021
                    14:44:17 +0100 started.<br>
                    [Jan 08 23:55:56][main] log level is 1<br>
                    pi@raspberrypi:~ $<br>
                    liefert allerdgins wieder einen aktualisierenden
                    Graphen.</div>
                  <div> </div>
                  <div>Was kann das denn nur sein?</div>
                  <div> </div>
                  <div> </div>
                  <div> </div>
                  <div> </div>
                  <div>vzlogger.conf:</div>
                  <div> </div>
                  <div>{<br>
                       "retry": 0,<br>
                       "daemon": true,<br>
                       "verbosity": 1,<br>
                       "log": "/var/log/vzlogger.log",<br>
                       "local": {<br>
                          "enabled": false,<br>
                          "port": 8080,<br>
                          "index": true,<br>
                          "timeout": 0,<br>
                          "buffer": 0<br>
                       },<br>
                       "meters": [<br>
                          {<br>
                            "enabled": true,<br>
                            "allowskip": false,<br>
                            "interval": -1,<br>
                            "aggtime": -1,<br>
                            "aggfixedinterval": false,<br>
                            "channels": [<br>
                               {<br>
                                 "uuid":
                    "98e51900-b6ef-11eb-9c93-5974ac6cb260",<br>
                                 "identifier": "1-0:1.8.0*255",<br>
                                 "api": "volkszaehler",<br>
                                 "middleware": "<a
                      href="http://localhost/middleware.php"
                      target="_blank" rel="noreferrer"
                      moz-do-not-send="true"
                      class="moz-txt-link-freetext">http://localhost/middleware.php</a>",<br>
                                 "aggmode": "max",<br>
                                 "duplicates": 30<br>
                              }<br>
                           ],<br>
                           "protocol": "d0",<br>
                           "device": "/dev/ttyUSB0",<br>
                           "pullseq": "2F3F210D0A",<br>
                           "ackseq": "063035300d0a",<br>
                           "baudrate": 9600,<br>
                           "parity": "7E1",<br>
                           "read_timeout": 15,<br>
                           "wait_sync": "off",<br>
                           "baudrate_change_delay": 0<br>
                            }<br>
                       ]<br>
                    }<br>
                     </div>
                  <div> </div>
                  <div> </div>
                </div>
                <div> 
                  <div name="quote" style="margin:10px 5px 5px
                    10px;padding:10px 0 10px 10px;border-left:2px solid
                    #c3d9e5;word-wrap:break-word">
                    <div style="margin:0 0 10px 0"><b>Gesendet:</b> Samstag,
                      08. Januar 2022 um 23:46 Uhr<br>
                      <b>Von:</b> "Maik Weidemann"
                      <a class="moz-txt-link-rfc2396E" href="mailto:m+vz@weidemann.online"><m+vz@weidemann.online></a><br>
                      <b>An:</b> <a
                        href="mailto:volkszaehler-users@demo.volkszaehler.org"
                        target="_blank" rel="noreferrer"
                        moz-do-not-send="true"
                        class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a><br>
                      <b>Betreff:</b> Re: [vz-users] Änderungen an der
                      vzlogger.conf und 50-server.cnf werden nicht
                      dauerhaft übernommen - VZLogger läuft nicht mehr</div>
                    <div name="quoted-content">sudo systemctl enable
                      vzlogger<br>
                      sudo systemctl start vzlogger<br>
                      sudo systemctl status vzlogger<br>
                       
                      <div>Am 08.01.22 um 23:39 schrieb Mail:</div>
                      <blockquote>
                        <div
                          style="font-family:Verdana;font-size:12.0px">
                          <div>Der Dienst scheint irgendwie nicht mehr
                            automatisch nach einem reboot zu starten.</div>
                          <div>Kann man das wieder einstellen?</div>
                          <div> 
                            <div> 
                              <div style="margin:10.0px 5.0px 5.0px
                                10.0px;padding:10.0px 0 10.0px
                                10.0px;border-left:2.0px solid
                                rgb(195,217,229)">
                                <div style="margin:0 0 10.0px 0"><b>Gesendet:</b> Samstag,
                                  08. Januar 2022 um 23:35 Uhr<br>
                                  <b>Von:</b> "Mail" <a
                                    href="mailto:onlineorder@gmx.de"
                                    target="_blank" rel="noreferrer"
                                    moz-do-not-send="true"><onlineorder@gmx.de></a><br>
                                  <b>An:</b> <a
                                    href="mailto:volkszaehler-users@demo.volkszaehler.org"
                                    target="_blank" rel="noreferrer"
                                    moz-do-not-send="true"
                                    class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a><br>
                                  <b>Betreff:</b> Re: [vz-users]
                                  Änderungen an der vzlogger.conf und
                                  50-server.cnf werden nicht dauerhaft
                                  übernommen - VZLogger läuft nicht mehr</div>
                                <div>
                                  <div
                                    style="font-family:Verdana;font-size:12.0px">
                                    <div>Ich stehe echt auf dem
                                      Schlauch.</div>
                                    <div>vzlogger.conf geändert:</div>
                                    <div>{<br>
                                         "retry": 0,<br>
                                         "daemon": true,<br>
                                         "verbosity": 0,<br>
                                         "log": "/var/log/vzlogger.log",<br>
                                         "local": {<br>
                                            "enabled": false,<br>
                                            "port": 8080,<br>
                                            "index": true,<br>
                                            "timeout": 0,<br>
                                            "buffer": 0<br>
                                         },<br>
                                         "meters": [<br>
                                            {<br>
                                              "enabled": true,<br>
                                              "allowskip": false,<br>
                                              "interval": -1,<br>
                                              "aggtime": -1,<br>
                                              "aggfixedinterval": false,<br>
                                              "channels": [<br>
                                                 {<br>
                                                   "uuid":
                                      "98e51900-b6ef-11eb-9c93-5974ac6cb260",<br>
                                                   "identifier":
                                      "1-0:1.8.0*255",<br>
                                                   "api":
                                      "volkszaehler",<br>
                                                   "middleware": <a
                                        href="http://localhost/middleware.php"
                                        target="_blank" rel="noreferrer"
                                        moz-do-not-send="true">"http://localhost/middleware.php"</a>,<br>
                                                   "aggmode": "max",<br>
                                                   "duplicates": 30<br>
                                                }<br>
                                             ],<br>
                                             "protocol": "d0",<br>
                                             "device": "/dev/ttyUSB0",<br>
                                             "pullseq": "2F3F210D0A",<br>
                                             "ackseq": "063035300d0a",<br>
                                             "baudrate": 9600,<br>
                                             "parity": "7E1",<br>
                                             "read_timeout": 15,<br>
                                             "wait_sync": "off",<br>
                                             "baudrate_change_delay": 0<br>
                                              }<br>
                                         ]<br>
                                      }<br>
                                       </div>
                                    <div>
                                      <div>Raspberry neu gestartet (sudo
                                        reboot). Wieder taucht kein
                                        Prozess auf und das Log wird
                                        nicht aktualisiert.</div>
                                      <div>Also habe ich erneut die conf
                                        geändert:</div>
                                      <div> </div>
                                      <div>   "daemon": false,<br>
                                           "verbosity": 10,<br>
                                         </div>
                                      <div>pi@raspberrypi:~ $ vzlogger<br>
                                        [Jan 08 23:30:41][main] vzlogger
                                        v0.8.0 based on
                                        heads/master-0-g033de9dc7d from
                                        Wed, 10 Feb 2021 14:44:17 +0100
                                        started.<br>
                                        [Jan 08 23:30:41][mtr0] Creating
                                        new meter with protocol d0.<br>
                                        [Jan 08 23:30:41][d0]   pullseq
                                        len:5 found<br>
                                        [Jan 08 23:30:41][d0]   ackseq
                                        len:6 found 050<br>
                                        , 6<br>
                                        [Jan 08 23:30:41][mtr0] Meter
                                        configured, enabled.<br>
                                        [Jan 08 23:30:41]       New
                                        meter initialized (protocol=d0)<br>
                                        [Jan 08 23:30:41]      
                                        Configure channel.<br>
                                        [Jan 08 23:30:41][chn0] New
                                        channel initialized
                                        (uuid=...6cb260 api=volkszaehler
                                        id=1-0:1.8.0*255)<br>
                                        [Jan 08 23:30:41]       Have 1
                                        meters.<br>
                                        [Jan 08 23:30:41][main] log
                                        level is 10<br>
                                        [Jan 08 23:30:41][main]
                                        daemon=0, local=0<br>
                                        [Jan 08 23:30:41]       Process
                                        not  daemonized...<br>
                                        [Jan 08 23:30:41]       Opened
                                        logfile /var/log/vzlogger.log<br>
                                        [Jan 08 23:30:41][]     ===>
                                        Start meters<br>
                                        [Jan 08 23:30:41][mtr0] Meter
                                        connection established<br>
                                        [Jan 08 23:30:41][mtr0] Meter
                                        thread started<br>
                                        [Jan 08 23:30:41][mtr0] Meter is
                                        opened. Starting channels.<br>
                                        [Jan 08 23:30:41][mtr0] Number
                                        of readers: 400<br>
                                        [Jan 08 23:30:41][mtr0]
                                        Config.daemon: 0<br>
                                        [Jan 08 23:30:41][chn0] Logging
                                        thread started<br>
                                        [Jan 08 23:30:41][chn0] Start
                                        logging thread for
                                        volkszaehler-api. Running as
                                        daemon: no<br>
                                        [Jan 08 23:30:41][]     Startup
                                        done.<br>
                                        [Jan 08 23:30:41][mtr0]
                                        Config.local: 0<br>
                                        [Jan 08 23:30:41][chn0] Using
                                        default volkszaehler api.<br>
                                        [Jan 08 23:30:41][d0]   sending
                                        pullsequenz send (len:5 is:5).<br>
                                        [Jan 08 23:30:43][d0]   Read
                                        package with 0 tuples
                                        (vendor=▒P▒▒絸7P▒Ti▒, baudrate=,
                                        identification=4i▒T▒)<br>
                                        [Jan 08 23:30:43][mtr0] Stopped
                                        reading.<br>
                                        [Jan 08 23:30:43][chn0] ==>
                                        number of tuples: 0<br>
                                        [Jan 08 23:30:43][chn0] JSON
                                        request body is null. Nothing to
                                        send now.<br>
                                        PuTTY<br>
                                         </div>
                                      <div>Nun zeigt der Graph wieder
                                        daten.</div>
                                      <div> </div>
                                      <div>Idee?</div>
                                      <div> 
                                        <div style="margin:10.0px 5.0px
                                          5.0px 10.0px;padding:10.0px 0
                                          10.0px
                                          10.0px;border-left:2.0px solid
                                          rgb(195,217,229)">
                                          <div style="margin:0 0 10.0px
                                            0"><b>Gesendet:</b> Samstag,
                                            08. Januar 2022 um 23:10 Uhr<br>
                                            <b>Von:</b> "Frank Richter"
                                            <a
                                              href="mailto:frank.richter83@gmail.com"
                                              target="_blank"
                                              rel="noreferrer"
                                              moz-do-not-send="true"><frank.richter83@gmail.com></a><br>
                                            <b>An:</b> "<a
                                              href="http://volkszaehler.org"
                                              target="_blank"
                                              rel="noreferrer"
                                              moz-do-not-send="true">volkszaehler.org</a>
                                            - users" <a
                                              href="mailto:volkszaehler-users@demo.volkszaehler.org"
                                              target="_blank"
                                              rel="noreferrer"
                                              moz-do-not-send="true"><volkszaehler-users@demo.volkszaehler.org></a><br>
                                            <b>Betreff:</b> Re:
                                            [vz-users] Änderungen an der
                                            vzlogger.conf und
                                            50-server.cnf werden nicht
                                            dauerhaft übernommen -
                                            VZLogger läuft nicht mehr</div>
                                          <div>
                                            <div>
                                              <div>Die Rechte-Änderung
                                                für den ganzen Ordner
                                                war jetzt die
                                                Holzhammer-Methode, die
                                                vzlogger.log hätte
                                                gereicht...
                                                <div> </div>
                                                <div>Ansonsten, ja,
                                                  Dump-Zeile raus,
                                                  daemon: true, Start
                                                  via systemctl. Das
                                                  ganze System rebooten
                                                  ist unnötig.</div>
                                                 
                                                <div class="gmail_quote">
                                                  <div
                                                    class="gmail_attr">Mail
                                                    <<a
                                                      href="mailto:onlineorder@gmx.de"
                                                      target="_blank"
                                                      rel="noreferrer"
                                                      moz-do-not-send="true"
class="moz-txt-link-freetext">onlineorder@gmx.de</a>> schrieb am Sa.,
                                                    8. Jan. 2022, 22:57:</div>
                                                  <blockquote
                                                    class="gmail_quote"
                                                    style="margin:0 0 0
0.8ex;border-left:1.0px rgb(204,204,204) solid;padding-left:1.0ex">
                                                    <div>
                                                      <div
                                                        style="font-family:Verdana;font-size:12.0px">
                                                        <div>Dann kommt
                                                          das:</div>
                                                        <div> </div>
                                                        <div>pi@raspberrypi:/etc
                                                          $ sudo
                                                          systemctl stop
                                                          vzlogger<br>
pi@raspberrypi:/etc $ sudo nano vzlogger.conf<br>
pi@raspberrypi:/etc $ vzlogger<br>
                                                          [Jan 08
                                                          22:48:45][main]
                                                          vzlogger
                                                          v0.8.0 based
                                                          on
                                                          heads/master-0-g033de9dc7d
                                                          from Wed, 10
                                                          Feb 2021
                                                          14:44:17 +0100
                                                          started.<br>
                                                          [Jan 08
                                                          22:48:45][mtr0]
                                                          Creating new
                                                          meter with
                                                          protocol d0.<br>
                                                          [Jan 08
                                                          22:48:45][d0]
                                                            pullseq
                                                          len:5 found<br>
                                                          [Jan 08
                                                          22:48:45][d0]
                                                            ackseq len:6
                                                          found 050<br>
                                                          , 6<br>
                                                          [Jan 08
                                                          22:48:45][mtr0]
                                                          Meter
                                                          configured,
                                                          enabled.<br>
                                                          [Jan 08
                                                          22:48:45]    
                                                            New meter
                                                          initialized
                                                          (protocol=d0)<br>
                                                          [Jan 08
                                                          22:48:45]    
                                                            Configure
                                                          channel.<br>
                                                          [Jan 08
                                                          22:48:45][chn0]
                                                          New channel
                                                          initialized
                                                          (uuid=...6cb260
api=volkszaehler id=1-0:1.8.0*255)<br>
                                                          [Jan 08
                                                          22:48:45]    
                                                            Have 1
                                                          meters.<br>
                                                          [Jan 08
                                                          22:48:45][main]
                                                          log level is
                                                          10<br>
                                                          [Jan 08
                                                          22:48:45][main]
                                                          daemon=0,
                                                          local=0<br>
                                                          [Jan 08
                                                          22:48:45]    
                                                            Process not
                                                           daemonized...<br>
                                                          [Jan 08
                                                          22:48:45]    
                                                            Cannot open
                                                          logfile
                                                          /var/log/vzlogger.log:
                                                          Permission
                                                          denied<br>
pi@raspberrypi:/etc $<br>
                                                           </div>
                                                        <div>Warum kommt
                                                          der Permission
                                                          Fehler für das
                                                          LogFile?</div>
                                                        <div> 
                                                          <div>
                                                          <div>ich habe
                                                          mal die Rechte
                                                          auf den
                                                          Log-Ordner
                                                          geändert: sudo
                                                          chmod 777 log<br>
                                                          Juhu, nun
                                                          erscheinen die
                                                          log-Dateien
                                                          vzlogger.log
                                                          und
                                                          d0_dump.log</div>
                                                          <div> </div>
                                                          <div>Dann
                                                          starte ich
                                                          wohl den
                                                          Raspberry mal
                                                          neu, oder?
                                                          Damit dann die
                                                          Services
                                                          wieder im
                                                          Hintergrund
                                                          laufen, oder?</div>
                                                          <div>Vorher
                                                          würde ich noch
                                                          debug auf 0
                                                          setzen und die
                                                          Zeile </div>
                                                          <div>     
                                                           "dump_file":
"/var/log/d0_dump.log",<br>
                                                          rauslöschen,
                                                          oder?</div>
                                                          <div>Ach so,
                                                          daemon wieder
                                                          auf true?</div>
                                                          <div> </div>
                                                          <div>VG, Mirko</div>
                                                          <div> </div>
                                                          <div
                                                          style="margin:10.0px
                                                          5.0px 5.0px
                                                          10.0px;padding:10.0px
                                                          0 10.0px
                                                          10.0px;border-left:2.0px
                                                          solid
                                                          rgb(195,217,229)">
                                                          <div
                                                          style="margin:0
                                                          0 10.0px 0"><b>Gesendet:</b> Samstag,
                                                          08. Januar
                                                          2022 um 22:34
                                                          Uhr<br>
                                                          <b>Von:</b> "Frank
                                                          Richter" <<a
href="mailto:frank.richter83@gmail.com" target="_blank" rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">frank.richter83@gmail.com</a>><br>
                                                          <b>An:</b> "<a
href="http://volkszaehler.org" target="_blank" rel="noreferrer"
                                                          moz-do-not-send="true">volkszaehler.org</a>
                                                          - users" <<a
href="mailto:volkszaehler-users@demo.volkszaehler.org" target="_blank"
                                                          rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a>><br>
                                                          <b>Betreff:</b> Re:
                                                          [vz-users]
                                                          Änderungen an
                                                          der
                                                          vzlogger.conf
                                                          und
                                                          50-server.cnf
                                                          werden nicht
                                                          dauerhaft
                                                          übernommen -
                                                          VZLogger läuft
                                                          nicht mehr</div>
                                                          <div>
                                                          <div>Hm, dann
                                                          frisst er die
                                                          Config doch.
                                                          Probier das
                                                          gleiche bitte
                                                          nochmal mit
                                                          "daemon":
                                                          false
                                                          <div> </div>
                                                          <div>Grüße</div>
                                                          <div>Frank</div>
                                                          </div>
                                                           
                                                          <div
                                                          class="gmail_quote">
                                                          <div
                                                          class="gmail_attr">Mail
                                                          <<a
                                                          href="mailto:onlineorder@gmx.de"
target="_blank" rel="noreferrer" moz-do-not-send="true"
                                                          class="moz-txt-link-freetext">onlineorder@gmx.de</a>>
                                                          schrieb am
                                                          Sa., 8. Jan.
                                                          2022, 22:20:</div>
                                                          <blockquote
                                                          class="gmail_quote"
style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204)
                                                          solid;padding-left:1.0ex">
                                                          <div>
                                                          <div
                                                          style="font-family:Verdana;font-size:12.0px">
                                                          <div>Hallo
                                                          Frank,</div>
                                                          <div> </div>
                                                          <div>ich bin
                                                          auf eine SSD
                                                          am USB Port
                                                          umgezogen.
                                                          Trotzdem würde
                                                          ich das
                                                          Logging dann
                                                          reduzieren/abschalten.</div>
                                                          <div>Starte
                                                          ich vzlogger,
                                                          kommt das:</div>
                                                          <div>pi@raspberrypi:~
                                                          $ vzlogger<br>
                                                          [Jan 08
                                                          22:15:30][main]
                                                          vzlogger
                                                          v0.8.0 based
                                                          on
                                                          heads/master-0-g033de9dc7d
                                                          from Wed, 10
                                                          Feb 2021
                                                          14:44:17 +0100
                                                          started.<br>
                                                          [Jan 08
                                                          22:15:30][mtr0]
                                                          Creating new
                                                          meter with
                                                          protocol d0.<br>
                                                          [Jan 08
                                                          22:15:30][d0]
                                                            pullseq
                                                          len:5 found<br>
                                                          [Jan 08
                                                          22:15:30][d0]
                                                            ackseq len:6
                                                          found 050<br>
                                                          , 6<br>
                                                          [Jan 08
                                                          22:15:30][mtr0]
                                                          Meter
                                                          configured,
                                                          enabled.<br>
                                                          [Jan 08
                                                          22:15:30]    
                                                            New meter
                                                          initialized
                                                          (protocol=d0)<br>
                                                          [Jan 08
                                                          22:15:30]    
                                                            Configure
                                                          channel.<br>
                                                          [Jan 08
                                                          22:15:30][chn0]
                                                          New channel
                                                          initialized
                                                          (uuid=...6cb260
api=volkszaehler id=1-0:1.8.0*255)<br>
                                                          [Jan 08
                                                          22:15:30]    
                                                            Have 1
                                                          meters.<br>
                                                          [Jan 08
                                                          22:15:30][main]
                                                          log level is
                                                          10<br>
                                                          [Jan 08
                                                          22:15:30][main]
                                                          daemon=1,
                                                          local=0<br>
                                                          [Jan 08
                                                          22:15:30]    
                                                            Daemonize
                                                          process...<br>
pi@raspberrypi:~ $<br>
                                                           </div>
                                                          <div> </div>
                                                          <div>Das
                                                          Log-Verzeichnis
                                                          zeigt trotzdem
                                                          keine Dateien:</div>
                                                          <div> </div>
                                                          <div>pi@raspberrypi:/var/log
                                                          $ ls<br>
alternatives.log    daemon.log.1     kern.log.1     syslog.1<br>
alternatives.log.1  daemon.log.2.gz  kern.log.2.gz  syslog.2.gz<br>
                                                          apache2      
                                                               
                                                          daemon.log.3.gz
                                                           kern.log.3.gz
                                                           syslog.3.gz<br>
                                                          apt          
                                                               
                                                          daemon.log.4.gz
                                                           kern.log.4.gz
                                                           syslog.4.gz<br>
                                                          auth.log      
                                                               debug    
                                                                 lastlog
                                                               
                                                           syslog.5.gz<br>
                                                          auth.log.1    
                                                               debug.1  
                                                               
                                                           messages    
                                                            syslog.6.gz<br>
                                                          auth.log.2.gz
                                                               
                                                          debug.2.gz    
                                                            messages.1  
                                                            syslog.7.gz<br>
                                                          auth.log.3.gz
                                                               
                                                          debug.3.gz    
                                                           
                                                          messages.2.gz
                                                           user.log<br>
                                                          auth.log.4.gz
                                                               
                                                          debug.4.gz    
                                                           
                                                          messages.3.gz
                                                           user.log.1<br>
                                                          bootstrap.log
                                                                dpkg.log
                                                                 
                                                          messages.4.gz
                                                           user.log.2.gz<br>
                                                          btmp          
                                                             
                                                           dpkg.log.1  
                                                              mysql    
                                                             
                                                           user.log.3.gz<br>
                                                          btmp.1        
                                                               faillog  
                                                                 private
                                                               
                                                           user.log.4.gz<br>
                                                          daemon.log    
                                                               kern.log
                                                                  syslog
                                                                  wtmp<br>
pi@raspberrypi:/var/log $<br>
                                                           </div>
                                                          <div>
                                                          <div>Helfen
                                                          diese Infos
                                                          irgendwie?</div>
                                                          <div> </div>
                                                          <div>Hier noch
                                                          einmal die
                                                          vzlogger.conf:</div>
                                                          <div> </div>
                                                          <div>{<br>
                                                             "retry": 0,<br>
                                                             "daemon":
                                                          true,<br>
                                                           
                                                           "verbosity":
                                                          10,<br>
                                                             "log":
                                                          "/var/log/vzlogger.log",<br>
                                                             "local": {<br>
                                                               
                                                          "enabled":
                                                          false,<br>
                                                                "port":
                                                          8080,<br>
                                                                "index":
                                                          true,<br>
                                                               
                                                          "timeout": 0,<br>
                                                               
                                                          "buffer": 0<br>
                                                             },<br>
                                                             "meters": [<br>
                                                                {<br>
                                                                 
                                                          "enabled":
                                                          true,<br>
                                                                 
                                                          "allowskip":
                                                          false,<br>
                                                                 
                                                          "interval":
                                                          -1,<br>
                                                                 
                                                          "aggtime": -1,<br>
                                                                 
                                                          "aggfixedinterval":
                                                          false,<br>
                                                                 
                                                          "channels": [<br>
                                                                     {<br>
                                                                     
                                                           "uuid":
                                                          "98e51900-b6ef-11eb-9c93-5974ac6cb260",<br>
                                                                     
                                                           "identifier":
"1-0:1.8.0*255",<br>
                                                                     
                                                           "api":
                                                          "volkszaehler",<br>
                                                                     
                                                           "middleware":
                                                          "<a
                                                          href="http://localhost/middleware.php"
target="_blank" rel="noreferrer" moz-do-not-send="true"
                                                          class="moz-txt-link-freetext">http://localhost/middleware.php</a>",<br>
                                                                     
                                                           "aggmode":
                                                          "max",<br>
                                                                     
                                                           "duplicates":
                                                          30<br>
                                                                    }<br>
                                                                 ],<br>
                                                               
                                                           "protocol":
                                                          "d0",<br>
                                                               
                                                           "device":
                                                          "/dev/ttyUSB0",<br>
                                                               
                                                           "dump_file":
"/var/log/d0_dump.log",<br>
                                                               
                                                           "pullseq":
                                                          "2F3F210D0A",<br>
                                                               
                                                           "ackseq":
                                                          "063035300d0a",<br>
                                                               
                                                           "baudrate":
                                                          9600,<br>
                                                               
                                                           "parity":
                                                          "7E1",<br>
                                                               
                                                           "read_timeout":
                                                          15,<br>
                                                                   
                                                           "wait_sync":
                                                          "off",<br>
                                                               
                                                           "baudrate_change_delay":
                                                          0<br>
                                                                  }<br>
                                                             ]<br>
                                                          }<br>
                                                           </div>
                                                          <div> </div>
                                                          <div>Danke,
                                                          Mirko</div>
                                                          <div> 
                                                          <div
                                                          style="margin:10.0px
                                                          5.0px 5.0px
                                                          10.0px;padding:10.0px
                                                          0 10.0px
                                                          10.0px;border-left:2.0px
                                                          solid
                                                          rgb(195,217,229)">
                                                          <div
                                                          style="margin:0
                                                          0 10.0px 0"><b>Gesendet:</b> Samstag,
                                                          08. Januar
                                                          2022 um 22:14
                                                          Uhr<br>
                                                          <b>Von:</b> "Frank
                                                          Richter" <<a
href="mailto:frank.richter83@gmail.com" target="_blank" rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">frank.richter83@gmail.com</a>><br>
                                                          <b>An:</b> "<a
href="http://volkszaehler.org" target="_blank" rel="noreferrer"
                                                          moz-do-not-send="true">volkszaehler.org</a>
                                                          - users" <<a
href="mailto:volkszaehler-users@demo.volkszaehler.org" target="_blank"
                                                          rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a>><br>
                                                          <b>Betreff:</b> Re:
                                                          [vz-users]
                                                          Änderungen an
                                                          der
                                                          vzlogger.conf
                                                          und
                                                          50-server.cnf
                                                          werden nicht
                                                          dauerhaft
                                                          übernommen -
                                                          VZLogger läuft
                                                          nicht mehr</div>
                                                          <div>
                                                          <div>
                                                          <div>Hi Mirko,
                                                          <div> </div>
                                                          <div>auf jeden
                                                          Fall geht das
                                                          auf die
                                                          Lebensdauer
                                                          der
                                                          Speicherkarte.
                                                          Wenn die
                                                          Konfiguration
                                                          erstmal passt,
                                                          auf jeden Fall
                                                          ohne Dump und
                                                          mit verbosity:
                                                          0 betreiben.
                                                          Fehler werden
                                                          dann immer
                                                          noch geloggt.</div>
                                                          <div> </div>
                                                          <div>Einfach
                                                          vzlogger am
                                                          PuTTY Prompt
                                                          eingeben!</div>
                                                          <div> </div>
                                                          <div>Grüße</div>
                                                          <div>Frank</div>
                                                           
                                                          <div
                                                          class="gmail_quote">
                                                          <div
                                                          class="gmail_attr">Mail
                                                          <<a
                                                          href="mailto:onlineorder@gmx.de"
target="_blank" rel="noreferrer" moz-do-not-send="true"
                                                          class="moz-txt-link-freetext">onlineorder@gmx.de</a>>
                                                          schrieb am
                                                          Sa., 8. Jan.
                                                          2022, 22:10:</div>
                                                          <blockquote
                                                          class="gmail_quote"
style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204)
                                                          solid;padding-left:1.0ex">
                                                          <div>
                                                          <div
                                                          style="font-family:Verdana;font-size:12.0px">
                                                          <div>Hallo
                                                          Frank,</div>
                                                          <div> </div>
                                                          <div>ich hatte
                                                          beide Logs
                                                          gelöscht, weil
                                                          sie sehr groß
                                                          waren
                                                          (vzlogger.log
                                                          bspw >
                                                          560MB). (Kann
                                                          das auch dazu
                                                          geführt haben,
                                                          dass ich immer
                                                          mal Abstürze
                                                          hatte und
                                                          keine Daten
                                                          mehr geloggt
                                                          wurden?)</div>
                                                          <div>Und nun
                                                          werden weder
                                                          vzlogger.log
                                                          noch d0_dump.log
erzeugt/geschrieben.</div>
                                                          <div> </div>
                                                          <div>Wie kann
                                                          ich denn das
                                                          Dump-File
                                                          herausnehmen?
                                                          Einfach nur
                                                          die Zeile </div>
                                                          <div>     
                                                           "dump_file":
"/var/log/d0_dump.log",<br>
                                                          löschen?</div>
                                                          <div> </div>
                                                          <div>Wie
                                                          starte ich das
                                                          denn direkt im
                                                          Terminal? Ich
                                                          verbinde mich
                                                          immer nur per
                                                          putty mit dem
                                                          Raspberry Pi.</div>
                                                          <div> </div>
                                                          <div>Danke,
                                                          Mirko</div>
                                                          <div> </div>
                                                          <div> 
                                                          <div> 
                                                          <div
                                                          style="margin:10.0px
                                                          5.0px 5.0px
                                                          10.0px;padding:10.0px
                                                          0 10.0px
                                                          10.0px;border-left:2.0px
                                                          solid
                                                          rgb(195,217,229)">
                                                          <div
                                                          style="margin:0
                                                          0 10.0px 0"><b>Gesendet:</b> Samstag,
                                                          08. Januar
                                                          2022 um 21:56
                                                          Uhr<br>
                                                          <b>Von:</b> "Frank
                                                          Richter" <<a
href="mailto:frank.richter83@gmail.com" target="_blank" rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">frank.richter83@gmail.com</a>><br>
                                                          <b>An:</b> "<a
href="http://volkszaehler.org" target="_blank" rel="noreferrer"
                                                          moz-do-not-send="true">volkszaehler.org</a>
                                                          - users" <<a
href="mailto:volkszaehler-users@demo.volkszaehler.org" target="_blank"
                                                          rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a>><br>
                                                          <b>Betreff:</b> Re:
                                                          [vz-users]
                                                          Änderungen an
                                                          der
                                                          vzlogger.conf
                                                          und
                                                          50-server.cnf
                                                          werden nicht
                                                          dauerhaft
                                                          übernommen -
                                                          VZLogger läuft
                                                          nicht mehr</div>
                                                          <div>
                                                          <div>
                                                          <div>Dass
                                                          vzlogger nicht
                                                          startet 😉</div>
                                                          <div> </div>
                                                          <div>Starte
                                                          mal direkt im
                                                          Terminal, dann
                                                          sagt er dir
                                                          wahrscheinlich
                                                          warum.
                                                          Vermutlich
                                                          irgendwas an
                                                          der Config
                                                          nicht in
                                                          Ordnung.</div>
                                                          <div> </div>
                                                          <div>Und nimm
                                                          bitte das
                                                          Dump-File
                                                          raus, wie groß
                                                          ist das
                                                          mittlerweile?!</div>
                                                          <div> </div>
                                                          <div>Grüße</div>
                                                          <div>Frank<br>
                                                           
                                                          <div
                                                          class="gmail_quote">
                                                          <div
                                                          class="gmail_attr">Mail
                                                          <<a
                                                          href="mailto:onlineorder@gmx.de"
target="_blank" rel="noreferrer" moz-do-not-send="true"
                                                          class="moz-txt-link-freetext">onlineorder@gmx.de</a>>
                                                          schrieb am
                                                          Sa., 8. Jan.
                                                          2022, 21:51:</div>
                                                          <blockquote
                                                          class="gmail_quote"
style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204)
                                                          solid;padding-left:1.0ex">
                                                          <div>
                                                          <div
                                                          style="font-family:Verdana;font-size:12.0px">
                                                          <div>Da kommt
                                                          dies:</div>
                                                          <div> </div>
                                                          <div>
                                                          <div>pi@raspberrypi:~
                                                          $ systemctl
                                                          status
                                                          vzlogger<br>
                                                          ●
                                                          vzlogger.service
                                                          - vzlogger<br>
                                                             Loaded:
                                                          loaded
                                                          (/etc/systemd/system/vzlogger.service;
                                                          enabled;
                                                          vendor preset:<br>
                                                             Active:
                                                          failed
                                                          (Result:
                                                          exit-code)
                                                          since Sat
                                                          2022-01-08
                                                          21:26:36 CET;
                                                          24min a<br>
                                                            Process: 894
ExecStart=/usr/local/bin/vzlogger -c /etc/vzlogger.conf (code=exi<br>
                                                           Main PID: 894
                                                          (code=exited,
status=1/FAILURE)</div>
                                                          <div>Jan 08
                                                          21:26:36
                                                          raspberrypi
                                                          systemd[1]:
                                                          Started
                                                          vzlogger.<br>
                                                          Jan 08
                                                          21:26:36
                                                          raspberrypi
                                                          systemd[1]:
                                                          vzlogger.service:
                                                          Main process
                                                          exited, c<br>
                                                          Jan 08
                                                          21:26:36
                                                          raspberrypi
                                                          systemd[1]:
                                                          vzlogger.service:
                                                          Failed with
                                                          result 'ex<br>
                                                          lines 1-9/9
                                                          (END)<br>
                                                           </div>
                                                          <div>Was sagt
                                                          mir das?</div>
                                                          </div>
                                                          <div> 
                                                          <div> 
                                                          <div
                                                          style="margin:10.0px
                                                          5.0px 5.0px
                                                          10.0px;padding:10.0px
                                                          0 10.0px
                                                          10.0px;border-left:2.0px
                                                          solid
                                                          rgb(195,217,229)">
                                                          <div
                                                          style="margin:0
                                                          0 10.0px 0"><b>Gesendet:</b> Samstag,
                                                          08. Januar
                                                          2022 um 21:46
                                                          Uhr<br>
                                                          <b>Von:</b> "Frank
                                                          Richter" <<a
href="mailto:frank.richter83@gmail.com" target="_blank" rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">frank.richter83@gmail.com</a>><br>
                                                          <b>An:</b> "<a
href="http://volkszaehler.org" target="_blank" rel="noreferrer"
                                                          moz-do-not-send="true">volkszaehler.org</a>
                                                          - users" <<a
href="mailto:volkszaehler-users@demo.volkszaehler.org" target="_blank"
                                                          rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a>><br>
                                                          <b>Betreff:</b> Re:
                                                          [vz-users]
                                                          Änderungen an
                                                          der
                                                          vzlogger.conf
                                                          und
                                                          50-server.cnf
                                                          werden nicht
                                                          dauerhaft
                                                          übernommen -
                                                          VZLogger läuft
                                                          nicht mehr</div>
                                                          <div>
                                                          <div>Was sagt
                                                          denn systemctl
                                                          status
                                                          vzlogger?</div>
                                                           
                                                          <div
                                                          class="gmail_quote">
                                                          <div
                                                          class="gmail_attr">Mail
                                                          <<a
                                                          href="mailto:onlineorder@gmx.de"
target="_blank" rel="noreferrer" moz-do-not-send="true"
                                                          class="moz-txt-link-freetext">onlineorder@gmx.de</a>>
                                                          schrieb am
                                                          Sa., 8. Jan.
                                                          2022, 21:44:</div>
                                                          <blockquote
                                                          class="gmail_quote"
style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204)
                                                          solid;padding-left:1.0ex">
                                                          <div>
                                                          <div
                                                          style="font-family:Verdana;font-size:12.0px">
                                                          <div>Nun
                                                          klappt`s.
                                                          Danke</div>
                                                          <div> </div>
                                                          <div>Nun habe
                                                          ich das
                                                          Problem, dass
                                                          ich auf die DB
                                                          zugreifen
                                                          kann, meine
                                                          Config-Änderungen
                                                          übernommen
                                                          wurden
                                                          (Reduktion des
                                                          Log-Levels,
                                                          aber jetzt
                                                          kein Graph
                                                          mehr
                                                          gezeichnet
                                                          wird. Bis vor
                                                          ca einer
                                                          Stunde gab es
                                                          noch Daten,
                                                          dann ist die
                                                          Linie
                                                          abgebrochen.</div>
                                                          <div>Neu
                                                          gestartet habe
                                                          ich schon.
                                                          Über WinSCP
                                                          sehe ich auch
                                                          keine
                                                          Log-Dateien
                                                          (d0_dump.log
                                                          ; vzlogger.log)
                                                          im Verzeichnis
                                                          var\log mehr.</div>
                                                          <div>So sieht
                                                          meine
                                                          vzlogger.conf
                                                          aus:</div>
                                                          <div> </div>
                                                          <div>{<br>
                                                             "retry": 0,<br>
                                                             "daemon":
                                                          true,<br>
                                                           
                                                           "verbosity":
                                                          10,<br>
                                                             "log":
                                                          "/var/log/vzlogger.log",<br>
                                                             "local": {<br>
                                                               
                                                          "enabled":
                                                          false,<br>
                                                                "port":
                                                          8080,<br>
                                                                "index":
                                                          true,<br>
                                                               
                                                          "timeout": 0,<br>
                                                               
                                                          "buffer": 0<br>
                                                             },<br>
                                                             "meters": [<br>
                                                                {<br>
                                                                 
                                                          "enabled":
                                                          true,<br>
                                                                 
                                                          "allowskip":
                                                          false,<br>
                                                                 
                                                          "interval":
                                                          -1,<br>
                                                                 
                                                          "aggtime": -1,<br>
                                                                 
                                                          "aggfixedinterval":
                                                          false,<br>
                                                                 
                                                          "channels": [<br>
                                                                     {<br>
                                                                     
                                                           "uuid":
                                                          "98e51900-b6ef-11eb-9c93-5974ac6cb260",<br>
                                                                     
                                                           "identifier":
"1-0:1.8.0*255",<br>
                                                                     
                                                           "api":
                                                          "volkszaehler",<br>
                                                                     
                                                           "middleware":
                                                          "<a
                                                          href="http://localhost/middleware.php"
target="_blank" rel="noreferrer" moz-do-not-send="true"
                                                          class="moz-txt-link-freetext">http://localhost/middleware.php</a>",<br>
                                                                     
                                                           "aggmode":
                                                          "max",<br>
                                                                     
                                                           "duplicates":
                                                          30<br>
                                                                    }<br>
                                                                 ],<br>
                                                               
                                                           "protocol":
                                                          "d0",<br>
                                                               
                                                           "device":
                                                          "/dev/ttyUSB0",<br>
                                                               
                                                           "dump_file":
"/var/log/d0_dump.log",<br>
                                                               
                                                           "pullseq":
                                                          "2F3F210D0A",<br>
                                                               
                                                           "ackseq":
                                                          "063035300d0a",<br>
                                                               
                                                           "baudrate":
                                                          9600,<br>
                                                               
                                                           "parity":
                                                          "7E1",<br>
                                                               
                                                           "read_timeout":
                                                          15,<br>
                                                                
                                                          "wait_sync":
                                                          "off",<br>
                                                               
                                                           "baudrate_change_delay":
                                                          0<br>
                                                                  }<br>
                                                             ]<br>
                                                          }<br>
                                                           </div>
                                                          <div> </div>
                                                          <div>In der
                                                          Prozessliste
                                                          (ps -e) sehe
                                                          ich auch
                                                          keinen
                                                          vzlogger.
                                                          Solte vzlogger
                                                          dort überhaupt
                                                          auftauchen?</div>
                                                          <div>Ein  sudo
                                                          systemctl
                                                          start
                                                          vzlogger  hat
                                                          auch nichts
                                                          gebracht.</div>
                                                          <div> </div>
                                                          <div>Hat
                                                          jemand eine
                                                          Idee, wie ich
                                                          das wieder zu
                                                          laufen
                                                          bekomme?</div>
                                                          <div> </div>
                                                          <div><br>
                                                          Danke, Mirko</div>
                                                          <div> </div>
                                                          <div> </div>
                                                          <div>
                                                          <div> </div>
                                                          <div> </div>
                                                          <div> </div>
                                                          <div> 
                                                          <div
                                                          style="margin:10.0px
                                                          5.0px 5.0px
                                                          10.0px;padding:10.0px
                                                          0 10.0px
                                                          10.0px;border-left:2.0px
                                                          solid
                                                          rgb(195,217,229)">
                                                          <div
                                                          style="margin:0
                                                          0 10.0px 0"><b>Gesendet:</b> Samstag,
                                                          08. Januar
                                                          2022 um 20:17
                                                          Uhr<br>
                                                          <b>Von:</b> "Daniel
                                                          Lauckner" <<a
href="mailto:vz@jahp.de" target="_blank" rel="noreferrer"
                                                          moz-do-not-send="true"
class="moz-txt-link-freetext">vz@jahp.de</a>><br>
                                                          <b>An:</b> "<a
href="http://volkszaehler.org" target="_blank" rel="noreferrer"
                                                          moz-do-not-send="true">volkszaehler.org</a>
                                                          - users" <<a
href="mailto:volkszaehler-users@demo.volkszaehler.org" target="_blank"
                                                          rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a>><br>
                                                          <b>Betreff:</b> Re:
                                                          [vz-users]
                                                          Änderungen an
                                                          der
                                                          vzlogger.conf
                                                          und
                                                          50-server.cnf
                                                          werden nicht
                                                          dauerhaft
                                                          übernommen</div>
                                                          <div>Hallo,<br>
                                                          <br>
                                                          <br>
                                                          am Samstag, 8.
                                                          Januar 2022 um
                                                          20:04 hat Mail
                                                          geschrieben:<br>
                                                          > -
                                                          Verbindungstyp<br>
                                                          MariaDB or
                                                          MySQL (TCP/IP)<br>
                                                          <br>
                                                          > - Library<br>
                                                          libmariadb.dll<br>
                                                          <br>
                                                          > -
                                                          checkbox
                                                          KOmprimierte
                                                          Kommunikation<br>
                                                          Nein<br>
                                                          <br>
                                                          > -
                                                          Datenbanken :
                                                          "Mit Semikolon
                                                          getrennt"<br>
                                                          volkszaehler<br>
                                                          <br>
                                                          <br>
                                                          mfg Daniel<br>
                                                           </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </blockquote>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>