Bug#880720: updated xrdp: Failed at step RUNTIME_DIRECTORY spawning /bin/sh: File exists

Gilles MOREL contact at gilles-morel.fr
Sat Nov 4 13:23:45 UTC 2017


Package: xrdp
Version: 0.9.1-9~bpo8+1

I updated xrdp from version 0.9.1-4~bpo8+1 to 0.9.1-9~bpo8+1.

During the updated, I got an error:
Job for xrdp.service failed. See 'systemctl status xrdp.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript xrdp, action "restart" failed.
dpkg: erreur de traitement du paquet xrdp (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Traitement des actions différées (« triggers ») pour libc-bin (2.19-18+deb8u10) ...
Des erreurs ont été rencontrées pendant l'exécution :
 xrdp
E: Sub-process /usr/bin/dpkg returned an error code (1)

Retrying the configuration produces the same error.

When I try to start the xrdp service manually, I got this error:
Job for xrdp.service failed. See 'systemctl status xrdp.service' and 'journalctl -xn' for details.

The status (systemctl status xrdp.service) gives me:
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled)
   Active: failed (Result: exit-code) since sam. 2017-11-04 14:12:43 CET; 16s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
  Process: 18625 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=233/RUNTIME_DIRECTORY)

nov. 04 14:12:43 SRV033 systemd[1]: xrdp.service: control process exited, code=exited status=233
nov. 04 14:12:43 SRV033 systemd[1]: Failed to start xrdp daemon.
nov. 04 14:12:43 SRV033 systemd[1]: Unit xrdp.service entered failed state.

The journal (journalctl -xn) give me:
nov. 04 14:15:17 SRV033 systemd[1]: Starting xrdp session manager...
-- Subject: L'unité (unit) xrdp-sesman.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) xrdp-sesman.service a commencé à démarrer.
nov. 04 14:15:17 SRV033 xrdp-sesman[20573]: (20573)(140385333458688)[DEBUG] libscp initialized
nov. 04 14:15:17 SRV033 xrdp-sesman[20574]: (20574)(140385333458688)[INFO ] starting xrdp-sesman with pid 20574
nov. 04 14:15:17 SRV033 systemd[1]: Started xrdp session manager.
-- Subject: L'unité (unit) xrdp-sesman.service a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) xrdp-sesman.service a terminé son démarrage, avec le résultat done.
nov. 04 14:15:17 SRV033 systemd[1]: Starting xrdp daemon...
-- Subject: L'unité (unit) xrdp.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) xrdp.service a commencé à démarrer.
nov. 04 14:15:17 SRV033 xrdp-sesman[20574]: (20574)(140385333458688)[INFO ] listening to port 3350 on 127.0.0.1
nov. 04 14:15:17 SRV033 systemd[20575]: Failed at step RUNTIME_DIRECTORY spawning /bin/sh: File exists
-- Subject: Le processus /bin/sh n'a pas pu être exécuté
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Le processus /bin/sh n'a pas pu être exécuté, et a donc echoué.
-- 
-- Le code d'erreur renvoyé est 17.
nov. 04 14:15:17 SRV033 systemd[1]: xrdp.service: control process exited, code=exited status=233
nov. 04 14:15:17 SRV033 systemd[1]: Failed to start xrdp daemon.
-- Subject: L'unité (unit) xrdp.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) xrdp.service a échoué, avec le résultat failed.
nov. 04 14:15:17 SRV033 systemd[1]: Unit xrdp.service entered failed state.
nov. 04 14:15:17 SRV033 sudo[20570]: pam_unix(sudo:session): session closed for user root
nov. 04 14:15:17 SRV033 systemd[1]: Stopping xrdp session manager...
-- Subject: L'unité (unit) xrdp-sesman.service a commencé à s'arrêter
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) xrdp-sesman.service a commencé à s'arrêter.
nov. 04 14:15:17 SRV033 systemd[1]: xrdp-sesman.service: control process exited, code=exited status=1
nov. 04 14:15:17 SRV033 xrdp-sesman[20574]: (20574)(140385333458688)[INFO ] shutting down sesman 1
nov. 04 14:15:17 SRV033 xrdp-sesman[20574]: (20574)(140385333458688)[DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
nov. 04 14:15:17 SRV033 systemd[1]: Stopped xrdp session manager.
-- Subject: L'unité (unit) xrdp-sesman.service a terminé son arrêt
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) xrdp-sesman.service a terminé son arrêt

As workabout, I reinstalled the 0.9.1-4~bpo8+1 version and held it to this version.

I attached the configuration, with # instead of / in files' names.
--
Gilles Émilien MOREL <contact at gilles-morel.fr>
« Pavé César, ceux qui n'ont pas lu te saluent ! » -- Farod
-------------- next part --------------
[globals]
ini_version=1

bitmap_cache=yes
bitmap_compression=yes
port=3389
allow_channels=true
max_bpp=32
fork=yes
crypt_level=high
security_layer=rdp
certificate=
key_file=

tcp_nodelay=yes
tcp_keepalive=yes
blue=0000af
grey=dedede

autorun=xrdp1
bulk_compression=yes
new_cursors=yes
allow_multimon=true
use_fastpath=both

ls_title=Bureau ATI sur SRV034
ls_top_window_bg_color=666666
ls_width=350
ls_height=350
ls_bg_color=dedede
ls_logo_filename=
ls_logo_x_pos=55
ls_logo_y_pos=50
ls_label_x_pos=30
ls_label_width=60
ls_input_x_pos=110
ls_input_width=210
ls_input_y_pos=220
ls_btn_ok_x_pos=5
ls_btn_ok_y_pos=300
ls_btn_ok_width=165
ls_btn_ok_height=45
ls_btn_cancel_x_pos=180
ls_btn_cancel_y_pos=300
ls_btn_cancel_width=165
ls_btn_cancel_height=45

[Logging]
LogFile=xrdp.log
LogLevel=DEBUG
EnableSyslog=1
SyslogLevel=DEBUG

[channels]
rdpdr=true
rdpsnd=false
drdynvc=true
cliprdr=false
rail=true
xrdpvr=true
tcutils=true

[xrdp1]
name=ATI33
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
xserverbpp=24
code=20
delay_ms=2000
-------------- next part --------------
[Globals]
ListenAddress=127.0.0.1
ListenPort=3350
EnableUserWindowManager=true
UserWindowManager=startwm.sh
DefaultWindowManager=startwm.sh

[Security]
AllowRootLogin=true
MaxLoginRetry=4
TerminalServerUsers=tsusers
TerminalServerAdmins=tsadmins
; When AlwaysGroupCheck=false access will be permitted
; if the group TerminalServerUsers is not defined.
AlwaysGroupCheck=false

[Sessions]
;; X11DisplayOffset - x11 display number offset
; Type: integer
; Default: 10
X11DisplayOffset=10

;; MaxSessions - maximum number of connections to an xrdp server
; Type: integer
; Default: 0
MaxSessions=50

;; KillDisconnected - kill disconnected sessions
; Type: boolean
; Default: false
; if 1, true, or yes, kill session after 60 seconds
KillDisconnected=false

;; IdleTimeLimit - when to disconnect idle sessions
; Type: integer
; Default: 0
; if not zero, the seconds without mouse or keyboard input before disconnect
; not complete yet
IdleTimeLimit=0

;; DisconnectedTimeLimit - when to kill idle sessions
; Type: integer
; Default: 0
; if not zero, the seconds before a disconnected session is killed
; min 60 seconds
DisconnectedTimeLimit=0

;; Policy - session allocation policy
; Type: enum [ "Default" | "UBD" | "UBI" | "UBC" | "UBDI" | "UBDC" ]
; Default: Xrdp:<User,BitPerPixel> and Xvnc:<User,BitPerPixel,DisplaySize>
; "UBD" session per <User,BitPerPixel,DisplaySize>
; "UBI" session per <User,BitPerPixel,IPAddr>
; "UBC" session per <User,BitPerPixel,Connection>
; "UBDI" session per <User,BitPerPixel,DisplaySize,IPAddr>
; "UBDC" session per <User,BitPerPixel,DisplaySize,Connection>
Policy=Default

[Logging]
LogFile=xrdp-sesman.log
LogLevel=DEBUG
EnableSyslog=1
SyslogLevel=DEBUG

[Xorg]
param=Xorg
param=-config
param=xrdp/xorg.conf
param=-noreset
param=-nolisten
param=tcp

[Xvnc]
param=Xvnc
param=-bs
param=-nolisten
param=tcp
param=-localhost
param=-dpi
param=96

[Chansrv]
; drive redirection, defaults to xrdp_client if not set
FuseMountName=thinclient_drives

[SessionVariables]
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-remote-team/attachments/20171104/88e724fc/attachment.sig>


More information about the pkg-remote-team mailing list