Page 1 of 2

#787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 04, 2015 9:39 am
by machinebacon
Let's make this official. There is a bug report on the Debian BTS [1] and at our brothers at siduction [2]. I would recommend to fix it with the "ugly" method:

sudo editor /etc/rc.local
add following line before 'exit 0'

Code: Select all

ifup wlan0
where wlan0 is your wireless device (can be eth1 or some other device name)

This is meant to be fixed soon, but if you don't want to upgrade to the newest udev/systemd version (no matter which init system you use), you can use this dirty fix. But probably even the upstream bugfix won't solve it :)

[1] https://bugs.debian.org/cgi-bin/bugrepo ... bug=787263
[2] http://forum.siduction.org/index.php?topic=5557.0

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 04, 2015 2:02 pm
by vic
Thanks man, just discovered the problem on a testncrashnburn install of BORK!64. Network trouble is a real itch, will wait a little bit on my proper install before I duge it. :)

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 04, 2015 2:18 pm
by rhowaldt
thanks! wow, seems i just ran into a genuine error! and here is was thinking it was my own fault :)

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 04, 2015 3:04 pm
by machinebacon
Ladies, you can of course revert to libudev1 and udev version 215-18, if it bothers you very much. This shouldn't be a biggie, we usually don't track systemd:

https://packages.debian.org/stretch/udev
https://packages.debian.org/stretch/libudev1

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 04, 2015 9:33 pm
by Dr_Chroot
HA! Now I see this. Thanks :D

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 11, 2015 11:21 am
by rwbx
I tried the fix you mentioned but ceni still show no values under hardware interfaces.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 11, 2015 11:36 am
by vic
If you have put "ifup wlan0" in the rc.local file, the wireless network should start during boot. But it will still not be visible in ceni. That is my experience at least.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 11, 2015 1:29 pm
by rwbx
I finally got ceni to work by uninstalling systemd/udev updates... Everything's working as usual.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 11, 2015 1:55 pm
by ivanovnegro
Of course with wicd I have no problems. :) But that would mean bloat.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 11, 2015 2:55 pm
by machinebacon
People, have you tried (re/installing) the ifupdown package? Seems I don't need dirty hacks anymore after installing ifupdown.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Thu Jun 11, 2015 11:01 pm
by rhowaldt
i just did a dist-upgrade and ifupdown is upgraded there. haven't tried whether it fixes anything yet, ceni still doesn't show anything after the upgrade but i didn't reboot yet (couldn't be fucked, just booted my pc, not gonna reboot it immediately again) so maybe that will do the trick. definitely lots of udev updates lately.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Fri Jun 12, 2015 12:37 pm
by jmthomas87
I just did a dist-upgrade myself on Bork and letting ifupdown upgrade doesn't help that I can see so far.

Manually trying to start the interface, either eth0 or wlan0 is a no go, and neither show up in ceni either. Guess I will have to look which systemd and udev files to not let upgrade.

Time for a reload and start from scratch. Glad it is a fast install.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Fri Jun 12, 2015 1:50 pm
by machinebacon
Thanks JMT for the feedback. What a PITA this bug is, and damned how I hate udev.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Fri Jun 12, 2015 1:55 pm
by GekkoP
^ Time to go with mdev? :)

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Fri Jun 12, 2015 2:36 pm
by machinebacon
^ If this happens, we have to move the base. udev is completely integrated in (most of?) the (Debian et al.) kernels :( You can try, for fun:

sudo apt-get autoremove udev

and see what it is going to remove.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Fri Jun 12, 2015 2:39 pm
by GekkoP
^ Oh no, I know (I remember trying mdev following Pidsley instructions). Just kidding.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Fri Jun 12, 2015 2:45 pm
by machinebacon
^ Well, I'm not kidding anymore. ;) You know, I'm just a few centimeters away from moving the base. Just need a bit more time, patient and expertise :D

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Fri Jun 12, 2015 3:00 pm
by rhowaldt
the ifupdown upgrade certainly changed *something*, but what i am not sure.
when i logged on today, didn't auto-connect. did 'ifup wlan0', it told me wlan0 was already configured. ceni still shows nothing.
did 'ifdown wlan0', it took down whatever it had put up (internet didnt work so not much). then 'ifup wlan0' again and it worked. wait more i suppose?

edit: oh yeah - output:

Code: Select all

┌┤rhowaldt@lalala [~]
└──┤$ sudo ifup wlan0
ifup: interface wlan0 already configured

┌┤rhowaldt@lalala [~]
└──┤$ sudo ifdown wlan0
Internet Systems Consortium DHCP Client 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/00:15:af:31:6a:fa
Sending on   LPF/wlan0/00:15:af:31:6a:fa
Sending on   Socket/fallback
DHCPRELEASE on wlan0 to 192.168.178.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
dhclient.c:2331: Failed to send 300 byte long packet over fallback interface.

┌┤rhowaldt@lalala [~]
└──┤$ sudo ifup wlan0
Internet Systems Consortium DHCP Client 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/00:15:af:31:6a:fa
Sending on   LPF/wlan0/00:15:af:31:6a:fa
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.178.1
DHCPACK from 192.168.178.1
bound to 192.168.178.10 -- renewal in 1620 seconds.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Fri Jun 12, 2015 3:13 pm
by machinebacon
Ceni gets its list of available devices from udev (/lib/systemd/system/[email protected]), it shows those devices that

sudo ifquery --state

lists. I really have no idea what the FUCK is going on in Disneyland again, but they definitely get on my tits.

Re: #787263 - breaks networking for allow-hotplug interfaces

Posted: Fri Jun 12, 2015 3:17 pm
by rhowaldt

Code: Select all

┌┤rhowaldt@lalala [~]
└──┤$ sudo ifquery --state
[sudo] password for rhowaldt: 
wlan0=wlan0
lo=lo
but those are listed as optical devices or so in ceni. i dunno either, i am currently just uhm, "going with the flow", and being patient :)