This forum has been archived. All content is frozen. Please use KDE Discuss instead.

UPnP

Tags: None
(comma "," separated)
quaint
Registered Member
Posts
13
Karma
0

UPnP

Sun Jan 22, 2006 10:34 am
Hi there,

I seem to be having a few troubles with the UPnP plugin in the ktorrent 1.2rc2 committed to the FreeBSD Ports system on 17 Jan 2006. Here's the pertinent info:

leela$ uname -a
FreeBSD leela.xamina 6.0-BETA4 FreeBSD 6.0-BETA4 #1: Wed Sep 14 23:39:08 BST 2005 leela.xamina:/usr/obj/usr/src/sys/PUSH i386

(small snippet from the logfile - let me know if you'd like more)

Starting download
Loading 6 active chunk downloads
Loading chunk 162
Loading chunk 205
Loading chunk 254
Loading chunk 336
Loading chunk 453
Loading chunk 827
Doing tracker request to url : http://tracker.digitaldistractions.org: ... d9uO%9eW6O
Loading plugin upnpplugin
Trying to find UPnP devices on the local network
UPnPMCastSocket Error : an unknown/unexpected error has happened
Loading plugin infowidgetplugin
Loading plugin searchplugin


Always helpful when it says "Unknown/unexpected error", don't you think? :)

If I try "rescan" from the UPnP plug-in stream, it just dumps

Trying to find UPnP devices on the local network
UPnPMCastSocket Error : an unknown/unexpected error has happened

into the logfile.

Trying with pf disabled doesn't affect the result.

I'll try my level best to provide any further information you might need.
George
Moderator
Posts
5421
Karma
1

Sun Jan 22, 2006 11:51 am
Indeed not very helpfull.
quaint
Registered Member
Posts
13
Karma
0

Sun Jan 22, 2006 1:02 pm
Anything you can suggest I do to fill in the blanks?

I must admit, it's the first time I've ever had anything to do with UPnP; I've just moved into a new place and my housemate's don't remember the router password. I can't set up proper port forwarding so UPnP seems to be my best bet for decent download rates!

Gah!
George
Moderator
Posts
5421
Karma
1

Sun Jan 22, 2006 8:37 pm
You can run ethereal and save it's output to a file.

Make sure you have no apps running which need internet (so I don't have to sift to 1000 of packets) :

- Start up KT without a torrent.
- Startup ethereal as root.
- Start to capture packets using ethereal (Capture -> Options ; then select the right interface probably eth0 or wlan0 and press Start)
- In KT go to the preference dialog and press rescan a couple of times
- Stop the capture in ethereal and save the output
- Send this file to me
quaint
Registered Member
Posts
13
Karma
0

Sun Jan 22, 2006 10:48 pm
Sifting through thousands of packets isn't necessary - "rescan" resulted in no traffic at all onto the wires.

Watching the "live capture" display for a good half an hour or so has resulted in absolutely no traffic at all. As many rescans as I'd like and nothing. (Other than a few bits of NFS traffic and the occasional netbios flutter from other machines on the network, anyway)

I'd suggest that anything that's going wrong with UPnP is going wrong before it gets a chance to generate any traffic.

Before you ask, I've tried with pf enabled and disabled and still nothing. The message:
Trying to find UPnP devices on the local network
UPnPMCastSocket Error : an unknown/unexpected error has happened

appears each time I hit "rescan" but no corresponding flutter in the ethereal capture log.

I'm about to install ktorrent on my 5.4-RELEASE box to see if there's better luck there.
quaint
Registered Member
Posts
13
Karma
0

Mon Jan 23, 2006 1:39 am
Yep. same problem on the 5.4-RELEASE box with the 22 Jan build.
George
Moderator
Posts
5421
Karma
1

Mon Jan 23, 2006 5:23 pm
My routers sometimes does not respond for a while. But I don't think that is the case here.

Do not see any HTTP M-SEARCH packets sent to 239.255.255.200 ?
quaint
Registered Member
Posts
13
Karma
0

Mon Jan 23, 2006 8:10 pm
No packets of any description sent.

The Official BitTorrent client 4.3.5-BETA provides the following in the logfile:

[2006-01-23 16:03:07] -- BitTorrent started --
[2006-01-23 16:03:09] (global message) : Trying: ManualUPnP
[2006-01-23 16:03:10] (global message) : Using: ManualUPnP
[2006-01-23 16:03:10] (global message) : You asked for: BitTorrent TCP external:6681 :6681
[2006-01-23 16:03:11] (global message) : I'll give you: BitTorrent TCP external:6681 :6681

There were two HTTP M-SEARCH requests generated by the official client, still nothing from KTorrent I'm afraid.
George
Moderator
Posts
5421
Karma
1

Tue Jan 24, 2006 11:01 am
We need to figure out what is causing the "unknown/unexpected error", that is obviously keeping the packets from reaching the network.
quaint
Registered Member
Posts
13
Karma
0

Tue Jan 24, 2006 3:38 pm
If you can give me any hints how, I'll gladly help.

Could gdb help?

I'd ordinarily offer you an ssh login so you could test in situ, but obviously without port forwarding that's pretty tricky.
George
Moderator
Posts
5421
Karma
1

Tue Jan 24, 2006 5:27 pm
In the KT log file, do you see a line which looks like this :

Cannot bind to UDP port 1900
quaint
Registered Member
Posts
13
Karma
0

Tue Jan 24, 2006 6:38 pm
Nothing.

"ktorrent --debug > ktorrentlog.log", then quitting ktorrent a few minutes later results in the following:

Bound to port 6681
Loading plugin logviewerplugin
Loading plugin upnpplugin
Trying to find UPnP devices on the local network
UPnPMCastSocket Error : an unknown/unexpected error has happened
Loading plugin infowidgetplugin
Loading plugin searchplugin
USE THE FORCE KTORRENTVIEW !!!!
IP 0.0.0.0 banned.
George
Moderator
Posts
5421
Karma
1

Tue Jan 24, 2006 8:51 pm
I got an idea, can you try the latest from SVN ? (do not forget to make install)
quaint
Registered Member
Posts
13
Karma
0

Wed Jan 25, 2006 12:28 pm
if /usr/local/bin/bash ../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./. -I/usr/local/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_THREAD_SAFE -Wno-long-long -Wundef -Wall -W -Wpointer-arith -O2 -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -MT pluginmanagerprefpage.lo -MD -MP -MF ".deps/pluginmanagerprefpage.Tpo" -c -o pluginmanagerprefpage.lo pluginmanagerprefpage.cpp; then mv -f ".deps/pluginmanagerprefpage.Tpo" ".deps/pluginmanagerprefpage.Plo"; else rm -f ".deps/pluginmanagerprefpage.Tpo"; exit 1; fi
pluginmanagerprefpage.cpp:26:33: pluginmanagerwidget.h: No such file or directory
pluginmanagerprefpage.cpp: In member function `virtual void kt::PluginManagerPrefPage::createWidget(QWidget*)':
pluginmanagerprefpage.cpp:50: error: invalid use of undefined type `struct PluginManagerWidget'
pluginmanagerprefpage.h:26: error: forward declaration of `struct PluginManagerWidget'
pluginmanagerprefpage.cpp:51: error: invalid use of undefined type `struct PluginManagerWidget'
pluginmanagerprefpage.h:26: error: forward declaration of `struct PluginManagerWidget'
pluginmanagerprefpage.cpp:52: error: invalid use of undefined type `struct PluginManagerWidget'
pluginmanagerprefpage.h:26: error: forward declaration of `struct PluginManagerWidget'
pluginmanagerprefpage.cpp:53: error: invalid use of undefined type `struct PluginManagerWidget'
pluginmanagerprefpage.h:26: error: forward declaration of `struct PluginManagerWidget'
pluginmanagerprefpage.cpp:54: error: invalid use of undefined type `struct PluginManagerWidget'
pluginmanagerprefpage.h:26: error: forward declaration of `struct PluginManagerWidget'
pluginmanagerprefpage.cpp: In member function `virtual void kt::PluginManagerPrefPage::updateData()':
pluginmanagerprefpage.cpp:60: error: invalid use of undefined type `struct PluginManagerWidget'
pluginmanagerprefpage.h:26: error: forward declaration of `struct PluginManagerWidget'
pluginmanagerprefpage.cpp: In member function `virtual void kt::PluginManagerPrefPage::deleteWidget()':
pluginmanagerprefpage.cpp:82: warning: possible problem detected in invocation of delete operator:
pluginmanagerprefpage.cpp:82: warning: invalid use of undefined type `struct PluginManagerWidget'
pluginmanagerprefpage.h:26: warning: forward declaration of `struct PluginManagerWidget'
pluginmanagerprefpage.cpp:82: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
pluginmanagerprefpage.cpp: In member function `void kt::PluginManagerPrefPage::onLoad()':
pluginmanagerprefpage.cpp:88: error: invalid use of undefined type `struct PluginManagerWidget'
pluginmanagerprefpage.h:26: error: forward declaration of `struct PluginManagerWidget'
pluginmanagerprefpage.cpp: In member function `void kt::PluginManagerPrefPage::onUnload()':
pluginmanagerprefpage.cpp:99: error: invalid use of undefined type `struct PluginManagerWidget'
pluginmanagerprefpage.h:26: error: forward declaration of `struct PluginManagerWidget'
*** Error code 1

Stop in /usr/home/rjohnd/ktorrent/libktorrent.
*** Error code 1

Stop in /usr/home/rjohnd/ktorrent/libktorrent.
*** Error code 1

Stop in /usr/home/rjohnd/ktorrent.
*** Error code 1

Stop in /usr/home/rjohnd/ktorrent.
leela#
George
Moderator
Posts
5421
Karma
1

Wed Jan 25, 2006 5:10 pm
do a make -f Makefile.cvs first

It's automake screwing up.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]