Environment
- YugabyteDB Anywhere - All Replicated Setup
Issue
The Replicated container fails with the following error:
ERRO 2024-07-30T13:05:42+00:00 [replicated-native] manager.go:310 Failed to start premkit container: API error (500): failed to initialize logging driver: compress cannot be true when max-file is less than 2 or max-size is not set
Cause
The logging in the Replicated container is configured to have fewer than two max-files or no max-size, resulting in a single log file that cannot be compressed. Disabling compression will resolve this error.
Resolution
Overview
Edit "/etc/docker/daemon.json" to remove "compress": "true" if it exists, then restart Docker to fix the error:
Steps
1. On the YBA node, open "/etc/docker/daemon.json" with the Vim editor. Here is a sample file:
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3",
"compress": "true" #Remove this line
}
}
2. Save the changes and restart Docker with the following command:
sudo systemctl restart docker
Comments
0 comments
Please sign in to leave a comment.