Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

network-online.target not found?

Dude!May 14 2019 — edited May 19 2019

Hi,

While troubleshooting some issues (OL 7.6, UEK4), I noticed the following:

[root@localhost system]# journalctl -x | grep network-online.target

-- Subject: Unit network-online.target has finished start-up

-- Unit network-online.target has finished starting up.

May 14 21:43:51 localhost.localdomain systemd[1]: Cannot add dependency job for unit
network-online.target, ignoring: Unit not found.

  1. How do I find out what causes the issue: I can do journalctl -x, but it just seems to spit out these
    messages whenever they occur. In fact /usr/lib/systemd/system/initrd-cleanup.service has no reference
    to network-online.target.

-- Unit initrd-cleanup.service has begun starting up.

May 14 18:36:36 localhost.localdomain systemd[1]: Cannot add dependency job for unit network-online.target

May 14 18:36:36 localhost.localdomain systemd[1]: Cannot add dependency job for unit network-online.target

May 14 18:36:36 localhost.localdomain systemd[1]: Cannot add dependency job for unit network-online.target

May 14 18:36:36 localhost.localdomain systemd[1]: Stopped target Timers.

-- Subject: Unit timers.target has finished shutting down

Is it systemd itself?

Here's some more analysis:

[root@localhost system]# ls -l network-online.target.wants/

total 4

lrwxrwxrwx. 1 root root 58 Apr 26 23:42 NetworkManager-wait-online.service
   -> /usr/lib/systemd/system/NetworkManager-wait-online.service

[root@localhost system]# ls -ld /etc/systemd/system/network-online.target.wants

drwxr-xr-x. 1 root root 68 Apr 26 23:42 /etc/systemd/system/network-online.target.wants

The following also exists (hard link):

[root@localhost systemd]# ls -ld /usr/lib/systemd/system/network-online.target

-rw-r--r--. 1 root root 464 Apr 23 16:40 /usr/lib/systemd/system/network-online.target

[root@localhost system]# ls -i /lib/systemd/system/network-online.target

51394 /lib/systemd/system/network-online.target

[root@localhost system]# ls -i /usr/lib/systemd/system/network-online.target

51394 /usr/lib/systemd/system/network-online.target

[root@localhost system]# systemctl status network-online.target

network-online.target - Network is Online

   Loaded: loaded (/usr/lib/systemd/system/network-online.target; static; vendor preset: disabled)

   Active: active since Tue 2019-05-14 21:43:53 CEST; 2h 3min ago

     Docs: man:systemd.special(7)

           http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget

May 14 21:43:53 localhost.localdomain systemd[1]: Reached target Network is Online.

[root@localhost system]# systemctl --user status network-online.target

Failed to get D-Bus connection: No such file or directory

[root@localhost ~]# grep -R "network-online.target" /usr/lib/systemd/user (and /etc/systemd/user)

-> finds nothing

[root@localhost user]# journalctl --user

No journal files were found.

-- No entries --

There's some stuff in /etc/init.d and some uses $network - which systemd-sysv-generator translates

to online-target. But where's the problem?

How to tell what service unit causes the issue and why?

Thanks!

Comments
Post Details
Added on May 14 2019
11 comments
1,263 views