Проблемы с logrotate
Drakon 15 июня, 2010 - 16:48
Почему-то не выполняет никаких действий, хотя пишет что выполняет - даже с опцией "-f":
Следующая информация выдаётся почти моментально, хотя логов там на несколько Гб... И файлы, о которых написано (например, /var/log/apache2/access_log-20100615 не появились):
vds / # /usr/sbin/logrotate -dvf /etc/logrotate.conf reading config file /etc/logrotate.conf including /etc/logrotate.d reading config file apache2 reading config info for /var/log/apache2/*log reading config file elog-save-summary reading config info for /var/log/portage/elog/summary.log reading config file mysql reading config info for /var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err reading config file nginx reading config info for /var/log/nginx/*.log reading config file rsyncd reading config info for /var/log/rsync.log reading config file syslog-ng reading config info for /var/log/messages reading config info for /var/log/wtmp reading config info for /var/log/btmp Handling 8 logs rotating pattern: /var/log/apache2/*log forced from command line (1 rotations) empty log files are not rotated, old logs are removed considering log /var/log/apache2/access_log log needs rotating considering log /var/log/apache2/error_log log needs rotating considering log /var/log/apache2/ssl_access_log log needs rotating considering log /var/log/apache2/ssl_error_log log needs rotating considering log /var/log/apache2/ssl_request_log log needs rotating rotating log /var/log/apache2/access_log, log->rotateCount is 1 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/apache2/error_log, log->rotateCount is 1 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/apache2/ssl_access_log, log->rotateCount is 1 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/apache2/ssl_error_log, log->rotateCount is 1 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/apache2/ssl_request_log, log->rotateCount is 1 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed renaming /var/log/apache2/access_log to /var/log/apache2/access_log-20100615 creating new /var/log/apache2/access_log mode = 0644 uid = 0 gid = 0 renaming /var/log/apache2/error_log to /var/log/apache2/error_log-20100615 creating new /var/log/apache2/error_log mode = 0644 uid = 0 gid = 0 renaming /var/log/apache2/ssl_access_log to /var/log/apache2/ssl_access_log-20100615 creating new /var/log/apache2/ssl_access_log mode = 0644 uid = 0 gid = 0 renaming /var/log/apache2/ssl_error_log to /var/log/apache2/ssl_error_log-20100615 creating new /var/log/apache2/ssl_error_log mode = 0644 uid = 0 gid = 0 renaming /var/log/apache2/ssl_request_log to /var/log/apache2/ssl_request_log-20100615 creating new /var/log/apache2/ssl_request_log mode = 0644 uid = 0 gid = 0 running postrotate script running script with arg /var/log/apache2/*log : " /etc/init.d/apache2 reload > /dev/null 2>&1 || true " compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip rotating pattern: /var/log/portage/elog/summary.log forced from command line (4 rotations) empty log files are rotated, old logs are removed considering log /var/log/portage/elog/summary.log log needs rotating rotating log /var/log/portage/elog/summary.log, log->rotateCount is 4 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding logs to compress failed glob finding old rotated logs failed renaming /var/log/portage/elog/summary.log to /var/log/portage/elog/summary.log-20100615 rotating pattern: /var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err forced from command line (4 rotations) empty log files are not rotated, old logs are removed considering log /var/log/mysql/mysql.err log does not need rotating considering log /var/log/mysql/mysql.log log does not need rotating considering log /var/log/mysql/mysqld.err log needs rotating rotating log /var/log/mysql/mysqld.err, log->rotateCount is 4 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed renaming /var/log/mysql/mysqld.err to /var/log/mysql/mysqld.err-20100615 creating new /var/log/mysql/mysqld.err mode = 0660 uid = 60 gid = 60 running postrotate script running script with arg /var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err : " /bin/kill -HUP `cat /var/run/mysqld/mysqld.pid` " compressing log with: /bin/gzip rotating pattern: /var/log/nginx/*.log forced from command line (2 rotations) empty log files are rotated, old logs are removed considering log /var/log/nginx/project1_common.access.log log needs rotating considering log /var/log/nginx/project1_common.error.log log needs rotating considering log /var/log/nginx/project1_default.access.log log needs rotating considering log /var/log/nginx/project1_default.error.log log needs rotating considering log /var/log/nginx/project1_default_ssl.access.log log needs rotating considering log /var/log/nginx/project1_default_ssl.error.log log needs rotating considering log /var/log/nginx/project1_sauna.access.log log needs rotating considering log /var/log/nginx/project1_sauna.error.log log needs rotating considering log /var/log/nginx/project1_ssl.access.log log needs rotating considering log /var/log/nginx/project1_ssl.error.log log needs rotating rotating log /var/log/nginx/project1_common.access.log, log->rotateCount is 2 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/nginx/project1_common.error.log, log->rotateCount is 2 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/nginx/project1_default.access.log, log->rotateCount is 2 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/nginx/project1_default.error.log, log->rotateCount is 2 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/nginx/project1_default_ssl.access.log, log->rotateCount is 2 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/nginx/project1_default_ssl.error.log, log->rotateCount is 2 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/nginx/project1_sauna.access.log, log->rotateCount is 2 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/nginx/project1_sauna.error.log, log->rotateCount is 2 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/nginx/project1_ssl.access.log, log->rotateCount is 2 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed rotating log /var/log/nginx/project1_ssl.error.log, log->rotateCount is 2 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed renaming /var/log/nginx/project1_common.access.log to /var/log/nginx/project1_common.access.log-20100615 creating new /var/log/nginx/project1_common.access.log mode = 0644 uid = 0 gid = 0 renaming /var/log/nginx/project1_common.error.log to /var/log/nginx/project1_common.error.log-20100615 creating new /var/log/nginx/project1_common.error.log mode = 0644 uid = 0 gid = 0 renaming /var/log/nginx/project1_default.access.log to /var/log/nginx/project1_default.access.log-20100615 creating new /var/log/nginx/project1_default.access.log mode = 0644 uid = 0 gid = 0 renaming /var/log/nginx/project1_default.error.log to /var/log/nginx/project1_default.error.log-20100615 creating new /var/log/nginx/project1_default.error.log mode = 0644 uid = 0 gid = 0 renaming /var/log/nginx/project1_default_ssl.access.log to /var/log/nginx/project1_default_ssl.access.log-20100615 creating new /var/log/nginx/project1_default_ssl.access.log mode = 0644 uid = 0 gid = 0 renaming /var/log/nginx/project1_default_ssl.error.log to /var/log/nginx/project1_default_ssl.error.log-20100615 creating new /var/log/nginx/project1_default_ssl.error.log mode = 0644 uid = 0 gid = 0 renaming /var/log/nginx/project1_sauna.access.log to /var/log/nginx/project1_sauna.access.log-20100615 creating new /var/log/nginx/project1_sauna.access.log mode = 0644 uid = 0 gid = 0 renaming /var/log/nginx/project1_sauna.error.log to /var/log/nginx/project1_sauna.error.log-20100615 creating new /var/log/nginx/project1_sauna.error.log mode = 0644 uid = 0 gid = 0 renaming /var/log/nginx/project1_ssl.access.log to /var/log/nginx/project1_ssl.access.log-20100615 creating new /var/log/nginx/project1_ssl.access.log mode = 0644 uid = 0 gid = 0 renaming /var/log/nginx/project1_ssl.error.log to /var/log/nginx/project1_ssl.error.log-20100615 creating new /var/log/nginx/project1_ssl.error.log mode = 0644 uid = 0 gid = 0 running postrotate script running script with arg /var/log/nginx/*.log : " kill -USR1 `cat /var/run/nginx.pid` " compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip compressing log with: /bin/gzip rotating pattern: /var/log/rsync.log forced from command line (7 rotations) empty log files are not rotated, old logs are removed considering log /var/log/rsync.log log /var/log/rsync.log does not exist -- skipping rotating pattern: /var/log/messages forced from command line (4 rotations) empty log files are rotated, old logs are removed considering log /var/log/messages log needs rotating rotating log /var/log/messages, log->rotateCount is 4 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed renaming /var/log/messages to /var/log/messages-20100615 creating new /var/log/messages mode = 0640 uid = 0 gid = 0 running postrotate script running script with arg /var/log/messages : " /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true " compressing log with: /bin/gzip rotating pattern: /var/log/wtmp forced from command line (1 rotations) empty log files are not rotated, old logs are removed considering log /var/log/wtmp log needs rotating rotating log /var/log/wtmp, log->rotateCount is 1 dateext suffix '-20100615' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed renaming /var/log/wtmp to /var/log/wtmp-20100615 creating new /var/log/wtmp mode = 0664 uid = 0 gid = 406 compressing log with: /bin/gzip rotating pattern: /var/log/btmp forced from command line (1 rotations) empty log files are not rotated, old logs are removed considering log /var/log/btmp log /var/log/btmp does not exist -- skipping
»
- Для комментирования войдите или зарегистрируйтесь