You are not logged in.

#1 2018-07-30 09:33:59

TheGoliath
Member
From: Germany
Registered: 2017-03-24
Posts: 51
Website

[Solved] network-online.target is inactive(dead)

Greetz,
I'm currently running into a problem on  two of my school's servers.
Both of them have configured network interfaces (one, our router has statically assigned IP-Addresses)
and our other kubernetes cluster mirror get's the IPs for both interfaces via DHCP..

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:22:4d:66:XX:XX brd ff:ff:ff:ff:ff:ff
    inet 10.9.1.11/16 brd 10.9.255.255 scope global dynamic enp0s25
       valid_lft 85699sec preferred_lft 85699sec
    inet6 fe80::222:4dff:fe66:92f2/64 scope link 
       valid_lft forever preferred_lft forever
3: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:22:4d:66:XX:XX brd ff:ff:ff:ff:ff:ff
    inet 10.9.1.10/16 brd 10.9.255.255 scope global dynamic enp2s0
       valid_lft 85700sec preferred_lft 85700sec
    inet6 fe80::222:4dff:fe66:92f1/64 scope link 
       valid_lft forever preferred_lft forever
4: cbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:65:05:65:XX:XX brd ff:ff:ff:ff:ff:ff

I already had removed the bridge one time so only the interfaces with the loopback interface were available but the target still seems to be down.
I hope, that anyone here can help me out with that. I'd be glad.

Further information:
Kernel: 4.14.56-1-lts
systemctl list-units --failed

0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

systectl status network-online.target

● network-online.target - Network is Online
   Loaded: loaded (/usr/lib/systemd/system/network-online.target; static; vendor >
   Active: inactive (dead)
     Docs: man:systemd.special(7)
           [url]https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget[/url]

Best regards,
Felix

EDIT.: I had some fuckups. I accidentally didn't replace a placeholder with a proper variable in a systemd edit of systemd-networkd-wait-online.service

Thanks for your support/help

Last edited by TheGoliath (2018-08-31 18:23:06)

Offline

#2 2018-07-30 14:04:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [Solved] network-online.target is inactive(dead)

What does the journal tell you?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2018-07-30 15:09:00

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [Solved] network-online.target is inactive(dead)

What service have you enabled that would pull in network-online.target?

Offline

#4 2018-08-07 12:12:23

TheGoliath
Member
From: Germany
Registered: 2017-03-24
Posts: 51
Website

Re: [Solved] network-online.target is inactive(dead)

Hello,
sorry for the late reply. I have e.g. a nfsd running which depends on the network-online.target.
As I've told ya, the systemctl status network-online.target says no (Computer says no big_smile)

● network-online.target - Network is Online
   Loaded: loaded (/usr/lib/systemd/system/network-online.target; static; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:systemd.special(7)
           [url]https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget[/url]

The journal doesn't tell me anything neccessary. I'm currently running the default DHCP config for systemd-networkd
https://wiki.archlinux.org/index.php/sy … using_DHCP
So it should normally work. I also have a bridge setup:
/etc/systemd/network/cbr0.network

[Match]
Name=cbr0

[Address]
Address=10.210.0.1/24

/etc/systemd/network/cbr.netdev

[NetDev]
Name=cbr0
Kind=bridge

If any further information is needed, tell me tongue

Cheers,
- TheGoliath

Offline

#5 2018-08-07 12:21:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: [Solved] network-online.target is inactive(dead)

You have to enable systemd-networkd-wait-online.service for systemd-networkd to invoke network-online.target .

Offline

#6 2018-08-07 12:21:19

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [Solved] network-online.target is inactive(dead)

So you have not enabled systemd-networkd-wait-online.service ?
Edit:
beaten by V1del.

Last edited by loqs (2018-08-07 12:22:09)

Offline

#7 2018-08-07 12:47:49

TheGoliath
Member
From: Germany
Registered: 2017-03-24
Posts: 51
Website

Re: [Solved] network-online.target is inactive(dead)

It is enabled by default in my setup but it won't come up properly. (I've created an override.conf file which selects only one interface and the things starts successfully but won't come up on boot either. But it normally should come up on boot without any further intervention, shouldn't it?)

Screenshot:
https://imgur.com/a/OHe0XsM

EDIT.:
systemd-networkd-wait-online.service gives me the following error after a while
https://imgur.com/a/UVOobDf

Last edited by TheGoliath (2018-08-07 13:08:00)

Offline

#8 2018-08-14 13:59:04

TheGoliath
Member
From: Germany
Registered: 2017-03-24
Posts: 51
Website

Re: [Solved] network-online.target is inactive(dead)

Hello guys,
I started a new thread which may be the cause of my problem with the network-online.target.
https://bbs.archlinux.org/viewtopic.php … 1#p1802371

If someone is interested in it.

Cheers,
TheGoliath

Offline

#9 2018-08-31 18:23:33

TheGoliath
Member
From: Germany
Registered: 2017-03-24
Posts: 51
Website

Re: [Solved] network-online.target is inactive(dead)

Solved (see 1st post)

Offline

Board footer

Powered by FluxBB