Do what I do (as you saw me developing this … “BigHammer” and “BiggerHammer”
lol )
Best of luck… We’ll be around to help in other threads if you need.
It looks like you did a much-needed software upgrade?
Do what I do (as you saw me developing this … “BigHammer” and “BiggerHammer”
lol )
Best of luck… We’ll be around to help in other threads if you need.
It looks like you did a much-needed software upgrade?
That did it. Thanks.
For other noobies:
moderator edit: Clicking ‘Install using Plex Claim Token’ tells the installer to use what it finds in the menu window. Otherwise, it will ignore it by design
I made an software update yesterday, hoping it can solve or help to solve the problem, yes.
But now, after a restart of the server, trying with different browser (brave, edge), I always have these freezing screen-message!
If I access by mobile phone, it works…
Very strange…
BUT I FOUND A WAY TO SOLVE IT (opened the account and from there returned to plex server), IT WORKS NOW!
Can you opt out of updates on the phone? I can.
I might not be understanding. Please make a new thread and ping me.
We’ll discuss there
As writen before, I found a way to solve it. It works!
Thanks so much for your patience und help! ![]()
Well as I said in my previous post I have UserCredentialReset.sh on my QNAP in share/Public folder I can see it its there yet when I run Putty and try and sudo ./UserCredentialReset.sh ther is no file found. Can you help please?
I can not access my server via putty. I disabled my admin account as instructed when the hacking started. My new account (not named admin) will not open a session. Also, I have downloaded the Tar file, how do I open its contents. (Qnap)
Please point me to it?
I will edit and redirect here.
This thread is the finished script
[/quote]
This thread If you lost access after password reset, need to “reclaim” server under PlexMedia Server Nas &Devices server-linux
Which script should be used for QNAP NAS . At present neither will work for me as I get file not found when trying to execute the sh
Here is me walking through it
Stop Plex
SCP the file to /share on the qnap (not the ideal location but it works)
[chuck@lizum plexdev.794]$ scp UserCredentialReset.tar admin@ts128:/share
UserCredentialReset.tar 100% 10KB 6.9MB/s 00:00
[chuck@lizum plexdev.795]$
[chuck@lizum plexdev.795]$ ssh -l admin ts128
.. login stuff here.. now on the QNAP...
[~] # pwd
/root
[~] #
cd to where we need be (where the tar file is) and confirm it’s there[~] # cd /share
[/share] # ls
4k@ faketv@ HDG_DATA/ HDN_DATA/ HDU_DATA/ movies@ PlexData@ uhd@
animated@ HDA_DATA/ HDH_DATA/ HDO_DATA/ HDV_DATA/ Multimedia@ Plex-QPKG@ usenet@
CACHEDEV1_DATA/ HDB_DATA/ HDI_DATA/ HDP_DATA/ HDW_DATA/ music@ Public@ UserCredentialReset.tar
CHUCK-QPKG-SPECIAL@ HDC_DATA/ HDJ_DATA/ HDQ_DATA/ HDX_DATA/ nas@ test@ VideoStation@
Container@ HDD_DATA/ HDK_DATA/ HDR_DATA/ HDY_DATA/ NFSv=4/ test2@ Web@
Download@ HDE_DATA/ HDL_DATA/ HDS_DATA/ HDZ_DATA/ oldmusic@ tv@ xfer@
external/ HDF_DATA/ HDM_DATA/ HDT_DATA/ homes@ Optimized@ tv2@
[/share] #
[/share] # tar xf UserCredentialReset.tar
[/share] #
[/share] # tar xf UserCredentialReset.tar
[/share] # ./UserCredentialReset.sh
Plex Media Server user credential reset and reclaim tool (QNAP)
This utility will reset the server's credentials. It will then reclaim the server for you via a Plex Claim tokem from Plex.tv
Please enter Plex Claim Token copied from http://plex.tv/claim :
claim-xxxxx string .Please enter Plex Claim Token copied from http://plex.tv/claim : claim-s51jKQsGUtM18yXxL8z7
Clearing Preferences.xml
Preferences.xml cleared
Getting new credentials from Plex.tv
Claim completed without errors.
Username: ChuckPA
Email: ChuckIsCrazy@loonies.com
PMS is now ready to go
Start Plex in App Center
Thanks you mister @ChuckPa you yet AGAIN saved our behinds. I had some struggles getting our PMS reconnected after resetting our password. Now resolved with your lovely directions. Don’t miss step one, STOP PLEX! (I missed it initially).
Claim completed without errors.
PlexMediaServer Version 1.28.2.6106 on Ubuntu Server 20.04.5 LTS x86_64 Hyper-V host.
Thanks @peatrick
I’m glad this thing helps.
If I were able to get it to stop and restart PMS on ALL the hosts , I would do it.
(there’s a LOT of work to make that happen… Maybe I’ll make that in Version 2
)
When you SSH into the QNAP as a normal user, you can still elevate that user to sudo (admin) level
Here is where I have signed into my TS128 with my normal user account.
Next, I elevate my privilege level and start a BASH (command line) shell
[/] # whoami
chuck
[/] # sudo bash
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
[/] # whoami
admin
[/] # cd /share
[/share] # ./UserCredentialReset.sh
Plex Media Server user credential reset and reclaim tool (QNAP)
This utility will reset the server's credentials. It will then reclaim the server for you via a Plex Claim tokem from Plex.tv
Please enter Plex Claim Token copied from http://plex.tv/claim :
I now have sufficient privilege to run the script
I get the same, running on an asustor 1004T with ADM 4.1 (yes I know it wasnt listed in the supported NAS’s but heck worth a shot).
I look in the List of supported platforms and I do not see Docker. Then I look at the code and I see this:
# Determine which host we are running on and set variables
HostConfig() {
# Docker
if [ -d "/config/Library/Application Support/Plex Media Server" ]; then
AppSuppDir="/config/Library/Application Support"
Preferences="$AppSuppDir/Plex Media Server/Preferences.xml"
HostType="Docker Container"
return 0
So which is it? Is Plex running in Docker supported by this fix and if so how does one run it?
Docker is in there but doesn’t work.
I was being overly optimistic and have not taken it back out because I might have a work around to edit on a live container ![]()
As for ASUSTOR, I can try. We do have one in the HQ Lab.
I will see if I can get some time after dinner and add it.
While there, I’ll disable Docker so nobody gets upset.
@ChuckPa
I followed the instructions step-by-step. and get the message "Claim completed without errors.
But when I try to start PMS, it crashes. message Aug 26, 2022 23:49:21: Failed to initialize logging: Empty or non-existant file. in the Startup Crash.log.
FYI, I made a back up of preferences.xml prior the launch of the tool. As soon as I copy the original preferences.xml, I can start the server but I cannot claim it…
Thanks for your help
Synology 918+ DSM6, PMS 1.28.2.6106
Quick question:
What is the path to the Plex “Preferences.xml” on your NAS (as seen from the SSH command line) ?
I see this.
root@ASUSTOR-AS6102T:/share/Plex/Library/Plex Media Server/Logs # uname -a
Linux ASUSTOR-AS6102T 5.13.x #1 SMP Wed Jul 13 00:14:49 CST 2022 x86_64 GNU/Linux
root@ASUSTOR-AS6102T:/share/Plex/Library/Plex Media Server/Logs #
Can you check the ownership of /Plex/Library/Application Support/Plex Media Server/Preferences.xml ?
Right-click it, → Properties.
Make certain it’s owned by plex:users ?
I might have a bug … Sorry
Problem solved by adapting the preferences.xml rights.
Server is back with my media library.
You’re a genius. Thanks a lot for your help.
Thank you… Now I know what to do.
I hate writing code and testing it LIVE
![]()