Bug 77412 - KRFB no longer works
Summary: KRFB no longer works
Status: RESOLVED FIXED
Alias: None
Product: krfb
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: tim
URL:
Keywords:
: 78699 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-12 18:39 UTC by Dave M
Modified: 2004-04-03 19:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave M 2004-03-12 18:39:19 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    SuSE RPMs
OS:          Linux

After upgrading to KDE 3.2.1, krfb/remote desktop sharing/vnc no longer works.  Via the Control Center, I have krfb running on port 3389 allowing uninvited connections without confirmation, etc.  This worked fine up until 3.2.1.  After the upgrade, I can no longer make these connections.  I've tried changing and re-appying the config via Control Center.  "Something" appears to still be listening on 3389, but I get nothing when using a VNC client, and when telneting I get:

linux:~ # telnet 127.0.0.1 3389
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.  <--- Happen IMMMEDTIATLY

Normally I'd get something like:

linux:~ # telnet 127.0.0.1 3389
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
RFB 0.000     <--Not the real numbers, I don't remember them.

I also seem to remember that previous to 3.2.1, there would be an Xvnc process running, this is no longer present. 

I use krfb a lot, for a lot of things.  I would really appreciate some assistance here.

Thank you,

Dave M
Comment 1 tim 2004-03-12 19:03:20 UTC
Xvnc is a very different server and had nothing to do with krfb. 

You can find out which process is listening on that port using netstat. Enter
"netstat -pnl | grep 3389" as root. if krfb is running you should see "kdeinit: kded" or "kded". 

If kded is listening, the next step is to check whether krfb is actually enabled. Executed with your regular user account, "dcop kded kinetd isEnabled krfb" should return "true" and "dcop kded kinetd port krfb" should return your port, 3389.

Comment 2 Dave M 2004-03-12 22:41:08 UTC
Thanks Tim, here are the results:

netstat -pnl | grep 3389"

"tcp        0      0 :::3389                 :::*                    LISTEN      2661/kdeinit: kded"

dcop kded kinetd isEnabled krfb:

"ERROR: Couldn't attach to DCOP server!"

Thank you for your continued assistance.  It really is appreciated.

--Dave
Comment 3 tim 2004-03-12 22:52:50 UTC
Did you run the DCOP command with your regular user account? (if DCOP is really broken you would have a much larger problem, other apps wont work as well) If you run it as root without using a command like 'sux' it can't work.
Comment 4 Dave M 2004-03-12 23:03:59 UTC
I know that I will probably get a beating for this, but I always run as root, never as another user.  Also, excuse my apparent ignorance, but I am not familiar with the sux command or it's syntax and there is no man page for it.  I haven't noticed any other issues, but this all did work right up until I upgraded from 3.2.0 to 3.2.1.

Thank you,

Dave
Comment 5 Dave M 2004-03-12 23:31:40 UTC
Ok, I did this, hopefully this is accurate:

"linux:~ # dcop --user root kded kinetd isEnabled krfb
true"

"linux:~ # dcop --user root kded kinetd port krfb
3389"

Like I said, I know I will get slammed, but I only use root, for KDE, shell, everything.  So it looks like it is enabled and has the right port...  Any other ideas?

Thanks,

Dave

Comment 6 tim 2004-03-12 23:55:46 UTC
Oh, if you're coming from 3.2.0 this is really odd, because there hasnt been a single change since 3.2.0. The last one was between 3.2.0b1 and 3.2.0b2.

Can you run "krfb"? 
(When kinetd accepts a connection, it calls krfb, which handles the connection and also prints the "RFB 0.00..." string)

Comment 7 Dave M 2004-03-12 23:59:18 UTC
When I drop to shell and run krfb I get the graphical "Invitation/Welcome to..." menu.  Nothing in the shell.

--Dave
Comment 8 tim 2004-03-13 00:05:08 UTC
That's ok, just wanted to know whether the file is in the path. It also checks whether DCOP communication is working ok. 

Can you connect to the HTTP server at http://localhost:5800/ , or access it using telnet? Or does it also close the connection?
Comment 9 Dave M 2004-03-13 00:21:57 UTC
Nope.  In Konqueror I get the ol' "Connection to localhost is broken" message or it just times out.  Telnetting gets me this:

linux:~ # telnet localhost 5800
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host

--Dave
Comment 10 tim 2004-03-13 01:52:43 UTC
Ok, then it seems like kinet can't find the apps. This can be confirmed by starting the Control Center (kcontrol), Sound & Multimedia, System Notifications. 
Select event source "KInetD" and turn on the "Could not call process..." option (I wonder why it's not turned on by default, i should do this). The best notification is certainly the pop-up dialog, just click in the 'i' column or go to 'More options' to select its checkbox.

If kded can't find krfb: how do you start KDE? Do you have KDEDIR or KDEDIRS set, and is the PATH correct at the time kded is started?
Comment 11 Dave M 2004-03-15 08:52:55 UTC
Ok... Here's what I've got:

1.  I turned this on, and I haven't seen anything yet, even when trying to make the connection into my PC.

2.  KDE is started however SuSE normally sets it up, I guess.  I but the partition, KDM is started and I select KDE off the menu and enter un/pw.

3.  There is no KDEDIR or KDEDIRS set, but PATH seems correct.

--Dave
Comment 12 Dave M 2004-03-15 09:09:01 UTC
I don't know if this is helpful, but I just noticed it so I figured I'd mention it...  Normally, when KRFB was working, an icon was displayed in the tray when there was a connection.  Now, though, if I try telnetting to 3389, I see something flash onto and off of the tray really quickly.  Too quickly to make out what it is, but maybe it means something.  *shrugs*

Thanks again,

Dave
Comment 13 tim 2004-03-15 12:56:03 UTC
Oh, yes, the icon means something: that krfb is actually started. But it makes me wonder why not even the HTTP server works, which is as simple as a kinetd invoked service could be... i think i need to come up with a script that shows more error messages...
Comment 14 Dave M 2004-03-15 13:39:46 UTC
I would appreciate it greatly, as I do everything you've done to help thus far.  

Thanks,

Dave
Comment 15 Kyler Laird 2004-03-15 15:29:06 UTC
I did some research into this.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=237293

It's *not* that "kinet can't find the apps".  It's a problem of not giving the app a socket.

--kyler
Comment 16 tim 2004-03-15 15:41:24 UTC
Thanks, that's good to know. Well, actually not that good, because it means that something is closing the sockets when starting the new process. As krfb_http (a bash script) is also working, it must be done by KProcess. I'll try to check whether there were any changes in KProcess, and maybe I have to replace it with direct libc calls.
Comment 17 Dave M 2004-03-15 16:17:43 UTC
Kyler, thanks for the input, anything that helps resolve this issue is very much appreciated.  I too have become quite dependant on krfb and this issue isn't making things very much fun.

Tim, thanks.  (Once you've looked into a possible KProcess issue)  Were you able to find out anything helpful?  I'll be forever in your debt if we can get this issue canned soon.  :)

Thanks everyone,

Dave
Comment 18 Dave M 2004-03-15 19:38:59 UTC
Just for the sake of it being said...  This is definitly not a one or two person issue.  Searching google shows a lot of reports of the problem, sadly no solutions.  :(

--Dave
Comment 19 Dave M 2004-03-16 22:38:26 UTC
Hey Tim, any chance of getting a status update on this?  Were you able to figure anything out?  Not trying to be pushy or anything, just wondering where this is at, I miss my krfb-coolness, heh.

--Dave
Comment 20 tim 2004-03-16 23:27:45 UTC
No, couldnt find anything in KProcess, nor any kdelibs changes between 3.2.0 and 3.2.1 that may have caused it. 
Comment 21 Dave M 2004-03-16 23:31:58 UTC
Well, that's disappointing...  Any advice?  Should I wait or will I need to muck my way through a downgrade?  I use my PC via krfb almost as much as I do locally.  Clearly at this point this is an actual issue, not something specific to me.

Thanks,

Dave
Comment 22 tim 2004-03-16 23:44:56 UTC
i can't make any promises on this point, and even if I could, I don't know when the next set of suse rpms appears.
Comment 23 Dave M 2004-03-17 00:00:39 UTC
Well, I'm definitely not asking for promises.  I'm not going to hold anything you say against you, heh.  If you have anything that to add that isn't 100%, I'd still be interested.  In any case, lets take this approach...  Will the issue continue to be looked into, or is it going to get put on the back burner?

--Dave
Comment 24 tim 2004-03-17 00:11:22 UTC
It's currently my no1 bug, but it's hard to work on a bug that you can't reproduce. So right now I am trying to reproduce it by updating my local installation. I also try out ideas, e.g. i checked the KServerSocket class a few hours ago. 
Comment 25 Dave M 2004-03-17 00:26:59 UTC
Thanks Tim!  I don't doubt you have worked on it, just didn't know if it was a priority or not.  Glad to know it is!  :)

--Dave
Comment 26 Dave M 2004-03-19 20:17:05 UTC
Tim, just checking in to see if there have been any new developments...  Did updating your local installation help?  Thanks in advance.

--Dave
Comment 27 tim 2004-03-19 22:51:30 UTC
yes, i can reproduce it locally now (with kdecvs, after updating only kdelibs and kdebase). didnt have the time to work on it, but i hope to find it this weekend.
Comment 28 Dave M 2004-03-23 13:40:40 UTC
Hey Tim... Just checking in.  How has the investigation gone since the 19th?  Anything new to report?  Thanks again!

--Dave
Comment 29 Dave M 2004-03-26 20:30:43 UTC
Any pre-weekend updates?  Even if it's just status, I would love to be kept in the loop a little, even if it's a very outer loop, heh.  :)

--Dave
Comment 30 tim 2004-03-26 20:59:25 UTC
Not much to say, can't find the kdelibs change that caused this, i will now try to rewrite that part that starts krfb, deadline is april 3rd (because that's when 3.2.2 is tagged).
Comment 31 Niek van der Maas 2004-03-26 21:23:47 UTC
Just want to let you know I'm also experiencing this problem. I'll update my KDE installation to CVS HEAD as soon as this is solved :)
Comment 32 tim 2004-04-01 00:01:36 UTC
After begging for hints on kde-core-devel Waldo Bastian came up with the solution (http://lists.kde.org/?l=kde-core-devel&m=108076716300296&w=2).

Bug fixed in HEAD and the 3.2 branch. Thanks for all the reports and comments.

Comment 33 Dave M 2004-04-01 05:33:39 UTC
Tim... I would like to thank you for all your efforts.  I cannot wait until 3.2.2 comes so I can once again use the VNC client on my horrid Windows PC at work to get to my home computer.  Thanks, Dave.
Comment 34 Niek van der Maas 2004-04-01 07:43:26 UTC
Very nice :) Thanks Tim and Waldo. I'm doing a "cvs update -d" in my KDE tree at the moment.
Comment 35 tim 2004-04-03 19:42:26 UTC
*** Bug 78699 has been marked as a duplicate of this bug. ***