Skip to content

solectrus-db-1 is unhealthy #3748

Answered by ledermann
KippA67 asked this question in Q&A
Dec 6, 2024 · 7 comments · 8 replies
Discussion options

You must be logged in to vote

Ja, sehe ich auch so, die alten Container und Images können weg.

Da die Installation bereits seit zwei Jahren läuft und keine Logging-Limitierung aktiv ist, vermute ich eine riesige Menge an Logfiles, zu ermitteln z.B. so:

sudo find /var/lib/docker/containers -name "*.log" -exec du -sh {} +

Ein Leeren wäre folgendermaßen möglich:

sudo find /var/lib/docker/containers -name "*.log" -exec truncate -s 0 {} +

Anschließend die obigen Logging-Optionen in deiner docker-compose.yml ergänzen (bei allen Services), damit das Problem nicht irgendwann erneut auftritt, also so:

logging:
  options:
    max-size: 10m
    max-file: "3"

Noch der Änderung des Compose-Files docker compose up -d ausführen, …

Replies: 7 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ledermann
Comment options

Comment options

You must be logged in to vote
1 reply
@ledermann
Comment options

Comment options

You must be logged in to vote
2 replies
@gereons
Comment options

@ledermann
Comment options

Answer selected by KippA67
Comment options

You must be logged in to vote
2 replies
@ledermann
Comment options

@KippA67
Comment options

Comment options

You must be logged in to vote
2 replies
@ledermann
Comment options

@GalOR7
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants