Fedora Linux Support Community & Resources Center
  #1  
Old 15th June 2017, 11:55 AM
Huwmungous Offline
Registered User
 
Join Date: Feb 2011
Posts: 4
windows_7chrome
Angry xrdp " Listening socket is in wrong state, terminating listener"

At some point my working xrdp stopped working. I have been Googling the issue but have no up to date information to work on.

The symptoms are: when the user logs in (from a Windows host)
  1. first attempt the client reports "some error"
  2. Second attempt shows a black screen for a second or two which then closes

xrdp log shows the following

Code:
[20170615-11:14:27] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170615-11:14:28] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170615-11:14:28] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170615-11:14:28] [DEBUG] return value from xrdp_mm_connect 0
[20170615-11:14:29] [INFO ] xrdp_wm_log_msg: login successful for display 19
[20170615-11:14:29] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20170615-11:14:29] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5919
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC tcp connected
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC security level is 2 (1 = none, 2 = standard)
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC password ok
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC sending share flag
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC receiving server init
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC receiving pixel format
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC receiving name length
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC receiving name
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC sending pixel format
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC sending encodings
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC sending framebuffer update request
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC sending cursor
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: VNC connection complete, connected ok
[20170615-11:14:31] [INFO ] The following channel is allowed: rdpdr (0)
[20170615-11:14:31] [INFO ] The following channel is allowed: rdpsnd (1)
[20170615-11:14:31] [INFO ] The following channel is allowed: cliprdr (2)
[20170615-11:14:31] [INFO ] The following channel is allowed: drdynvc (3)
[20170615-11:14:31] [DEBUG] The allow channel list now initialized for this session
[20170615-11:14:31] [DEBUG] xrdp_wm_log_msg: connected ok
[20170615-11:14:31] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20170615-11:14:32] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:38414)
[20170615-11:14:32] [DEBUG] VNC got clip data
[20170615-11:14:32] [DEBUG] Closed socket 12 (AF_INET 10.9.8.10:3389)
[20170615-11:14:32] [DEBUG] xrdp_mm_module_cleanup
[20170615-11:14:32] [DEBUG] VNC mod_exit
[20170615-11:14:32] [DEBUG] Closed socket 19 (AF_INET 127.0.0.1:40824)
[20170615-11:14:32] [DEBUG] Closed socket 20 (AF_UNIX)
[20170615-11:14:32] [ERROR] Listening socket is in wrong state, terminating listener
[20170615-11:14:32] [CORE ] shutting down log subsystem...
This behaviour is reported as a bug, now fixed, on Ubuntu in various places and there are suggestions it relates to ssh certs, but nothing I have tried so far seems to make a difference.

My requirement is that users should be able to login to the Fedora box via RDP (don't care which desktop), but also to be able to run a Gnome session from the console itself.

What is my next step?
Reply With Quote
  #2  
Old 15th June 2017, 04:40 PM
tryfedoraa Offline
Registered User
 
Join Date: May 2017
Location: www
Posts: 48
windows_98_nt_2000chrome
Re: xrdp " Listening socket is in wrong state, terminating listener"

Quote:
Second attempt shows a black screen for a second or two which then closes
have you tried adding:

Code:
delay_ms=2000
Reply With Quote
  #3  
Old 15th June 2017, 04:41 PM
Huwmungous Offline
Registered User
 
Join Date: Feb 2011
Posts: 4
windows_7chrome
Re: xrdp " Listening socket is in wrong state, terminating listener"

to xrdp.ini?

I tried that - but to no effect

Last edited by Huwmungous; 15th June 2017 at 05:09 PM.
Reply With Quote
  #4  
Old 16th June 2017, 10:14 AM
tryfedoraa Offline
Registered User
 
Join Date: May 2017
Location: www
Posts: 48
windows_98_nt_2000chrome
Re: xrdp " Listening socket is in wrong state, terminating listener"

Check the files in /etc/xrdp and create them if they don't exist or are empty:
  • cert.pem
  • key.pem


Code:
openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 365
  • rsakeys.ini

Code:
sudo xrdp-keygen xrdp auto 2048

Restart the xrdp service

Code:
service xrdp restart
Reply With Quote
  #5  
Old 19th June 2017, 10:41 AM
Huwmungous Offline
Registered User
 
Join Date: Feb 2011
Posts: 4
windows_7chrome
Smile Re: xrdp " Listening socket is in wrong state, terminating listener"

Fab - sorted.

I had guessed that my certs had expired but was missing the second of the 2 commands you suggested.

All up and running.
Reply With Quote
Reply

Tags
fedora 25, gnome, vnc, xrdp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Milter-Greylist failing to create socket / "unsafe" PolywogSys Guides & Solutions (Not For Questions) 0 22nd February 2012 01:43 AM
differences between "struct sock" and "struct socket" ahm_irf Programming & Packaging 0 30th March 2009 05:24 AM
System Hangs Gives "kernel: Bad page state in process 'pdflush'" - Any thoughts? Jay Rhine Using Fedora 0 26th September 2007 05:51 PM
are new solid state drives equivalent to "swapon /dev/sdc1" icthy Using Fedora 8 4th January 2007 03:49 PM
Error:visibility arg must be one of "default", "hidden", "protected" or "internal" wangfeng Using Fedora 0 23rd May 2005 04:59 AM


Current GMT-time: 08:37 (Saturday, 24-06-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat