Bug#862837: xrdp: Package install failure - dpkg: error processing package xrdp (--configure)

2017-10-26 Thread Stefan Seidel
Package: xrdp
Version: 0.9.1-9~bpo8+1
Followup-For: Bug #862837

Hi,

upon upgrading xrdp from xrdp/0.9.1-4 to xrdp/0.9.1-9 (jessie backports), xrdp
still doesn't start. I get these errors in the journal:

Failed at step RUNTIME_DIRECTORY spawning /bin/sh: File exists
xrdp.service: control process exited, code=exited status=233

I believe there are two issues that prevent the start:

1. /var/run/xrdp needs to be chgrp'd to xrdp, otherwise xrdp will never be able
to start (that bug is actually present for a long time, I've always worked
around it using a Puppet rule)
2. I needed to apply the workaround mentioned in https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=854548;msg=30 to finally make it start up

I hope this is helpful.

Stefan



-- System Information:
Debian Release: 8.9
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.83-1-pve (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xrdp depends on:
ii  adduser  3.113+nmu3
ii  init-system-helpers  1.22
ii  libc62.19-18+deb8u10
ii  libfuse2 2.9.3-15+deb8u2
ii  libjpeg62-turbo  1:1.3.1-12
ii  libopus0 1.1-2
ii  libpam0g 1.1.8-3.1+deb8u2+b1
ii  libssl1.0.0  1.0.1t-1+deb8u6
ii  libx11-6 2:1.6.2-3
ii  libxfixes3   1:5.0.1-2+b2
ii  libxrandr2   2:1.4.2-1+b1
ii  lsb-base 4.1+Debian13+nmu1
ii  ssl-cert 1.0.35

Versions of packages xrdp recommends:
pn  fuse  
ii  xorgxrdp  0.9.1-9~bpo8+1

Versions of packages xrdp suggests:
pn  guacamole  

Versions of packages xorgxrdp depends on:
ii  libc6  2.19-18+deb8u10
pn  xorg-input-abi-21  
ii  xserver-xorg-core [xorg-video-abi-18]  2:1.16.4-1+deb8u2

Versions of packages xorgxrdp recommends:
ii  xorg  1:7.7+7

Versions of packages xrdp is related to:
pn  vnc-server   
pn  xserver-xorg-legacy  

-- Configuration Files:
/etc/pam.d/xrdp-sesman changed [not included]

-- debconf-show failed



Bug#862837: xrdp: Package install failure - dpkg: error processing package xrdp (--configure)

2017-05-24 Thread John Paul Adrian Glaubitz
Control: notfound 0.9.1-4
Control: notfound 0.9.1-9

Hi!

This does not affect the version of xrdp in esting and unstable, so this needs
to be marked accordingly. I don't know why you marked this as found in 0.9.1-4
though because that version is currently not packaged anywhere in Debian, it
merely affects the version from jessie-backports which is 0.9.1-4~bpo8+1.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#862837: xrdp: Package install failure - dpkg: error processing package xrdp (--configure)

2017-05-17 Thread Aaron Morand
Package: xrdp
Version: 0.9.1-4~bpo8+1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

While attempting to update this package, it fails due to an issue in the 
post-installation script.

# apt-get -t jessie-backports install xrdp
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Suggested packages:
  guacamole
The following packages will be upgraded:
  xrdp
1 upgraded, 0 newly installed, 0 to remove and 149 not upgraded.
Need to get 0 B/441 kB of archives.
After this operation, 1,254 kB of additional disk space will be used.
Reading changelogs... Done
(Reading database ... 124472 files and directories currently installed.)
Preparing to unpack .../xrdp_0.9.1-4~bpo8+1_amd64.deb ...
Unpacking xrdp (0.9.1-4~bpo8+1) over (0.6.1-2) ...
Processing triggers for libc-bin (2.19-18+deb8u9) ...
Processing triggers for systemd (215-17+deb8u7) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up xrdp (0.9.1-4~bpo8+1) ...
Installing new version of config file /etc/default/xrdp ...
Installing new version of config file /etc/init.d/xrdp ...
Installing new version of config file /etc/xrdp/sesman.ini ...
Installing new version of config file /etc/xrdp/startwm.sh ...

Configuration file '/etc/xrdp/xrdp.ini'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D : show the differences between the versions
  Z : start a shell to examine the situation
 The default action is to keep your current version.
*** xrdp.ini (Y/I/N/O/D/Z) [default=N] ? 
Job for xrdp.service failed. See 'systemctl status xrdp.service' and 
'journalctl -xn' for details.
invoke-rc.d: initscript xrdp, action "restart" failed.
dpkg: error processing package xrdp (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-18+deb8u9) ...
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
 xrdp
E: Sub-process /usr/bin/dpkg returned an error code (1)


Following the error's recommendation, I ran the following

# systemctl status xrdp.service
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled)
   Active: failed (Result: exit-code) since Wed 2017-05-17 11:40:50 EDT; 1min 
17s ago
 Docs: man:xrdp(8)
   man:xrdp.ini(5)

May 17 11:40:50 ws06-yyz systemd[1]: xrdp.service: control process exited, 
code=exited status=1
May 17 11:40:50 ws06-yyz systemd[1]: Failed to start xrdp daemon.
May 17 11:40:50 ws06-yyz systemd[1]: Unit xrdp.service entered failed state.


# journalctl -xn
May 17 11:42:21 ws06-yyz systemd[1]: xrdp-sesman.service stop-sigterm timed 
out. Killing.
May 17 11:42:21 ws06-yyz systemd[1]: xrdp-sesman.service: main process exited, 
code=killed, status=9/KILL
May 17 11:42:21 ws06-yyz 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.
May 17 11:42:21 ws06-yyz systemd[1]: Unit xrdp-sesman.service entered failed 
state.


I then attempted to nudge it into installing properly.

# apt-get -f install
Reading package lists... Done
Building dependency tree   
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up xrdp (0.9.1-4~bpo8+1) ...
Job for xrdp.service failed. See 'systemctl status xrdp.service' and 
'journalctl -xn' for details.
invoke-rc.d: initscript xrdp, action "restart" failed.
dpkg: error processing package xrdp (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-18+deb8u9) ...
Errors were encountered while processing:
 xrdp
E: Sub-process /usr/bin/dpkg returned an error code (1)


This actually appears to get it past the xrdp-sesman failure to start issue, as 
seen by the same checks.

# systemctl status xrdp.service
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled)
   Active: failed (Result: exit-code) since Wed 2017-05-17 11:45:15 EDT; 3min 
37s ago
 Docs: man:xrdp(8)
   man:xrdp.ini(5)
  Process: 17605 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, 
status=1/FAILURE)
  Process: 17595 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, 
status=0/SUCCESS)

May 17 11:45:15 ws06-yyz systemd[1]: xrdp.service: control process exited, 
code=exited status=1
May 17 11:45:15 ws06-yyz systemd[1]: Failed to start xrdp daemon.
May 17 11:45:15 ws06-yyz systemd[1]: Unit