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

2017-12-18 Thread Nicolas DEFFAYET
Hello,

Bug confirmed:

# journalctl -xn
-- Logs begin at Sat 2017-11-25 06:54:06 UTC, end at Mon 2017-12-18
09:33:16 UTC. --
Dec 18 09:33:03 server systemd[1]: Unit xrdp.service entered failed
state.
Dec 18 09:33:03 server systemd[1]: Stopping xrdp session manager...
-- Subject: Unit xrdp-sesman.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit xrdp-sesman.service has begun shutting down.
Dec 18 09:33:03 server systemd[1]: xrdp-sesman.service: control process
exited, code=exited status=1
Dec 18 09:33:03 server xrdp-sesman[28904]:
(28904)(139674058561280)[INFO ] shutting down sesman 1
Dec 18 09:33:03 server xrdp-sesman[28904]:
(28904)(139674058561280)[DEBUG] Closed socket 7 (AF_INET6 ::1 port
3350)
Dec 18 09:33:03 server systemd[1]: Stopped xrdp session manager.
-- Subject: Unit xrdp-sesman.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit xrdp-sesman.service has finished shutting down.
Dec 18 09:33:03 server systemd[1]: Unit xrdp-sesman.service entered
failed state.
Dec 18 09:33:03 server systemd[1]: Reloading.

# systemctl status xrdp.service
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-12-18 09:33:03
UTC; 1min 24s ago
 Docs: man:xrdp(8)
   man:xrdp.ini(5)

Dec 18 09:33:03 server systemd[28905]: Failed at step RUNTIME_DIRECTORY
spawning /bin/sh: File exists
Dec 18 09:33:03 server systemd[1]: xrdp.service: control process
exited, code=exited status=233
Dec 18 09:33:03 server systemd[1]: Failed to start xrdp daemon.
Dec 18 09:33:03 server systemd[1]: Unit xrdp.service entered failed
state.
# 

-- 
Nicolas DEFFAYET



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

2017-12-15 Thread Dominik George
> 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

Unfortunately, I cannot read this. Please run with LC_ALL=C.

-nik


signature.asc
Description: PGP signature


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

2017-11-04 Thread Gilles MOREL
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 
« Pavé César, ceux qui n'ont pas lu te saluent ! » -- Farod
[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