Page 1 of 1

localhost refused to connect.

PostPosted: Fri May 29, 2020 4:03 pm
by Stilgar
Hi, brand new here. I don't think it's necessarily causal, but since my Mac updated to 10.14.6 Serviio keeps refusing to load. Nothing else on my end changed. I tried using unloading and then loading using these terminal commands: start the serversudo launchctl load -F /Library/LaunchDaemons/org.serviio.server.plist
 & stop the serversudo launchctl unload /Library/LaunchDaemons/org.serviio.server.plist
but it doesn't hold - it goes down soon after - same error of:
This site can’t be reachedlocalhost refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

I also tried a reinstall of the latest Serviio version and no help there. If I should show logs I'm unsure how to find and attach them. Any help anyone could offer would be much appreciated. Tomorrow is my kids' cartoon day. I'd hate for them to miss it because Daddy can't make it work...

Re: localhost refused to connect.

PostPosted: Fri May 29, 2020 4:31 pm
by atc98092
I believe the issue is with Java permissions. Other users have encountered similar issues after a MacOS update. Another user posted the following that got him working. It wasn't the same specific issue, but might be related:
I seemed to find a fix, I went to the System Preferences - Security and Privacy - Privacy - Full Disc Access - and deleted Java in "full Disc Access" - updated Java and re-added it to the Full Disc Access, and it now seems to be seeing the volumes, so I'm hoping this is a fix.


If that doesn't resolve the issue, it might be helpful to see your Serviio log. So if you can't get it working, please attach your log here.

Re: localhost refused to connect.

PostPosted: Fri May 29, 2020 5:21 pm
by Stilgar
atc98092 wrote:I believe the issue is with Java permissions. Other users have encountered similar issues after a MacOS update. Another user posted the following that got him working. It wasn't the same specific issue, but might be related:
I seemed to find a fix, I went to the System Preferences - Security and Privacy - Privacy - Full Disc Access - and deleted Java in "full Disc Access" - updated Java and re-added it to the Full Disc Access, and it now seems to be seeing the volumes, so I'm hoping this is a fix.


If that doesn't resolve the issue, it might be helpful to see your Serviio log. So if you can't get it working, please attach your log here.


Hiya, thanks so much for responding. I've nothing in my "full disk access" area - it's empty. I updated Java earlier today. I tried using this:
Edit file log4j.xml in config folder and change this:

<category name="org.serviio">
<priority value="INFO"/>
</category>
to:

<category name="org.serviio">
<priority value="DEBUG"/>
</category>
Stop and Start the server in the console Status tab.

I had to stop the server using the terminal command above and then start it. Then I stopped the server using the browser interface. Then I changed the DEBUG back to INFO. I've attached the log portion I think is relevant. (the entire file was 3.8mb) The errors started yesterday, I believe so the time index should let you find the errors - they do mention Java. Should I just uninstall Java, you think?

Re: localhost refused to connect.

PostPosted: Fri May 29, 2020 6:27 pm
by atc98092
I'm no expert in deciphering Java messages in the log. But I did find this:

2020-05-29 07:59:39,542 ERROR [MediaServer] An unexpected error occurred. Ending the application. Message: Java heap space java.lang.OutOfMemoryError: Java heap space

How to resolve that, I can't say. But it does appear to be Java related.

Re: localhost refused to connect.

PostPosted: Fri May 29, 2020 7:02 pm
by Stilgar
atc98092 wrote:I'm no expert in deciphering Java messages in the log. But I did find this:

2020-05-29 07:59:39,542 ERROR [MediaServer] An unexpected error occurred. Ending the application. Message: Java heap space java.lang.OutOfMemoryError: Java heap space

How to resolve that, I can't say. But it does appear to be Java related.

Okay, desperation is setting in. I've uninstalled Java. doesn't help. I've found a guide on increasing the Java memory and followed it. Reinstalled, increased memory. Rebooted. After a few minutes, same problem.

Is there a way to reinstall Serviio? I reinstalled yesterday but it wasn't a clean install. Is there a way to uninstall and then reinstall?

Please - I'm trying everything I can think of.

Re: localhost refused to connect.

PostPosted: Fri May 29, 2020 7:50 pm
by atc98092
Yes, there is. But I have no experience with MacOS, so I really can't offer any suggestions in that regard. There is a wiki post that is specific to Mac installations. I'm not certain if this might assist you.

https://wiki.serviio.org/doku.php?id=mac_install