Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dhcpcd connection refused #21234

Closed
ghost opened this issue Apr 22, 2020 · 10 comments
Closed

dhcpcd connection refused #21234

ghost opened this issue Apr 22, 2020 · 10 comments

Comments

@ghost
Copy link

ghost commented Apr 22, 2020

in addition to the apparmor issues the recent update also seems to break it in a tty logged in as root

ps_dostop: Connection refused

downgrading this crap fixed the problem

was only able to find a single reference to my problem by someone else: https://bbs.archlinux.org/viewtopic.php?id=254935

@Vaelatern
Copy link
Member

this is with apparmor installed?

@ghost
Copy link
Author

ghost commented Apr 22, 2020

no apparmor, it's a fresh system with nothing but lvm2 and crypsetup with efi

rd.auto=1
cryptdevice=UUID=<UUID>:lvm
ipv6.disable=1
net.ifnames=0

dhcpdcd also says "connected to access point 'xxx'"

with wpa_supplicant set up correctly and running

dhcpcd was also working fine when setting everything up from the live system, no surprise since it's an older version

the system in question does have one of those 32 bit EFI firmwares with a 64 bit CPU, no idea if it's related. After installing grub-x86_64-efi initially i also had to install grub-i386-efi

grub-install --target=i386-efi --efi-directory=/boot/efi --bootloader-id=void_grub --boot-directory=/boot --recheck --debug

@ghost
Copy link
Author

ghost commented Apr 22, 2020

does not seem to be related to root
same problem with a normal user

first 'ip a' shows no ip for wlan0 despite /var/service/dhcpcd-wlan0

then sudo dhcpcd wlan0 shows the connection refused

@ghost
Copy link
Author

ghost commented Apr 22, 2020

solution:

dhcpcd -4

from https://bbs.archlinux.org/viewtopic.php?id=254888

confirmed as working for me, no idea what -4 does

@Vaelatern
Copy link
Member

it disables ipv6

@Piraty
Copy link
Member

Piraty commented Apr 22, 2020

i start my systems with cmdline= ... ipv6.disable=1 and had to add ipv4only to /etc/dhcpcd.conf, else it crashed after getting a lease from the router.
This wasn't required before and the logs of dhcpcd were pretty clear about why it crashed, so the fix was easy.

@Piraty
Copy link
Member

Piraty commented Apr 22, 2020

clearly an upstream issue

@ErinVoid
Copy link

Have been having random dhcpcd issues on a standard-ish x64 musl install. Works one minute, not the next. Added noarp to dhcpcd.conf and the issue disappeared at the same time but cannot validate it was specifically that.

@Piraty
Copy link
Member

Piraty commented Apr 22, 2020

i can confirm that dhcpcd-9.0.2 solves it. it no longer requires ipv4only in the conf file to work.

probably NetworkConfiguration/dhcpcd@717e041

@Piraty Piraty closed this as completed Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@Vaelatern @Piraty @ErinVoid and others