My plex server runs as an “app” on a headless Truenas Scale 24.10 server.
I needed to connect a lot of dots to get this working again.
Here are my notes in the hopes that it helps someone else in a similar position:
After getting locked out of plex because of changing my password:
I tried https://support.plex.tv/articles/account-requires-password-reset/#toc-2
I opened a shell into the app through the truenas gui
But claimit didn’t run (fatal error)
I found the Preferences.xml file in /config/Library/Application Support/Plex Media Server/
I backed up the existing version to a new name (cp Preferences.xml Preferences.xml.beforelockout)
NOTE: From the server (not the container) run midclt call app.stop megaplex
because if plex is running it didn’t work for me. I expect I need the app/container running but not the plex server for the Preferences.xml edits to work as suggested.
Back inside the container shell I used apt update && apt install -y vim
(because nano ctrl+ commands didn’t work inside the browser app shell and I’m mildly conversant in vi)
Inside vim (vim Preferences.xml) I search for these and deleted them:
PlexOnlineHome="<somestuff>"
PlexOnlineMail="<somestuff>"
PlexOnlineToken="<somestuff>"
PlexOnlineUsername="<somestuff>"
Then I had to modify the sshd config (of the Truenas server not the container). I ssh to the server and in /etc/ssh/sshd_config changed ‘AllowTcpForwarding no’ to ‘AllowTcpForwarding yes’ then ‘systemctl rstart sshd’
Next from my windows desktop powershell I ran ssh -L 8888:127.0.0.1:32400 truenas_admin@[ip address of my server]
And on the windows browser opened http://127.0.0.1:8888/web/ and was finally able to claim the server.
To the collective eye rolling of my family who blamed me for tinkering with it and disrupting their screen time. Bah humbug!