ERRORS after upgrade OMV 0.5.59 to OMV 1

    • Upgrade 0.5 -> 1.0
    • Tried it and 1.st attempt:

      Source Code

      1. ​Checking all RRD files. Please wait ...
      2. All RRD database files are valid.
      3. monit: action failed -- Other action already in progress -- please try again later


      Few moments later:

      Source Code

      1. ​Checking all RRD files. Please wait ...
      2. All RRD database files are valid.


      Graphs in System Information/Status are good. But when manually refresh any graph - same error as above (hang on ERROR: No DS called 'value' in '/var/lib/rrdcached/db//localhost/nut-ups/percent-charge.rrd')
    • Not sure if it recreates the file. So, move the file somewhere temporarily and see if it fixes the problem

      mv /var/lib/rrdcached/db//localhost/nut-ups/percent-charge.rrd /root/
      omv 4.1.13 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • I know this issue has been resolved, but I want to report my findings regarding to the NUT graphs not working after upgraded from 0.5.x to 1.x.

      I found out it's the rrd definition for NUT had been changed. In OMV 0.5.x, for example, the first few lines output of "rrdtool info /var/lib/rrdcached/db/localhost/nut-ups/percent-charge.rrd" are

      Source Code

      1. filename = "nut-PogoUPS/percent-charge.rrd"
      2. rrd_version = "0003"
      3. step = 10
      4. last_update = 1416408306
      5. header_size = 3300
      6. ds[percent].index = 0
      7. ds[percent].type = "GAUGE"
      8. ds[percent].minimal_heartbeat = 20
      9. ds[percent].min = 0.0000000000e+00
      10. ds[percent].max = 1.0010000000e+02
      11. ds[percent].last_ds = "100.000000"
      12. ds[percent].value = 6.0000000000e+02
      13. ds[percent].unknown_sec = 0
      Display All

      But, in OMV 1.x, the output is

      Source Code

      1. filename = "/var/lib/rrdcached/db/localhost/nut-PogoUPS/percent-charge.rrd"
      2. rrd_version = "0003"
      3. step = 10
      4. last_update = 1416414603
      5. header_size = 3300
      6. ds[value].index = 0
      7. ds[value].type = "GAUGE"
      8. ds[value].minimal_heartbeat = 20
      9. ds[value].min = 0.0000000000e+00
      10. ds[value].max = 1.0010000000e+02
      11. ds[value].last_ds = "100.000000"
      12. ds[value].value = 3.0000000000e+02
      13. ds[value].unknown_sec = 0
      Display All

      You can see that the DS name (data source name) has been changed from "percent" to "value". During upgrade those files were not wiped and recreated, so after upgrade OMV 1.x continues to use those old files. When omv-mkgraph of OMV 1.x tries to create graphs for NUT, it looks for DS name "value" and can't find it when processing rrd files.

      Source Code

      1. ​rrdtool graph ${IMGDIR}/nut-charge-hour.png --start ${HOURSTART} ${DEFAULTS} --title "${TITLE_NUT_CHARGE}${HOURTITLE}" --slope-mode --upper-limit 100 --lower-limit 0 --rigid --vertical-label Percent DEF:avg=${DATA}/nut-PogoUPS/percent-charge.rrd:value:AVERAGE DEF:min=${DATA}/nut-PogoUPS/percent-charge.rrd:value:MIN DEF:max=${DATA}/nut-PogoUPS/percent-charge.rrd:value:MAX LINE1:avg${COLOR_NUT_CHARGE}:"Charge" GPRINT:min:MIN:"%4.2lf Min" GPRINT:avg:AVERAGE:"%4.2lf Avg" GPRINT:max:MAX:"%4.2lf Max" GPRINT:avg:LAST:"%4.2lf Last\l" COMMENT:"${LASTUPDATE}" >/dev/null

      The solution is, as ryecoaaron mentioned, to remove directory /var/lib/rrdcached/db/localhost/nut-ups/ after uninstalling and then reinstall openmediavault-nut. Preferably the uninstall script should remove them for users.
      1. OpenMediaVault 4.1.6 (Arrakis) :thumbup:
        HARDWARE: ZOTAC ZBOX CI323 Nano + Patriot Torch SSD 60GB + WD MyBook 1TB
        PROCESSOR: Intel(R) Celeron(R) N3150 1.6GHz
        SYSTEM: Debian Stretch (4.16.0-0.bpo.1-amd64)
        PLUGINS: nut, omvextrasorg, backup, transmissionbt, dnsmasq

      2. OpenMediaVault 4.1.3 (Arrakis) :thumbup:
        HARDWARE: Pogoplug Classic (POGO-E02) + SanDisk Cruzer Blade 16GB + Maxtor 160GB
        PROCESSOR: Feroceon 88FR131 rev 1 (v5l) 1.2GHz
        SYSTEM: Debian Stretch (4.10.9-kirkwood-tld-1 armv5tel)
        PLUGINS: nut, omvextrasorg, backup, downloader, dnsmasq