Page 1 of 1
Deleted port mapping for port 4040

Posted:
Sat Jan 05, 2013 2:20 am
by jvpm
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
Re: Deleted port mapping for port 4040

Posted:
Sat Jan 05, 2013 6:23 pm
by BKKKPewsey
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

Re: Deleted port mapping for port 4040

Posted:
Sun Jan 06, 2013 5:05 pm
by jvpm
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

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)
Re: Deleted port mapping for port 4040

Posted:
Sun Jan 06, 2013 10:06 pm
by BKKKPewsey
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

Re: Deleted port mapping for port 4040

Posted:
Sun Jan 06, 2013 10:39 pm
by jvpm
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.

Aahah wicked!
Indeed, just tried restarting the service with the auto port forwarding enable and it's working. (bug!)
But hey, thanks I don't think I'd get this far without your help.

Re: Deleted port mapping for port 4040

Posted:
Tue Feb 19, 2013 5:26 pm
by oggie
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?
Re: Deleted port mapping for port 4040

Posted:
Tue Feb 19, 2013 6:51 pm
by bushman4
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
Re: Deleted port mapping for port 4040

Posted:
Tue Feb 19, 2013 8:59 pm
by oggie
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.
Re: Deleted port mapping for port 4040

Posted:
Wed Feb 20, 2013 12:19 am
by oggie
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