Jump to content

Recommended Posts

Posted (edited)

Hello,

 

I've found a few logrotate bug reports in search, but they are not related to a "HDD" install.

 

I have two armbian systems on different boards set up and installed on SD cards. Both systems have the email facilities set up, which is why I found out about this.

 

This is what I get once a day via email from each of the systems:

 

From: Cron Daemon <XXXXXXXXXXXX>
X-Google-Original-From: root@cubie (Cron Daemon)
Received: by cubie (Postfix, from userid 0) id 5FC6511FA06; Mon, 25 Mar 2019 06:25:13 +0000 (UTC)
To: root@cubie
Subject: Cron <root@cubie> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
Message-Id: <20190325062513.5FC6511FA06@cubie>
Date: Mon, 25 Mar 2019 06:25:13 +0000 (UTC)

/etc/cron.daily/logrotate:
logrotate_script: 2: logrotate_script: /usr/lib/rsyslog.hdd/rsyslog-rotate: not found
error: error running non-shared postrotate script for /var/log.hdd/syslog of '/var/log.hdd/syslog
'
logrotate_script: 2: logrotate_script: /usr/lib/rsyslog.hdd/rsyslog-rotate: not found
error: error running shared postrotate script for '/var/log.hdd/mail.info
/var/log.hdd/mail.warn
/var/log.hdd/mail.err
/var/log.hdd/mail.log
/var/log.hdd/daemon.log
/var/log.hdd/kern.log
/var/log.hdd/auth.log
/var/log.hdd/user.log
/var/log.hdd/lpr.log
/var/log.hdd/cron.log
/var/log.hdd/debug
/var/log.hdd/messages
'
run-parts: /etc/cron.daily/logrotate exited with return code 1

The only rsyslog-rotate script is in /usr/lib/rsyslog/rsyslog-rotate which is different from /usr/lib/rsyslog.hdd/rsyslog-rotate

 

This is the rsyslog config which calls said script: /etc/logrotate.d/rsyslog

 

apt-file reports that said file belogs to the rsyslog package:

 

# apt-file search /etc/logrotate.d/rsyslog
rsyslog: /etc/logrotate.d/rsyslog

Now, before going deeper, I assume that the issue is one of the two:

  1. Typo in a armbian-maintaned rsyslog package
  2. Typo in a serach/replace script during the hdd install

 

I would appreciate pointers to which repos I have to go to to so I can submit a PR.

 

Cheers,

Kaurin

Edited by Kaurin
Posted

Hello,

 

Thank you for the response, but I don't see how the linked topic is relevant.

 

My issue is with a logrotate script that is not a debian-default, not with logs or permissions.

Posted

You have linked a thread I've read before I even posted this message.

 

However, you ask "did u read the threads" (plural). Did you mean to link any others?

 

There are three threads on this topic that are most relevant, including your own, but they don't help with my issue.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines