Devuan bug report logs - #521
boot hangs on 'ifup: waiting for lock'

Package: devuan-desktop; Reported by: leirbag <leirbag@sdfeu.org>; dated Wed, 11 Nov 2020 07:48:02 UTC; Maintainer for devuan-desktop is (unknown).

Message received at 521@bugs.devuan.org:


Received: (at 521) by bugs.devuan.org; 11 Nov 2020 13:50:04 +0000
Return-Path: <farmatito@tiscali.it>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 11 Nov 2020 13:50:04 +0000 (UTC)
Received: from smtp.tiscali.it (michael-notr.mail.tiscali.it [213.205.33.216])
	by vm6.ganeti.dyne.org (Postfix) with ESMTP id E0BC1F60A34
	for <521@bugs.devuan.org>; Wed, 11 Nov 2020 14:44:57 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=tiscali.it header.i=@tiscali.it header.b="kaCyLplD";
	dkim-atps=neutral
Received: from devuan ([217.27.115.45])
	by michael.mail.tiscali.it with 
	id r1ki2303K0yqAhV011kjCp; Wed, 11 Nov 2020 13:44:56 +0000
x-auth-user: farmatito@tiscali.it
Date: Wed, 11 Nov 2020 14:43:46 +0100
From: tito <farmatito@tiscali.it>
To: devuan-dev@lists.dyne.org, leirbag <leirbag@sdfeu.org>,
 521@bugs.devuan.org
Subject: Re: [devuan-dev] bug#521: boot hangs on 'ifup: waiting for lock'
Message-ID: <20201111144346.2700cdef@devuan>
In-Reply-To: <66e6c6cf59036097f0df1e91d172840a@mx.sdfeu.org>
References: <66e6c6cf59036097f0df1e91d172840a@mx.sdfeu.org>
X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tiscali.it; s=smtp;
	t=1605102297; bh=te7s8O5TE5eDV+gKSgPzXZZm01isAgLSUthYWfFOmV4=;
	h=Date:From:To:Subject:In-Reply-To:References;
	b=kaCyLplD/Ywf3Ns1BO6AlkD5Z16vtrWbwUql6Uj5lYF815BoZuShOTJXWTfocewMg
	 FraloJh9WEeU2bLno2dLb2CoXDJDj94UXhK9FDsyAHs16xJavnhn9lU21wY2WfZv0b
	 T1/nRgYRAd4+NfUs96HKvVMKuG+6KT2D+rFdoN/U=
X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,
	RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

On Wed, 11 Nov 2020 08:31:50 +0100
leirbag <leirbag@sdfeu.org> wrote:

> Package: devuan-desktop
> Severity: normal
> 
> Dear Maintainer,
> 
> Booting process hangs on what seems to be the initialisation of
> network: it remains on
> 
> Configuring network interfaces...ifup: waiting for lock on 
> /run/network/ifstate.eth0
> 
> for a long time (I hence usually skip this phase with C-c). When
> logging into the desktop, internet is available (through eth0).
> 
> The setup is very close to the default one (wicd is used).
> 
> -- System Information:
> Distributor ID: Debian
> Description:    Devuan GNU/Linux 3 (beowulf)
> Release:        3
> Codename:       beowulf
> Architecture: x86_64
> 
> Kernel: Linux 4.19.0-12-amd64 (SMP w/4 CPU cores)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
> TAINT_UNSIGNED_MODULE
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
> LANGUAGE=en_GB:en (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: sysvinit (via /sbin/init)
> LSM: AppArmor: enabled

Hi,
I worked around this by changing /etc/network/interfaces to:

______________________________________________________________
iface eth0 inet manual
        pre-up /sbin/ip link set eth0 up
        up /sbin/dhclient -nw -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhclient6.eth0.leases eth0
        pre-down /sbin/dhclient -r -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhclient6.eth0.leases eth0
        down /sbin/ip link set eth0 down
______________________________________________________________

and installing ifplugd and setting /etc/default/ifplugd to:

______________________________________________________________
INTERFACES="eth0"
HOTPLUG_INTERFACES=""
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
______________________________________________________________

This way boot is fast and the network is setup in the background 
as soon as ifplugd detects the link beat.
Don't know how this will interact with wicd.

Ciao,
Tito

 

Acknowledgement sent to tito <farmatito@tiscali.it>:
Extra info received and forwarded to list. Copy sent to Devuan Developers <devuan-dev@lists.dyne.org>. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#521; Package devuan-desktop. Full text available.

Message received at 521@bugs.devuan.org:


Received: (at 521) by bugs.devuan.org; 11 Nov 2020 08:30:06 +0000
Return-Path: <leirbag@sdfeu.org>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 11 Nov 2020 08:30:06 +0000 (UTC)
Received: from sdfeu.org (sdf-eu.org [178.63.35.195])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 5CB26F60914
	for <521@bugs.devuan.org>; Wed, 11 Nov 2020 09:19:20 +0100 (CET)
Received: from sdfeu.org (IDENT:www@odin.sdf-eu.org [178.63.35.195])
	by sdfeu.org (8.15.2/8.14.3) with ESMTP id 0AB8JKd8003918
	for <521@bugs.devuan.org>; Wed, 11 Nov 2020 08:19:21 GMT
Authentication-Results: sdfeu.org; dkim=none
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Wed, 11 Nov 2020 09:19:20 +0100
From: leirbag <leirbag@sdfeu.org>
To: 521@bugs.devuan.org
Subject: Possible cause of problem
Message-ID: <454e7d8e7c9043138b8d5dadbfb204e5@mx.sdfeu.org>
X-Sender: leirbag@mx.sdfeu.org
User-Agent: Roundcube Webmail/1.3.9
X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Hi,

Section 5.2.1 of Debian Handbook suggests that wicd might conflict with 
ifup, and hence advise to keep the file /etc/network/interfaces as 
simple as possible, such as

auto lo
iface lo inet loopback

or disable wicd and let ifup do the work. Perhaps the default 
/etc/network/interfaces should be changed?

-- My /etc/network/interfaces:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 auto

Acknowledgement sent to leirbag <leirbag@sdfeu.org>:
Extra info received and forwarded to list. Copy sent to Devuan Developers <devuan-dev@lists.dyne.org>. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#521; Package devuan-desktop. Full text available.

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 11 Nov 2020 07:40:03 +0000
Return-Path: <leirbag@sdfeu.org>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 11 Nov 2020 07:40:03 +0000 (UTC)
Received: from sdfeu.org (sdf-eu.org [178.63.35.195])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id B4BE8F608DA
	for <submit@bugs.devuan.org>; Wed, 11 Nov 2020 08:31:50 +0100 (CET)
Received: from sdfeu.org (IDENT:www@odin.sdf-eu.org [178.63.35.195])
	by sdfeu.org (8.15.2/8.14.3) with ESMTP id 0AB7VoJp018138
	for <submit@bugs.devuan.org>; Wed, 11 Nov 2020 07:31:51 GMT
Authentication-Results: sdfeu.org; dkim=none
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Wed, 11 Nov 2020 08:31:50 +0100
From: leirbag <leirbag@sdfeu.org>
To: submit@bugs.devuan.org
Subject: boot hangs on 'ifup: waiting for lock'
Message-ID: <66e6c6cf59036097f0df1e91d172840a@mx.sdfeu.org>
X-Sender: leirbag@mx.sdfeu.org
User-Agent: Roundcube Webmail/1.3.9
X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Package: devuan-desktop
Severity: normal

Dear Maintainer,

Booting process hangs on what seems to be the initialisation of network:
it remains on

Configuring network interfaces...ifup: waiting for lock on 
/run/network/ifstate.eth0

for a long time (I hence usually skip this phase with C-c). When logging
into the desktop, internet is available (through eth0).

The setup is very close to the default one (wicd is used).

-- System Information:
Distributor ID: Debian
Description:    Devuan GNU/Linux 3 (beowulf)
Release:        3
Codename:       beowulf
Architecture: x86_64

Kernel: Linux 4.19.0-12-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Acknowledgement sent to leirbag <leirbag@sdfeu.org>:
New bug report received and forwarded. Copy sent to Devuan Developers <devuan-dev@lists.dyne.org>. Full text available.
Report forwarded to devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#521; Package devuan-desktop. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Tue, 17 May 2022 16:39:01 UTC