Reset pword. Server on TrueNas is now unreachable, no option to reclaim. HELP!

Ok so I manage with the help of ChuckPa to claim my server back with this post: Server credential reset utility for Linux-based platforms

Here is what I’ve done:

  • Stop the server
  • Get the zip (i’ve modified it so it works with BSD), extract the file and put it on the server somewhere where you have acces.
    UserCredentialReset.zip (3.2 KB)
  • Get a new token from here Claim | Plex
  • Type this command in the truenas shell: sudo sh mnt/[location to file]/UserCredentialReset.sh -p “mnt/[location to Preferences]/Preferences.xml” [token]

it should looks like this: sudo sh mnt/Pool/UserCredentialReset.sh -p “mnt/Pool/iocage/jails/Plex/root/usr/local/plexdata/Plex Media Server/Preferences.xml” claim-wks1fG_tqzra2EioFzV

  • Once the code executed, you should get your plex informations on the screen. Insert them in the following code:
    PlexOnlineUsername=“[username]” PlexOnlineMail=“[email]” PlexOnlineToken=“[token]” AcceptedEULA=“1”

It should look like this:
PlexOnlineUsername=“julien” PlexOnlineMail=“julien@gmail.cpm” PlexOnlineToken=“eaouTVXFr6HV24dtkjiQ” AcceptedEULA=“1”

  • Go to the Preferences.xml file : cd mnt/Pool/iocage/jails/Plex/root/usr/local/plexdata/Plex\ Media\ Server
  • Open the file: nano Preferences.xml
  • Add the code from three steps ago. Put it at the end, inside the bracket, like this: < [existing code] [your code] >
  • Save the file
  • Start the server
  • Login to your Plex server with the ip address like this: 192.168.1.200:32400