aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: UPnP functionality/miniupnpd interesting bug... maybe a bug?  (Read 2367 times)

synikal

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
UPnP functionality/miniupnpd interesting bug... maybe a bug?
« on: January 22, 2008, 03:16:13 AM »

Hi all,

I have a strange issue with the most current cvs snapshot of amule and playing nicely with miniupnpd. Does anyone have a working configuration like this that they can give me a few pointers? It seems to me that upnp detects a Wan Service and then forgets about it when it actually goes to add port mappings. Heres the log:


2008-01-21 18:02:43: UPnP.cpp(1420): Universal Plug and Play: Internet Gateway Device Detected.
2008-01-21 18:02:43: UPnP.cpp(746): Universal Plug and Play: WAN Service Detected: 'urn:schemas-upnp-org:service:WANIPConnection:1'.
2008-01-21 18:02:43: UPnP.cpp(1748): Universal Plug and Play: Error subscribing to service urn:schemas-upnp-org:service:WANIPConnection:1, absEventSubURL: http://10.1.0.1:2189/evt/IPConn, error: UPNP_E_SUBSCRIBE_UNACCEPTED.
2008-01-21 18:02:43: UPnP.cpp(763): Universal Plug and Play: Uninteresting service detected: 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'. Ignoring.
2008-01-21 18:02:43: UPnP.cpp(763): Universal Plug and Play: Uninteresting service detected: 'urn:schemas-dummy-com:service:Dummy:1'. Ignoring.
2008-01-21 18:02:43: UPnP.cpp(1420): Universal Plug and Play: Internet Gateway Device Detected.
2008-01-21 18:02:43: UPnP.cpp(1134): Universal Plug and Play: UPnP Error: CUPnPControlPoint::AddPortMapping: Wan Service not detected.

Thanks for any help anyone can give.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: UPnP functionality/miniupnpd interesting bug... maybe a bug?
« Reply #1 on: January 23, 2008, 02:43:11 AM »

2008-01-21 18:02:43: UPnP.cpp(1748): Universal Plug and Play: Error subscribing to service urn:schemas-upnp-org:service:WANIPConnection:1, absEventSubURL: http://10.1.0.1:2189/evt/IPConn, error: UPNP_E_SUBSCRIBE_UNACCEPTED.
...
2008-01-21 18:02:43: UPnP.cpp(1134): Universal Plug and Play: UPnP Error: CUPnPControlPoint::AddPortMapping: Wan Service not detected.
For some reason, libupnp was not able to subscribe to the service, even though it has found it. Could it be a configuration option in your modem/router? Or maybe a problem with its UPnP support?

Anyway, aMule keeps searching for other useful services, but in this case, has found none. WanPPPConnection would work too. Look at your modem/router's configuration page to see if you have to enable something.
Logged

FreeToGo

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 65
Re: UPnP functionality/miniupnpd interesting bug... maybe a bug?
« Reply #2 on: March 01, 2008, 05:26:06 AM »

See Attached
Logged
You can mock me. I can take it.

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: UPnP functionality/miniupnpd interesting bug... maybe a bug?
« Reply #3 on: March 02, 2008, 05:13:06 AM »

OK, here is the problem:
Quote
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("PortMappingNumberOfEntries"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(852): Universal Plug and Play: AddPortMapping(NewRemoteHost='', NewExternalPort='40623', NewProtocol='UDP', NewInternalPort='40623', NewInternalClient='192.168.0.4', NewEnabled='1', NewPortMappingDescription='aMule UDP socket (TCP+3)', NewLeaseDuration='0')
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: m_UpnpSendAction: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(852): Universal Plug and Play: AddPortMapping(NewRemoteHost='', NewExternalPort='40620', NewProtocol='TCP', NewInternalPort='40620', NewInternalClient='192.168.0.4', NewEnabled='1', NewPortMappingDescription='aMule TCP Listen Socket', NewLeaseDuration='0')
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: m_UpnpSendAction: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(852): Universal Plug and Play: AddPortMapping(NewRemoteHost='', NewExternalPort='40720', NewProtocol='UDP', NewInternalPort='40720', NewInternalClient='192.168.0.4', NewEnabled='1', NewPortMappingDescription='aMule UDP Extended eMule Socket', NewLeaseDuration='0')
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: m_UpnpSendAction: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("ConnectionType"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("PossibleConnectionTypes"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("ConnectionStatus"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("Uptime"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("LastConnectionError"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("RSIPAvailable"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("NATEnabled"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("ExternalIPAddress"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("PortMappingNumberOfEntries"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("PortMappingLeaseDuration"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(852): Universal Plug and Play: GetStatusInfo()
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: m_UpnpSendAction: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
2008-03-01 11:17:21: UPnP.cpp(1196): Universal Plug and Play: CUPnPControlPoint::DeletePortMappings: m_ActivePortMappingsMap.size() == 3
2008-03-01 11:17:21: UPnP.cpp(354): Universal Plug and Play: Error: GetStateVariable("PortMappingNumberOfEntries"): in a call to m_UpnpGetServiceVarStatus: UPnP SDK error: UPNP_E_BAD_HTTPMSG (-119).
I think I will need more help this time. You will need to compile libupnp yourself in debug mode, then you will need post the files IUpnpErrFile.txt and IUpnpInfoFile.txt, so that we can track the html message that failed. For tips on how to compile libupnp, see the file amule_build_install.sh.

I am not able to reproduce it here, so I will need your help to crack this one. What is the version of libupnp that you are using? Have you tried 1.6.5?

Cheers!
Logged