Deleted port mapping for port 4040

Need help? Post your questions here.

Moderator: moderators

Deleted port mapping for port 4040

Postby jvpm » Sat Jan 05, 2013 2:20 am

Hi,

I have the 4040 port open on my router.
Everytime I restart the subsonic service for whatever reason I get this on log:

[2013-01-05 02:13:24,909] INFO NetworkService - Deleted port mapping for port 4040

Why is it deleting the port mapping? From that point on I can't access the webUI.

Thanks
jvpm
 
Posts: 4
Joined: Sat Jan 05, 2013 2:18 am

Re: Deleted port mapping for port 4040

Postby BKKKPewsey » Sat Jan 05, 2013 6:23 pm

jvpm wrote:Why is it deleting the port mapping?

I expect its because you have UPnP port fowarding disabled in settings/network
jvpm wrote:From that point on I can't access the webUI.

Then you haven't forwarded the port correctly in the router

:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Deleted port mapping for port 4040

Postby jvpm » Sun Jan 06, 2013 5:05 pm

BKKKPewsey wrote:
jvpm wrote:Why is it deleting the port mapping?

I expect its because you have UPnP port fowarding disabled in settings/network
jvpm wrote:From that point on I can't access the webUI.

Then you haven't forwarded the port correctly in the router

:mrgreen:


The port is indeed forwarded correctly and I can access the webUI but whenever I restart the service it simply
deletes the port mapping (so I'm guessing the UPnP is activated).

Btw I'm using ubuntu server 12.10


Edit:

On subsonic page I tried the "Automatically configure your router to allow incoming connections to Subsonic (using UPnP or NAT-PMP port forwarding)." under
Settings > Network and I got this:

log:
Code: Select all
Failed to create port forwarding.
net.sbbi.upnp.messages.UPNPResponseException: Detailed error code :501, Detailed error description :Action Failed
   at net.sbbi.upnp.messages.ActionMessageResponseParser.startElement(ActionMessageResponseParser.java:145)
   at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)
   at net.sbbi.upnp.messages.ActionMessage.service(ActionMessage.java:172)
   at net.sbbi.upnp.impls.InternetGatewayDevice.addPortMapping(InternetGatewayDevice.java:388)
   at net.sourceforge.subsonic.domain.SBBIRouter.addPortMapping(SBBIRouter.java:57)
   at net.sourceforge.subsonic.service.NetworkService$PortForwardingTask.execute(NetworkService.java:146)
   at net.sourceforge.subsonic.service.NetworkService$Task.run(NetworkService.java:309)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
   at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:679)
jvpm
 
Posts: 4
Joined: Sat Jan 05, 2013 2:18 am

Re: Deleted port mapping for port 4040

Postby BKKKPewsey » Sun Jan 06, 2013 10:06 pm

If you have auto port forwarding disabled you do get the deleted port mapping entry in the SS log on restart.
Why? - no idea :?
In your case it appears that the UPnP service is not understanding the response from your router so is throwing up that error.
If you can access SS ok then just ignore it
Generally it much better to manually forward the ports rather then relying on UPnP which I have found to rather unreliable :(

:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Deleted port mapping for port 4040

Postby jvpm » Sun Jan 06, 2013 10:39 pm

BKKKPewsey wrote:If you have auto port forwarding disabled you do get the deleted port mapping entry in the SS log on restart.
Why? - no idea :?
In your case it appears that the UPnP service is not understanding the response from your router so is throwing up that error.

:mrgreen:


Aahah wicked!
Indeed, just tried restarting the service with the auto port forwarding enable and it's working. (bug!) :roll:
But hey, thanks I don't think I'd get this far without your help. :D
jvpm
 
Posts: 4
Joined: Sat Jan 05, 2013 2:18 am

Re: Deleted port mapping for port 4040

Postby oggie » Tue Feb 19, 2013 5:26 pm

I'm seeing the same issue and I was wondering why this was happening... grrr.

If I disable the setting in SS, I get that message in the log.

If I enable it in SS, I get this:

[2013-02-19 13:33:23,293] INFO NetworkService - Successfully forwarding port 4040.

But neither works. But if I go into my router and add the port forwarding manually, it works. But once I restart SS, it fails again.

What's the proper setup and steps to make sure this always works and nothing is needed if SS is restarted?
oggie
 
Posts: 35
Joined: Sun Dec 18, 2011 2:41 am

Re: Deleted port mapping for port 4040

Postby bushman4 » Tue Feb 19, 2013 6:51 pm

Ensure that your subsonic server computer always has the same internal IP address, either through a "reservation" on the DHCP server (the router, usually) or by hard coding an address into the server's network properties.

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Deleted port mapping for port 4040

Postby oggie » Tue Feb 19, 2013 8:59 pm

That's not the problem. I have a static IPs.

The problem is subsonic is using upnp and talking to the router to delete the port forward rule. Everything work till I restart the subsonic service on my server.
oggie
 
Posts: 35
Joined: Sun Dec 18, 2011 2:41 am

Re: Deleted port mapping for port 4040

Postby oggie » Wed Feb 20, 2013 12:19 am

I fixed the problem by:
1 - disabling upnp on my router
2 - adding port forward on my router to the static ip of the server
3 - disabling the automatically configure.... under settings/network in SS
oggie
 
Posts: 35
Joined: Sun Dec 18, 2011 2:41 am


Return to Help

Who is online

Users browsing this forum: No registered users and 63 guests