You are not logged in.

#1 2021-10-17 01:57:46

Firestorck
Member
Registered: 2021-10-17
Posts: 8

[SOLVED] "DHCP failed to start" when connecting to some wifi

Hello!
When I'm trying to connect to some wifi networks (not all of them, only some of them), I get disconnected almost instantly (less than a second) with the message "DHCP failed to start"
-> my system is up to date
-> DHCPCD is installed
-> Wifi works for most networks, only some of them don't

I have also tried to make myself a static IP using netctl to see if that would change something, but ended up with an error when trying to start it, I don't know if it is related (I don't need this, this was just an idea to fix the issue)

Any ideas of where that issue could come from?

Last edited by Firestorck (2021-12-16 03:49:36)

Offline

#2 2021-10-17 06:33:54

seth
Member
Registered: 2012-09-03
Posts: 51,223

Re: [SOLVED] "DHCP failed to start" when connecting to some wifi

trying to connect to some wifi network

"How"

with the message

"Where"

Any ideas of where that issue could come from?

"Somewhere"…

We'll need some actual data to make an informed comment about the problem.
Please post your system journal, "sudo journalctl -b" (if the issue occurred during the current boot)

Online

#3 2021-10-17 11:21:33

ballinlikekobe
Member
Registered: 2021-10-17
Posts: 2

Re: [SOLVED] "DHCP failed to start" when connecting to some wifi

install iwd and iwctl, make a cron job to start iwd automatically on boot with systemctl, create a main.conf file inside the /etc/iwd/ folder with this (imgur) main.conf settings and login your networks with iwctl, you can analyze networks with this commands inside iwctl

station <device> scan

station <device> get-networks

and then

station <device> connect <your network>

The main.conf file in the iwd config folder makes so iwd gives you a dynamic ip, basically doing what dhcpcd does making you only needing 2 programs to be able to connect to wireless networks, those being iwd and iwctl, both are in the official arch repos

Sources:
(man.archlinux) iwd main.conf

Last edited by ballinlikekobe (2021-10-17 11:25:54)

Offline

#4 2021-10-17 14:29:30

Firestorck
Member
Registered: 2021-10-17
Posts: 8

Re: [SOLVED] "DHCP failed to start" when connecting to some wifi

seth wrote:

"How"

Using the "Networks" thing in the taskbar of KDE plasma
I have also tried using the command line thing, but I forgot its name. Did not work either.

seth wrote:

"Where"

You get a little notification telling you connect to a wifi network. I get a second one right after I do so, and get disconnected.
ErrorScreenshot

seth wrote:

Please post your system journal, "sudo journalctl -b" (if the issue occurred during the current boot)

You can find the log here
I also happend to still have my last terminal opened, with the output of systemctl status netctl@wlp2s0.service if that can help

I am only connecting to that network once a week, so I won't be able to gather more data until next week end.

Edit : Added output for systemctl status netctl@wlp2s0.service

Last edited by Firestorck (2021-10-17 14:42:44)

Offline

#5 2021-10-17 14:35:45

seth
Member
Registered: 2012-09-03
Posts: 51,223

Re: [SOLVED] "DHCP failed to start" when connecting to some wifi

You've at least dhcpcd, netctl and networkmanager enabled and run into
HonoredFrighteningKoala-max-1mb.gif

Post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

You'll have to pick *one* nertwork service and disable the others - 'the "Networks" thing in the taskbar of KDE plasma' is likely NetworkManager.

Last edited by seth (2021-10-17 14:36:07)

Online

#6 2021-10-17 14:46:20

Firestorck
Member
Registered: 2021-10-17
Posts: 8

Re: [SOLVED] "DHCP failed to start" when connecting to some wifi

seth wrote:

Post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Here it is

seth wrote:

You'll have to pick *one* nertwork service and disable the others - 'the "Networks" thing in the taskbar of KDE plasma' is likely NetworkManager.

How would I do that? just uninstall them?

Edit : quoted too much

Last edited by Firestorck (2021-10-17 14:48:37)

Offline

#7 2021-10-17 14:54:21

seth
Member
Registered: 2012-09-03
Posts: 51,223

Re: [SOLVED] "DHCP failed to start" when connecting to some wifi

The way you enabled them.
https://wiki.archlinux.org/title/Systemd#Using_units

There'a actually only dhcpcd and NetworkManager, disable dhcpcd and if you want to use netctl, you'll first have to stop NM.

Online

#8 2021-10-17 15:06:54

Firestorck
Member
Registered: 2021-10-17
Posts: 8

Re: [SOLVED] "DHCP failed to start" when connecting to some wifi

Well I don't really mind if I'm using DHCPD, netctl, network manager or something else, I just looked up on google and tried things that might work for just a classic connection setup.
I know I am currently not using netctl, I removed my attempt at a config before trying something else, to make sure it is not the thing blocking other things I might try.

I just disabled & stopped dhcpcd, and I am now back to my setup when I first encountered this issue.

Offline

#9 2021-10-17 15:10:06

seth
Member
Registered: 2012-09-03
Posts: 51,223

Re: [SOLVED] "DHCP failed to start" when connecting to some wifi

I am only connecting to that network once a week, so I won't be able to gather more data until next week end.

Can you reproduce it now and provide a "clean" journal covering the incident?

Online

#10 2021-10-17 15:12:47

Firestorck
Member
Registered: 2021-10-17
Posts: 8

Re: [SOLVED] "DHCP failed to start" when connecting to some wifi

seth wrote:

Can you reproduce it now and provide a "clean" journal covering the incident?

No, I will not be able to try anything until next weekend probably. I will let you know with a new journal as soon as I can.

Offline

#11 2021-10-22 22:58:05

Firestorck
Member
Registered: 2021-10-17
Posts: 8

Re: [SOLVED] "DHCP failed to start" when connecting to some wifi

I have 2 wifis that the bug happend on, one of them seems to work, so the issue is probably fixed! thanks for you help! (I'll mark the issue as fixed as soon as I can try on the second network)

Offline

Board footer

Powered by FluxBB