크론 데몬 - LibClamAV 오류

크론 데몬 - LibClamAV 오류

오랫동안 나는 다음과 같은 이메일을 받았습니다.

From: Cron Daemon <[email protected]>
Subject: Cron <root@cloud-vps> test -x /usr/sbin/anacron || ( cd / &&
run-parts --report /etc/cron.daily )
To: [email protected]

/etc/cron.daily/clamscan_daily:
Starting a daily scan of / directory.
 Amount of data to be scanned is 4.4G.
LibClamAV Warning: cli_scanxz: decompress file size exceeds limits -
only scanning 27262976 bytes
LibClamAV Warning: cli_scanxz: decompress file size exceeds limits -
only scanning 27262976 bytes
LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @
offset 2, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4072 bytes @
offset 24, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @
offset 2, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4051 bytes @
offset 45, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @
offset 2, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4073 bytes @
offset 23, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4067 bytes @
offset 29, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4090 bytes @
offset 6, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4091 bytes @
offset 5, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4091 bytes @
offset 5, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4092 bytes @
offset 4, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @
offset 2, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4090 bytes @
offset 6, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4093 bytes @
offset 3, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @
offset 2, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @
offset 2, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @
offset 2, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4092 bytes @
offset 4, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @
offset 2, got 0
LibClamAV Warning: fmap_readpage: pread fail: asked for 4094 bytes @
offset 2, got 0

[...]

WARNING: Can't open file /sys/module/jbd2/uevent: Permission denied
/etc/cron.daily/logrotate:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
error: error running shared postrotate script for
'/var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log
/var/log/mysql/mariadb-slow.log /var/log/mysql/error.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

이 오류를 수정하는 방법을 알려주실 수 있나요? Apparmor를 비활성화했습니다.

답변1

이 이메일 하단에 있는 비밀번호 질문을 해결해야 합니다. 이 스크립트는 MySQL 서버에 액세스할 수 없습니다.

WARNING: Can't open file /sys/module/jbd2/uevent: Permission denied
/etc/cron.daily/logrotate:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
error: error running shared postrotate script for
'/var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log
/var/log/mysql/mariadb-slow.log /var/log/mysql/error.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

구체적으로:

mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

이 서버의 로컬 MySQL 데이터베이스에 로그인하여 사용자 이름/비밀번호가 예상대로 작동하는지 확인하세요. 그런 다음 mysqladmin이 CRON이 수행하려는 것과 동일한 작업을 수행할 수 있는지 확인하십시오 .

관련 정보