Nicola Ruggero | 14 Jul 2011 09:09

Re: Troubleshooting X11rdp connection issue

2011/7/14 Chris Ostler <Chris.Ostler+xrdp-devel <at> gmail.com>:
> I installed xrdp on a RHEL 5.4 box, using the RPM from EPEL.  I also got and
> compiled the latest version of X11rdp from the SVN server.  However, I
> cannot make a connection to an X11rdp session from a client, though an XVNC
> session works correctly.
> When attempting to connect, the user authenticates correctly, but the
> session closes.  Though logging is set to DEBUG, I don't get much
> information in xrdp-sesman.log:
> [20110713-08:24:26] [INFO ] ++ created session (access granted): username X,
> ip X.X.X.X:50610 - socket: 7
> [20110713-08:24:26] [INFO ] starting X11rdp session...
> [20110713-08:24:36] [ERROR] X server for display 10 startup timeout
> [20110713-08:24:36] [INFO ] starting xrdp-sessvc - xpid=21220 - wmpid=21219
> [20110713-08:24:36] [ERROR] X server for display 10 startup timeout
> [20110713-08:24:36] [ERROR] another Xserver is already active on display 10
> [20110713-08:24:36] [DEBUG] aborting connection...
> [20110713-08:24:36] [INFO ] ++ terminated session:  username X, display
> :10.0, session_pid 21216, ip X.X.X.X:50610 - socket: 7
> While trying to troubleshoot the issue, I noticed that the -localhost
> parameter specified in the sesman.ini was causing problems.  Removing the
> parameter still doesn't allow me to connect.  The relevant portions of my
> sesman.ini configuration now look like:
> [Logging]
> LogFile=/var/log/xrdp-sesman.log
> LogLevel=DEBUG
> EnableSyslog=0
> SyslogLevel=DEBUG
> [X11rdp]
> param1=-bs
> param2=-ac
(Continue reading)

Chris Ostler | 15 Jul 2011 02:50
Picon

Re: Troubleshooting X11rdp connection issue

Nicola Ruggero <nicola-m1wNqFu12JQ@public.gmane.org> wrote:
uhm, it seems that X11rdp is not in the expected path... let me check
the source code (something I remember is harcoded...).

I've put a link to X11rdp in /usr/bin.  I tried running with the latest GIT version of xrdp, and still could not connect.  Grepping the source didn't turn up any obvious hardcoded paths.

I also tried running xrdp and xrdp-sesman from the console.  This turned up the fact that there seemed to be something wrong with the parameters passed when starting the X server.  The console output showed:

[20110714-16:55:28] [INFO ] scp thread on sck 7 started successfully
[20110714-16:55:31] [INFO ] ++ created session (access granted): username X, ip X.X.X.X:51076 - socket: 7
[20110714-16:55:31] [INFO ] starting X11rdp session...
use: X [:<display>] [option]
-a #                   mouse acceleration (pixels)
-ac                    disable access control restrictions
-audit int             set audit trail level
-auth file             select authorization file
bc                     enable bug compatibility
[clipped]

I wasn't able to figure out what exactly was dumping this output (I assume X11rdp), nor what actual parameters were passed in (and causing the problem).

How can I get those parameters to see what the problem is?

Chris
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
xrdp-devel mailing list
xrdp-devel@...
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Nicola Ruggero | 15 Jul 2011 08:57

Re: Troubleshooting X11rdp connection issue

2011/7/15 Chris Ostler <Chris.Ostler+xrdp-devel <at> gmail.com>:
> I've put a link to X11rdp in /usr/bin.  I tried running with the latest GIT
> version of xrdp, and still could not connect.  Grepping the source didn't
> turn up any obvious hardcoded paths.
> I also tried running xrdp and xrdp-sesman from the console.  This turned up
> the fact that there seemed to be something wrong with the parameters passed
> when starting the X server.  The console output showed:
> [20110714-16:55:28] [INFO ] scp thread on sck 7 started successfully
> [20110714-16:55:31] [INFO ] ++ created session (access granted): username X,
> ip X.X.X.X:51076 - socket: 7
> [20110714-16:55:31] [INFO ] starting X11rdp session...
> use: X [:<display>] [option]
> -a #                   mouse acceleration (pixels)
> -ac                    disable access control restrictions
> -audit int             set audit trail level
> -auth file             select authorization file
> bc                     enable bug compatibility
> [clipped]
> I wasn't able to figure out what exactly was dumping this output (I assume
> X11rdp), nor what actual parameters were passed in (and causing the
> problem).
> How can I get those parameters to see what the problem is?

Try to have a look on env_set_user() in env.c
and look at session_start_fork() in session.c
particularly look at these lines:
 xserver_params = list_create();
          xserver_params->auto_free = 1;
          /* these are the must have parameters */
          list_add_item(xserver_params, (long)g_strdup("X11rdp"));
          list_add_item(xserver_params, (long)g_strdup(screen));
          list_add_item(xserver_params, (long)g_strdup("-geometry"));
          list_add_item(xserver_params, (long)g_strdup(geometry));
          list_add_item(xserver_params, (long)g_strdup("-depth"));
          list_add_item(xserver_params, (long)g_strdup(depth));

          /* additional parameters from sesman.ini file */
          //config_read_xserver_params(SESMAN_SESSION_TYPE_XRDP,
          //                           xserver_params);
          list_append_list_strdup(g_cfg->rdp_params, xserver_params, 0);

          /* make sure it ends with a zero */
          list_add_item(xserver_params, 0);
          pp1 = (char**)xserver_params->items;
          g_execvp("X11rdp", pp1)

regards,
Nicola

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
xrdp-devel mailing list
xrdp-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Chris Ostler | 18 Jul 2011 21:56
Picon

Re: Troubleshooting X11rdp connection issue

On Thu, Jul 14, 2011 at 11:57 PM, Nicola Ruggero <nicola@...> wrote:
> Try to have a look on env_set_user() in env.c
> and look at session_start_fork() in session.c

That's what I needed.  Turns out that the culprit was the color depth
- it wouldn't accept 24 or 32 bit depths.  For now, I'm up and running
at 16 bit depth.  Though I'd like to get 24 bit color running, this
will do for now.

Chris

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/

Gmane