[Bug 1219512] [NEW] Setting ListenAddress to dynamic (e.g. dhclient determined) ip deadlocks boot

bernstein 1219512 at bugs.launchpad.net
Sun Sep 1 18:03:31 UTC 2013


Public bug reported:

1. Install Ubuntu Server
2. Install openssh-server
3. Set your router (or OTHER dhcp-server) to assign a fixed ip to your server installation
4. Change ListenAddress to that fixed ip
5. Server never finishes booting. no remote (ssh) login possible. sometimes not even pingable.

---> sshd trying to bind to an ip even when no network link is availble
is one thing, but it certainly should not end in a deadlock during
boot...

auth.log
------------
Sep  1 04:05:34 server sshd[1072]: error: Bind to port 28282 on 192.168.1.2 failed: Cannot assign requested address.
Sep  1 04:05:34 server sshd[1072]: fatal: Cannot bind any address.

kern.log
------------
Sep  1 04:05:37 server kernel: [   28.662038] r8169 0000:04:00.0 p2p1: link up
Sep  1 04:05:37 server kernel: [   28.662048] IPv6: ADDRCONF(NETDEV_CHANGE): p2p1: link becomes ready

sshd_config:
------------------
Port 12345
ListenAddress 192.168.1.2
AllowUsers bernstein

PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes

LogLevel VERBOSE

PermitRootLogin no
UsePrivilegeSeparation sandbox
PasswordAuthentication no
ChallengeResponseAuthentication no
ClientAliveInterval 240
LoginGraceTime 20
MaxStartups 1:100:1
Banner /etc/issue.net

System information
-------------------
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: openssh-server 1:6.1p1-4
ProcVersionSignature: Ubuntu 3.8.0-29.42-generic 3.8.13.5
Uname: Linux 3.8.0-29-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
Date: Sun Sep  1 19:46:10 2013
MarkForUpload: True
SourcePackage: openssh
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: openssh (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: upstart (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug raring

** Description changed:

  1. Install Ubuntu Server
  2. Install openssh-server
  3. Set your router (or OTHER dhcp-server) to assign a fixed ip to your server installation
  4. Change ListenAddress to that fixed ip
  5. Server never finishes booting. no remote (ssh) login possible. sometimes not even pingable.
  
- ---> sshd trying to bind to an ip even when the network no network link
- is availble is one thing... but it certainly should not end in a
- deadlock during boot...
+ ---> sshd trying to bind to an ip even when no network link is availble
+ is one thing, but it certainly should not end in a deadlock during
+ boot...
  
  auth.log
  ------------
  Sep  1 04:05:34 server sshd[1072]: error: Bind to port 28282 on 192.168.1.2 failed: Cannot assign requested address.
  Sep  1 04:05:34 server sshd[1072]: fatal: Cannot bind any address.
  
  kern.log
  ------------
  Sep  1 04:05:37 server kernel: [   28.662038] r8169 0000:04:00.0 p2p1: link up
  Sep  1 04:05:37 server kernel: [   28.662048] IPv6: ADDRCONF(NETDEV_CHANGE): p2p1: link becomes ready
  
  sshd_config:
  ------------------
  Port 12345
  ListenAddress 192.168.1.2
  AllowUsers bernstein
  
  PrintMotd no
  AcceptEnv LANG LC_*
  Subsystem sftp /usr/lib/openssh/sftp-server
  UsePAM yes
  
  LogLevel VERBOSE
  
  PermitRootLogin no
  UsePrivilegeSeparation sandbox
  PasswordAuthentication no
  ChallengeResponseAuthentication no
  ClientAliveInterval 240
  LoginGraceTime 20
  MaxStartups 1:100:1
  Banner /etc/issue.net
  
+ System information
+ -------------------
  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: openssh-server 1:6.1p1-4
  ProcVersionSignature: Ubuntu 3.8.0-29.42-generic 3.8.13.5
  Uname: Linux 3.8.0-29-generic x86_64
  ApportVersion: 2.9.2-0ubuntu8.3
  Architecture: amd64
  Date: Sun Sep  1 19:46:10 2013
  MarkForUpload: True
  SourcePackage: openssh
  UpgradeStatus: No upgrade log present (probably fresh install)

** Also affects: upstart (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1219512

Title:
  Setting ListenAddress to dynamic (e.g. dhclient determined) ip
  deadlocks boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1219512/+subscriptions



More information about the Ubuntu-server-bugs mailing list