networking uses mount-functions.sh which doesn't exist

Bug #431065 reported by bodhi.zazen
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
netbase (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Karmic by Philippe Huybrechts

Bug Description

Binary package hint: upstart

Yesterday's update and the Alpha 6 have boot issues.

http://ubuntuforums.org/showthread.php?t=1267183

I was running 9.10 server side and there is no fix as of yet (apt-get update && apt-get dist-upgrade did not fix the problem).

I have no netwroking after a reboot:

root@test:/# ifconfig
root@test:/# /etc/init.d/networking restart
 * Reconfiguring network interfaces... .: 14: Can't open /lib/init/mount-functions.sh
run-parts: /etc/network/if-up.d/mountnfs exited with return code 2
initctl: Event failed
run-parts: /etc/network/if-up.d/upstart exited with return code 1
.: 14: Can't open /lib/init/mount-functions.sh
run-parts: /etc/network/if-up.d/mountnfs exited with return code 2
initctl: Event failed
run-parts: /etc/network/if-up.d/upstart exited with return code 1
                                                                         [ OK ]
root@test:/#

root@test:/var/log# /etc/network/if-up.d/upstart
initctl: Event failed

I then need to manually init 2 , it as as if the system is booting to single user mode.

init.log contains only :

starting init logger
init: hwclock main process (24) terminated with status 1^M
mountall:/proc/self/mountinfo: No such file or directory
init: mountall main process (25) killed by SEGV signal^M
init: mountall-net main process (78) terminated with status 1^M
init: mountall-net main process (103) terminated with status 1^M
 * Starting system log daemon... ^[[80G ^M^[[74G[ OK ]
 * Starting Postfix Mail Transport Agent postfix ^[[80G ^M^[[74G[ OK ]

I can manually start my network and system with

/etc/init.d/networking start
init 2

/etc/rc.local is currently ignored (so I can not simply add those commands to /etc/rc.local).

dpkg -l | grep upstart
ii upstart 0.6.3-3 event-based init daemon

dpkg -l | grep initscripts
ii initscripts 2.87dsf-4ubuntu3 scripts for initializing and shutting down

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Hi, please ensure you're up to date today - you should have mountall 0.1.6 installed.

If you're still having boot problems, please supply your /etc/fstab file

affects: upstart (Ubuntu) → mountall (Ubuntu)
Changed in mountall (Ubuntu):
status: New → Incomplete
summary: - boot fails
+ boot fails (no fstab supplied)
Revision history for this message
bodhi.zazen (bodhi.zazen) wrote : Re: boot fails (no fstab supplied)

The server is a VPS, running in OpenVZ

There is nothing in /etc/fstab

root@test:/# cat /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM

root@test:/# apt-get install mountall
Reading package lists... Done
Building dependency tree
Reading state information... Done
mountall is already the newest version.
mountall set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@test:/# dpkg -l | grep mountall
ii mountall 0.1.6

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Could you provide the output of "cat /proc/self/mountinfo" instead?

Thanks

Revision history for this message
bodhi.zazen (bodhi.zazen) wrote :
Download full text (4.1 KiB)

First, thank you for looking into this.

root@test:/# cat /proc/self/mountinfo
cat: /proc/self/mountinfo: No such file or directory

root@test:/# cat /proc/self/mounts
simfs / simfs rw,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0

Here is the output on networking :

root@test:/# /etc/init.d/networking start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service networking start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start networking
networking stop/waiting
root@test:/# ifconfig

root@test:/# ifdown lo
root@test:/# ifup lo
.: 14: Can't open /lib/init/mount-functions.sh
run-parts: /etc/network/if-up.d/mountnfs exited with return code 2

root@test:/# ifconfig
lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Same with venet0 an dvenet 0:0

root@test:/# ifup venet0
ifup: interface venet0 already configured
root@test:/# ifconfig
lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@test:/# ifdown venet0
root@test:/# ifup venet0
.: 14: Can't open /lib/init/mount-functions.sh
run-parts: /etc/network/if-up.d/mountnfs exited with return code 2
root@test:/# ifconfig
lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

ifdown: interface venet0:0 not configured
root@test:/# ifup venet0:0
.: 14: Can't open /lib/init/mount-functions.sh
run-parts: /etc/network/if-up.d/mountnfs exited with return code 2
root@test:/# ifconfig
lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 ov...

Read more...

Revision history for this message
bodhi.zazen (bodhi.zazen) wrote :

In follow up :

I made a completely new ubuntu 9.10 template using debootstrap and have the exact same problem :(

I have to manually make a file mount-functions.sh (/lib/init/mount-functions.sh) which I put

#!/bin/sh

exit 0

and after that I need to

/etc/init.d/networking restart
telinit 2

The problem seems larger though :

root@localhost:/# service networking restart
restart: Unknown instance:
root@localhost:/# service networking stop
stop: Unknown instance:
root@localhost:/# service networking
Usage: /etc/init.d/networking {start|stop|restart|force-reload}
root@localhost:/#

affects: mountall (Ubuntu) → netbase (Ubuntu)
Changed in netbase (Ubuntu):
assignee: nobody → Scott James Remnant (scott)
milestone: none → ubuntu-9.10-beta
status: Incomplete → Triaged
summary: - boot fails (no fstab supplied)
+ networking uses mount-functions.sh which doesn't exist
Revision history for this message
bodhi.zazen (bodhi.zazen) wrote : Re: [Bug 431065] Re: networking uses mount-functions.sh which doesn't exist

Thank you for looking into this. These bugs are not duplicates.

First , I performed a fresh install and there was no mount-functions.sh to remove.

I added the script myself to allow me to run ifdown and ifup.

See : https://bugs.launchpad.net/ubuntu/+source/netbase/+bug/431065/comments/5

So something in the init scripts is calling the mount-functions.sh

Second there seems to be something wrong with upstart, it does not recognize networking -

quote -
root@localhost:/# service networking restart
restart: Unknown instance:
root@localhost:/# service networking stop
stop: Unknown instance:
root@localhost:/# service networking
Usage: /etc/init.d/networking {start|stop|restart|force-reload}

So while I appreciate your efforts, the problem is deeper.

I am running an OpenVZ template that is up to date as of the time of this message and my problems persist.

----- Original Message -----
From: "Scott James Remnant" <email address hidden>
To: "bodhi zazen" <email address hidden>
Sent: Monday, September 21, 2009 5:31:34 PM
Subject: [Bug 431065] Re: networking uses mount-functions.sh which doesn't exist

*** This bug is a duplicate of bug 430355 ***
    https://bugs.launchpad.net/bugs/430355

** This bug has been marked a duplicate of bug 430355
   initscripts 2.87dsf-4ubuntu3 upgrade does not delete old init.d scripts

--
networking uses mount-functions.sh which doesn't exist
https://bugs.launchpad.net/bugs/431065
You received this bug notification because you are a direct subscriber
of the bug.

Revision history for this message
bodhi.zazen (bodhi.zazen) wrote :
Download full text (4.3 KiB)

The duplicate status is wrong.

Update as of today it still is not working (updated my test system just now)

root@test:/# ping google.com
ping: unknown host google.com

root@test:/# ifconfig

root@test:/# service networking restart
restart: Unknown instance:

root@test:/# service networking start
networking stop/waiting

root@test:/# ifconfig

root@test:/# service networking stop
stop: Unknown instance:

root@test:/# /etc/init.d/networking restart
 * Reconfiguring network interfaces...
SIOCSIFFLAGS: Cannot assign requested address
                                                                         [ OK ]

root@test:/# ifconfig
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.10.10.2 P-t-P:10.10.10.2 Bcast:0.0.0.0 Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

root@test:/# ifdown lo
root@test:/# ifup lo

root@test:/# ifconfig
lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:894 (894.0 B) TX bytes:368 (368.0 B)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.10.10.2 P-t-P:10.10.10.2 Bcast:0.0.0.0 Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

root@test:/# ping google.com
PING google.com (74.125.67.100) 56(84) bytes of data.
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=1 ttl=51 time=32.0 ms
64 bytes from gw-in-f100.google.com (74.125.67.100): icmp_seq=2 ttl=51 time=30.5 ms

--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 30.552/31.278/32.005/0.747 ms

In addition the boot scripts did not finish

root@test:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.5 19064 1432 ? Ss 00:18 0:00 init
root 22 0.0 0.0 100 16 ? S 00:18 0:00 [init-l...

Read more...

Revision history for this message
bodhi.zazen (bodhi.zazen) wrote :

This bug still exists, the latest updates as of today have not fixed the problem.

I see this is still marked as a duplicate and the duplicate is marked as solved.

Would you suggest I start a new bug report ?

This is not a duplicate and as far as I can tell upstart is not calling rc2.d

Errors as above .

Revision history for this message
Alvin (alvind) wrote :

I unmarked this as a duplicate, because it obviously isn't.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

quest scott% grep mount-functions /etc/init.d/networking
zsh: exit 1 grep mount-functions /etc/init.d/networking

Changed in netbase (Ubuntu):
assignee: Scott James Remnant (scott) → nobody
status: Triaged → Invalid
Revision history for this message
Stephen Day (stevvooe) wrote :

Why is this bug marked as invalid?

Changed in netbase (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Fiodor Kupchik (ferimy) wrote :

This bug is also occurs on 11.10 after consequent upgrade from 10.10. Any solution after 3 years?

Revision history for this message
Stéphane Graber (stgraber) wrote :

Going with fix released here. I did a recursive scan on a 12.04 system and there's no more mention of mount-functions.sh (as pointed out by Scott James earlier).

If you're still affected, something is clearly wrong on your system, likely caused by an external package. Please try to reproduce the issue on a clean install and if it still happens, file a bug against ifupdown.

Changed in netbase (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.