Error Connection Refused

@dane22 said:
Okay, and now for the tricky part here, since your workstation is a Mac, and I haven’t got a Mac, so guessing here, but try this:

Open a terminal on your Mac, and type:

ssh admin@192.168.1.22

Then type:

$(getcfg -f /etc/config/qpkg.conf PlexMediaServer Install_path)/plex.sh stop

Then type:

rm "$(getcfg -f /etc/config/qpkg.conf PlexMediaServer Install_path)/Library/Plex Media Server/plexmediaserver.pid"

Then type:

$(getcfg -f /etc/config/qpkg.conf PlexMediaServer Install_path)/plex.sh start

After above, paste a screenshot of the terminal window, as well as try and access Plex again

And STRONGLY suggest that you copy/paste the commands above into your terminal window to avoid type errors

/T

What does it do?
And can we send you a beer?

I had the same problem.

Was watching a show through my Roku when suddenly everything stopped and libraries no longer showed Restarted the Plex app and nothing. Restarted the QNAP and nothing. Updated to the latest version (the Aug 26 release) and still nothing.

QNAP: TS-451
Plex: 1.1.2.2680
No power issues I know of, and connected to a UPS.

I tried Dane’s SSH commands above and that seemed to do the trick. So thank you - I have no idea what happened - but thank you :slight_smile:

@area51tazz It stops PMS, removes the pid file, that is used to prevent more than one instance of PMS from running at a time, and then starts PMS again

/T

Just want to say thanks guys for the help, the ssh commands worked a treat. I was panicking there for a bit when I couldn’t connect…

Hell, me again. I’m glad dane22’s fix for my problem has helped others. I’ve saved the scripts for future use.

Now, from an attempt just now, managed users within my network are denied access (unauthorized to access the server). I can get on fine as I am admin. My children are logged in as me (which, as anyone with children knows, is a BAD idea!). Any way around this? I can access the server through the web interface fine (thanks, again, to dane22). Maybe I need to remove all pid files?

In the meantime I have QNAP support looking into what happens to Plex when the rug gets pulled from underneath it.

FIXED IT! I needed to go back and reset managed users within PMS. Access to libraries on the new instance of the server had not been set whilst the original libraries pointed to out now inaccessible server. This was possibly caused by my earlier reinstall of PMS before I met dane22, my hero!

Add me to the list of gratefuls! Was driving me crazy that my usual fixes didn’t work.

Having the same problem with PMS running on same QNAP NAS. How would I apply this script fix using a windows machine?

@pjradinfo Instead of opening a terminal, use Putty.exe program.

/T

Thank you, thank you, thank you.

I’m setting up a new TS-451+ for a friend and had everything running fine - applied a firmware update this morning and had this “error connection refused” after the reboot. Talk about panic stations! This is the first QNAP I have had anything to do with (all my stuff is ReadyNAS) and I had no clue where to look for the problem. Glad I came here first.

Thanks so much! PuTTY client worked great!

Just wanted to say thanks dane22, this is the second time your assistance helped me out. cheers.

Putty worked like a charm. The last couple of releases caused my plex server to be unreachable after a reboot. this seemed to have fixed it.

Thank you!
I’ve solved the connection refused with plex.
Now I have the same problem with aMule: is there a way to unlock the connection?
Thanks a lot!

@thedon

No idea, sorry

/T

Maybe stop the app, remove the pid… But I don’t know how

As said, No idea, since it’s an app unknow to me…

Might wanna hunt for an answer on QNAP Forums, since this is not Plex related

/T

OK, Sorry…

@dane22

Thank you very much, after hours of restarting/rebooting/disabling/enabling/ and God knows else, your solution did the trick!

@dane22 said:
Okay, and now for the tricky part here, since your workstation is a Mac, and I haven’t got a Mac, so guessing here, but try this:

Open a terminal on your Mac, and type:

ssh admin@192.168.1.22

Then type:

$(getcfg -f /etc/config/qpkg.conf PlexMediaServer Install_path)/plex.sh stop

Then type:

rm "$(getcfg -f /etc/config/qpkg.conf PlexMediaServer Install_path)/Library/Plex Media Server/plexmediaserver.pid"

Then type:

$(getcfg -f /etc/config/qpkg.conf PlexMediaServer Install_path)/plex.sh start

After above, paste a screenshot of the terminal window, as well as try and access Plex again

And STRONGLY suggest that you copy/paste the commands above into your terminal window to avoid type errors

/T

My NAS is the QNAP TS-251
Version of Plex Media Server is 1.1.3.2700
I’ve set a static IP for the NAS
I have an ASUS (Merlin) RT-N66u router and uPNP is enabled, and I’ve forwarded the port 32400
I have a dynamic IP and I use a DDNS service (NO-IP) which is set on my router and in the NAS.

There was a power outage earlier today, of course, the NAS suddenly switched off.

When I boot the NAS up and access it through my browser (Chrome) and click on the PMS App for PMS to open in a new Tab I see “192.168.1.249 refused to connect”. I can’t access PMS.

I tried reinstalling PMS, I tried rebooting, I turned PMS off and back on again in the App centre, and now I’m here seeking help as I have no idea what to do.

Any help will be greatly appreciated.

Aha! Got it working. Thanks @dane22