After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780341 - avahi creates new connection that doesn't exist
avahi creates new connection that doesn't exist
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: general
unspecified
Other other
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-03-21 07:51 UTC by Paul
Modified: 2018-02-16 13:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paul 2017-03-21 07:51:17 UTC
avahi appears to have a tendancy to create a new network connection for an existing ethernet adapter while the adapter is inactive/asleep/disconnected. This resulting adapter shows up in the network manager and can conflict with other connections, including the wifi card (removing or editing the ethernet connections can cause the wifi to fail for unknown reasons).


ifconfig
enp1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 70:5a:0f:85:fb:b2  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp1s0:avahi: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 169.254.10.110  netmask 255.255.0.0  broadcast 169.254.255.255
        ether 70:5a:0f:85:fb:b2  txqueuelen 1000  (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 36833  bytes 3321005 (3.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 36833  bytes 3321005 (3.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vpn_vectrobevpn: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::2ac:ffff:fefc:4d2d  prefixlen 64  scopeid 0x20<link>
        ether 00:ac:ff:fc:4d:2d  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 2660 overruns 0  carrier 0  collisions 0

wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.15.238.196  netmask 255.0.0.0  broadcast 10.255.255.255
        inet6 fe80::94fd:274a:5138:7532  prefixlen 64  scopeid 0x20<link>
        ether 08:d4:0c:ef:9b:4c  txqueuelen 1000  (Ethernet)
        RX packets 560696  bytes 599284948 (599.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 620583  bytes 107201838 (107.2 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Comment 1 Thomas Haller 2017-03-21 11:14:09 UTC
avahi doesn't interact with NetworkManager and doesn't create NetworkManager connections. A "connection" for NetworkManager is a profile.

avahi may configure an interface with IP addresses.

As a result, NetworkManager may create a in-memory connection (profile) that mirrors what is configured on the interface.


Does that cause any problem? Which?


What's the output of
    nmcli connection
    nmcli device
    ip link
    ip addr
Comment 2 Paul 2017-03-21 22:09:20 UTC
paulh@Paul-HP-Laptop:/$ nmcli connection
NAME           UUID                                  TYPE             DEVICE 
ESGFreeWiFi    7e1a25b5-5b47-4f1a-9557-1e4afcd25255  802-11-wireless  wlo1   
enp1s0         cee00795-a6b7-4675-b16a-3ae4f063ae0a  802-3-ethernet   enp1s0 
Ethernet       f9b38404-2f34-4e00-8b55-d7c36e106f70  802-3-ethernet   --     
Hancock        2f4c2686-6de1-4a91-98ae-57c1286dd2a9  802-11-wireless  --     
Paul 4G Wi-Fi  1cb615b2-f6a5-4148-93c8-7e2ec0dfc31d  802-11-wireless  --     
paulh@Paul-HP-Laptop:/$ nmcli device    
DEVICE           TYPE      STATE      CONNECTION  
enp1s0           ethernet  connected  enp1s0      
wlo1             wifi      connected  ESGFreeWiFi 
lo               loopback  unmanaged  --          
vpn_vectrobevpn  tun       unmanaged  --          
paulh@Paul-HP-Laptop:/$ ip link         
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether 70:5a:0f:85:fb:b2 brd ff:ff:ff:ff:ff:ff
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 08:d4:0c:ef:9b:4c brd ff:ff:ff:ff:ff:ff
4: vpn_vectrobevpn: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 00:ac:ff:fc:4d:2d brd ff:ff:ff:ff:ff:ff
paulh@Paul-HP-Laptop:/$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 70:5a:0f:85:fb:b2 brd ff:ff:ff:ff:ff:ff
    inet 169.254.10.110/16 brd 169.254.255.255 scope link enp1s0:avahi
       valid_lft forever preferred_lft forever
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 08:d4:0c:ef:9b:4c brd ff:ff:ff:ff:ff:ff
    inet 10.15.238.196/8 brd 10.255.255.255 scope global dynamic wlo1
       valid_lft 86092sec preferred_lft 86092sec
    inet6 fe80::94fd:274a:5138:7532/64 scope link 
       valid_lft forever preferred_lft forever
4: vpn_vectrobevpn: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/ether 00:ac:ff:fc:4d:2d brd ff:ff:ff:ff:ff:ff
    inet6 fe80::2ac:ffff:fefc:4d2d/64 scope link 
       valid_lft forever preferred_lft forever

If I edit the new connection at all another one will be created at some point randomly, all the while the ethernet adapter is actually still asleep (ie; not connected to anything)
Comment 3 Paul 2017-03-21 23:08:49 UTC
Deleting the invalid connection can also cause the wifi to completely fail and silently, even though they are completely unrelated. Rebooting to restore functionality also results in a kernal hang while the system is trying to shut down.
Comment 4 Paul 2017-03-21 23:39:01 UTC
Scratch that slightly, deleting _any_ connection in the manager triggers a network stack failure and subsequent kernal hang on shutdown...

Along with a mass of repeated info in the log that's longer than what a terminal allows...

Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533709] ------------[ cut here ]------------
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533750] WARNING: CPU: 1 PID: 961 at /build/linux-xXpTKI/linux-4.8.0/drivers/net/wireless/intel/iwlwifi/iwl-trans.h:1186 iwl_trans_pcie_log_scd_error+0x242/0x2f0 [iwlwifi]
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533753] Modules linked in: ccm rfcomm hid_generic algif_hash algif_skcipher af_alg cmac uhid hid bnep binfmt_misc nls_iso8859_1 hp_wmi sparse_keymap amd_freq_sensitivity kvm_amd kvm arc4 irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel uvcvideo aes_x86_64 iwlmvm videobuf2_vmalloc lrw videobuf2_memops videobuf2_v4l2 glue_helper videobuf2_core ablk_helper cryptd btusb mac80211 btrtl videodev btbcm media snd_hda_codec_realtek btintel snd_hda_codec_generic snd_hda_codec_hdmi bluetooth snd_hda_intel iwlwifi joydev input_leds snd_hda_codec serio_raw fam15h_power k10temp snd_hda_core cfg80211 i2c_piix4 snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd hp_wireless mac_hid soundcore shpchp parport_pc ppdev lp parport ip_tables x_tables autofs4 amdkfd amd_iommu_v2 radeon i2c_algo_bit ttm drm_kms_helper psmouse syscopyarea sysfillrect sysimgblt r8169 sdhci_pci fb_sys_fops sdhci mii ahci drm libahci wmi fjes video
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533901] CPU: 1 PID: 961 Comm: dbus-daemon Tainted: G        W       4.8.0-41-generic #44-Ubuntu
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533904] Hardware name: HP HP Notebook/8133, BIOS F.1C 10/29/2015
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533909]  0000000000000286 0000000066b9a6e6 ffffa1f2dec83d48 ffffffffa4430e92
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533918]  0000000000000000 0000000000000000 ffffa1f2dec83d88 ffffffffa408319b
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533926]  000004a2dec83d98 ffffa1f2cde40000 000000000000001e 00000000a5a5a5a5
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533934] Call Trace:
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533937]  <IRQ>  [<ffffffffa4430e92>] dump_stack+0x63/0x81
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533957]  [<ffffffffa408319b>] __warn+0xcb/0xf0
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533964]  [<ffffffffa40832cd>] warn_slowpath_null+0x1d/0x20
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.533989]  [<ffffffffc0643282>] iwl_trans_pcie_log_scd_error+0x242/0x2f0 [iwlwifi]
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534013]  [<ffffffffc0639a03>] iwl_pcie_txq_stuck_timer+0x73/0xa0 [iwlwifi]
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534037]  [<ffffffffc0639990>] ? iwl_pcie_txq_inc_wr_ptr+0xf0/0xf0 [iwlwifi]
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534045]  [<ffffffffa40f4005>] call_timer_fn+0x35/0x120
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534051]  [<ffffffffa40f4595>] run_timer_softirq+0x215/0x4b0
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534058]  [<ffffffffa40f60d0>] ? __hrtimer_init+0xa0/0xa0
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534064]  [<ffffffffa40fcb01>] ? ktime_get+0x41/0xb0
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534071]  [<ffffffffa4052e3d>] ? lapic_next_event+0x1d/0x30
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534079]  [<ffffffffa48a301d>] __do_softirq+0x10d/0x298
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534085]  [<ffffffffa4088ea3>] irq_exit+0xa3/0xb0
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534091]  [<ffffffffa48a2e22>] smp_apic_timer_interrupt+0x42/0x50
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534097]  [<ffffffffa48a2132>] apic_timer_interrupt+0x82/0x90
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534098]  <EOI> 
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.534104] ---[ end trace 9654b5d27ccceb72 ]---

* is repeated many many times *

also trimmed;

Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.569555] iwlwifi 0000:05:00.0: Q 30 is active and mapped to fifo 2 ra_tid 0xa5a5 [90,1515870810]
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.587259] iwlwifi 0000:05:00.0: Failed to wake NIC for hcmd
Mar 22 10:26:59 Paul-HP-Laptop kernel: [ 2050.587319] iwlwifi 0000:05:00.0: Error sending SCAN_OFFLOAD_REQUEST_CMD: enqueue_hcmd failed: -5

Mar 22 10:27:21 Paul-HP-Laptop wpa_supplicant[1213]: message repeated 22 times: [ wlo1: CTRL-EVENT-SCAN-FAILED ret=-5 retry=1]
Mar 22 10:27:22 Paul-HP-Laptop NetworkManager[984]: <warn>  [1490138842.0682] device (wlo1): Activation: (wifi) association took too long, failing activation
Mar 22 10:27:22 Paul-HP-Laptop NetworkManager[984]: <info>  [1490138842.0683] device (wlo1): state change: config -> failed (reason 'ssid-not-found') [50 120 53]
Mar 22 10:27:22 Paul-HP-Laptop NetworkManager[984]: <info>  [1490138842.0687] manager: NetworkManager state is now DISCONNECTED
Mar 22 10:27:22 Paul-HP-Laptop NetworkManager[984]: <warn>  [1490138842.0701] device (wlo1): Activation: failed for connection 'ESGFreeWiFi'
Mar 22 10:27:22 Paul-HP-Laptop NetworkManager[984]: <info>  [1490138842.0782] device (wlo1): state change: failed -> disconnected (reason 'none') [120 30 0]
Mar 22 10:27:22 Paul-HP-Laptop kernel: [ 2072.713959] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready
Mar 22 10:27:22 Paul-HP-Laptop org.kde.kdeconnect[1355]: "No such interface 'org.freedesktop.DBus.Properties' on object at path /org/freedesktop/NetworkManager/ActiveConnection/6"
Mar 22 10:27:22 Paul-HP-Laptop kernel: [ 2072.740746] iwlwifi 0000:05:00.0: Failed to wake NIC for hcmd
Mar 22 10:27:22 Paul-HP-Laptop kernel: [ 2072.740844] iwlwifi 0000:05:00.0: Error sending SCAN_OFFLOAD_REQUEST_CMD: enqueue_hcmd failed: -5
Mar 22 10:27:22 Paul-HP-Laptop kernel: [ 2072.740851] iwlwifi 0000:05:00.0: Scan failed! ret -5
Mar 22 10:27:22 Paul-HP-Laptop wpa_supplicant[1213]: wlo1: CTRL-EVENT-SCAN-FAILED ret=-5 retry=1
Mar 22 10:27:22 Paul-HP-Laptop NetworkManager[984]: <info>  [1490138842.4075] device (wlo1): supplicant interface state: disconnected -> inactive
Mar 22 10:27:22 Paul-HP-Laptop kernel: [ 2073.061617] iwlwifi 0000:05:00.0: Failed to wake NIC for hcmd
Mar 22 10:27:22 Paul-HP-Laptop kernel: [ 2073.061726] iwlwifi 0000:05:00.0: Error sending SCAN_OFFLOAD_REQUEST_CMD: enqueue_hcmd failed: -5
Mar 22 10:27:22 Paul-HP-Laptop kernel: [ 2073.061733] iwlwifi 0000:05:00.0: Scan failed! ret -5
Mar 22 10:27:22 Paul-HP-Laptop wpa_supplicant[1213]: wlo1: CTRL-EVENT-SCAN-FAILED ret=-5 retry=1
Mar 22 10:27:46 Paul-HP-Laptop kernel: [ 2096.744070] iwlwifi 0000:05:00.0: Failed to wake NIC for hcmd
Mar 22 10:27:46 Paul-HP-Laptop kernel: [ 2096.744275] iwlwifi 0000:05:00.0: Error sending SCAN_OFFLOAD_REQUEST_CMD: enqueue_hcmd failed: -5
Mar 22 10:27:46 Paul-HP-Laptop kernel: [ 2096.744286] iwlwifi 0000:05:00.0: Scan failed! ret -5
Mar 22 10:28:19 Paul-HP-Laptop kernel: [ 2129.735503] iwlwifi 0000:05:00.0: Failed to wake NIC for hcmd
Mar 22 10:28:19 Paul-HP-Laptop kernel: [ 2129.735646] iwlwifi 0000:05:00.0: Error sending SCAN_OFFLOAD_REQUEST_CMD: enqueue_hcmd failed: -5                                                     
Mar 22 10:28:19 Paul-HP-Laptop kernel: [ 2129.735659] iwlwifi 0000:05:00.0: Scan failed! ret -5
Comment 5 Beniamino Galvani 2017-05-04 15:31:26 UTC
(In reply to Paul from comment #4)
> Scratch that slightly, deleting _any_ connection in the manager triggers a
> network stack failure and subsequent kernal hang on shutdown...

This is a kernel issue.

What's the problem with the in-memory connection generated by NM?
Comment 6 Paul 2017-05-04 21:10:21 UTC
The non-existant copy would neither get an IP or connection and essentially blocked the existing connection from working.

I have since upgraded to kubuntu 17 which uses kernel 4.10, haven't seen this re-occur yet, but instead it was replaced with a wifi driver bug.
Comment 7 Beniamino Galvani 2018-02-16 13:42:24 UTC
(In reply to Paul from comment #6)
> I have since upgraded to kubuntu 17 which uses kernel 4.10, haven't seen
> this re-occur yet, but instead it was replaced with a wifi driver bug.

Closing for now, please reopen if needed.