/bin/sh: 1: /usr/local/bin/log2ram-check.sh: not found

ragman1976

Active Member
Mar 5, 2021
41
3
28
49

Hallo,


ich bekomme über den Notification Dienst (Gotify) die immer wiederkehrende Benachrichtigung:

Cron <root@pve> /usr/local/bin/log2ram-check.sh​

pve-gue​

vor 49 s
/bin/sh: 1: /usr/local/bin/log2ram-check.sh: not found

Was heißt das genau und wie kann ich das abstellen?

Gruß
 
Das ist nicht Teil einer Standartinstallation. Wie hast du es installiert/deinstalliert? Teile mal grep -sR "log2ram" /etc, dpkg -l "*log2ram*" und history | grep "log2ram".
Wenn du ein Helfer Script benutzt hast dann frage bitte dessen Autor nach Hilfe.
 
Last edited:
Hi,

Code:
root@pve:~# grep -sR "log2ram" /etc
/etc/logrotate.d/log2ram/log2ram.logrotate:/var/log/log2ram.log
/etc/mtab:log2ram /var/log tmpfs rw,nosuid,nodev,noexec,noatime,size=131072k,mode=755,inode64 0 0
/etc/log2ram.conf:# Configuration file for Log2Ram (https://github.com/azlux/log2ram) under MIT license.
/etc/log2ram.conf:# This configuration file is read by the log2ram service
/etc/log2ram.conf:# Should log2ram consider journald and do a log rotate before copying the log files back? Please note that for this
/etc/log2ram.conf:#  - (To limit journald’s disk usage to be smaller than the log2ram RAM allocation).
/etc/log2ram.conf:# Set ZL2R=true to enable zram, providing compressed RAM storage for log2ram.
/etc/systemd/system/log2ram-daily.service:After=log2ram.service
/etc/systemd/system/log2ram-daily.service:Documentation=https://github.com/azlux/log2ram
/etc/systemd/system/log2ram-daily.service:ExecStart=/bin/systemctl reload log2ram.service
/etc/systemd/system/sysinit.target.wants/log2ram.service:Documentation=https://github.com/azlux/log2ram
/etc/systemd/system/sysinit.target.wants/log2ram.service:ExecStart=/usr/local/bin/log2ram start
/etc/systemd/system/sysinit.target.wants/log2ram.service:ExecStop=/usr/local/bin/log2ram stop
/etc/systemd/system/sysinit.target.wants/log2ram.service:ExecReload=/usr/local/bin/log2ram write
/etc/systemd/system/log2ram.service:Documentation=https://github.com/azlux/log2ram
/etc/systemd/system/log2ram.service:ExecStart=/usr/local/bin/log2ram start
/etc/systemd/system/log2ram.service:ExecStop=/usr/local/bin/log2ram stop
/etc/systemd/system/log2ram.service:ExecReload=/usr/local/bin/log2ram write
/etc/cron.d/log2ram:0 */1 * * * root /usr/sbin/log2ram write
/etc/cron.d/log2ram-auto-sync:*/5 * * * * root /usr/local/bin/log2ram-check.sh
/etc/log2ram.conf.dpkg-old:# Configuration file for Log2Ram (https://github.com/azlux/log2ram) under MIT license.
/etc/log2ram.conf.dpkg-old:# This configuration file is read by the log2ram service
/etc/log2ram.conf.dpkg-old:# Note: Its value must be smaller than log2ram's RAM allocation defined by the SIZE variable above.
/etc/log2ram.conf.dpkg-old:# Set ZL2R=true to enable zram, providing compressed RAM storage for log2ram.

Code:
root@pve:~# dpkg -l "*log2ram*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version       Architecture Description
+++-==============-=============-============-==================================
ii  log2ram        1.7.2+ds-1+b1 amd64        redirects log file writes into RAM

Code:
root@pve:~# history | grep "log2ram"
  323  /usr/sbin/log2ram
  326  systemctl stop log2ram
  329  sysctl -a |grep log2ram
  334  sudo systemctl disable log2ram
  336  systemctl status log2ram
  337  systemctl enable log2ram
  338  systemctl status log2ram
  339  nano /usr/local/bin/log2ram-check.sh
  342  nano log2ram.conf
  343  systemctl restart log2ram
  344  systemctl stop log2ram
  345  sudo systemctl disable log2ram
  347  systemctl start log2ram
  348  systemctl enable log2ram
  349  systemctl status log2ram
  350  nano /etc/log2ram.conf
  351  systemctl restart log2ram
  352  systemctl status log2ram
  353  sudo systemctl restart log2ram
  354  systemctl status log2ram
  357  systemctl disable log2ram-daily.timer
  358  systemctl start log2ram
  359  systemctl enable log2ram
  393  apt install log2ram
  394  apt install log2ram
  395  grep -sR "log2ram" /etc
  396  dpkg -l "*log2ram*"
  397  history | grep "log2ram"

Danke vorab.