Boots delay at A start job is running for LSB:

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Boots delay at A start job is running for LSB:

Postby emel_punk » Mar 12th, '20, 19:54

EHLO

I have this small issue, when I boot up the system get stuck for about 50 60 seconds wating and the output of the last line shows:

A start job is running for LSB: Wait for the hotplugged network to be up

what can I do to fix this and speed up my boot?
emel_punk
 
Posts: 39
Joined: May 28th, '13, 22:50

Re: Boots delay at A start job is running for LSB:

Postby doktor5000 » Mar 13th, '20, 17:08

Can you post the output as root of
Code: Select all
systemd-analyze blame | head
systemctl status network-up -al -n50


Usually you should be fine by just disabling network-up service, depending on your network setup.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Boots delay at A start job is running for LSB:

Postby emel_punk » Mar 13th, '20, 17:52

EHLO, This is the output:
Code: Select all
[root@localhost eromo]# systemd-analyze blame | head
         66.997s network-up.service
          2.480s systemd-udev-settle.service
          1.935s mandriva-everytime.service
          1.847s upower.service
          1.690s network.service
          1.653s systemd-logind.service
          1.510s shorewall6.service
          1.326s dev-sda2.device
           913ms udisks2.service
           906ms mga-bg-res.service
[root@localhost eromo]# systemctl status network-up -al -n50
● network-up.service - LSB: Wait for the hotplugged network to be up
   Loaded: loaded (/etc/rc.d/init.d/network-up; generated)
   Active: active (exited) since Fri 2020-03-13 08:01:44 -05; 2h 44min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 947 ExecStart=/etc/rc.d/init.d/network-up start (code=exited, status=0/SUCCESS)

Mar 13 08:01:07 localhost systemd[1]: Starting LSB: Wait for the hotplugged network to be up...
Mar 13 08:01:44 localhost network-up[947]: Waiting for network to be up[FAILED]
Mar 13 08:01:44 localhost systemd[1]: Started LSB: Wait for the hotplugged network to be up.
Last edited by isadora on Mar 13th, '20, 20:31, edited 1 time in total.
Reason: Placed command-output in between [CODE]-tags for better readability ;)
emel_punk
 
Posts: 39
Joined: May 28th, '13, 22:50

Re: Boots delay at A start job is running for LSB:

Postby doktor5000 » Mar 14th, '20, 16:06

As expected, boot is waiting nearly 70 seconds for network-up:
66.997s network-up.service


Try simply disabling it, reboot and see if the delay is gone and if your network is up. As root
Code: Select all
systemctl mask network-up.service


Please also post what /etc/sysconfig/network-scripts/ifcfg-* files you currently have, and whether those are configured to be brought up on boot, and whether DHCP or static adress.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Boots delay at A start job is running for LSB:

Postby emel_punk » Mar 16th, '20, 17:33

Code: Select all
[eromo@localhost network-scripts]$ ls -l  /etc/sysconfig/network-scripts/ifcfg-*
-rw-r--r-- 1 root root  43 Mar 14 12:57 /etc/sysconfig/network-scripts/ifcfg-enp0s16u1
-rwxr-xr-x 1 root root 216 Mar 12 12:33 /etc/sysconfig/network-scripts/ifcfg-enp0s18u1u1*
-rwxr-xr-x 1 root root  72 Mar 11 18:13 /etc/sysconfig/network-scripts/ifcfg-enp2s0*
-rw-r--r-- 1 root root 254 Feb 15  2019 /etc/sysconfig/network-scripts/ifcfg-lo
-rwxr-xr-x 1 root root  72 Mar 11 18:13 /etc/sysconfig/network-scripts/ifcfg-wlp1s0*
[eromo@localhost network-scripts]$ cat /etc/sysconfig/network-scripts/ifcfg-enp0s16u1
DEVICE=enp0s16u1
BOOTPROTO=dhcp
ONBOOT=yes
[eromo@localhost network-scripts]$ cat /etc/sysconfig/network-scripts/ifcfg-enp0s18u1u1
DEVICE=enp0s18u1u1
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=yes
RESOLV_MODS=no
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=no
DHCP_CLIENT=dhclient
NEEDHOSTNAME=no
PEERDNS=yes
PEERYP=yes
PEERNTPD=no
[eromo@localhost network-scripts]$ cat  /etc/sysconfig/network-scripts/ifcfg-enp2s0*
DEVICE=enp2s0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
METRIC=10
[eromo@localhost network-scripts]$ cat /etc/sysconfig/network-scripts/ifcfg-wlp1s0*
DEVICE=wlp1s0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
METRIC=30
emel_punk
 
Posts: 39
Joined: May 28th, '13, 22:50

Re: Boots delay at A start job is running for LSB:

Postby doktor5000 » Mar 16th, '20, 19:29

OK, but you're missing some context information. You've got 3 wired and 1 wireless interface, which one do you actually use? If you only use 1 wired interface, no wonder why you're seeing a delay to bring up a nonexistent interface ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Boots delay at A start job is running for LSB:

Postby emel_punk » Mar 17th, '20, 19:13

I use a wired one (lan) enp2s0 but sometimes I need to use my smartphone to connect which are enp0s16u1 enp0s18u1u1, the cofiguration stays there I guess :shock:
emel_punk
 
Posts: 39
Joined: May 28th, '13, 22:50

Re: Boots delay at A start job is running for LSB:

Postby doktor5000 » Mar 18th, '20, 18:32

It should suffice if you change the smartphone configs from ONBOOT=yes to ONBOOT=no so the system does not try to bring them up during boot.

Do you remember which tool you used to configure those interfaces in the first place ? Cf. http://doc.mageia.org/mcc/7/en/content/mcc-network.html
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17629
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron