0

redis イメージ (root 以外のユーザーとして実行) にログ ローテーションを実装しようとしています。

/etc/logrotate.d/ フォルダー内に redis_logrotate ファイルを配置しました。以下は、redis_logrotate ファイルの内容です。

/persistent/redis/logs/*.log {
create 0644 1001
daily
rotate 15
compress
size 10K
dateext
dateformat -%Y%m%d
missingok
}

以下のコマンドを使用して、デバッグ実行を試みて、それがどのように機能するかを確認しました-

logrotate -d -v /etc/logrotate.d/redis_logrotate

以下のエラー メッセージが表示されました:

Error: Error: Logrotate UID is not in passwd file.
Reading state from file: /var/lib/logrotate/status
Allocating hash table for state file, size 64 emtries

Handling 0 logs

logrotate バージョン:3.14.0 を使用しています OS バージョン: Debian GNU/Linux 10 (バスター)

このエラーの意味がわからない - 「logrotate UID not in passwd file」という意味ですか? また、なぜそれが来るのか、これを解決する方法は?

詳細については、同様の議論も続いています - https://github.com/bitnami/charts/issues/5859

誰かがこの問題について考えているなら、私に知らせてください。

4

0 に答える 0