Closed cscattaglia917 closed 9 months ago
Don't you love the inconsistent use of cgroups v1 and cgroups v2 ?
If I add the grep kube
to the container detection, are there any pathname changes/additions required ?
(confirming my understanding)
If I add the
grep kube
to the container detection, are there any pathname changes/additions required ? (confirming my understanding)
No pathname changes/additions required - I just added that one line to the container detection check 👍
Thank you.
I will update this over the weekend and add support.
Changes implemented:
Please check the work?
This will become v1.05.00
https://github.com/ChuckPa/PlexDBRepair/tree/chuckpa/add-kubernetes-support
Thanks! Looks good!
DBRepair v1.05.00 released
Leveraging other tools like Heavyscript(https://github.com/Heavybullets8/heavy_script) - one can easily access the running Plex container on a TrueNAS SCALE environment and run the DBRepair.sh script from inside the container environment. Since TrueNAS SCALE is using Kubernetes, the "Docker" checks on line 595 do not work. Checking for "kube" in the /proc/1/cgroup file resolves this issue.
I made this small adjustment on my own and can create a PR, but don't see a "contribute" branch as specified in Contributing.md..
Full output of /proc/1/cgroup from inside the Plex container:
I stored the DBRepair.sh script inside my config directory and I was able to enter into the container via Heavyscript, and run the DBRepair.sh from within the container to stop PMS, run the auto option, and start PMS with this small modification. Thanks for your hard work creating the actual "repair" portion! :)