I am getting this error every time I try to run upnpd:
upnpd[30538]: Error registering the root device with descDocUrl: http://192.168. 0.1:49152/gatedesc.xml
upnpd[30538]: UpnpRegisterRootDevice returned -104
Does anyone know what it is trying to tell me? How can I fix this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't really understand what this file is supposed to do, I'm just following the installation directions, plus the directions of making Shorewall run with it. I'm running Debian Etch amd64. Is it trying to tell me that the file isn't in the path somehow? Is there any way I can get more information on why it's failing?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The nature of Gentoo is to download source and compile before installing, so I've used the Gentoo packages and I've also tried downloading and building the source for linux-igd.
* net-misc/linux-igd
Latest version available: 1.0-r1
Latest version installed: 1.0-r1
Size of files: 34 kB
Homepage: http://linux-igd.sourceforge.net
Description: Deamon that emulates Microsoft's Internet Connection Sharing (ICS) for UPnP-aware clients
License: GPL-2
I'm also using Gentoo's package for pupnp as shown below:
* net-misc/libupnp
Latest version available: 1.4.2
Latest version installed: 1.4.2
Size of files: 1,071 kB
Homepage: http://pupnp.sourceforge.net/
Description: An Portable Open Source UPnP Development Kit
License: BSD
It's good Gentoo have moved to libpupnp. There will be a way to enable debugging for this library, and it's a good idea to ping a message to the pupnp mailing lists on this; I think they'll be able to offer further insight into this.
Daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am getting this error every time I try to run upnpd:
upnpd[30538]: Error registering the root device with descDocUrl: http://192.168. 0.1:49152/gatedesc.xml
upnpd[30538]: UpnpRegisterRootDevice returned -104
Does anyone know what it is trying to tell me? How can I fix this?
Please check that the /etc/gatedesc.xml file is present and readable. If not, it looks like upnpd has been mis-installed.
Details on what OS and release would be useful.
Thanks,
Daniel
Rather, the location of the gatedesc.xml file should be established by the /etc/upnpd.conf file:
$ grep -v document_path /etc/upnpd.conf
xml_document_path = /etc/linuxigd
So, the gatedesc.xml file should be located in /etc/linuxigd, by default.
Apologies for the confusion,
Daniel
I'd use 'grep document_path /etc/upnpd.conf', not 'grep -v ...' here though.
Ok, I think the file is where it belongs and nano can read it.
host2:/etc/linuxigd# grep document_path /etc/upnpd.conf
xml_document_path = /etc/linuxigd
I don't really understand what this file is supposed to do, I'm just following the installation directions, plus the directions of making Shorewall run with it. I'm running Debian Etch amd64. Is it trying to tell me that the file isn't in the path somehow? Is there any way I can get more information on why it's failing?
Is it trying to reach this address?: http://192.168. 0.1:49152/gatedesc.xml
Could my firewall be blocking it? I don't have anything allowing that port.
The server is Debian Etch with linuxigd-1.0.
Unfortunately I have the same problem, and everything looks good as far as I can tell. XML docs are in the right place and the upnpd.conf is correct.
I'm using Gentoo Linux 2006.1 (x64)
ls -l /etc/linuxigd/
total 44
-rwxr-xr-x 1 root root 195 Mar 12 11:35 dummy.xml*
-rwxr-xr-x 1 root root 13296 Mar 12 11:35 gateconnSCPD.xml*
-rwxr-xr-x 1 root root 3304 Mar 12 11:35 gatedesc.xml*
-rwxr-xr-x 1 root root 4309 Mar 12 11:35 gateicfgSCPD.xml*
-rw-r--r-- 1 root root 991 Mar 12 11:35 ligd.gif
-rw-r--r-- 1 root root 1964 Mar 12 11:36 upnpd.conf
-rw-r--r-- 1 root root 1343 Feb 8 14:13 upnpd.rc
Are you building from sources, or installing prebuilt packages?
From the upnp.h sources, return code -104 is from UPNP_E_OUTOF_MEMORY - see:
http://upnp.cvs.sourceforge.net/upnp/libupnp/upnp/inc/upnp.h?hideattic=0&view=markup
So, either malloc() fails on a O(100 byte) structure, or it's exhausted all entries in it's 200 handle table, possibly from being leaked.
Can you send the output of 'cat /proc/meminfo' please? I'm sure there is enough memory available, so it may well be another issue.
It may be an idea to try building with the updated pupnp (http://pupnp.sourceforge.net/) project and see if this makes a difference.
Thanks,
Daniel
The nature of Gentoo is to download source and compile before installing, so I've used the Gentoo packages and I've also tried downloading and building the source for linux-igd.
* net-misc/linux-igd
Latest version available: 1.0-r1
Latest version installed: 1.0-r1
Size of files: 34 kB
Homepage: http://linux-igd.sourceforge.net
Description: Deamon that emulates Microsoft's Internet Connection Sharing (ICS) for UPnP-aware clients
License: GPL-2
I'm also using Gentoo's package for pupnp as shown below:
* net-misc/libupnp
Latest version available: 1.4.2
Latest version installed: 1.4.2
Size of files: 1,071 kB
Homepage: http://pupnp.sourceforge.net/
Description: An Portable Open Source UPnP Development Kit
License: BSD
Should I try it with Intel's UPnP SDK?
cat /proc/meminfo
MemTotal: 523008 kB
MemFree: 16176 kB
Buffers: 220776 kB
Cached: 124504 kB
SwapCached: 0 kB
Active: 189756 kB
Inactive: 169268 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 523008 kB
LowFree: 16176 kB
SwapTotal: 786424 kB
SwapFree: 786312 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 21028 kB
Slab: 124400 kB
CommitLimit: 1047928 kB
Committed_AS: 21276 kB
PageTables: 712 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 524 kB
VmallocChunk: 34359737843 kB
Mikey,
It's good Gentoo have moved to libpupnp. There will be a way to enable debugging for this library, and it's a good idea to ping a message to the pupnp mailing lists on this; I think they'll be able to offer further insight into this.
Daniel