![]() Registered Member ![]()
|
Hi all,
I downloaded and compiled v2.1 beta tonight as I am particularly interested in the web interface plugin. Alas, ktorrent dies when I try to log in; my password is accepted but then I never get further than redirect.html I tried getting a gdb backtrace but I am not sure whether I have anything useful. Stops refreshing its window when it dies, but there is no gdb output. If I press ctrl-C, then I see this:
I am running FC6 $ rpm -q kdebase kdebase-3.5.5-1.1.fc6.kde If you need additional information, please let me know. I really look forward to using the web interface. |
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
please try
if work. Output should be
<html>test </html> master ~ $ |
![]() Registered Member ![]()
|
[quote=rapsys]I have notice a bug in the current ktorrent web interface :'(
I try connect to localhost:8080 (in fact my domain name with redir on 127.0.0.1 in /etc/hosts) The problem is that when I try loggin, ktorrent freeze :'( I looked for ps aux, and I have a /usr/bin/php process running. I can't make ktorrent usable again until I kill the php process and wait him to shutdown. (notice that the webinterface loop forever anyway not getting logged in)[/quote] The problem seems to ben that ktorrent don't run the php binary in a separate thread nor after a real fork. So the ktorrent process wait answer of php script that never comes or something in this style. I run revision r615161 (after 2.1beta1) What I found : [root@rapsys ~]# strace -p 6967
[root@rapsys #]# gdb -p 6967
[root@rapsys ~]# gdb -p 6072
|
![]() Registered Member ![]()
|
Works fine here. |
![]() Registered Member ![]()
|
Thanks for pointing this out. This would explain why I didn't get any gdb output; ktorrent hadn't actually crashed. |
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
yes, definitely:
|
![]() Registered Member ![]()
|
can you try to apply this patch against latest svn?
Thanks |
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
copy this patch in a file cd ktorrent-2.1beta1 patch -p1 < /path/to/patch ./configure make make install |
![]() Registered Member ![]()
|
No go:
![]() |
![]() Registered Member ![]()
|
Here is plugins/webinterface/php_handler.cpp.rej
|
![]() Registered Member ![]()
|
OK, I applied the patch successfully. ktorrent no longer goes into that endless loop after accepting my name and password, but for some reason it keeps dumping me back on the interface.php page. There is no indication of any problem, ie, that my username is unknown or that the password is incorrect. I unloaded and reloaded the plugin to no avail
Let me know if there is anything else you want me to try. I would be very happy to help get this plugin working. As an aside, it would be great if there was a checkbox in the settings to disable password protection. I realize that security is important and that by default it should be on, but I am using it in a safe context, ie a secure LAN where I am the only user. Obviously, if I was traveling, and I opened port 8080 on my router to incoming connections, I would definitely want a password, but that not being the case, it is just a nuisance. Thanks. |
Registered users: Bing [Bot], Evergrowing, Google [Bot]