Plex Stuck Installing/Uninstalling/Updating

Hello,

Quick background:
I had previously installed Umbrel OS on an Raspberry Pi 400, which worked but during the process Plex got completely screwed up. I got the Umbrel Home yesterday and migrated everything across but Plex is still able to update/install or be removed.

I am able to SSH into the Umbrel Home but when I attempt to remove the offending app, I hit this error:

umbrel@umbrel:~$ sudo ~/umbrel/scripts/app uninstall plex
Removing images for app plex…
ERROR: The Compose file ‘/home/umbrel/umbrel/app-data/plex/docker-compose.yml’ is invalid because:
services.server.environment contains non-unique items, please remove duplicates from [‘PUID=1000’, ‘PGID=1000’, ‘VERSION=docker’, ‘PLEX_CLAIMclaim-a3ShQd1Y-16WhgWKJ7W1’, ‘PLEX_CLAIMclaim-aI3gENqLtBdwABM4uMlU’, ‘PLEX_CLAIMclaim-aI3gENqLtBdwABM4uMlU’, ‘PLEX_CLAIMclaim-MOqwNqnYsnerQn8rEa9’, ‘PLEX_CLAIMclaim-n6WN_ieaBoqBQTdMEIFe’]
umbrel@umbrel:~$

Same story when I try to restart the Plex service.

umbrel@umbrel:~$ sudo ~/umbrel/scripts/app restart plex
Stopping app plex…
ERROR: The Compose file ‘/home/umbrel/umbrel/app-data/plex/docker-compose.yml’ is invalid because:
services.server.environment contains non-unique items, please remove duplicates from [‘PUID=1000’, ‘PGID=1000’, ‘VERSION=docker’, ‘PLEX_CLAIMclaim-a3ShQd1Y-16WhgWKJ7W1’, ‘PLEX_CLAIMclaim-aI3gENqLtBdwABM4uMlU’, ‘PLEX_CLAIMclaim-aI3gENqLtBdwABM4uMlU’, ‘PLEX_CLAIMclaim-MOqwNqnYsnerQn8rEa9’, ‘PLEX_CLAIMclaim-n6WN_ieaBoqBQTdMEIFe’]
umbrel@umbrel:~$

I’ve altered the claim codes before pasting here, so ignore that if they look wonky.
Any advice would be appreciated.

Thanks!

I seemed to be able to clear the botched Plex install/update by running
sudo ~/umbrel/scripts/app install plex
And restarting my Umbrel Home.
Just in case anyone else gets stuck.