Failed to start raise network interfaces

Kernels & Hardware, configuring network, installing services

Failed to start raise network interfaces

Postby Sartun25 » 2020-10-16 20:58

Hello,

I know that already exists a few questions about this error, but none of the fit very well with my problem.

when I start Debian (buster with gnome) I get an error message saying the following:
Code: Select all
[Failed] Failed to start Raise network interfaces.
See 'systemctl status networking.service' for details.


I already tried the following lines as suggested on the other questions
Code: Select all
systemctl cat networking.service

and

Code: Select all
# journalctl -u networking.service --no-pager

and It retrives, respectively, to me the following:

Code: Select all
[Unit]
Description=Raise network interfaces
Documentation=man:interfaces(5)
DefaultDependencies=no
Requires=ifupdown-pre.service
Wants=network.target
After=local-fs.target network-pre.target apparmor.service systemd-sysctl.service systemd-modules-load.service ifupdown-pre.service
Before=network.target shutdown.target network-online.target
Conflicts=shutdown.target

[Install]
WantedBy=multi-user.target
WantedBy=network-online.target

[Service]
Type=oneshot
EnvironmentFile=-/etc/default/networking
ExecStart=/sbin/ifup -a --read-environment
ExecStop=/sbin/ifdown -a --read-environment --exclude=lo
RemainAfterExit=true
TimeoutStartSec=5min

and

Code: Select all
-- Logs begin at Fri 2020-10-16 17:46:01 -03, end at Fri 2020-10-16 18:14:32 -03. --
out 16 17:46:12 debian systemd[1]: Starting Raise network interfaces...
out 16 17:46:14 debian dhclient[653]: Internet Systems Consortium DHCP Client 4.4.1
out 16 17:46:14 debian ifup[561]: Internet Systems Consortium DHCP Client 4.4.1
out 16 17:46:14 debian ifup[561]: Copyright 2004-2018 Internet Systems Consortium.
out 16 17:46:14 debian ifup[561]: All rights reserved.
out 16 17:46:14 debian ifup[561]: For info, please visit https://www.isc.org/software/dhcp/
out 16 17:46:14 debian dhclient[653]: Copyright 2004-2018 Internet Systems Consortium.
out 16 17:46:14 debian dhclient[653]: All rights reserved.
out 16 17:46:14 debian dhclient[653]: For info, please visit https://www.isc.org/software/dhcp/
out 16 17:46:14 debian dhclient[653]:
out 16 17:46:15 debian ifup[561]: Cannot find device "eth0"
out 16 17:46:15 debian dhclient[653]: Failed to get interface index: No such device
out 16 17:46:15 debian ifup[561]: Failed to get interface index: No such device
out 16 17:46:15 debian ifup[561]: If you think you have received this message due to a bug rather
out 16 17:46:15 debian ifup[561]: than a configuration issue please read the section on submitting
out 16 17:46:15 debian ifup[561]: bugs on either our web page at www.isc.org or in the README file
out 16 17:46:15 debian ifup[561]: before submitting a bug.  These pages explain the proper
out 16 17:46:15 debian ifup[561]: process and the information we find helpful for debugging.
out 16 17:46:15 debian ifup[561]: exiting.
out 16 17:46:15 debian dhclient[653]:
out 16 17:46:15 debian dhclient[653]: If you think you have received this message due to a bug rather
out 16 17:46:15 debian dhclient[653]: than a configuration issue please read the section on submitting
out 16 17:46:15 debian dhclient[653]: bugs on either our web page at www.isc.org or in the README file
out 16 17:46:15 debian dhclient[653]: before submitting a bug.  These pages explain the proper
out 16 17:46:15 debian dhclient[653]: process and the information we find helpful for debugging.
out 16 17:46:15 debian dhclient[653]:
out 16 17:46:15 debian dhclient[653]: exiting.
out 16 17:46:15 debian ifup[561]: ifup: failed to bring up eth0
out 16 17:46:15 debian systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
out 16 17:46:15 debian systemd[1]: networking.service: Failed with result 'exit-code'.
out 16 17:46:15 debian systemd[1]: Failed to start Raise network interfaces.


But read all of it, but as a begginer I couldn't understand what's wrong but the network had been configured automatically with DHCP during the installation. I am still able to connect to the internet, also if I sometimes have to reboot, because I get the massage that the connection had been deactivated. The system is newly installed and the problem existed from beginning.

Thank you for your help!
Sartun25

PS: I just copy some parts from an older question because I don't know English very well
Sartun25
 
Posts: 1
Joined: 2020-10-16 20:32

Re: Failed to start raise network interfaces

Postby Head_on_a_Stick » 2020-10-16 21:14

Sartun25 wrote:
Code: Select all
out 16 17:46:15 debian ifup[561]: Cannot find device "eth0"

Looks like /etc/network/interfaces lists the wrong name for your ethernet interface. Use this to find the actual name of the interface:
Code: Select all
ip link

See also https://www.freedesktop.org/wiki/Softwa ... faceNames/

Sartun25 wrote:I am still able to connect to the internet

If you are still connected after networking.service fails then you must be using NetworkManager. In that case either delete (or comment out) the eth0 lines in /etc/network/interfaces or correct the interface name in that file. If you correct the name in /etc/network/interfaces then NetworkManager will stop attempting to configure it so you could then remove NetworkManager if you don't need it for anything else.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Failed to start raise network interfaces

Postby p.H » 2020-10-17 08:01

Also check existing files in /etc/network/interfaces.d/. I have seen several posts stating that there was a bogus "setup" file containing a stanza for eth0 after installation. Just remove that file.
p.H
 
Posts: 1489
Joined: 2017-09-17 07:12


Return to System configuration

Who is online

Users browsing this forum: arzgi, Bernoot and 20 guests

fashionable