このスレッドはクローズされています。記事の閲覧のみとなります。
  
    
        logrotateからエラーが | 
        | 
    
    
      
        
        - æ¥æï¼ 2016/01/05 17:35
        
- ååï¼ 浦島
 
 
          - こんにちは。
 centos 6.7で自宅サーバーに取り込んでいます。 最近clamavのバージョンアップ(clamav-0.99-3.el6.i68)を行いました。 数日しますと下記のエラーがlogwhcのメールに届きました。 /etc/cron.daily/logrotate:
  error: freshclam:4 unknown user 'clamv' error: found error in /var/log/clamav/freshclam.log , skippin
  自分では解決できないので調べていましたがわかりませんでした。 解決方法ありましたらお教え下さい。
  logrotate.confに下記のようにエラーが有りました。     ↓ reading config file /etc/logrotate.conf including /etc/logrotate.d reading config file clamav reading config info for /var/log/clamav/clamd.log  reading config file cups reading config info for /var/log/cups/*_log  reading config file dracut reading config info for /var/log/dracut.log  reading config file freshclam reading config info for /var/log/clamav/freshclam.log  error: freshclam:4 unknown user 'clamv' error: found error in /var/log/clamav/freshclam.log , skipping removing last 1 log configs
  尚、、/etc/cron.daily/logrotateファイルのパーミッションは下記で700になっていました。 [root@linux ~]ls -l /etc/cron.daily/logrotate -rwx------ 1 root root 180  7 10 04:36 2003 /etc/cron.daily/logrotate
  中身は [root@linux ~]# cat /etc/cron.daily/logrotate #!/bin/sh
  /usr/sbin/logrotate /etc/logrotate.conf EXITVALUE=$? if [ $EXITVALUE != 0 ]; then     /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" fi exit 0 
          
          
       | 
    
  
■ コンテンツ関連情報
  
    
        Re: logrotateからエラーが ( No.11 ) | 
        | 
    
    
      
        
          - æ¥æï¼ 2016/01/20 13:11
          
- ååï¼ 浦島 
          
 
           
            - こんにちは。
  現在のユーザ・グループの確認は下記です。  ユーザ・グループclamav clamavになってます。
  [root@linux ~]# ls -l /var/log/clamav/freshclam.log -rw-r----- 1 clamav clamav 4181  1 20 03:40 2016 /var/log/clamav/freshclam.log
 
  logrotate -d /etc/logrotate.d/freshclamの結果は下記です。 良く分かりませんがログローテーションの確認結果では正常だとおもうのですがどうなのでしょうか?
  [root@linux ~]# logrotate -d /etc/logrotate.d/freshclam reading config file /etc/logrotate.d/freshclam reading config info for /var/log/clamav/freshclam.log 
  Handling 1 logs
  rotating pattern: /var/log/clamav/freshclam.log  1048576 bytes (no old logs will be kept) empty log files are not rotated, old logs are removed considering log /var/log/clamav/freshclam.log   log does not need rotating
          
        
       | 
    
    
        Re: logrotateからエラーが ( No.12 ) | 
        | 
    
    
      
        
          - æ¥æï¼ 2016/01/21 17:54
          
- ååï¼ 浦島 
          
 
           
            - 皆さま、どうもありがとうございました。
  特に、Johannさんstrangerさん
  お世話になりました、大変勉強になりました。 エラーもでなくなり問題ないようですのでこれでクローズいたします。 
          
        
       | 
    
  
■ その他