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.

Issue with armbian-truncate-logs [odroid-HC1]

Featured Replies

Hi,

 

I've got since several days an issue with armbian-truncate-logs. I received mail alerts from cron as this one,


error: error running shared postrotate script for '/var/log.hdd/mysql/mysql.log /var/log.hdd/mysql/mysql-slow.log
+/var/log.hdd/mysql/mariadb-slow.log /var/log.hdd/mysql/error.log '
error: error running shared postrotate script for '/var/log.hdd/nginx/*.log '


How to debug that?


Laurent

Solved by Guest

In /etc/logrotate.d/mysql-server I've got a mysql-server script:

/var/log.hdd/mysql/mysql.log /var/log.hdd/mysql/mysql-slow.log /var/log.hdd/mysql/mariadb-slow.log /var/log.hdd/mysql/error.log {
        daily
        rotate 7
        missingok
        create 640 mysql adm
        compress
        sharedscripts
        postrotate
          test -x /usr/bin/mysqladmin || exit 0
          if [ -f `my_print_defaults --mysqld | grep -m 1 -oP "pid-file=\K.+$"` ]; then
            # If this fails, check debian.conf!
            mysqladmin --defaults-file=/etc/mysql/debian.cnf --local flush-error-log \
              flush-engine-log flush-general-log flush-slow-log
          fi
 
        endscript
}

I don't know where to start...

Thank you for help.

  • Solution

Solved by updating /usr/lib/armbian/armbian-ramlog file and creating /etc/systemd/system/logrotate.service file according to

https://github.com/armbian/build/issues/1582.

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.