Jump to content
  • 0

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


houdini_69
 Share

Question

Armbianmonitor:

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Armbian Linux community supported weekly builds download

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...