Synology Docker Error: failed to initialize logging driver database is locked

Synology Docker Error: failed to initialize logging driver database is locked

After a Synology Docker app is closed, it cannot be restarted and reports the error failed to initialize logging driver database is locked.

The problem is in the log database. In fact, you only need to delete the log.db file. When the app starts again, this file will be recreated automatically. It will not affect the original data, and you do not need to reinstall the app.

Below is a simple guide:

1. Get the Container ID

Open the container that reports the error and get the container ID, as shown below:

2. SSH into Synology

In root mode, enter the following command:

docker inspect --format='{{.LogPath}}' 55f17d74f4d1ff8ad40f23ae314819446d2f59da4dcc7d08ce791c9d90327129

Note: replace 55f17d74f4d1ff8ad40f23ae314819446d2f59da4dcc7d08ce791c9d90327129 with your own container ID.

The command above will return the path of log.db.

3. Delete log.db

Enter that path:

rm -rf log.db

At this point, the problem is solved.