[karmic] openvpn service starts before dhclient
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvpn (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: openvpn
I have a server that was upgraded from 9.04 to 9.10. I cannot say with certainty what was happening during 9.04 but systematically when I reboot the daemon does not come up:
$ sudo service openvpn status
[sudo] password for blah:
* could not access PID file for VPN 'server'
$ sudo service openvpn start
* Starting virtual private network daemon(s)...
* Autostarting VPN 'server'
...done.
$ sudo service openvpn status
* VPN 'server' is running
The server is currently being assigned an IP address (DHCP). It looks like that OpenVPN is coming up before that address is provided. From /var/log/syslog:
openvpn[815]: TCP/UDP: Socket bind failed on local address 11.153.118.61:1194: Cannot assign requested address
openvpn[815]: Exiting
kernel: [ 13.380034] br0: port 1(eth0) entering forwarding state
dhclient: Internet Systems Consortium DHCP Client V3.1.2
dhclient: Copyright 2004-2008 Internet Systems Consortium.
dhclient: All rights reserved.
dhclient: For info, please visit http://
dhclient:
kernel: [ 14.364042] eth0: no IPv6 routers present
kernel: [ 14.428029] br0: no IPv6 routers present
dhclient: Listening on LPF/br0/
dhclient: Sending on LPF/br0/
dhclient: Sending on Socket/fallback
dhclient: DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 4
dhclient: DHCPOFFER of 11.153.118.61 from 11.153.118.1
dhclient: DHCPREQUEST of 11.153.108.61 on br0 to 255.255.255.255 port 67
dhclient: DHCPACK of 11.153.108.61 from 11.153.118.1
dhclient: bound to 11.153.108.61 -- renewal in 102522 seconds
Changed in openvpn (Ubuntu): | |
status: | Incomplete → Confirmed |
Does this also happen when you use a static IP?