[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#843981: xrdp: fails to start with only loopback network: bind invalid argument; listen error, possible port already in use



Package: xrdp
Version: 0.9.0~20161027+gitc524b06-1
Severity: important

Starting xrdp (at boot, or manually via the initscript) ends up
with this in syslog:

Nov 11 14:11:13 tglase-nb xrdp-sesman[2540]: (2540)(140396101784768)[DEBUG] libscp initialized 
Nov 11 14:11:13 tglase-nb xrdp-sesman[2543]: (2543)(140396101784768)[INFO ] starting xrdp-sesman with pid 2543 
Nov 11 14:11:13 tglase-nb xrdp-sesman[2543]: (2543)(140396101784768)[ERROR] bind error on port '3350': 22 (Invalid argument) 
Nov 11 14:11:13 tglase-nb xrdp-sesman[2543]: (2543)(140396101784768)[DEBUG] Closed socket 7 (AF_INET6 :::0) 
Nov 11 14:11:15 tglase-nb xrdp[2546]: (2546)(140371933928256)[INFO ] starting xrdp with pid 2546 
Nov 11 14:11:15 tglase-nb xrdp[2546]: (2546)(140371933928256)[ERROR] xrdp_listen_main_loop: listen error, possible port already in use 
Nov 11 14:11:15 tglase-nb xrdp[2546]: (2546)(140371933928256)[DEBUG] Closed socket 11 (AF_INET6 :::0) 

The network configuration at that point is:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:1d:72:84:b1:b1 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:1f:3b:0d:cb:b1 brd ff:ff:ff:ff:ff:ff
4: tap4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 6e:51:4f:7e:09:f2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.205 peer 192.168.10.206/32 brd 192.168.10.205 scope global tap4
       valid_lft forever preferred_lft forever

When I change this to (ceteris paribus)…

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:1d:72:84:b1:b1 brd ff:ff:ff:ff:ff:ff
    inet 172.26.4.231/16 brd 172.26.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::21d:72ff:fe84:b1b1/64 scope link 
       valid_lft forever preferred_lft forever

… it works.

/etc/hosts contains my hostname (also FQDN) on 127.0.0.1, so this
is a bug as this *can*, and should, work with just the loopback
interface.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages xrdp depends on:
ii  adduser              3.115
ii  init-system-helpers  1.46
ii  libc6                2.24-5
ii  libfuse2             2.9.7-1
ii  libjpeg62-turbo      1:1.5.1-2
ii  libopus0             1.1.3-1
ii  libpam0g             1.1.8-3.3
ii  libssl1.0.2          1.0.2j-4
ii  libx11-6             2:1.6.3-1
ii  libxfixes3           1:5.0.2-1
ii  libxrandr2           2:1.5.0-1
ii  lsb-base             9.20161101

Versions of packages xrdp recommends:
ii  xorgxrdp  0.9.0~20161027+gitc524b06-1

Versions of packages xrdp suggests:
pn  guacamole  <none>

Versions of packages xorgxrdp depends on:
ii  libc6                                  2.24-5
pn  xorg-input-abi-22                      <none>
ii  xserver-xorg-core [xorg-video-abi-20]  2:1.18.4-2

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

Versions of packages xrdp is related to:
ii  vnc4server [vnc-server]  4.1.1+X4.3.0-39

-- no debconf information


Reply to: