This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Plex busy DB workaround | |
# Set the maximum number of allowed occurrences of the Sqlite3: Sleeping for 200ms to retry busy DB string | |
# about 3 times usually indicates an instance that can't recover by itself | |
# if your instance restarts your docker logs should reset, or "cover up" the busy DB lines, afaik | |
MAX_OCCURRENCES=3 | |
# this part "docker logs --tail 10 plex" "--tail 10" means the last ten lines of the container logs | |
# of the container named "plex", change the name according to your setup |