You are not logged in.

#1 2014-03-01 13:41:39

bbarcher
Member
From: Poland
Registered: 2014-02-27
Posts: 174
Website

[SOLVED] NetworkManager service - activation of eth0 failed

I followed the wiki Beginner's guide. I finally managed to install arch, mind with a working internet connection (wired only). This was working fine even after I booted to Gnome. Then I:
installed network manager applet
enabled and started network manager service

sysctl enable NetworkManager

used the standard applet to connect to my wifi

From now on the constant on/off happens. When it stops, I don't get a connection anyway.

ping 8.8.8.8
connect: Network unreachable

Merely disabling back the network manager service and restarting resulted in the connection going back online.


EDIT:
It turns out the NetworkManager service fails to establish a connection.
Basic info:

(a) my hostname is arch3
(b) change of the network interface name:
During the `ip link` reported enp0s25 to be my ethernet interface name. After full installation of the system it changed to  eth0

# current /etc/hosts
#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   arch3
::1             localhost.localdomain   arch3
#current /etc/netctl/my_network                          
Description='A basic dhcp ethernet connection'
Interface=eth0
Connection=ethernet
IP=dhcp
## for DHCPv6
#IP6=dhcp
## for IPv6 autoconfiguration
#IP6=stateless
# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 00:21:86:a2:0b:4c brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
    link/ether 00:21:6b:ae:42:48 brd ff:ff:ff:ff:ff:ff

The current NetworkManager status

# systemctl status NetworkManager.service
NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled)
   Active: active (running) since Sat 2014-03-01 21:33:35 CET; 2min 30s ago
 Main PID: 153 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           └─153 /usr/bin/NetworkManager --no-daemon

Mar 01 21:35:07 arch3 NetworkManager[153]: <info> (eth0): IP6 addrconf timed out or failed.
Mar 01 21:35:07 arch3 NetworkManager[153]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Mar 01 21:35:07 arch3 NetworkManager[153]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Mar 01 21:35:07 arch3 NetworkManager[153]: <info> (eth0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Mar 01 21:35:07 arch3 NetworkManager[153]: <info> NetworkManager state is now DISCONNECTED
Mar 01 21:35:07 arch3 NetworkManager[153]: <info> Marking connection 'Wired connection 1' invalid.
Mar 01 21:35:07 arch3 NetworkManager[153]: <warn> Activation (eth0) failed for connection 'Wired connection 1'
Mar 01 21:35:07 arch3 NetworkManager[153]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Mar 01 21:35:07 arch3 NetworkManager[153]: <info> (eth0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Mar 01 21:35:07 arch3 NetworkManager[153]: <info> (eth0): deactivating device (reason 'none') [0]

NetworkManager service disabled, reboot, `systemctl start NetworkManager.service`
Status:

# systemctl status NetworkManager.service
NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled)
   Active: active (running) since Sat 2014-03-01 21:55:27 CET; 1min 20s ago
 Main PID: 1206 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           └─1206 /usr/bin/NetworkManager --no-daemon

Mar 01 21:56:37 arch3 NetworkManager[1206]: <info> Activation (enp0s25) Stage 3 of 5 (IP Configure Start) started...
Mar 01 21:56:37 arch3 NetworkManager[1206]: <info> (enp0s25): device state change: config -> ip-config (reason 'none') [50 70 0]
Mar 01 21:56:37 arch3 NetworkManager[1206]: <info> Activation (enp0s25) Beginning DHCPv4 transaction (timeout in 45 seconds)
Mar 01 21:56:37 arch3 NetworkManager[1206]: <info> dhcpcd started with pid 1341
Mar 01 21:56:37 arch3 NetworkManager[1206]: <info> Activation (enp0s25) Beginning IP6 addrconf.
Mar 01 21:56:37 arch3 NetworkManager[1206]: <info> Activation (enp0s25) Stage 3 of 5 (IP Configure Start) complete.
Mar 01 21:56:37 arch3 NetworkManager[1206]: <info> (enp0s25): DHCPv4 client pid 1341 exited with status 0
Mar 01 21:56:37 arch3 NetworkManager[1206]: <info> Activation (enp0s25) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Mar 01 21:56:37 arch3 NetworkManager[1206]: <info> Activation (enp0s25) Stage 4 of 5 (IPv4 Configure Timeout) started...
Mar 01 21:56:37 arch3 NetworkManager[1206]: <info> Activation (enp0s25) Stage 4 of 5 (IPv4 Configure Timeout) complete.

Please let me know if I should provide any other info.

PS.
Some guides tell to edit /etc/hosts, while the arch Beginner's guide advises against it without stating the reason. Here's the clarification:

You no longer need to edit /etc/hosts, systemd will provide host name resolution, and is installed on all systems by default.

https://wiki.archlinux.org/index.php/Ne … e_hostname

Last edited by bbarcher (2014-03-05 09:21:19)


Put up or shut up. 
--Austin Meyer, the lead developer of X-Plane
[ url=http://... ]  Text  [ /url ]

Offline

#2 2014-03-01 23:35:50

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] NetworkManager service - activation of eth0 failed

Are you trying to use Network Manager or netctl?  You posted a config file for netctl, but mentioned you were trying to get Network Manager working.

Offline

#3 2014-03-02 08:36:41

bbarcher
Member
From: Poland
Registered: 2014-02-27
Posts: 174
Website

Re: [SOLVED] NetworkManager service - activation of eth0 failed

I was under the impression that netctl is a low-level component while NetworkManager is a high-level component. This page https://wiki.archlinux.org/index.php/NetworkManager doesn't seem to mention netctl is in conflict with NM etc.

I would like to use NM. How do I proceed?

Last edited by bbarcher (2014-03-02 08:53:59)


Put up or shut up. 
--Austin Meyer, the lead developer of X-Plane
[ url=http://... ]  Text  [ /url ]

Offline

#4 2014-03-02 09:32:35

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] NetworkManager service - activation of eth0 failed

bbarcher wrote:

I was under the impression that netctl is a low-level component while NetworkManager is a high-level component. This page https://wiki.archlinux.org/index.php/NetworkManager doesn't seem to mention netctl is in conflict with NM etc.

At the start ("Base install") is a note (with color and everything):

Note: You must ensure that no other service that wants to configure the network is running, in fact multiple networking services will conflict. You can find a list of the currently running services with systemctl --type=service and then stop them.

And look at your problem description: NM can't establish a connection, but when you disable NM, something else does establish a connection -- they're both trying to do the same thing.

Offline

#5 2014-03-02 11:01:20

bbarcher
Member
From: Poland
Registered: 2014-02-27
Posts: 174
Website

Re: [SOLVED] NetworkManager service - activation of eth0 failed

Raynman wrote:

At the start ("Base install") is a note (with color and everything)

Yes, I've seen that bit. At the same time I had more than one reason to expect netctl and NM are complementary and not conflicting. I've read few arch pages on network configuration and only one clearly presented both as components doing the same thing. It was https://wiki.archlinux.org/index.php/Li … k_Managers (AFAIK not included in the table of contents of https://wiki.archlinux.org/index.php/Ne … figuration , just in the 'related' section on the right)
Inconsistent naming (program, application, service).

I'm not blaming the wiki entirely. Just asking anyone to be considerate of 'what's obvious for me may not be ovious for others`, even to those who actually read the relevant wiki pages.

Raynman wrote:

And look at your problem description: NM can't establish a connection, but when you disable NM, something else does establish a connection -- they're both trying to do the same thing.

I get that I need to disable netctl.

# netctl stop-all

# netctl disable my_network
  No regular unit file found for profile 'my_network'

# netctl list
  my_network
  my_network.bak

Acquired after issuing the above

# netctl status my_network
netctl@my_network.service - Networking for netctl profile my_network
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: inactive (dead)
     Docs: man:netctl.profile(5)


# systemctl status netctl@my_network.service
netctl@my_network.service - Networking for netctl profile my_network
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: inactive (dead)
     Docs: man:netctl.profile(5)

dmesg does not mention netctl.

# dmesg | grep eth0
[    2.950568] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) 00:21:86:a2:0b:4c
[    2.950573] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
[    2.950597] e1000e 0000:00:19.0 eth0: MAC: 7, PHY: 8, PBA No: 1008FF-0FF
[    3.056853] systemd-udevd[148]: renamed network interface eth0 to enp0s25

# dmesg | grep enp0s25
[    3.056853] systemd-udevd[148]: renamed network interface eth0 to enp0s25
[    4.964226] e1000e: enp0s25 NIC Link is Up 100 Mbps Full Duplex, Flow Control: Rx/Tx
[    4.964337] e1000e 0000:00:19.0 enp0s25: 10/100 speed: disabling TSO

Last edited by bbarcher (2014-03-02 11:28:04)


Put up or shut up. 
--Austin Meyer, the lead developer of X-Plane
[ url=http://... ]  Text  [ /url ]

Offline

#6 2014-03-02 16:24:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] NetworkManager service - activation of eth0 failed

I am afraid I have lost the bubble as to this thread.   So, lets re-baseline. 
I see you disabled netctl.  You did not explicitly stop it, but it appeared dead.  Why don't you reboot at this point and see what happens.  If it does not work, post the output of systemctl --no-pager

Last edited by ewaller (2014-03-02 23:12:54)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2014-03-02 21:18:41

bbarcher
Member
From: Poland
Registered: 2014-02-27
Posts: 174
Website

Re: [SOLVED] NetworkManager service - activation of eth0 failed

Thank you for bearing with me.

Please note that although the netctl remains dead my network connection is fine. I've been using it normally and even added ipv6.disable=1 kernel parameter. I've disabled it before proceeding this time.


netctl - confirm it's dead

# systemctl status netctl
netctl.service - (Re)store the netctl profile state
   Loaded: loaded (/usr/lib/systemd/system/netctl.service; disabled)
   Active: inactive (dead)

NetworkManager service - enable and start. 'Disconnected' icon on the Gnome status bar appears after few seconds then goes off again. Few times. Then I check status of NM:

# systemctl status NetworkManager
NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled)
   Active: active (running) since Sun 2014-03-02 22:07:43 CET; 1min 49s ago
 Main PID: 168 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           └─168 /usr/bin/NetworkManager --no-daemon

Mar 02 22:09:14 arch3 NetworkManager[168]: <info> (enp0s25): IP6 addrconf timed out or failed.
Mar 02 22:09:14 arch3 NetworkManager[168]: <info> Activation (enp0s25) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Mar 02 22:09:14 arch3 NetworkManager[168]: <info> Activation (enp0s25) Stage 4 of 5 (IPv6 Configure Timeout) started...
Mar 02 22:09:14 arch3 NetworkManager[168]: <info> (enp0s25): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Mar 02 22:09:14 arch3 NetworkManager[168]: <info> NetworkManager state is now DISCONNECTED
Mar 02 22:09:14 arch3 NetworkManager[168]: <info> Marking connection 'Wired connection 1' invalid.
Mar 02 22:09:14 arch3 NetworkManager[168]: <warn> Activation (enp0s25) failed for connection 'Wired connection 1'
Mar 02 22:09:14 arch3 NetworkManager[168]: <info> Activation (enp0s25) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Mar 02 22:09:14 arch3 NetworkManager[168]: <info> (enp0s25): device state change: failed -> disconnected (reason 'none') [120 30 0]
Mar 02 22:09:14 arch3 NetworkManager[168]: <info> (enp0s25): deactivating device (reason 'none') [0]

Put up or shut up. 
--Austin Meyer, the lead developer of X-Plane
[ url=http://... ]  Text  [ /url ]

Offline

#8 2014-03-03 17:48:12

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] NetworkManager service - activation of eth0 failed

I don't know if this is why eth0 fails to connect, but this may help: https://bbs.archlinux.org/viewtopic.php?id=168029
ewaller is a great help by the way and he probably knows better, good luck with everything.


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#9 2014-03-03 21:51:08

bbarcher
Member
From: Poland
Registered: 2014-02-27
Posts: 174
Website

Re: [SOLVED] NetworkManager service - activation of eth0 failed

KARNVORbeefRAGE wrote:

I don't know if this is why eth0 fails to connect, but this may help: https://bbs.archlinux.org/viewtopic.php?id=168029
ewaller is a great help by the way and he probably knows better, good luck with everything.

This was it, thank you!


Put up or shut up. 
--Austin Meyer, the lead developer of X-Plane
[ url=http://... ]  Text  [ /url ]

Offline

#10 2014-03-05 03:36:28

KARNVORbeefRAGE
Member
Registered: 2013-06-20
Posts: 25

Re: [SOLVED] NetworkManager service - activation of eth0 failed

Don't forget to add [SOLVED] by editing one of your posts and editing the top title.  Glad I could help smile


"Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine."
-Nikola Tesla

Offline

#11 2014-03-05 09:18:06

bbarcher
Member
From: Poland
Registered: 2014-02-27
Posts: 174
Website

Re: [SOLVED] NetworkManager service - activation of eth0 failed

I know. I had it on my todo list smile Thanks again!


Put up or shut up. 
--Austin Meyer, the lead developer of X-Plane
[ url=http://... ]  Text  [ /url ]

Offline

Board footer

Powered by FluxBB