[Xrdp-devel] OpenSuse 11.1 - RDP Message : login failed.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Xrdp-devel] OpenSuse 11.1 - RDP Message : login failed.

Hans-Joachim Ehlers
Problem:

After a few hours , days nobody can login via RDP to a XRDP server :

Message: Failed login


Given:
OS: OpenSuse 11.1
XRDP: xrdp-0.4.1-39.1
XORG: xorg-x11-server-rdp-7.3.99-7.1
        xorg-x11-server-dmx-7.3.99-24.1

all from http://download.opensuse.org/repositories/home:/dreveman:/nomad/openSUSE_11.1 nomad


Analyse:
Its locks like that XRDP,SESMAN tries to use a already in use X11 session.
In the following example this is the session "Xdmx :11"


Example:
# ps -ef | grep dmx
user1   16827 16825  0 May31 ?        00:11:42 Xdmx :11 -auth /tmp/.xrdp-auth-GswMos -br -noreset -nolisten tcp --

/var/log # cat Xdmx.11.log

Fatal server error:
Server is already active for display 11
        If this server is no longer running, remove /tmp/.X11-lock
        and start again.

# ls -l /tmp | grep X1
-r--r--r-- 1 user1    met    11 May 31 12:09 .X11-lock
drwxrwxrwt 2 root     root 4096 Jun  1 07:27 .X11-unix

# cat /tmp/.X11-lock
     16827
tclogin2:/tmp # ps -ef | grep 16827
user1   16825  3604  0 May31 ?        00:00:00 /usr/sbin/xrdp-sessvc 16827 16832 11
user1   16827 16825  0 May31 ?        00:11:42 Xdmx :11 -auth /tmp/.xrdp-auth-GswMos -br -noreset -nolisten tcp -- /usr/bin/Xfake
user1   16828 16827  0 May31 ?        00:11:48 /usr/bin/Xfake -auth /tmp/.Xdmx-auth-yIyeYA :267
root    30846 29342  0 08:16 pts/0    00:00:00 grep 16827



# strace
root      3604     1  0 May31 ?        00:00:04 /usr/sbin/xrdp-sesman

...
[pid 30212] poll([{fd=7, events=POLLIN}], 1, 100) = 1 ([{fd=7, revents=POLLIN}])
[pid 30212] recvfrom(7, "$\0\0\0\2\0\0\0009\0\0\0\24\16\0\0\0\0\0\0|\0\0\0M\4\5\0009\0\0\0"..., 8988, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000000}, [12]) = 36
[pid 30212] recvfrom(7, "$\0\0\0\2\0\0\0009\0\0\0\24\16\0\0\0\0\0\0|\0\0\0M\4\5\0009\0\0\0"..., 8988, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000000}, [12]) = 36
[pid 30212] close(7)                    = 0
[pid 30212] time(NULL)                  = 1275379248
[pid 30212] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
[pid 30212] write(3, "[20100601-08:00:48] [INFO ] gran"..., 61) = 61
[pid 30212] time(NULL)                  = 1275379248
[pid 30212] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
[pid 30212] write(3, "[20100601-08:00:48] [INFO ] star"..., 53) = 53
[pid 30212] pipe([7, 8])                = 0
[pid 30212] writev(6, [{"l\1\0\1\214\0\0\0#\0\0\0\273\0\0\0\1\1o\0#\0\0\0/org/fre"..., 208}, {"\204\0\0\0\0\0\0\0\t\0\0\0unix-user\0\1i\0\0\0\0\247\4\1\0"..., 140}], 2) = 348
[pid 30212] gettimeofday({1275379248, 466528}, NULL) = 0
[pid 30212] poll([{fd=6, events=POLLIN}], 1, 25000) = 1 ([{fd=6, revents=POLLIN}])
[pid 30212] read(6, "l\2\1\1A\0\0\0r\2\0\0-\0\0\0\6\1s\0\4\0\0\0:1.8\0\0\0\0"..., 2048) = 129
[pid 30212] read(6, 0x805e1a8, 2048)    = -1 EAGAIN (Resource temporarily unavailable)
[pid 30212] clone(Process 30215 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb6b20bd8) = 30215
[pid 30212] close(8)                    = 0
[pid 30215] close(7 <unfinished ...>
[pid 30212] read(7,  <unfinished ...>
[pid 30215] <... close resumed> )       = 0
[pid 30215] umask(0)                    = 022
[pid 30215] mkdir("/var/log/xrdp", 0755) = -1 EEXIST (File exists)
[pid 30215] rename("/var/log/Xdmx.11.log", "/var/log/Xdmx.11.log.old") = 0
[pid 30215] open("/var/log/Xdmx.11.log", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 7
[pid 30215] rename("/var/log/xrdp/:11.log", "/var/log/xrdp/:11.log.old") = 0
[pid 30215] open("/var/log/xrdp/:11.log", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 9
...



Any tips ?

Tia
Hajo



------------------------------------------------------------------------------

_______________________________________________
xrdp-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Loading...