systemdctl State: degraded – una unit ha fallito l’avvio

Se controllando lo status del demone systemd con

systedctl status

compare  State: degraded

systemctl status State degraded

maurizio@deb9:~$ systemctl status
● deb9
    State: degraded
     Jobs: 0 queued
   Failed: 1 units
    Since: Sun 2017-08-04 14:01:22 CET; 6h ago
   CGroup: /
           ├─user.slice
           │ └─user-1000.slice
           │   ├─ session-2.scope

questo sta a significare che una delle units ha fallito l’avvio.

Per controllare quale unit è coinvolta utilizzare il comando

systemctl –failed

maurizio@deb9:~$ systemctl --failed
  UNIT               LOAD   ACTIVE SUB    DESCRIPTION                                                                              
● networking.service loaded failed failed Raise network interfaces                                                                 

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

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

controlliamo lo unit con systemctl status networking.service

maurizio@deb9:~$ systemctl status networking.service 
root@deb9:/etc/network/interfaces.d# systemctl status networking.service
 networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-02-04 20:36:48 CET; 31s ago
     Docs: man:interfaces(5)
  Process: 17836 ExecStop=/sbin/ifdown -a --read-environment --exclude=lo (code=exited, status=0/SUCCESS)
  Process: 17863 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
  Process: 17857 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude
 Main PID: 17863 (code=exited, status=1/FAILURE)

Aug 04 20:36:47 deb9 ifup[17863]: than a configuration issue please read the section on submitting
Aug 04 20:36:47 deb9 ifup[17863]: bugs on either our web page at www.isc.org or in the README file
Aug 04 20:36:47 deb9 ifup[17863]: before submitting a bug.  These pages explain the proper
Aug 04 20:36:47 deb9 ifup[17863]: process and the information we find helpful for debugging..
Aug  04 20:36:47 deb9 ifup[17863]: exiting.
Aug 04 20:36:47 deb9 ifup[17863]: ifup: failed to bring up eth0
Aug 04 20:36:48 deb9 systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Aug 04 20:36:48 deb9 systemd[1]: Failed to start Raise network interfaces.
Aug 04 20:36:48 deb9 systemd[1]: networking.service: Unit entered failed state.
Aug 04 20:36:48 deb9 systemd[1]: networking.service: Failed with result 'exit-code'.


In questo caso ricontrollare e sistemare le impostazioni riguardanti i servizi di rete.

 

Risorse:

 

Annunci

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

w

Connessione a %s...