Ideas

Ubuntu 11.10 Waiting up to 60 more seconds for network configuration…

Ubuntu 11.10 Oneiric Ocelot was released last week, and has brought a few issues with it. One distressing new feature I found was that when booting it would hang for around a minute with the message ‘Waiting for network configuration…’ and then hang again with the message ‘Waiting up to 60 more seconds for network configuration…’.

I have found the cause of this is having any interfaces defined in /etc/network/interfaces ( besides lo ) defined as auto. To correct this problem, the recommended solution is to remove your interfaces from this file, and set them up with network manager. Leaving /etc/network/interfaces looking like the default:

auto lo
iface lo inet loopback

In my case, my network needs a bridge to operate, and since network manager does not allow to configure bridges, it MUST be defined in this file.

So, the only other solution must be to edit ‘Waiting for network configuration…’ script. This script is actually located here: /etc/init/failsafe.conf

Around 25 lines down in the file you will see a section:

# Plymouth errors should not stop the script because we *must* reach
    # the end of this script to avoid letting the system spin forever
    # waiting on it to start.
        $PLYMOUTH message --text="Waiting for network configuration..." || :
        sleep 40

        $PLYMOUTH message --text="Waiting up to 60 more seconds for network configuration..." || :
        sleep 59
        $PLYMOUTH message --text="Booting system without full network configuration..." || :

To solve the problem, you can just remove the calls to sleep, by commenting the out ( or at least reduce the wait time if your network really does need to wait )

# Plymouth errors should not stop the script because we *must* reach
    # the end of this script to avoid letting the system spin forever
    # waiting on it to start.
        $PLYMOUTH message --text="Waiting for network configuration..." || :
        #sleep 40

        $PLYMOUTH message --text="Waiting up to 60 more seconds for network configuration..." || :
        #sleep 59
        $PLYMOUTH message --text="Booting system without full network configuration..." || :

32 Comments

  1. October 23, 2011    

    Funny, I had these lines commented in he interfaces file, but the problem persists. In fact, something automagically recreated these lines again on top of my comments!

    > auto lo
    > iface lo inet loopback
    >
    > #auto eth0
    > #iface eth0 inet dhcp

    So this fix did not work for me. Still looking for a definitive solution to this.

    Thanks!

  2. wrostek's Gravatar wrostek
    October 23, 2011    

    It sounds like it didn’t work because something added the eth0 lines back to your /etc/network/interfaces file during your reboot. I’m not sure which process would do this, but a possible workaround would be to remove the eth0 references again from /etc/network/interfaces, and then run:

    chattr +i /etc/network/interfaces

    This will make it so nothing can change the contents of the file until you remove the ‘i’ attribute ( chattr -i /etc/network/interfaces )

  3. December 4, 2011    

    Worked for me like charm. Thanks.

  4. Pablo's Gravatar Pablo
    December 26, 2011    

    Tks a lot man. u saved my life!

    greets from Brazil!

  5. guest's Gravatar guest
    February 14, 2012    

    Tnx!my problem is fix.
    Greets from Ukraine.

  6. March 5, 2012    

    The guy who wrote that failsafe.conf deserves to be fired. sleep 20, sleep 40 and sleep 59 in a generic script, are you kidding me? Thanks for your solution!

    • MoGlee's Gravatar MoGlee
      April 10, 2012    

      @Angrybird – you can’t fire a contributor on an open source project. That would be like – wait a minute… You are FIRED as a commenter on this blog! (LOL) Bad design though…

      @Wrostek – Thanks for the information!

  7. April 14, 2012    

    Someone just deserved the ‘hero of the day’-award with this post: thanks a bunch no more waiting for me! ;-)

  8. April 18, 2012    

    Anoying shid! Thnanks for article!

  9. May 9, 2012    

    Works like a charm. Thanks a lot.
    I also removed the messages (commented).

  10. Ubuntu 12.04 User's Gravatar Ubuntu 12.04 User
    May 18, 2012    

    Works for ubuntu 12.04!!!
    With just two characters of code, nice.
    Greetings from Germany

  11. May 22, 2012    

    Good Stuff!
    Brilliant Solution. Will spread this good news.
    Thanks from Cyberjaya, Malaysia.
    http://en.wikipedia.org/wiki/Cyberjaya

  12. May 29, 2012    

    Worked better after I also changed this (as I not network not ready type message) :

    # waiting on it to start.
    $PLYMOUTH message –text=”Waiting for network configuration…” || :
    #sleep 40
    sleep 80

  13. NaiYai's Gravatar NaiYai
    June 22, 2012    

    Thanks! a lot….
    That work for me remove or comment eth0 in file /etc/network/interfaces

  14. June 26, 2012    

    Many Thanks from Italy

  15. Abnerh69's Gravatar Abnerh69
    July 3, 2012    

    Good work! Say Hello from Barinas, Venezuela.

  16. Abnerh69's Gravatar Abnerh69
    July 3, 2012    

    By the way: Ubuntu 12.04 and Clonezilla in 5 laptops! Thanks

  17. Jeramie's Gravatar Jeramie
    July 3, 2012    

    Worked Like a charm for 11.0. After Upgrade, the system was unusable, but dropping to a shell and commenting out these lines, we are back online. We commented out the sleep lines as we needed to set a static IP and do no use the GUI on the server install.

  18. Russell's Gravatar Russell
    September 9, 2012    

    Worked in U 12.04! Great Stuff for tracking this down!
    Greets from Lismore, Australia!!
    cheers !!

  19. Zak's Gravatar Zak
    September 11, 2012    

    Hi! I’ve been reading your blog for a while now and finally got the courage to go ahead and give you a shout out from Atascocita Texas! Just wanted to tell you keep up the fantastic work!

  20. Rozenknop's Gravatar Rozenknop
    September 20, 2012    

    For me, it works by removing the eth0 references in /etc/network/interfaces. But I left the bridge declaration (as dhcp). So, this file is know like this :

    “””
    auto lo
    iface lo inet loopback

    #auto eth0
    #iface eth0 inet static

    auto br0
    iface br0 inet dhcp
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0
    “””

    No more messages and the bridge is working.
    I first wrote the two commented eth0 lines after reading some tutorial on bridge networking for kvm/qemu. But they were not necessary, after all.
    Last but not least, I removed network-manager from the installation. Before I did so, the lines on eth0 were used by network-manager to identify the interfaces that it should not try to manage.

  21. teknopaul's Gravatar teknopaul
    October 29, 2012    

    respect, that bug|feature been really annoying me especially on planes.

  22. Denis's Gravatar Denis
    November 19, 2012    

    I rarely leave comments, but this is an exception. THANK YOU for sharing this, definitely fixed my issue.

  23. Miguel's Gravatar Miguel
    December 8, 2012    

    It was ok! Thanks a lot from Spain.

  24. Dhanada Mishra's Gravatar Dhanada Mishra
    January 13, 2013    

    Thank you. From Bhubaneswar, India.

  25. Berthold's Gravatar Berthold
    January 28, 2013    

    What a relief! The key was chattr +i. Thanks and greetings from Finland.
    (12.04+MATE)

  26. February 13, 2013    

    with my grey socket of now i want to say a regular thanks !
    checked and confirmed …

  27. Shamsudheen's Gravatar Shamsudheen
    February 25, 2013    

    Thanks from Kerala, India

  28. Space's Gravatar Space
    March 6, 2013    

    Thanks a million!!!!

  29. Yakup's Gravatar Yakup
    September 5, 2013    

    Excellent solution! I need a gui on my servers but don’t want Network Manager in the way. Thank you very much.

    Yakup

  30. Santosa Anak Indonesia's Gravatar Santosa Anak Indonesia
    November 20, 2013    

    Thank you very much for the tips because it save the booting time. However, we should make sure that

    Author Quote: “your network really does need to wait”

  31. Jonathan's Gravatar Jonathan
    June 10, 2014    

    Thank you. This worked great for me.

  1. Ubuntu 11.10 disable "Waiting up to 60 more seconds for network configuration" on March 1, 2012 at 3:17 am
  2. Ubuntu 11.10 Waiting up to 60 more seconds for network configuration fix | Busted Engineering on May 4, 2012 at 1:33 pm
  3. Ubuntu 11.10 Waiting up to 60 more seconds for network configuration… on February 3, 2013 at 5:31 am
  4. Como configurar rede IEEE1394 (FireWire) no Ubuntu 10.10 on February 3, 2013 at 12:54 pm
  5. How to Fix Ubuntu Server 13.04 Slower Boot When Network Cable Is Unplugged | Ubuntu Info - James n Sheri.comUbuntu Info – James n Sheri.com on May 8, 2013 at 9:59 am
  6. Splash Screen Stopped Appearing | Click & Find Answer ! on August 30, 2013 at 3:26 pm
  7. Relinux - "waiting for network configuration" problem - Tech Forum Network on March 9, 2014 at 8:46 pm
  8. Ubuntu 11.10 disable "Waiting up to 60 more seconds for network configuration" on June 6, 2014 at 6:20 am

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Archives

css.php