You are not logged in.

#1 2020-08-02 12:14:43

8cobosdev
Member
Registered: 2020-08-01
Posts: 7

[SOLVED] Job for dhcpcd@wlp2s0.service failed.

Hello everyone, I hope you can help me.
I try to start dhcpcd manually with

 systemctl start dhcpcd@wlan0 

and it takes a while till I just get the error

Job for dhcpcd@wlan0.service failed because the service did not take the steps required by its unit configuration. 
See "systemctl status dhcpcd@wlp2s0.service" and "journalctl -xe" for details.

Any help would be apreciated, with out dhcpcd, i have no internet so I can not do anything with my computer, like if it was dead.

Last edited by 8cobosdev (2021-02-27 18:42:39)

Offline

#2 2020-08-02 12:34:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,595

Re: [SOLVED] Job for dhcpcd@wlp2s0.service failed.

How do you establish the carrier? Did you configure a wpa_supplicant hook?
Can you connect manually w/ wpa_supplicant?

Please post the system journal (sudo journalctl -b) and the output of

find /etc/systemd -type l -exec test -f {} \; -print

You can either dump the outputs on a usb key or use https://wiki.archlinux.org/index.php/Tethering

Offline

#3 2020-08-02 14:54:02

8cobosdev
Member
Registered: 2020-08-01
Posts: 7

Re: [SOLVED] Job for dhcpcd@wlp2s0.service failed.

Before anything I need to say that the first error I posted doesn't appears now, actually it 's giving me another error (look it at the top of the topic) and that I`m on a dell e5540 laptop (i7 16gb ram nvidia gt720m 240gb ssd version).

I tried to stablish a carrier with wifi-menu at first intance and it failed with the next error at program startup

locale: Cannot set LC_TYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

wifi-menu failed and when I closed it got me the next error

Job for netctl@wlp2s0\x2dXiaomi_6979_5G.service failed because the control process exited with error code.
See "systemctl status "netctl@wlp2s0\x2dXiaomi_6979_5G.service"" and "journalctl -xe" for details

After some reboots I tried with wpa_supplicant how you said(i didn´t configured any hook) and I got the next stderr output when starting the daemon with wpa_supplicant -B -i wlp2s0 /etc/wpa_supplicant/foobar.conf -D nl80211 command (the -D parameter refers to the wireless wifi card drivers) .

Succesfully inialized wpa_supplicant
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: Could not set interface 'p2p-dev-wlp2s0' UP
nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0
p2p-dev-wlp2s0: Failed to enable P2P Device interface

find /etc/systemd -type l -exec test -f {} \; -print        → OUTPUT  ↓

/etc/systemd/system/display-manager.service
/etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system/multi-user.target.wants/dhcpcd.service
/etc/systemd/system/multi-user.target.wants/netctl.service
/etc/systemd/system/multi-user.target.wants/dhcpcd@wlan0.service
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/sockets.target.wants/dirmngr.socket
/etc/systemd/system/sockets.target.wants/gpg-agent-ssh.socket
/etc/systemd/system/sockets.target.wants/p11-kit-server.socket
/etc/systemd/system/sockets.target.wants/gpg-agent-extra.socket
/etc/systemd/system/sockets.target.wants/gpg-agent.socket
/etc/systemd/system/sockets.target.wants/gpg-agent-browser.socket

Last edited by 8cobosdev (2020-08-02 15:44:10)

Offline

#4 2020-08-02 16:17:30

loqs
Member
Registered: 2014-03-06
Posts: 19,022

Re: [SOLVED] Job for dhcpcd@wlp2s0.service failed.

The system has multiple network management services enabled NetworkManager dhcpcd dhcpcd@ netctl.  Pick one and disable and stop the rest.

Offline

#5 2020-08-02 18:03:57

Phrosgone
Member
From: Zurich
Registered: 2016-06-15
Posts: 16

Re: [SOLVED] Job for dhcpcd@wlp2s0.service failed.

What DE are you using? If you use KDE, stay with NetworkManager.

Have you generated your locale? This is not causing your Network issue, but then you get rid of the error message because of missing LC_Type, Message and All.

Offline

#6 2020-08-02 19:59:09

8cobosdev
Member
Registered: 2020-08-01
Posts: 7

Re: [SOLVED] Job for dhcpcd@wlp2s0.service failed.

(REPLY TO LOQS)
I 've enabled NetworkManager and disabled the rest, I thought that NetworkManager kind of came ready to work with dhcp, but thanks you that now I understand they are singular and not complementary (referring it's default) .

(REPLY TO PHROSGONE)
I'm using i3 windows manager instead of any desktop, at the other side I've ralised that at the install I just uncommented my language line in /etc/locale.gen and now looking at the arch wiki I 've seen that I didn 't activated locale with the command

locale-gen

  so I did it, for if any problem can appear I configured LC_CTYPE, LC_MESSAGES , ...       at /etc/locale.conf

LANG="es_ES.UTF-8"
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"

so thanks for saying it.

Last edited by 8cobosdev (2020-08-02 20:07:34)

Offline

#7 2021-02-27 18:38:11

8cobosdev
Member
Registered: 2020-08-01
Posts: 7

Re: [SOLVED] Job for dhcpcd@wlp2s0.service failed.

I finally fixed a time ago, idon't remeber how, and i forgot to close the thread.

Offline

Board footer

Powered by FluxBB