Skip to content

Instantly share code, notes, and snippets.

View bcurran3's full-sized avatar

bcurran3 bcurran3

View GitHub Profile
@Deathproof76
Deathproof76 / plexdb_healthcheck.sh
Last active October 10, 2024 04:52
Crontab restart/repair script for Plex "Sqlite3: Sleeping for 200ms to retry busy DB"
#!/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