Bug 904248 - Cannot login via RDP to F18 (from Win8) using xrdp.x86_64-0.6.0-0.6.fc18
Summary: Cannot login via RDP to F18 (from Win8) using xrdp.x86_64-0.6.0-0.6.fc18
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xrdp
Version: 21
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Itamar Reis Peixoto
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-25 20:49 UTC by Charles Butterfield
Modified: 2015-08-28 17:23 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-07-15 15:04:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Charles Butterfield 2013-01-25 20:49:17 UTC
Description of problem:  After installing F18 (clean install) I can no longer login via RDP (from a Win8 box) using xrdp.x86_64-0.6.0-0.6.fc18


Version-Release number of selected component (if applicable):
kernel = 3.7.2-204.fc18.x86_64
xrdp.x86_64 = 0.6.0-0.6.fc18

How reproducible: Totally


Steps to Reproduce:
1. Attempt login from Win18 RDP client (NOT in "metro" mode)
2. fail
  
Actual results:
Sucessful login


Expected results:
Failed login, xrdp client shows "tcp connected", then "error - problem connecting".


Additional info:
It seems like the session starts, then immediately dies.  I've tried this using the root account, a local account and an AD account.  Same result.  Tried with both 24-bit and 32-bit color.

Desktop = MATE

/var/log/xrdp-sesman.log
[20130125-15:38:29] [INFO ] scp thread on sck 8 started successfully
[20130125-15:38:29] [INFO ] ++ created session (access granted): username dummy, ip 10.10.30.50:6849 - socket: 7
[20130125-15:38:29] [INFO ] starting Xvnc session...
[20130125-15:38:29] [INFO ] starting xrdp-sessvc - xpid=5518 - wmpid=5517
[20130125-15:38:30] [INFO ] ++ terminated session:  username dummy, display :12.0, session_pid 5516, ip 10.10.30.50:6849 - socket: 7

/var/log/messages
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Xvnc TigerVNC 1.2.80 - built Dec  4 2012 12:55:37
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: See http://www.tigervnc.org for information on TigerVNC.
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Underlying X server release 11300000, The X.Org Foundation
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension Generic Event Extension
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension SHAPE
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension MIT-SHM
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension XInputExtension
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension XTEST
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension BIG-REQUESTS
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension SYNC
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension XKEYBOARD
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension XC-MISC
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension XFIXES
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension RENDER
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension RANDR
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension COMPOSITE
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension DAMAGE
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension MIT-SCREEN-SAVER
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension DOUBLE-BUFFER
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension RECORD
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension DPMS
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension X-Resource
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension XVideo
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension XVideo-MotionCompensation
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension VNC-EXTENSION
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Initializing built-in extension GLX
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Fri Jan 25 15:38:29 2013
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: vncext:      VNC extension running!
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: vncext:      Listening for VNC connections on all interface(s), port 5912
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: vncext:      created VNC server for screen 0
Jan 25 15:38:29 pc-110-cb systemd-logind[710]: New session c12 of user dummy.
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: Connections: accepted: 127.0.0.1::55050
Jan 25 15:38:29 pc-110-cb xrdp-sesman[3085]: SConnection: Client needs protocol version 3.3
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-chansrv [1936644257]: main: app started pid 5535(0x0000159f)
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-chansrv [1936644257]: main: DISPLAY env var set to :12.0
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-chansrv [1936644257]: main: using DISPLAY 12
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-chansrv [1936644257]: channel_thread_loop: thread start
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-chansrv [1936644463]: term_signal_handler: got signal 15
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-chansrv [1936644463]: channel_thread_loop: g_term_event set
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-chansrv [1936644463]: channel_thread_loop: thread stop
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-chansrv [1936644463]: main: app exiting pid 5535(0x0000159f)
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-sessvc: waiting for X (pid 5518) and WM (pid 5517)
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-sessvc: WM is dead (waitpid said 5517, errno is 0) exiting...
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-sessvc: stopping channel server
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-sessvc: stopping X server
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: xrdp-sessvc: clean exit
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: XIO:  fatal IO error 2 (No such file or directory) on X server ":12.0"
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: after 11 requests (11 known processed) with 0 events remaining.
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":12.0"
Jan 25 15:38:30 pc-110-cb xrdp-sesman[3085]: after 9 requests (9 known processed) with 0 events remaining.
Jan 25 15:38:40 pc-110-cb systemd-logind[710]: Removed session c12.

Comment 1 Charles Butterfield 2013-01-26 00:43:06 UTC
Okay, I think I have figured this out.  I'm using the MATE desktop with no GNOME desktop installed on the system.  That invalidates a lot of fallback assumption that either GNOME or KDE is installed.  Further there is no /etc/sysconfig/desktop file to specify the preferred desktop.

The attempt to setup the session manager is as follows (on MY system):

1) xrdp-sesman invokes /etc/xrdp/startwm.sh
2) /etc/xrdp/startwm.sh: invokes /etc/X11/xinit/xinitrc because
   it exists, and ignores all of its other builtin session logic
3) /etc/X11/xinit/xinitrc: invokes /etc/X11/xinit/Xclients
4) /etc/X11/xinit/Xclients: can't find /etc/sysconfig/desktop, nor GNOME or
   KDE, nor /etc/X11/xinit/Xclients.d, nor twm, and so simply exits.

I chose to add /etc/sysconfig/desktop as the simplest solution regardless of
the user being logged in (vs user specific customization files - yikes!) and
added the following line:
   PREFERRED=mate-session

This startup logic is a big historical mess.  I got quite a chuckle out of
seeing twm listed.  I remember it was the hot new window manager 20+ years ago.

It's not clear who/how the default session should be selected, but the current
approach is obviously broken.  Some random notes:

1) xrdp/startwm.sh: on Fedora, this immediately delegates all work to xinitrc
2) xinitrc: grinds through all of the /etc/X11/xinit/xinitrc.d/* scripts,
   then on Fedora, assuming no $HOME/.Xclients, immediately delegates to
   Xclients.  I wonder why it is invoked a second time if the first one fails?
3) 

Issues
1) What is the best env symbol for a session manager?  DESKTOP, PREFERRED,
   DESKTOP-SESSION?  I see all three in different places. UGH.
2) These scripts are lousy with attempts to guess from hardcoded lists of
   known desktops, which seems like a really bad idea.  Reading a desktop
   neutral file (/etc/sysconfig/desktop) or scanning a desktop neutral list
   (e.g. /usr/share/xsessions) seems a much better idea.

Anyway, my immediate problem is solved.

Comment 2 Charles Butterfield 2013-09-01 00:08:57 UTC
Still a problem with Fedora-19.

# uname -a
Linux hpc16 3.10.9-200.fc19.x86_64 #1 SMP Wed Aug 21 19:27:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

# yum list xrdp
xrdp.x86_64    0.6.0-0.7.fc19

Comment 3 Fedora End Of Life 2013-12-21 10:49:56 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2014-02-05 18:30:04 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Charles Butterfield 2014-02-18 06:09:12 UTC
I am having the same problem with Fedora-20.  Specifically with xrdp-0.6.0-0.8.fc20.x86_64

Comment 6 Pavel Alexeev 2014-11-12 09:49:47 UTC
I also heve it on newle installe Fedora 20 mate spin.

Adding PREFERRED=mate-session into /etc/sysconfig/desktop as suggested in comment 1 solve problem.
So fix it should be not so hard.

Comment 7 Fedora End Of Life 2015-05-29 08:52:18 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2015-06-30 00:37:11 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 9 Charles Butterfield 2015-06-30 02:36:42 UTC
I am having the same problem with Fedora-21.  Specifically with  xrdp-0.6.1-10.fc21.x86_64

Comment 10 Charles Butterfield 2015-06-30 02:38:18 UTC
Reopening (after being closed due to F20 EOL), problem manifests in F21 as well.

Comment 11 Itamar Reis Peixoto 2015-07-15 04:53:33 UTC
hello, this bug will be fixed in newer version that will land fedora soon.

Comment 12 Charles Butterfield 2015-08-28 17:23:54 UTC
Two questions:
1) When will I be able to see the fix in a regular F22 yum update?
2) Can you point me at either the patchfile for the fix, or a high-level summary of what the corrective action was (so I can keep my older pre-F22 machines in line with the upcoming F22 fix)

Thanks
-- Charlie


Note You need to log in before you can comment on or make changes to this bug.