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

Bug#755471: ifupdown: fails to bring up network: cannot access '/dev/net/tun': ENOENT



Package: ifupdown
Version: 0.7.48.1
Severity: important

Hi,

after a reboot, my tun* network interfaces are no longer
brought up. In my case, this does not make the entire
system unusable, luckily, but I assume that this may be
the case for others. Nevertheless, conservatively setting
the severity "only" to important, for now.

I have stanzas like this one in /e/n/i:

auto tap0
iface tap0 inet static
	address 192.168.0.1
	pointopoint 192.168.0.2
	netmask 255.255.255.255
	tunctl_user tglase
	up iptables -t nat -A POSTROUTING -s 192.168.0.2 -j MASQUERADE
	up echo 1 > /proc/sys/net/ipv4/ip_forward
	down iptables -t nat -D POSTROUTING -s 192.168.0.2 -j MASQUERADE

This is so I can run ARAnyM (Atari emulators) with network
access as regular (non-root) user.

I'm attaching two bootlogd outputs (with a bit of context
around the lines in question) to show the problem.

Running both 'ip a' and 'ifconfig -a' after boot shows that,
indeed, the tun interfaces are not there, which is a problem.

I am not sure whether ifupdown is the correct package for this
bugreport. Please reassign to whatever is, if it isn't.

Thanks!

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh

Versions of packages ifupdown depends on:
ii  adduser      3.113+nmu3
ii  initscripts  2.88dsf-53.2
ii  iproute2     3.15.0-2
ii  libc6        2.19-7
ii  lsb-base     4.1+Debian13

Versions of packages ifupdown recommends:
ii  isc-dhcp-client [dhcp-client]  4.3.0+dfsg-2

Versions of packages ifupdown suggests:
ii  net-tools  1.60-26
ii  ppp        2.4.6-2
pn  rdnssd     <none>

-- debconf information:
  ifupdown/convert-interfaces: true
  ifupdown/convert-interfaces-hotplug: true
Wed Jul  2 09:04:27 2014: Checking file systems...fsck from util-linux 2.20.1
Wed Jul  2 09:04:27 2014: done.
Wed Jul  2 09:04:27 2014: Mounting local filesystems...done.
Wed Jul  2 09:04:27 2014: Activating swapfile swap...done.
Wed Jul  2 09:04:27 2014: Cleaning up temporary files....
Wed Jul  2 09:04:27 2014: Setting kernel variables ...done.
Wed Jul  2 09:04:31 2014: Configuring network interfaces...
Wed Jul  2 09:04:31 2014: Waiting for a max of 5 seconds for em0 to become available.
Wed Jul  2 09:04:31 2014: 
Wed Jul  2 09:04:31 2014: Waiting for br0 to get ready (MAXWAIT is 2 seconds).
Wed Jul  2 09:04:31 2014: Internet Systems Consortium DHCP Client 4.3.0
Wed Jul  2 09:04:31 2014: Copyright 2004-2014 Internet Systems Consortium.
Wed Jul  2 09:04:31 2014: All rights reserved.
Wed Jul  2 09:04:31 2014: For info, please visit https://www.isc.org/software/dhcp/
Wed Jul  2 09:04:31 2014: 
Wed Jul  2 09:04:31 2014: Listening on LPF/br0/90:e2:ba:0c:b8:17
Wed Jul  2 09:04:31 2014: Sending on   LPF/br0/90:e2:ba:0c:b8:17
Wed Jul  2 09:04:31 2014: Sending on   Socket/fallback
Wed Jul  2 09:04:31 2014: DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 8
Wed Jul  2 09:04:31 2014: DHCPREQUEST on br0 to 255.255.255.255 port 67
Wed Jul  2 09:04:31 2014: DHCPOFFER from 172.26.100.1
Wed Jul  2 09:04:31 2014: DHCPACK from 172.26.100.1
Wed Jul  2 09:04:31 2014: suspect value in domain_search option - discarded
Wed Jul  2 09:04:31 2014: suspect value in domain_search option - discarded
Wed Jul  2 09:04:31 2014: bound to 172.26.3.108 -- renewal in 21056 seconds.
Wed Jul  2 09:04:31 2014: Restarting openntpd: ntpd.
Wed Jul  2 09:04:39 2014: Set 'tap0' persistent and owned by uid 2339
Wed Jul  2 09:04:39 2014: Restarting openntpd: ntpd.
Wed Jul  2 09:04:39 2014: Set 'tap1' persistent and owned by uid 2339
Wed Jul  2 09:04:39 2014: Restarting openntpd: ntpd.
Wed Jul  2 09:04:39 2014: Set 'tap2' persistent and owned by uid 2339
Wed Jul  2 09:04:39 2014: Restarting openntpd: ntpd.
Wed Jul  2 09:04:39 2014: Set 'tap4' persistent and owned by uid 2339
Wed Jul  2 09:04:39 2014: Restarting openntpd: ntpd.
Wed Jul  2 09:04:39 2014: Restarting openntpd: ntpd.
Wed Jul  2 09:04:39 2014: done.
Wed Jul  2 09:04:39 2014: Cleaning up temporary files....
Wed Jul  2 09:04:39 2014: Setting up ALSA...done.
Mon Jul 21 10:11:21 2014: Checking file systems...fsck from util-linux 2.20.1
Mon Jul 21 10:11:21 2014: done.
Mon Jul 21 10:11:21 2014: Mounting local filesystems...done.
Mon Jul 21 10:11:21 2014: Activating swapfile swap...done.
Mon Jul 21 10:11:21 2014: Cleaning up temporary files....
Mon Jul 21 10:11:22 2014: Setting kernel variables ...done.
Mon Jul 21 10:11:25 2014: Configuring network interfaces...
Mon Jul 21 10:11:25 2014: Waiting for a max of 5 seconds for em0 to become available.
Mon Jul 21 10:11:25 2014: 
Mon Jul 21 10:11:25 2014: Waiting for br0 to get ready (MAXWAIT is 2 seconds).
Mon Jul 21 10:11:25 2014: Internet Systems Consortium DHCP Client 4.3.0
Mon Jul 21 10:11:25 2014: Copyright 2004-2014 Internet Systems Consortium.
Mon Jul 21 10:11:25 2014: All rights reserved.
Mon Jul 21 10:11:25 2014: For info, please visit https://www.isc.org/software/dhcp/
Mon Jul 21 10:11:25 2014: 
Mon Jul 21 10:11:25 2014: Listening on LPF/br0/90:e2:ba:0c:b8:17
Mon Jul 21 10:11:25 2014: Sending on   LPF/br0/90:e2:ba:0c:b8:17
Mon Jul 21 10:11:25 2014: Sending on   Socket/fallback
Mon Jul 21 10:11:25 2014: DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 6
Mon Jul 21 10:11:25 2014: DHCPREQUEST on br0 to 255.255.255.255 port 67
Mon Jul 21 10:11:25 2014: DHCPOFFER from 172.26.100.1
Mon Jul 21 10:11:25 2014: DHCPACK from 172.26.100.1
Mon Jul 21 10:11:25 2014: suspect value in domain_search option - discarded
Mon Jul 21 10:11:25 2014: suspect value in domain_search option - discarded
Mon Jul 21 10:11:25 2014: bound to 172.26.3.108 -- renewal in 19225 seconds.
Mon Jul 21 10:11:25 2014: Restarting openntpd: ntpd.
Mon Jul 21 10:11:27 2014: Failed to open '/dev/net/tun' : No such file or directory
Mon Jul 21 10:11:27 2014: chown: cannot access '/dev/net/tun': No such file or directory
Mon Jul 21 10:11:27 2014: chmod: cannot access '/dev/net/tun': No such file or directory
Mon Jul 21 10:11:27 2014: run-parts: /etc/network/if-pre-up.d/uml-utilities exited with return code 1
Mon Jul 21 10:11:27 2014: Failed to bring up tap0.
Mon Jul 21 10:11:27 2014: Failed to open '/dev/net/tun' : No such file or directory
Mon Jul 21 10:11:27 2014: chown: cannot access '/dev/net/tun': No such file or directory
Mon Jul 21 10:11:27 2014: chmod: cannot access '/dev/net/tun': No such file or directory
Mon Jul 21 10:11:27 2014: run-parts: /etc/network/if-pre-up.d/uml-utilities exited with return code 1
Mon Jul 21 10:11:27 2014: Failed to bring up tap1.
Mon Jul 21 10:11:27 2014: Failed to open '/dev/net/tun' : No such file or directory
Mon Jul 21 10:11:27 2014: chown: cannot access '/dev/net/tun': No such file or directory
Mon Jul 21 10:11:27 2014: chmod: cannot access '/dev/net/tun': No such file or directory
Mon Jul 21 10:11:27 2014: run-parts: /etc/network/if-pre-up.d/uml-utilities exited with return code 1
Mon Jul 21 10:11:27 2014: Failed to bring up tap2.
Mon Jul 21 10:11:27 2014: Failed to open '/dev/net/tun' : No such file or directory
Mon Jul 21 10:11:27 2014: chown: cannot access '/dev/net/tun': No such file or directory
Mon Jul 21 10:11:27 2014: chmod: cannot access '/dev/net/tun': No such file or directory
Mon Jul 21 10:11:27 2014: run-parts: /etc/network/if-pre-up.d/uml-utilities exited with return code 1
Mon Jul 21 10:11:27 2014: Failed to bring up tap4.
Mon Jul 21 10:11:27 2014: Restarting openntpd: ntpd.
Mon Jul 21 10:11:27 2014: done.
Mon Jul 21 10:11:28 2014: Cleaning up temporary files....
Mon Jul 21 10:11:28 2014: Setting up ALSA...done.

Reply to: