You are not logged in.

#1 2015-11-06 09:12:10

Venatux
Member
Registered: 2015-11-06
Posts: 1

Ifplugd hangs when reconnecting usb ethernet adapter

I have a Dell Precision M3800 laptop. It doesn't have an ethernet port so it is shipped with a usb adapter to be able to connect to cable.

I have set up netctl-ifplugd which is working fine except when I disconnect the usb adapter and try to reconnect it again. Since this is a laptop, I do this quite often.
After reconnecting, the interface (enp0s20u2) shows up as expected:

$ 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: wlp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 10:4a:7d:7e:c7:e1 brd ff:ff:ff:ff:ff:ff
4: enp0s20u2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 9c:eb:e8:26:84:b2 brd ff:ff:ff:ff:ff:ff

Service status:

$ systemctl status netctl-ifplugd@enp0s20u2.service  
● netctl-ifplugd@enp0s20u2.service - Automatic wired network connection using netctl profiles
   Loaded: loaded (/usr/lib/systemd/system/netctl-ifplugd@.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:netctl.special(7)

Nov 05 08:35:06 trell systemd[1]: Dependency failed for Automatic wired network connection using netctl profiles.
Nov 05 08:35:06 trell systemd[1]: netctl-ifplugd@enp0s20u2.service: Job netctl-ifplugd@enp0s20u2.service/start failed with result 'dependency'.

When I try to restart the service:

# systemctl restart netctl-ifplugd@enp0s20u2.service
$ systemctl status netctl-ifplugd@enp0s20u2.service 
● netctl-ifplugd@enp0s20u2.service - Automatic wired network connection using netctl profiles
   Loaded: loaded (/usr/lib/systemd/system/netctl-ifplugd@.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2015-11-06 08:58:43 CET; 3s ago
     Docs: man:netctl.special(7)
 Main PID: 6084 (ifplugd)
   CGroup: /system.slice/system-netctl\x2difplugd.slice/netctl-ifplugd@enp0s20u2.service
           └─6084 /usr/bin/ifplugd -i enp0s20u2 -r /etc/ifplugd/netctl.action -bfIns

Nov 06 08:58:43 trell systemd[1]: Started Automatic wired network connection using netctl profiles.
Nov 06 08:58:43 trell ifplugd[6084]: ifplugd 0.28 initializing.

It never finishes initializing.

The ifplugd process is now in disk sleep:

% ps aux|grep ifplugd
root      6084  0.1  0.0   6292   868 ?        Ds   08:58   0:00 /usr/bin/ifplugd -i enp0s20u2 -r /etc/ifplugd/netctl.action -bfIns

And the following commands never return:

$ ifconfig

$ lsusb

When I try to reboot, systemd has 15 services "Waiting for a stop job" (or something like that), and never finishes, so I have to hold the power button for it power off.

Would appreciate some help on this smile

Offline

Board footer

Powered by FluxBB