I'm having issues with a corrupt database

Unraid Plex runs via docker.

Run the tool inside the container.

e.g docker exec -it container bash

then , inside the container, you’ll be root and the tool will detect the container configuration.