[hardy] amule upnp needs libupnp2

Bug #201624 reported by Pelle van der Scheer
34
This bug affects 2 people
Affects Status Importance Assigned to Milestone
amule (Debian)
Fix Released
Unknown
amule (Gentoo Linux)
Fix Released
Medium
amule (Ubuntu)
Fix Released
Wishlist
Unassigned
Nominated for Hardy by Festor

Bug Description

Binary package hint: amule

When enabling upnp in amule, this error is put in the log and upnp does not work:

UPnP.cpp(87): Universal Plug and Play: error(CDynamicLibHandle): Unable to dlopen libixml.so.2. Check PATH and LD_LIBRARY_PATH.
UPnP.cpp(87): Universal Plug and Play: error(CDynamicLibHandle): Unable to dlopen libupnp.so.2. Check PATH and LD_LIBRARY_PATH.
UPnP.cpp(87): Universal Plug and Play: error(CDynamicLibHandle): Unable to dlopen libupnp.so.3. Check PATH and LD_LIBRARY_PATH.
UPnP.cpp(228): Universal Plug and Play: error(CDynamicLibHandle): Unable to dlopen one or more UPnP component libraries. Check PATH and LD_LIBRARY_PATH.
amule.cpp(1000): CUPnPException: error(CDynamicLibHandle): Unable to dlopen one or more UPnP component libraries. Check PATH and LD_LIBRARY_PATH.

installing libupnp2 fixes this and enables upnp in amule

amule Version: 2.2.0~svn20080218-0ubuntu1

Linux sakura 2.6.24-12-generic #1 SMP Mon Mar 10 15:32:00 UTC 2008 i686 GNU/Linux

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

We need to add libupnp-dev to b-d and build amule with upnp support.

Changed in amule:
assignee: nobody → pochu
importance: Undecided → Wishlist
status: New → Triaged
Changed in amule:
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package amule - 2.2.0~svn20080218-0ubuntu2

---------------
amule (2.2.0~svn20080218-0ubuntu2) hardy; urgency=low

  * debian/amule-common.install:
    - Install the skins for the monolithic client.
  * debian/control:
    - Build-Depend on libupnp-dev
  * debian/rules:
    - Enable uPnP support. LP: #201624, FeatureFreeze exception
      is LP: #204928.
  * debian/patches/removing_SVN_warning_window.diff,
    debian/series:
    - Don't show the new version dialog when starting aMule for the first
      time, as it shows a big warning due to this being a svn snapshot.
      We (and upstream) consider this stable as to ship it. LP: #197332.
      Thanks to Festor Wailon Dacoba for the patch.

 -- Emilio Pozuelo Monfort <email address hidden> Tue, 01 Apr 2008 23:46:17 +0200

Changed in amule:
status: In Progress → Fix Released
Revision history for this message
sheepdestroyer@gmail.com (sheepdestroyer-gmail) wrote :

i have a similar bug since more than 1 week (don't know exactly since when but wasworking fine before) :
2008-05-05 20:21:39: UPnP.cpp(91): Universal Plug and Play: Successfully opened libixml.so.2.
2008-05-05 20:21:39: UPnP.cpp(91): Universal Plug and Play: Successfully opened libupnp.so.2.
2008-05-05 20:21:39: UPnP.cpp(87): Universal Plug and Play: error(CDynamicLibHandle): Unable to dlopen libupnp.so.3. Check PATH and LD_LIBRARY_PATH.
2008-05-05 20:21:39: UPnP.cpp(1063): Universal Plug and Play: bound to 192.168.1.22:50000.
2008-05-05 20:21:42: UPnP.cpp(1134): Universal Plug and Play: UPnP Error: CUPnPControlPoint::AddPortMapping: Wan Service not detected.
...
...
2008-05-05 20:26:35: UPnP.cpp(1388): Universal Plug and Play: error(UPNP_DISCOVERY_ADVERTISEMENT_ALIVE): Error retrieving device description from http://192.168.1.1:49152/gatedesc.xml: Unknown Error.
2008-05-05 20:26:36: UPnP.cpp(1388): Universal Plug and Play: error(UPNP_DISCOVERY_ADVERTISEMENT_ALIVE): Error retrieving device description from http://192.168.1.1:49152/gatedesc.xml: Unknown Error.
2008-05-05 20:27:05: UPnP.cpp(1388): Universal Plug and Play: error(UPNP_DISCOVERY_ADVERTISEMENT_ALIVE): Error retrieving device description from http://192.168.1.1:49152/gatedesc.xml: Unknown Error.
2008-05-05 20:27:06: UPnP.cpp(1388): Universal Plug and Play: error(UPNP_DISCOVERY_ADVERTISEMENT_ALIVE): Error retrieving device description from
...
...
and so on

i'm on hardy & 2.2.0~svn20080218-0ubuntu4

Revision history for this message
aldebx (aldebx) wrote :

same here,
is this a regression?

Changed in amule:
status: Unknown → Fix Released
Revision history for this message
Ricardo Ghisi Tobaldini (ricardo-hipernet) wrote :

Same as sheepdestroyer happens with me, hardy and aMule 2.2.0~20080218-0ubuntu4

aldebx (aldebx)
Changed in amule:
status: Fix Released → Confirmed
Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

Could someone see if this happens in Intrepid with libupnp3? (note that Intrepid is *not* stable, so don't test that on a production machine!)

Revision history for this message
aldebx (aldebx) wrote :

Intrepid repositories do not have amule and libupnp2 depends on amule, thus trying to install libupnp3 from intrepid repositories results in amule being removed.
BTW I forced libupnp3 installation via dpkg --force-all (which however removed libupnp2) and amule did not seem to benefit from this (low id).

This time amule complained for the libupnp2
UPnP.cpp(87): Universal Plug and Play: error(CDynamicLibHandle): Unable to dlopen libupnp.so.2. Check PATH and LD_LIBRARY_PATH.

Could it be that the maintainer compiled amule deb in a dirty environment with both libupnp2 and libupnp3? Just guessing...

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote : Re: [Bug 201624] Re: [hardy] amule upnp needs libupnp2

aldebx wrote:
> Could it be that the maintainer compiled amule deb in a dirty
> environment with both libupnp2 and libupnp3? Just guessing...

No, as it's build in the Ubuntu buidds in clean chroots, and libupnp isn't
needed on build as the library is dlopen()ed.

I'm preparing an update to a new svn snapshot for Intrepid, with a fix for the
libupnp[23] issue. Let's see if that helps.

Changed in amule:
assignee: pochu → festor90
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package amule - 2.2.0~svn20080525-0ubuntu1

---------------
amule (2.2.0~svn20080525-0ubuntu1) intrepid; urgency=low

  * New svn snapshot from 20080525 tarball, renamed debian/
    to debian-upstream/. LP: #234807
  * From Mantis Bug Tracker:
    - Fixed 0001313: broken log view
    - Fixed 0001296: 100% of CPU used by amuleweb
    - Fixed 0001289: amule fails to build on non glibc systems (e.g. uclibc)
    - Fixed 0001267: Shared files priority don't get updated on amulegui
    - Fixed 0001266: aMule SVN fails when enabling GeoIP with
      LDFLAGS="--as-needed" [PATCH]
    - Other minor fixes
  * debian/copyright
    - Upstream SVN repository doesn't seem to be public, note in
      debian/copyright the URL this tarball was obtained
      from. (from debian package)
  * debian/patches:
    - fixed_spanish_translation.diff
      Removed, fixed upstream.
    - configure_ignore_gdlib-config_garbage.diff
      Updated regard to changes in the upstream.
  * debian/control:
    - Require libupnp3 for uPnP support (LP: #201624) (LP: #214660)
    - Removed old XS-VCS-Bzr link, added Vcs-Git and Vcs-Browser
      (from debian package)
  * debian/TODO:
    - Added new task

 -- Festor Wailon Dacoba <email address hidden> Fri, 25 May 2008 19:26:26 +0200

Changed in amule:
status: In Progress → Fix Released
Revision history for this message
aldebx (aldebx) wrote :

Thank you for providing an updated build.
This time upnp worked, despite amule complaining for libupnp2

2008-05-26 14:13:33: UPnP.cpp(87): Universal Plug and Play: error(CDynamicLibHandle): Unable to dlopen libupnp.so.2. Check PATH and LD_LIBRARY_PATH.
2008-05-26 14:13:33: UPnP.cpp(91): Universal Plug and Play: Successfully opened libupnp.so.3.

I also noticed a weired behavior: I cannot use amule with ufw. Despite allowing all three ports set in amule preferences I cannot get a HIGH ID unless I shut down the firewall.
Syslog prompts an incoming connection has been blocked when the firewall is enabled, the strange side is that the port blocked changes each time I start amule!

Here is a bit of my logfile (where 192.168.1.1 is my UPNP enabed router)

Revision history for this message
Kevin (kevin64-deactivatedaccount) wrote :

>
> Thank you for providing an updated build.
> This time upnp worked, despite amule complaining for libupnp2
>
> 2008-05-26 14:13:33: UPnP.cpp(87): Universal Plug and Play:
> error(CDynamicLibHandle): Unable to dlopen libupnp.so.2. Check PATH and
> LD_LIBRARY_PATH.
> 2008-05-26 14:13:33: UPnP.cpp(91): Universal Plug and Play: Successfully
> opened libupnp.so.3.
>

aMule amule - 2.2.0~svn20080525-0ubuntu1 for Intrepid use libupnp3 not
libupnp2

| * debian/control:
| - Require libupnp3 for uPnP support

I also noticed a weired behavior: I cannot use amule with ufw. Despite
> allowing all three ports set in amule preferences I cannot get a HIGH ID
> unless I shut down the firewall.
> Syslog prompts an incoming connection has been blocked when the firewall is
> enabled, the strange side is that the port blocked changes each time I start
> amule!
>
> Here is a bit of my logfile (where 192.168.1.1 is my UPNP enabed router)
>

I do not know if I understood you well, but I think that is something
normal. Many clients do not use the ed2k network ports by default what you
can get more connections than expected. Yet this is not really good, since
many of these connections can not be trusted ed2k clients.

Use only the ports "official" aMule may be the best option, but this may
cause you have fewer sources (or low id) in your downloads.

Moreover, using unofficial ports can promote the speed of downloading as
many of ed2k servers aMule / eMule reduce traffic information to ports
officials to avoid overloading.

Revision history for this message
Jisakiel (jisakiel) wrote :

I believe I'm still having this problem, or a related one at least. Using guarddog, but firewall is disabled:

$ sudo iptables -L
[sudo] password for jisakiel:
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

I get in the error log:

2008-06-25 12:07:39: UPnP.cpp(91): Universal Plug and Play: Successfully opened libixml.so.2.
2008-06-25 12:07:39: UPnP.cpp(87): Universal Plug and Play: error(CDynamicLibHandle): Unable to dlopen libupnp.so.2. Check PATH and LD_LIBRARY_PATH.
2008-06-25 12:07:39: UPnP.cpp(91): Universal Plug and Play: Successfully opened libupnp.so.3.
2008-06-25 12:07:39: UPnP.cpp(1063): Universal Plug and Play: bound to 192.168.0.3:50000.
2008-06-25 12:07:39: UPnP.cpp(1420): Universal Plug and Play: Internet Gateway Device Detected.
2008-06-25 12:07:39: UPnP.cpp(746): Universal Plug and Play: WAN Service Detected: 'urn:schemas-upnp-org:service:WANIPConnection:1'.
2008-06-25 12:07:39: UPnP.cpp(1748): Universal Plug and Play: Error subscribing to service urn:schemas-upnp-org:service:WANIPConnection:1, absEventSubURL: http://192.168.0.1:49152/upnp/event/WANIPConnection, error: UPNP_E_SOCKET_CONNECT.
2008-06-25 12:07:39: UPnP.cpp(763): Universal Plug and Play: Uninteresting service detected: 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'. Ignoring.
2008-06-25 12:07:39: UPnP.cpp(763): Universal Plug and Play: Uninteresting service detected: 'urn:schemas-microsoft-com:service:OSInfo:1'. Ignoring.
2008-06-25 12:07:39: UPnP.cpp(1420): Universal Plug and Play: Internet Gateway Device Detected.
2008-06-25 12:07:39: UPnP.cpp(1420): Universal Plug and Play: Internet Gateway Device Detected.
2008-06-25 12:07:39: UPnP.cpp(1420): Universal Plug and Play: Internet Gateway Device Detected.
2008-06-25 12:07:39: UPnP.cpp(1134): Universal Plug and Play: UPnP Error: CUPnPControlPoint::AddPortMapping: Wan Service not detected.

It opens correctly libupnp.so.3. I don't really understand rest of the log; it seems to bound to 192.168.0.3 (which is my LAN IP) instead of 192.168.0.1 which is the router?

UPNP is active on the router, of course (as for instance transmission or deluge work right, as emule on windows).

package versions: amule=2.2.0~svn20080525-0ubuntu1 from intrepid, libupnp3=1.6.6-1 . System is hardy with some packages from intrepid (as in aptitude install -t intrepid), with intrepid pinned to less preference than hardy in /etc/apt/preferences as to not try to dist-upgrade the whole system.

Revision history for this message
Kevin (kevin64-deactivatedaccount) wrote :

>
> I get in the error log:
>
> 2008-06-25 12:07:39: UPnP.cpp(91): Universal Plug and Play: Successfully
> opened libixml.so.2.
> 2008-06-25 12:07:39: UPnP.cpp(87): Universal Plug and Play:
> error(CDynamicLibHandle): Unable to dlopen libupnp.so.2. Check PATH and
> LD_LIBRARY_PATH.
> 2008-06-25 12:07:39: UPnP.cpp(91): Universal Plug and Play: Successfully
> opened libupnp.so.3.
> 2008-06-25 12:07:39: UPnP.cpp(1063): Universal Plug and Play: bound to
> 192.168.0.3:50000.
> 2008-06-25 12:07:39: UPnP.cpp(1420): Universal Plug and Play: Internet
> Gateway Device Detected.
> 2008-06-25 12:07:39: UPnP.cpp(746): Universal Plug and Play: WAN Service
> Detected: 'urn:schemas-upnp-org:service:WANIPConnection:1'.
> 2008-06-25 12:07:39: UPnP.cpp(1748): Universal Plug and Play: Error
> subscribing to service urn:schemas-upnp-org:service:WANIPConnection:1,
> absEventSubURL: http://192.168.0.1:49152/upnp/event/WANIPConnection,
> error: UPNP_E_SOCKET_CONNECT.
> 2008-06-25 12:07:39: UPnP.cpp(763): Universal Plug and Play: Uninteresting
> service detected: 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'.
> Ignoring.
> 2008-06-25 12:07:39: UPnP.cpp(763): Universal Plug and Play: Uninteresting
> service detected: 'urn:schemas-microsoft-com:service:OSInfo:1'. Ignoring.
> 2008-06-25 12:07:39: UPnP.cpp(1420): Universal Plug and Play: Internet
> Gateway Device Detected.
> 2008-06-25 12:07:39: UPnP.cpp(1420): Universal Plug and Play: Internet
> Gateway Device Detected.
> 2008-06-25 12:07:39: UPnP.cpp(1420): Universal Plug and Play: Internet
> Gateway Device Detected.
> 2008-06-25 12:07:39: UPnP.cpp(1134): Universal Plug and Play: UPnP Error:
> CUPnPControlPoint::AddPortMapping: Wan Service not detected.
>
>
> It opens correctly libupnp.so.3. I don't really understand rest of the log;
> it seems to bound to 192.168.0.3 (which is my LAN IP) instead of
> 192.168.0.1 which is the router?

 Please, this problem (if is a problem) needs to be fixed in upstream, not
here.

http://forum.amule.org/index.php?board=10.0

Talk to Kry since it was he who added support UPnP in amule

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

Festor Wailon Dacoba wrote:
> Talk to Kry since it was he who added support UPnP in amule

I think it's us who should forward bugs upstream and take care of them, and not
users.

Revision history for this message
Kevin (kevin64-deactivatedaccount) wrote :

I already did that (in #amule IRC chanel). Kry's response was that the
support of UPnP in aMule is far from perfect

2008/6/25 Emilio Pozuelo Monfort <email address hidden>:

> Festor Wailon Dacoba wrote:
> > Talk to Kry since it was he who added support UPnP in amule
>
> I think it's us who should forward bugs upstream and take care of them, and
> not
> users.
>
> --
> [hardy] amule upnp needs libupnp2
> https://bugs.launchpad.net/bugs/201624
> You received this bug notification because you are a bug assignee.
>

Revision history for this message
Endolith (endolith) wrote :

UPnP stopped working in Intrepid even with libupnp3 installed.

Revision history for this message
Roman Polach (rpolach) wrote :

UPnP still does not work in Intrepid

Revision history for this message
Endolith (endolith) wrote :

Still a problem in Intrepid

Changed in amule:
status: Fix Released → Incomplete
Revision history for this message
Pelle van der Scheer (pellesimon) wrote :

In intrepid I installed an older version from launchpad

amule_2.2.0~svn20080525-0ubuntu1_i386.deb
amule-common_2.2.0~svn20080525-0ubuntu1_all.deb
amule-daemon_2.2.0~svn20080525-0ubuntu1_i386.deb

and locked the version in synaptic to get PnP support.

Revision history for this message
Endolith (endolith) wrote :
Changed in amule:
status: Incomplete → Confirmed
Revision history for this message
Festor (festor-deactivatedaccount) wrote :

I build aMule 2.2.2 for Ubuntu 8.04, please, test

https://launchpad.net/~surfaz28/+archive/ppa

Revision history for this message
Oibaf (oibaf) wrote :

This is fixed since amule 2.2.2-2.

For intrepid see bug #314999.

Changed in amule:
status: Confirmed → Fix Released
Revision history for this message
Festor (festor-deactivatedaccount) wrote :

2009/2/3 Fabio Pedretti <email address hidden>:
> This is fixed since amule 2.2.2-2.
>
> For intrepid see bug #314999.
>

This bug is for hardy, and at least today is not fixed

Changed in amule:
status: Fix Released → Confirmed
Changed in amule:
importance: Unknown → Undecided
status: Unknown → New
importance: Undecided → Unknown
status: New → Unknown
Revision history for this message
Oibaf (oibaf) wrote :

This is fixed in jaunty and already nominated for hardy.

Changed in amule (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Oibaf (oibaf) wrote :

This is fixed in intrepid/jaunty and already nominated for hardy.

Changed in amule (Gentoo Linux):
importance: Unknown → Medium
Changed in amule (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.