ukdtom/ClaimIt

"(" unexpected

ddec16 opened this issue · 6 comments

Hi,

Trying to run this on my linux server, getting the below error:

./claimpms.sh: 21: Syntax error: "(" unexpected

Permissions are set, not sure what else to do here.

You didn't specify what OS you are running, but try and type bash claimpms.sh

Ref: https://github.com/ukdtom/ClaimIt/wiki/How-To-Linux,-Mac

Thanks for the feedback, that did work and I'm running Ubuntu 20.04 on a VPS hosted out of a datacenter. I ended up re-installing the OS without any hardening, issue persists so I tried the script again, this time using your feedback. Unfortunately, while the script appears to have worked, when I do log in, I'm still unable to access any server management or logs. Its like its still not claimed. But if I try running the script again, it throws a 401, which I'm assuming is due to it being claimed already (note I re-installed plex to confirm, and after re-installing plex, it allowed me to claim it again). Any ideas?

image

image

https://forums.plex.tv/t/unable-to-claim-server-after-re-installing-on-fresh-os-ubuntu-20/749691/9

Thats the forum post with more information, if you can help I would appreciate it, though at this point, it doesn't seem to be an issue related with your tool to be honest.

Your image above shows that your server is NOT properly signed in or claimed.

Try using the actual IP Address of the server rather than the loopback address.

Also, your server LAN IP Address MUST comply with RFC1918 for private networks, otherwise Plex will block any attempt to claim the server.

https://en.wikipedia.org/wiki/Private_network

I literally just figured out the problem. Something is Cached on the Plex side, I changed my public IP and suddenly it works because Plex thinks its an entirely new server. This is killing me trying to figure out why, but at least its working now.

You can go to Plex Settings > Authorised Devices > All > Server and delete all but the most recent entry there to clear anything that is cached at plex.tv