armbian-ram-logging anacron job error message keeps coming to my mail

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • armbian-ram-logging anacron job error message keeps coming to my mail

      Hi. I'm using OpenMediaVault 4.x to my Odroid XU4 and I am using this OS so well. But there's some bothersome issue for me.
      Monit alerts me this same message every day.


      [My server Name] Anacron job 'cron.daily' on [My Server Name]



      run-parts: /etc/cron.daily/armbian-ram-logging exited with return code 1

      anyone who can solve this? thanks :)
    • ... have OMV4 odroid HC2 and the same error after restart run-parts: /etc/cron.daily/armbian-ram-logging exited with return code 1

      did as requested:

      Source Code

      1. root@NAS1:~# armbianmonitor -u
      2. System diagnosis information will now be uploaded to http://ix.io/1qSn
      3. Please post the URL in the forum where you've been asked for.
      4. root@NAS1:~# mkdir /var/log.hdd
      5. root@NAS1:~# /bin/bash -x /usr/lib/armbian/armbian-ramlog write
      6. + SIZE=50M
      7. + USE_RSYNC=true
      8. + ENABLED=false
      9. + '[' -f /etc/default/armbian-ramlog ']'
      10. + . /etc/default/armbian-ramlog
      11. ++ ENABLED=true
      12. ++ SIZE=50M
      13. ++ USE_RSYNC=true
      14. + '[' true '!=' true ']'
      15. + HDD_LOG=/var/log.hdd/
      16. + RAM_LOG=/var/log/
      17. + LOG2RAM_LOG=/var/log.hdd/armbian-ramlog.log
      18. + LOG_OUTPUT='tee -a /var/log.hdd/armbian-ramlog.log'
      19. ++ blkid -s TYPE /dev/zram0
      20. ++ awk ' { print $2 } '
      21. ++ grep ext4
      22. + '[' '' ']'
      23. + LOG_TYPE=tmpfs
      24. + case "$1" in
      25. + syncToDisk
      26. + isSafe
      27. + '[' -d /var/log.hdd/ ']'
      28. + '[' -d /var/log.hdd/ ']'
      29. + tee -a /var/log.hdd/armbian-ramlog.log
      30. ++ date
      31. + echo -e '\n\nSun Nov 4 07:51:09 CET 2018: Syncing logs from tmpfs to storage\n'
      32. Sun Nov 4 07:51:09 CET 2018: Syncing logs from tmpfs to storage
      33. + '[' true = true ']'
      34. + rsync -aXWv --exclude armbian-ramlog.log --links /var/log/ /var/log.hdd/
      35. + tee -a /var/log.hdd/armbian-ramlog.log
      36. sending incremental file list
      37. ./
      38. alternatives.log
      39. alternatives.log.1
      40. armbian-hardware-monitor.log
      41. armbian-hardware-monitor.log.1.gz
      42. armbian-hardware-monitor.log.2.gz
      43. armbian-hardware-monitor.log.3.gz
      44. armhwinfo.log
      45. auth.log
      46. auth.log.1
      47. auth.log.2.gz
      48. auth.log.3.gz
      49. autoshutdown.log
      50. autoshutdown.log.1
      51. autoshutdown.log.2.gz
      52. autoshutdown.log.3.gz
      53. bootstrap.log
      54. btmp
      55. btmp.1.gz
      56. daemon.log
      57. daemon.log.1
      58. daemon.log.2.gz
      59. daemon.log.3.gz
      60. debug
      61. debug.1
      62. debug.2.gz
      63. debug.3.gz
      64. dpkg.log
      65. dpkg.log.1
      66. faillog
      67. fontconfig.log
      68. kern.log
      69. kern.log.1
      70. kern.log.2.gz
      71. kern.log.3.gz
      72. lastlog
      73. mail.err
      74. mail.err.1
      75. mail.err.2.gz
      76. mail.info
      77. mail.info.1
      78. mail.info.2.gz
      79. mail.info.3.gz
      80. mail.log
      81. mail.log.1
      82. mail.log.2.gz
      83. mail.log.3.gz
      84. mail.warn
      85. mail.warn.1
      86. mail.warn.2.gz
      87. mail.warn.3.gz
      88. messages
      89. messages.1
      90. messages.2.gz
      91. messages.3.gz
      92. monit.log
      93. netatalk.log
      94. openvpn-status.log
      95. openvpn.log
      96. php7.0-fpm.log
      97. php7.0-fpm.log.1
      98. php7.0-fpm.log.2.gz
      99. php7.0-fpm.log.3.gz
      100. syslog
      101. syslog.1
      102. syslog.2.gz
      103. syslog.3.gz
      104. syslog.4.gz
      105. syslog.5.gz
      106. syslog.6.gz
      107. syslog.7.gz
      108. tallylog
      109. user.log
      110. user.log.1
      111. user.log.2.gz
      112. user.log.3.gz
      113. wtmp
      114. wtmp.1.gz
      115. apt/
      116. apt/eipp.log.xz
      117. apt/history.log
      118. apt/history.log.1.gz
      119. apt/term.log
      120. apt/term.log.1.gz
      121. cron-apt/
      122. cron-apt/log
      123. cron-apt/log.1.gz
      124. cron-apt/log.2.gz
      125. cron-apt/log.3.gz
      126. nginx/
      127. nginx/access.log
      128. nginx/error.log
      129. nginx/openmediavault-webgui_access.log
      130. nginx/openmediavault-webgui_access.log.1
      131. nginx/openmediavault-webgui_access.log.10.gz
      132. nginx/openmediavault-webgui_access.log.11.gz
      133. nginx/openmediavault-webgui_access.log.12.gz
      134. nginx/openmediavault-webgui_access.log.13.gz
      135. nginx/openmediavault-webgui_access.log.14.gz
      136. nginx/openmediavault-webgui_access.log.2.gz
      137. nginx/openmediavault-webgui_access.log.3.gz
      138. nginx/openmediavault-webgui_access.log.4.gz
      139. nginx/openmediavault-webgui_access.log.5.gz
      140. nginx/openmediavault-webgui_access.log.6.gz
      141. nginx/openmediavault-webgui_access.log.7.gz
      142. nginx/openmediavault-webgui_access.log.8.gz
      143. nginx/openmediavault-webgui_access.log.9.gz
      144. nginx/openmediavault-webgui_error.log
      145. nginx/openmediavault-webgui_error.log.1
      146. nginx/openmediavault-webgui_error.log.2.gz
      147. nginx/openmediavault-webgui_error.log.3.gz
      148. nginx/openmediavault-webgui_error.log.4.gz
      149. nginx/openmediavault-webgui_error.log.5.gz
      150. ntpstats/
      151. openmediavault/
      152. openmediavault/initsystem.log
      153. proftpd/
      154. proftpd/controls.log
      155. proftpd/proftpd.log
      156. proftpd/proftpd.log.1
      157. samba/
      158. samba/log.
      159. samba/log.192.168.1.103
      160. samba/log.192.168.1.199
      161. samba/log.192.168.1.200
      162. samba/log.192.168.1.51
      163. samba/log.192.168.1.55
      164. samba/log.192.168.1.56
      165. samba/log.192.168.1.67
      166. samba/log.192.168.1.96
      167. samba/log.biggys-x220
      168. samba/log.biggysbaby
      169. samba/log.libreelec
      170. samba/log.nmbd
      171. samba/log.peters-grosser
      172. samba/log.smbd
      173. samba/log.tp460s
      174. samba/cores/
      175. samba/cores/nmbd/
      176. samba/cores/smbd/
      177. sysstat/
      178. unattended-upgrades/
      179. unattended-upgrades/unattended-upgrades-dpkg.log
      180. unattended-upgrades/unattended-upgrades-dpkg.log.1.gz
      181. unattended-upgrades/unattended-upgrades-shutdown.log
      182. unattended-upgrades/unattended-upgrades.log
      183. unattended-upgrades/unattended-upgrades.log.1.gz
      184. watchdog/
      185. sent 7,733,743 bytes received 2,629 bytes 15,472,744.00 bytes/sec
      186. total size is 7,723,016 speedup is 1.00
      187. + sync
      188. root@NAS1:~# reboot
      Display All
    • New

      The reason you are getting that error is because of this

      [ -d /var/log.hdd/ ]|| echo "ERROR: /var/log.hdd/ doesn't exist! Can't sync."

      line in/usr/lib/armbian/armbian-ramlog. There is no dir called log.hdd. log.hdd is a relic from armbian that uses log2ram.

      The above check is done before syncing logs that are in ram to the “disk” with the following.

      rsync -aXWv--exclude armbian-ramlog.log --links /var/log/ /var/log.hdd/ 2>&1| tee -a /var/log.hdd/armbian-ramlog.log

      AFAIK OMV should not be using log2ram since it is already using folder2ram. folder2ram puts a lot more then just /var/log in RAM. The reason for doing this in the first place is so the intensive IOs will not eat your SD.

      folder2ram -status

      Should show the following mounted in RAM.

      /var/log is mounted
      /var/tmp is mounted
      /var/lib/openmediavault/rrdis mounted
      /var/spool ismounted
      /var/lib/rrdcachedis mounted
      /var/lib/monit ismounted
      /var/lib/php ismounted
      /var/lib/netatalk/CNIDis mounted
      /var/cache/samba ismounted

      If you see the above then you are using folder2ram and should not be using log2ram.

      Doing rm /etc/cron.daily/armbian-ram-logging should fix the error you are getting.

      The post was edited 10 times, last by onryo ().