[vz-users] Zielkonflikt vzlogger: exec vs. so

joekokker at epios.eu joekokker at epios.eu
So Jan 10 12:47:39 CET 2021


Hallo Daniel

Das sollte dein Problem loesen:
https://wiki.volkszaehler.org/software/controller/vzlogger/installation_cpp-version?s[]=exec#vzlogger_als_anderer_benutzer_zbpi_ausfuehren

LG


On 1/10/21 11:31 AM, Daniel Lauckner wrote:
> Hallo zusammen,
> 
> 
> habe mich das erste Mal ernsthafter mit meter-exec in vzlogger und als
> User pi beschäftigt. Danach hab ich aber auch mit neuer S0
> Hardware experimentiert und bin auf ein Problem gestoßen: Die Rechte
> reichen für S0 nicht aus:
> 
> [Jan 10 11:27:32][s0]   failed to set policy to SCHED_FIFO for counter_thread
> 
> Kennt da jemand den Hebel dazu um das aufzulösen?
> 
> 
> mfg Daniel
> 
> Vollständiges Log:
> [Jan 10 11:27:32][main] vzlogger v0.7.0 based on heads/master-0-g12e74ddd43 from Sun, 2 Jun 2019 20:48:14 +0200 started.
> [Jan 10 11:27:32][mtr0] Creating new meter with protocol s0.
> [Jan 10 11:27:32][mtr0] Meter configured, enabled.
> [Jan 10 11:27:32]       New meter initialized (protocol=s0)
> [Jan 10 11:27:32]       Configure channel.
> [Jan 10 11:27:32][chn0] New channel initialized (uuid=...2319be api=volkszaehler id=Impulse)
> [Jan 10 11:27:32]       Have 1 meters.
> [Jan 10 11:27:32][main] log level is 15
> [Jan 10 11:27:32][main] daemon=1, local=0
> [Jan 10 11:27:32]       Daemonize process...
> [Jan 10 11:27:32]       Opened logfile /home/pi/vzlogger.log
> [Jan 10 11:27:32][push] No pushDataServer defined.
> [Jan 10 11:27:32][]     ===> Start meters
> [Jan 10 11:27:32][s0]   counter_thread created
> [Jan 10 11:27:32][s0]   Counter thread started with blocking hwif
> [Jan 10 11:27:32][mtr0] Meter connection established
> [Jan 10 11:27:32][s0]   failed to set policy to SCHED_FIFO for counter_thread
> [Jan 10 11:27:32][mtr0] Meter thread started
> [Jan 10 11:27:32][mtr0] Meter is opened. Starting channels.
> [Jan 10 11:27:32][mtr0] Number of readers: 4
> [Jan 10 11:27:32][mtr0] Config.daemon: 1
> [Jan 10 11:27:32][chn0] Logging thread started
> [Jan 10 11:27:32][mtr0] Config.local: 0
> [Jan 10 11:27:32][]     Startup done.
> [Jan 10 11:27:32][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> [Jan 10 11:27:32][chn0] Using default volkszaehler api.
> [Jan 10 11:27:33][S0]   MeterS0:HWIF_GPIO:first poll returned 0
> [Jan 10 11:27:34][S0]   MeterS0:HWIF_GPIO:first poll returned 0
> [Jan 10 11:27:35][S0]   MeterS0:HWIF_GPIO:first poll returned 0
> [Jan 10 11:27:36][S0]   MeterS0:HWIF_GPIO:first poll returned 0
> [Jan 10 11:27:37][S0]   MeterS0:HWIF_GPIO:first poll returned 0
> [Jan 10 11:27:38][S0]   MeterS0:HWIF_GPIO:first poll returned 0
> [Jan 10 11:27:39][S0]   MeterS0:HWIF_GPIO:first poll returned 0
> [Jan 10 11:27:40]       MapContainer::quit terminating on signal 15.
> [Jan 10 11:27:40]       Closing connections to terminate
> [Jan 10 11:27:40][main] MeterMap::cancel entered...
> [Jan 10 11:27:40][main] MeterMap::cancel wait for readingthread
> [Jan 10 11:27:40][main] MeterMap::cancel wait for meter::close
> [Jan 10 11:27:40][S0]   MeterS0:HWIF_GPIO:first poll returned 0
> [Jan 10 11:27:40][s0]   Counter thread stopped with 0 imp
> [Jan 10 11:27:40][main] MeterMap::cancel finished.
> [Jan 10 11:27:40][main] MapContainer::quit finished.
> 
> Konfig:
> {
>      // General settings
>      "daemon": true,
>      "verbosity": 15,
>      "log": "/home/pi/vzlogger.log",
>      "retry": 30,
> 
>      // Build-in HTTP server
>      "local": {
>          "enabled": false,
>          "port": 8080,
>          "index": true,
>          "timeout": 30,
>          "buffer": -1
>      },
> 
>      // Meter configuration
>      "meters": [
>                  {
>                  "enabled": true,
>                  "allowskip": true,
>                  "interval": -1,
>                  "aggtime": -1,
>                  "aggfixedinterval": false,
>                  "protocol": "s0",
>                  "gpio": 4,
>                  "configureGPIO": true,
>                  "send_zero": false,
>                  "debounce_delay": 0,
>                  "channels": [
>                          {
>                          "uuid": "ef9b5bc0-501b-11eb-a3d1-f518952319be",
>                          "identifier": "Impulse",
>                          "api": "volkszaehler",
>                          "middleware": "http://localhost/middleware.php",
>                          }
>                  ]
>                  }
> 
>      ]
> }
> 
> 
> 


Mehr Informationen über die Mailingliste volkszaehler-users