Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Logrotate bug with a "HDD" install

Featured Replies

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 Guest

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.

did u read the threads I linked or just looked at it?

 

// sent from mobile phone //

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.

What I meant was, if log2RAM runs, it may be it does not work as usually with logrotate.

 

If you search for logrotate:

https://forum.armbian.com/topic/8093-logrotate-rotating-of-varloghdd-is-problematic/

 

https://forum.armbian.com/topic/8195-fault-in-logrotate-functionality/

 

https://forum.armbian.com/topic/8362-logrotate-not-working-in-varlog/

 

Last but not least, there are some threads about disabling log2RAM.

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.