[vz-users] vzlogger wird mit Fehlermeldung

David Fischer david_atur at web.de
Mi Aug 25 16:45:04 CEST 2021


Hallo,

ich wollte 2 weitere Zähler einbauen und seitdem wird vzlogger.service
immer mit einer Störung beendet.

Aus dem daemon.log

Aug 25 14:46:09 raspberrypi rc.local[430]: hwclock: Cannot access the
Hardware Clock via any known method.
Aug 25 14:46:09 raspberrypi rc.local[430]: hwclock: Use the --verbose
option to see the details of our search for an access method.
[...]
Aug 25 14:46:10 raspberrypi systemd[1]: vzlogger.service: Main process
exited, code=exited, status=1/FAILURE
Aug 25 14:46:10 raspberrypi systemd[1]: vzlogger.service: Failed with
result 'exit-code'.
Aug 25 14:46:10 raspberrypi systemd[1]: rc-local.service: Control
process exited, code=exited, status=1/FAILURE
Aug 25 14:46:10 raspberrypi systemd[1]: rc-local.service: Failed with
result 'exit-code'.
Aug 25 14:46:10 raspberrypi systemd[1]: Failed to start /etc/rc.local
Compatibility.


die Fehlermeldung von rc.local sind verschwunden nachdem ich "sudo
hwclock -s" auskommentiert habe.

die Datei vzlogger.conf habe ich mit einer geprüften Version
ausprobiert, einer neuen Version aus dem Netz sowie mit nur Klammer auf
und Klammer zu
{
}

systemctl status vzlogger liefert:
vzlogger.service - vzlogger
Loaded: loaded (/etc/systemd/system/vzlogger.service; enabled; vendor
present:
Active: failed (Result: exit-code) since WEG 2021-08-25 15:25:00 CEST; 23min
Main PID: 433 (code=exitced, status=1/FAILURE)

Aug 25 15:24:58 raspberrypi systemd[1]: Started vzlogger.
Aug 25 15:25:00 raspberrypi systemd[1]: vzlogger.service: Main process
exited, code=exited, status=1/FAILURE
Aug 25 15:25:00 raspberrypi systemd[1]: zvlogger.service: Failed with
result 'exit-code'.


das vzlogger.log endet mit der Meldung
[Aug 23 21:54:51][chn0] Adding reading to queue (value=0.00
ts=1629748491658)
[Aug 23 21:54:52][]     main loop indicating all mappings to quit
Das ist auch der Moment in dem im Webinterface die Aufzeichnung endet.



Falls es an den Dateien vzlogger.conf oder rc.local liegt hier die Inhalte:

vzlogger.conf

{
   "retry": 0,
   "verbosity": 15,
   "log": "/var/log/vzlogger.log",
   "local": {
     "enabled": false,
     "port": 8080,
     "index": false,
     "timeout": 0,
     "buffer": 0
   },
   "meters": [
     {
       "enabled": true,
       "allowskip": false,
       "interval": 0,
       "aggtime": 15,
       "aggfixedinterval": true,
       "channels": [
         {
           "api": "volkszaehler",
           "uuid": "cd2fe4b0-9a3f-11eb-bc49-69469d3dd86f",
           "identifier": "Impulse",
           "middleware": "http://localhost/middleware.php",
           "aggmode": "sum",
           "duplicates": 0
         }
       ],
       "protocol": "s0",
       "gpio": 24,
       "gpio_dir": -1,
       "configureGPIO": true,
       "resolution": 1000,
       "send_zero": true,
       "debounce_delay": 0
     },
     {
       "enabled": true,
       "allowskip": false,
       "interval": 0,
       "aggtime": 15,
       "aggfixedinterval": true,
       "channels": [
         {
           "api": "volkszaehler",
           "uuid": "159674e0-0443-11ec-87e8-e3f56e179e3c",
           "identifier": "Impulse",
           "middleware": "http://localhost/middleware.php",
           "aggmode": "sum",
           "duplicates": 0
         }
       ],
       "protocol": "s0",
       "gpio": 23,
       "gpio_dir": -1,
       "configureGPIO": true,
       "resolution": 320,
       "send_zero": true,
       "debounce_delay": 0
     },
     {
       "enabled": true,
       "allowskip": false,
       "interval": 0,
       "aggtime": 15,
       "aggfixedinterval": true,
       "channels": [
         {
           "api": "volkszaehler",
           "uuid": "06cc9180-0447-11ec-b0ed-d36d1af9eebe",
           "identifier": "Impulse",
           "middleware": "http://localhost/middleware.php",
           "aggmode": "sum",
           "duplicates": 0
         }
       ],
       "protocol": "s0",
       "gpio": 25,
       "gpio_dir": -1,
       "configureGPIO": true,
       "resolution": 320,
       "send_zero": true,
       "debounce_delay": 0
     }
   ],
   "daemon": true
}

rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
#_IP=$(hostname -I) || true
#if [ "$_IP" ]; then
#  printf "My IP address is %s\n" "$_IP"
#fi

# Volkszaehler
# Part of DS2482 I2C 1-Wire Master to Volkszaehler 'RaspberryPI deamon'.
#echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device
# Register I2C RTC bei grosser neuer Erweiterung
# echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device

# GPIO
#echo 4 > /sys/class/gpio/export
#echo 17 > /sys/class/gpio/export
#echo 18 > /sys/class/gpio/export
#echo 22 > /sys/class/gpio/export
#echo 23 > /sys/class/gpio/export
echo 24 > /sys/class/gpio/export
#echo 25 > /sys/class/gpio/export
#echo 27 > /sys/class/gpio/export
#echo in > /sys/class/gpio/gpio24/direction
#echo out > /sys/class/gpio/gpio25/direction

# Hardwareclock
#sudo hwclock -s

exit 0




hat jemand eine Ahnung wie ich den vzlogger wieder zum laufen bringen kann?

danke sehr,
David



Mehr Informationen über die Mailingliste volkszaehler-users