You are not logged in.

#1 2014-10-02 17:26:13

mrkernelpanic
Member
Registered: 2014-01-30
Posts: 43

[SOLVED] Can't start dhcpcd service

Hi,
I installed arch freshly and for some reboots connecting to the internet worked. Somehow I managed to mess it up.
I tried connecting to a openVPN network (which btw. failed) and when I came back to my other workplace, I could not connect to the internet.

The ethernet device is up according to ip link. When typing systemctl start dhcpcd@enp8s0 it tells me:

Failed to start dhcpcd@enp8s0.service: The name org.freedesktop.PolicxKit1 was not provided bz any .service files

Any hinters how I can restore the default settings I had after/during the installation? My openVPN connectivity problem is a whole other problem, but it would be nice if I could connect to the internet when a router is available...

Thank you!

Last edited by mrkernelpanic (2014-10-03 12:15:58)

Offline

#2 2014-10-02 17:55:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Can't start dhcpcd service

What is in your journal?


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-10-02 18:11:30

mrkernelpanic
Member
Registered: 2014-01-30
Posts: 43

Re: [SOLVED] Can't start dhcpcd service

Where do I find the journal?

I am doing troubleshooting right now. lspci -v gives me:

Ethernet controller: Realtek [...]
[...]
Capabilities: <acces denied>
Kernel driver in use: r8169
Kernel modules: r8169

However, dmesg | grep r8169 tells me:

[    2.062364]Gigabit Ehternet driver 2.3LK-NAPI loaded
[    2.062373]0000:08:00.0: can't disable APSM; OS doesn't have ASPM control
[    2.062658]0000:08:00.0: irq 45 for MSI/MIS-X
[    2.062857]0000:08:00.0 eth0: RTL8168evl/8111evl at 0xffffc90000c9e000, 3c:97:0e:69:ff:09 XID 0c900880 IRQ45
[    2.062861]0000:08:00.0 eth0: jumbo features [franes: 9200 bytes, tx checksumming: ko]
0000:08:00.0eth0: jumbo features [franes: 9200 bytes, tx checksumming: ko]

According to the Network configuration page in the wiki it should output something like this:

[...]
atl1 0000:02:00.0: eth0 link is up 100 Mbps full duplex

where of course I should have r8169 instead of atl1. However, as I understand it, my ethernet is currently not up, due to whatever reason.

ip link:

enp8s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
   link/ether 3c:97:0e:69:ff:09 brd ff:ff:ff:ff:ff:ff

after sudo ip link set enp8s0 up:

enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
   link/ether 3c:97:0e:69:ff:09 brd ff:ff:ff:ff:ff:ff
[    2.062364]Gigabit Ehternet driver 2.3LK-NAPI loaded
[    2.062373]0000:08:00.0: can't disable APSM; OS doesn't have ASPM control
[    2.062658]0000:08:00.0: irq 45 for MSI/MIS-X
[    2.062857]0000:08:00.0 eth0: RTL8168evl/8111evl at 0xffffc90000c9e000, 3c:97:0e:69:ff:09 XID 0c900880 IRQ45
[    2.062861]0000:08:00.0 eth0: jumbo features [franes: 9200 bytes, tx checksumming: ko]
[879.895710]0000:08:00.0 enps08: link down
[879.895746]0000:08:00.0 enp8s0: link down
[882.556016]0000:08:00.0 enp8s0: link up

systemctl enable dhcpcd@enp8s0 and systemctl start dhcpcd@enp8s0

Failed to execute operation: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Failed to start dhcpcd@enp8s0.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files

I hope these outputs will be helpful. If any other outputs/logs might be helpful to resolve this problem, please tell me and I will post them asap.

Aditional note: I have no networking manager installed as the connection with the router worked out of the box. I have openvpn installed which could(?) mess with my networking settings.

Last edited by mrkernelpanic (2014-10-02 18:31:54)

Offline

#4 2014-10-02 19:57:42

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [SOLVED] Can't start dhcpcd service

Where do I find the journal?

See: https://wiki.archlinux.org/index.php/systemd#Journal

Don't know whether there will be more information than what you posted already, but maybe try 'systemctl status dhcpcd@enp8s0.service' after it failed as well.

Edit: clarify

Last edited by rebootl (2014-10-02 19:58:33)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#5 2014-10-02 20:17:41

mrkernelpanic
Member
Registered: 2014-01-30
Posts: 43

Re: [SOLVED] Can't start dhcpcd service

Right after startup:

Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; disabled
Active: inactive (dead)

After systemctl enable dhcpcd@enp8s0 the same.

I will have a look at the journal link.

Edit: I have exported the journal and will upload it once I am home, I have trouble accesing the ntfs partitions and don't have my ubuntu live stick with me to move the file somewhere where i can upload it from.

Last edited by mrkernelpanic (2014-10-02 20:23:29)

Offline

#6 2014-10-02 21:47:46

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [SOLVED] Can't start dhcpcd service

After systemctl enable dhcpcd@enp8s0 the same.

Try again after 'systemctl start dhcpcd@enp8s0'. (Maybe the same as previously posted.)

(Maybe better use pastebin if it's a lot of journal data you will upload.)

Edit: wording

Last edited by rebootl (2014-10-02 21:48:21)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#7 2014-10-02 22:12:44

mrkernelpanic
Member
Registered: 2014-01-30
Posts: 43

Re: [SOLVED] Can't start dhcpcd service

Well, I have no idea what could be important, so I pasted the whole journal here (journal too big for pastebin, around 2MB).

Edit: Same output for systemctl start as before.

Another additional info that might be important: TUN/TAP is activated.

Last edited by mrkernelpanic (2014-10-02 22:26:07)

Offline

#8 2014-10-03 01:23:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Can't start dhcpcd service

Are you using sudo with that? This section looks suspicious:

Oct 02 20:59:23 lenovo_arch dhcpcd[448]: dhcpcd will not work correctly unless run as root
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: open `/run/dhcpcd.pid': Permission denied
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: control_start: No such file or directory
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: version 6.4.7 starting
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: write_path: /proc/sys/net/ipv6/conf/enp8s0/autoconf: Permission denied
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: enp8s0: adding address fe80::a5ef:45cc:346a:aadd
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: if_addaddress6: Operation not permitted
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: write_path: /proc/sys/net/ipv6/conf/wlp2s0/autoconf: Permission denied
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: wlp2s0: adding address fe80::a6cc:298f:5481:4430
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: if_addaddress6: Operation not permitted
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: no interfaces have a carrier
Oct 02 20:59:23 lenovo_arch dhcpcd[461]: enp8s0: if_up: Operation not permitted
Oct 02 20:59:23 lenovo_arch dhcpcd[461]: enp8s0: waiting for carrier
Oct 02 20:59:23 lenovo_arch dhcpcd[461]: wlp2s0: if_up: Operation not permitted
Oct 02 20:59:23 lenovo_arch dhcpcd[461]: wlp2s0: waiting for carrier
Oct 02 20:59:23 lenovo_arch dhcpcd[448]: forked to background, child pid 461
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: dhcpcd will not work correctly unless run as root
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: open `/run/dhcpcd.pid': Permission denied
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: control_start: No such file or directory
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: version 6.4.7 starting
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: write_path: /proc/sys/net/ipv6/conf/enp8s0/autoconf: Permission denied
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: enp8s0: adding address fe80::a5ef:45cc:346a:aadd
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: if_addaddress6: Operation not permitted
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: write_path: /proc/sys/net/ipv6/conf/wlp2s0/autoconf: Permission denied
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: wlp2s0: adding address fe80::a6cc:298f:5481:4430
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: if_addaddress6: Operation not permitted
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: no interfaces have a carrier
Oct 02 20:59:33 lenovo_arch dhcpcd[482]: enp8s0: if_up: Operation not permitted
Oct 02 20:59:33 lenovo_arch dhcpcd[482]: enp8s0: waiting for carrier
Oct 02 20:59:33 lenovo_arch dhcpcd[482]: wlp2s0: if_up: Operation not permitted
Oct 02 20:59:33 lenovo_arch dhcpcd[482]: wlp2s0: waiting for carrier
Oct 02 20:59:33 lenovo_arch dhcpcd[469]: forked to background, child pid 482

Offline

#9 2014-10-03 11:13:28

mrkernelpanic
Member
Registered: 2014-01-30
Posts: 43

Re: [SOLVED] Can't start dhcpcd service

Yes I did use sudo, but let me try as root too.

So after login as root:

#systemctl enable dhcpcd.service
   Created symlink from /etc/systemd/system/multi-user.target.wants/dhcpcd.service to /usr/lib/sysstemd/system/dhcpcd.service.
#ip link set enpd8s00 up
   enp8s0 <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000

So this results in a working DHCP:

● dhcpcd.service - dhcpcd on all interfaces
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled)
   Active: active (running) since Fri 2014-10-03 15:21:18 CEST; 5min ago
  Process: 317 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
 Main PID: 318 (dhcpcd)
   CGroup: /system.slice/dhcpcd.service
           └─318 /usr/bin/dhcpcd -q -b

Oct 03 15:26:00 lenovo_arch dhcpcd[318]: wlp2s0: if_sendrawpacket: Network is down
Oct 03 15:26:00 lenovo_arch dhcpcd[318]: wlp2s0: dhcp if_readrawpacket: Network is down
Oct 03 15:26:04 lenovo_arch dhcpcd[318]: wlp2s0: if_sendrawpacket: Network is down
Oct 03 15:26:04 lenovo_arch dhcpcd[318]: wlp2s0: dhcp if_readrawpacket: Network is down
Oct 03 15:26:08 lenovo_arch dhcpcd[318]: wlp2s0: if_sendrawpacket: Network is down
Oct 03 15:26:08 lenovo_arch dhcpcd[318]: wlp2s0: dhcp if_readrawpacket: Network is down
Oct 03 15:26:12 lenovo_arch dhcpcd[318]: wlp2s0: if_sendrawpacket: Network is down
Oct 03 15:26:12 lenovo_arch dhcpcd[318]: wlp2s0: dhcp if_readrawpacket: Network is down
Oct 03 15:26:16 lenovo_arch dhcpcd[318]: wlp2s0: if_sendrawpacket: Network is down
Oct 03 15:26:16 lenovo_arch dhcpcd[318]: wlp2s0: dhcp if_readrawpacket: Network is down

Oh, actually, systemctl status dhcpcd.service > text did output me something for enp8s0 and not just the wireless connections (which I ignore at this point). Let me reboot.

So this is the newest log. Everything run as root right after reboot.

#systemctl status dhcdpcd.serivce 

● dhcpcd.service - dhcpcd on all interfaces
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled)
   Active: active (running) since Fri 2014-10-03 15:40:58 CEST; 38s ago
  Process: 261 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
 Main PID: 266 (dhcpcd)
   CGroup: /system.slice/dhcpcd.service
           └─266 /usr/bin/dhcpcd -q -b

Oct 03 15:40:58 lenovo_arch dhcpcd[266]: wlp2s0: carrier lost
Oct 03 15:40:59 lenovo_arch dhcpcd[266]: wlp2s0: soliciting a DHCP lease
Oct 03 15:41:00 lenovo_arch dhcpcd[266]: enp8s0: carrier acquired
Oct 03 15:41:00 lenovo_arch dhcpcd[266]: enp8s0: IAID 0e:69:ff:09
Oct 03 15:41:01 lenovo_arch dhcpcd[266]: enp8s0: rebinding lease of 192.168.33.___
Oct 03 15:41:01 lenovo_arch dhcpcd[266]: enp8s0: soliciting an IPv6 router
Oct 03 15:41:09 lenovo_arch dhcpcd[266]: enp8s0: leased 192.168.33.___ for 3600 seconds
Oct 03 15:41:09 lenovo_arch dhcpcd[266]: enp8s0: adding route to 192.168.32._/__
Oct 03 15:41:09 lenovo_arch dhcpcd[266]: enp8s0: adding default route via 192.168.32.___
Oct 03 15:41:14 lenovo_arch dhcpcd[266]: enp8s0: no IPv6 Routers available

#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: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 3c:97:0e:69:ff:09 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 60:36:dd:e3:57:b0 brd ff:ff:ff:ff:ff:ff

#openvpn /etc/openvpn/config.ovpn

Fri Oct  3 15:43:11 2014 DEPRECATED OPTION: --tls-remote, please update your configuration
Fri Oct  3 15:43:11 2014 OpenVPN 2.3.4 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on May  3 2014
Fri Oct  3 15:43:11 2014 library versions: OpenSSL 1.0.1i 6 Aug 2014, LZO 2.08
Fri Oct  3 15:43:17 2014 WARNING: file '/etc/openvpn/ta.key' is group or others accessible
Fri Oct  3 15:43:17 2014 Control Channel Authentication: using '/etc/openvpn/ta.key' as a OpenVPN static key file
Fri Oct  3 15:43:17 2014 failed to find GID for group nogroup
Fri Oct  3 15:43:17 2014 Exiting due to fatal error

To me, it seems like dhcp is running on ethernet now, but since I have no router at this place (only way to connect to the internet would be establishing a openVPN connection) these logs seem perfectly ok to me. The only thing bugging me right now, is that the wireless card is turned up by default.

Am I correct with the assumption that connecting to a router should work now?

Last edited by mrkernelpanic (2014-10-03 12:56:43)

Offline

#10 2014-10-03 12:15:41

mrkernelpanic
Member
Registered: 2014-01-30
Posts: 43

Re: [SOLVED] Can't start dhcpcd service

I will mark this thread as SOLVED, as I now can connect to a openVPN network (which was my initial goal) an can not test connecting trough a router, but according to the logs it should work just fine.

Offline

Board footer

Powered by FluxBB