[Wifi] impossible de démarrer le service netctl@wlan0\x2dWLAN\x2d897192.service

Applications, problèmes de configuration réseau
bobo
Elfe
Messages : 593
Inscription : mar. 08 avr. 2014, 22:47

[Wifi] impossible de démarrer le service netctl@wlan0\x2dWLAN\x2d897192.service

Message par bobo »

Bonjour,

Je suis un peu rouillé sur le debug réseau : ça fait très longtemps que je n'ai pas eu ce genre de soucis. Il m'est impossible de lancer le service netctl@wlan0\x2dWLAN\x2d897192.service : c'est mon setup netctl pour me connecter sur le réseau Wifi de la maison. Celui-ci a très bien fonctionné depuis l'installation du PC en Décembre dernier sur une carte AX200NGW. L'ordinateur a été up pendant les 2-3 dernières semaines (je ne me souviens plus), j'ai fait une mise à jour et un reboot, depuis le wifi ne fonctionne plus.

Code : Tout sélectionner

$ lspci -kk | grep -C 3 iwl
	Kernel driver in use: pcieport
05:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
	Subsystem: Intel Corporation Wi-Fi 6 AX200NGW
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
07:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02)
	Subsystem: ASRock Incorporation Motherboard
	Kernel driver in use: ahci
Voici les logs de systemd:

Code : Tout sélectionner

$ sudo systemctl start netctl\@wlan0\\x2dWLAN\\x2d897192.service 
Job for netctl@wlan0\x2dWLAN\x2d897192.service failed because the control process exited with error code.
See "systemctl status "netctl@wlan0\\x2dWLAN\\x2d897192.service"" and "journalctl -xeu "netctl@wlan0\\x2dWLAN\\x2d897192.service"" for details.

Code : Tout sélectionner

$ systemctl status "netctl@wlan0\\x2dWLAN\\x2d897192.service"
× netctl@wlan0\x2dWLAN\x2d897192.service - Automatically generated profile by wifi-menu
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; enabled; preset: disabled)
    Drop-In: /etc/systemd/system/netctl@wlan0\x2dWLAN\x2d897192.service.d
             └─profile.conf
     Active: failed (Result: exit-code) since Sun 2023-05-28 11:25:23 CEST; 39s ago
   Duration: 33.814s
       Docs: man:netctl.profile(5)
    Process: 1957 ExecStart=/usr/lib/netctl/network start wlan0-WLAN-897192 (code=exited, status=1/FAILURE)
   Main PID: 1957 (code=exited, status=1/FAILURE)
        CPU: 5ms

May 28 11:25:23 arch systemd[1]: Starting Automatically generated profile by wifi-menu...
May 28 11:25:23 arch network[1957]: Starting network profile 'wlan0-WLAN-897192'...
May 28 11:25:23 arch network[1957]: The interface of network profile 'wlan0-WLAN-897192' is already up
May 28 11:25:23 arch systemd[1]: netctl@wlan0\x2dWLAN\x2d897192.service: Main process exited, code=exited, status=1/FAILURE
May 28 11:25:23 arch systemd[1]: netctl@wlan0\x2dWLAN\x2d897192.service: Failed with result 'exit-code'.
May 28 11:25:23 arch systemd[1]: Failed to start Automatically generated profile by wifi-menu.

Code : Tout sélectionner

$ journalctl -xeu "netctl@wlan0\\x2dWLAN\\x2d897192.service"
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit netctl@wlan0\x2dWLAN\x2d897192.service has entered the 'failed' state with result 'exit-code'.
May 28 11:25:23 arch systemd[1]: Starting Automatically generated profile by wifi-menu...
░░ Subject: A start job for unit netctl@wlan0\x2dWLAN\x2d897192.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit netctl@wlan0\x2dWLAN\x2d897192.service has begun execution.
░░ 
░░ The job identifier is 631.
May 28 11:25:23 arch network[1957]: Starting network profile 'wlan0-WLAN-897192'...
May 28 11:25:23 arch network[1957]: The interface of network profile 'wlan0-WLAN-897192' is already up
May 28 11:25:23 arch systemd[1]: netctl@wlan0\x2dWLAN\x2d897192.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit netctl@wlan0\x2dWLAN\x2d897192.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
May 28 11:25:23 arch systemd[1]: netctl@wlan0\x2dWLAN\x2d897192.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit netctl@wlan0\x2dWLAN\x2d897192.service has entered the 'failed' state with result 'exit-code'.
May 28 11:25:23 arch systemd[1]: Failed to start Automatically generated profile by wifi-menu.
░░ Subject: A start job for unit netctl@wlan0\x2dWLAN\x2d897192.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit netctl@wlan0\x2dWLAN\x2d897192.service has finished with a failure.
░░ 
░░ The job identifier is 631 and the job result is failed.
May 28 11:28:00 arch systemd[1]: Starting Automatically generated profile by wifi-menu...
░░ Subject: A start job for unit netctl@wlan0\x2dWLAN\x2d897192.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit netctl@wlan0\x2dWLAN\x2d897192.service has begun execution.
░░ 
░░ The job identifier is 733.
May 28 11:28:00 arch network[2054]: Starting network profile 'wlan0-WLAN-897192'...
May 28 11:28:00 arch network[2054]: The interface of network profile 'wlan0-WLAN-897192' is already up
May 28 11:28:00 arch systemd[1]: netctl@wlan0\x2dWLAN\x2d897192.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit netctl@wlan0\x2dWLAN\x2d897192.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
May 28 11:28:00 arch systemd[1]: netctl@wlan0\x2dWLAN\x2d897192.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit netctl@wlan0\x2dWLAN\x2d897192.service has entered the 'failed' state with result 'exit-code'.
May 28 11:28:00 arch systemd[1]: Failed to start Automatically generated profile by wifi-menu.
░░ Subject: A start job for unit netctl@wlan0\x2dWLAN\x2d897192.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit netctl@wlan0\x2dWLAN\x2d897192.service has finished with a failure.
░░ 
░░ The job identifier is 733 and the job result is failed.
Le fichier de configuration:

Code : Tout sélectionner

$ sudo cat /etc/netctl/wlan0-WLAN-897192 
Description='Automatically generated profile by wifi-menu'
Interface=wlan0
Connection=wireless
Security=wpa
ESSID=WLAN-897192
IP=dhcp
Key=le_mot_de_passe
Une autre note : j'essaie d'installer Ubuntu sur le PC de mes fils, mais le DNS peut résoudre apparemment uniquement les IPv6 pas les IPv4. Ubuntu m'énerve déjà parce qu'il semble impossible de modifier le /etc/resolv.conf. Je soupçonne qu'un problème de Fournisseur d'Accès Internet complique mes affaires
dwm — BÉPO — vim — “more is less !”
bobo
Elfe
Messages : 593
Inscription : mar. 08 avr. 2014, 22:47

Re: [Wifi] impossible de démarrer le service netctl@wlan0\x2dWLAN\x2d897192.service

Message par bobo »

Je viens d'essayer le liveUSB Xubuntu sur mon PC archlinux :
  • bonne nouvelle: la carte wifi fonctionne
  • mauvaise nouvelle: c'est le même cirque avec les adresses IPv4 que sur le PC de mes loulous
Osef, la carte wifi fonctionne avec les IPv6, ça me semble invalider l'hypothèse de la panne matérielle et c'est le principal

Autre chose que j'ai oublié de préciser : j'ai apparrement les mêmes soucis de carte Wifi sur mon PC archlinux avec linux et linux-lts
dwm — BÉPO — vim — “more is less !”
bobo
Elfe
Messages : 593
Inscription : mar. 08 avr. 2014, 22:47

Re: [Wifi] impossible de démarrer le service netctl@wlan0\x2dWLAN\x2d897192.service

Message par bobo »

J'ai essayé autre chose : booter à partir de l'arch-iso de Mai. Surprise : pas de netctl et wifi-menu => il faut utiliser iwd/iwctl (ça marche aussi). Au terme du processus :
  • mêmes symptômes qu'après install de Ubuntu sur le PC de mes fils (IPv6 fonctionnent, pour IPv4 network unreachable), ce qui confirme que la carte wifi fonctionne toujours
  • systemd-resolved est installé et le /etc/resolv.conf a "nameserver 127.0.0.53" et je n'arrive pas à l'éditer pour mettre 1.1.1.1 (Cloudfare DNS)
Il doit y avoir un truc fondamental que je ne comprends pas, ce n'est pas possible autrement.
dwm — BÉPO — vim — “more is less !”
bobo
Elfe
Messages : 593
Inscription : mar. 08 avr. 2014, 22:47

Re: [Wifi] impossible de démarrer le service netctl@wlan0\x2dWLAN\x2d897192.service

Message par bobo »

Des nouvelles du front sur ma bécane. Après avoir redémarré la box internet, je démarre l'ordi sans câble ethernet et le service netctl n'a pas démarré comme il faut

Code : Tout sélectionner

$ sudo systemctl status netctl\@wlan0\\x2dWLAN\\x2d897192.service 
[sudo] password for bobo: 
× netctl@wlan0\x2dWLAN\x2d897192.service - Automatically generated profile by wifi-menu
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; enabled; preset: disabled)
    Drop-In: /etc/systemd/system/netctl@wlan0\x2dWLAN\x2d897192.service.d
             └─profile.conf
     Active: failed (Result: exit-code) since Mon 2023-05-29 17:08:03 CEST; 1min 49s ago
   Duration: 33.710s
       Docs: man:netctl.profile(5)
    Process: 557 ExecStart=/usr/lib/netctl/network start wlan0-WLAN-897192 (code=exited, status=1/FAILURE)
   Main PID: 557 (code=exited, status=1/FAILURE)
        CPU: 107ms

May 29 17:07:33 arch dhcpcd[696]: wlan0: IAID 9b:2f:92:75
May 29 17:07:35 arch dhcpcd[696]: wlan0: soliciting a DHCP lease
May 29 17:08:03 arch dhcpcd[696]: timed out
May 29 17:08:03 arch network[693]: timed out
May 29 17:08:03 arch dhcpcd[696]: dhcpcd exited
May 29 17:08:03 arch network[693]: dhcpcd_fork_cb: truncated read 0 (expected 4)
May 29 17:08:03 arch network[557]: DHCP IPv4 lease attempt failed on interface 'wlan0'
May 29 17:08:03 arch network[557]: Failed to bring the network up for profile 'wlan0-WLAN-897192'
May 29 17:08:03 arch systemd[1]: netctl@wlan0\x2dWLAN\x2d897192.service: Main process exited, code=exited, status=1/FAILURE
May 29 17:08:03 arch systemd[1]: netctl@wlan0\x2dWLAN\x2d897192.service: Failed with result 'exit-code'.
Je redémarre le service et surveille le status. Ça retombe sur le même status : ce qui a l'air de clocher c'est le DHCP pour IPv4.

Code : Tout sélectionner

$ sudo systemctl start netctl\@wlan0\\x2dWLAN\\x2d897192.service

$ sudo systemctl status netctl\@wlan0\\x2dWLAN\\x2d897192.service 
● netctl@wlan0\x2dWLAN\x2d897192.service - Automatically generated profile by wifi-menu
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; enabled; preset: disabled)
    Drop-In: /etc/systemd/system/netctl@wlan0\x2dWLAN\x2d897192.service.d
             └─profile.conf
     Active: active (running) since Mon 2023-05-29 17:10:04 CEST; 33s ago
       Docs: man:netctl.profile(5)
   Main PID: 882 (network)
      Tasks: 7 (limit: 37707)
     Memory: 4.8M
        CPU: 99ms
     CGroup: /system.slice/system-netctl.slice/netctl@wlan0\x2dWLAN\x2d897192.service
             ├─ 882 /bin/bash /usr/lib/netctl/network start wlan0-WLAN-897192
             ├─ 894 wpa_supplicant -q -B -P /run/wpa_supplicant-wlan0.pid -i wlan0 -D nl80211,wext -c/run/netctl/wpa_supplicant-wlan0.conf
             ├─1009 "dhcpcd: [launcher]"
             ├─1011 "dhcpcd: wlan0 [ip4]"
             ├─1012 "dhcpcd: [privileged proxy] wlan0 [ip4]"
             ├─1013 "dhcpcd: [control proxy] wlan0 [ip4]"
             └─1016 "dhcpcd: [BPF BOOTP] wlan0"

May 29 17:10:04 arch systemd[1]: Starting Automatically generated profile by wifi-menu...
May 29 17:10:04 arch network[882]: Starting network profile 'wlan0-WLAN-897192'...
May 29 17:10:04 arch systemd[1]: Started Automatically generated profile by wifi-menu.
May 29 17:10:08 arch dhcpcd[1009]: dhcpcd-10.0.1 starting
May 29 17:10:08 arch dhcpcd[1012]: DUID 00:01:00:01:2c:04:ca:84:20:c1:9b:2f:92:75
May 29 17:10:08 arch dhcpcd[1012]: wlan0: connected to Access Point: WLAN-897192
May 29 17:10:08 arch dhcpcd[1012]: wlan0: IAID 9b:2f:92:75
May 29 17:10:09 arch dhcpcd[1012]: wlan0: soliciting a DHCP lease

$ sudo systemctl status netctl\@wlan0\\x2dWLAN\\x2d897192.service 
● netctl@wlan0\x2dWLAN\x2d897192.service - Automatically generated profile by wifi-menu
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; enabled; preset: disabled)
    Drop-In: /etc/systemd/system/netctl@wlan0\x2dWLAN\x2d897192.service.d
             └─profile.conf
     Active: active (running) since Mon 2023-05-29 17:10:04 CEST; 33s ago
       Docs: man:netctl.profile(5)
   Main PID: 882 (network)
      Tasks: 3 (limit: 37707)
     Memory: 3.6M
        CPU: 103ms
     CGroup: /system.slice/system-netctl.slice/netctl@wlan0\x2dWLAN\x2d897192.service
             ├─ 882 /bin/bash /usr/lib/netctl/network start wlan0-WLAN-897192
             ├─ 894 wpa_supplicant -q -B -P /run/wpa_supplicant-wlan0.pid -i wlan0 -D nl80211,wext -c/run/netctl/wpa_supplicant-wlan0.conf
             └─1184 sleep 0.2

May 29 17:10:08 arch dhcpcd[1009]: dhcpcd-10.0.1 starting
May 29 17:10:08 arch dhcpcd[1012]: DUID 00:01:00:01:2c:04:ca:84:20:c1:9b:2f:92:75
May 29 17:10:08 arch dhcpcd[1012]: wlan0: connected to Access Point: WLAN-897192
May 29 17:10:08 arch dhcpcd[1012]: wlan0: IAID 9b:2f:92:75
May 29 17:10:09 arch dhcpcd[1012]: wlan0: soliciting a DHCP lease
May 29 17:10:38 arch dhcpcd[1012]: timed out
May 29 17:10:38 arch network[1009]: timed out
May 29 17:10:38 arch dhcpcd[1012]: dhcpcd exited
May 29 17:10:38 arch network[1009]: dhcpcd_fork_cb: truncated read 0 (expected 4)
May 29 17:10:38 arch network[882]: DHCP IPv4 lease attempt failed on interface 'wlan0'
Ensuite je connecte le câble ethernet qui traverse mon couloir (je suis assis sur ma tour parce que le cable est trop court :-) ). La connection filaire fonctionne… le DHCP fonctionne, ça me dit que le routeur est en IPv6. J'ai aussi essayé de modifier profil netctl wlan0 pour utiliser dhclient et IPv6 (IP6=dhcp) sans plus de succès :-( Je ne comprends pas pourquoi les requêtes DHCP fonctionnent en filaire mais pas en wifi :mur:

Code : Tout sélectionner

$ sudo systemctl start dhcpcd

$ watch ping 1.1.1.1
$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=57 time=21.9 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=57 time=22.4 ms
^C
--- 1.1.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 21.911/22.157/22.404/0.246 ms

$ sudo systemctl status dhcpcd
[sudo] password for bobo: 
● dhcpcd.service - DHCP/ IPv4LL/ IPv6RA/ DHCPv6 client on all interfaces
     Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; disabled; preset: disabled)
     Active: active (running) since Mon 2023-05-29 17:11:06 CEST; 7min ago
   Main PID: 1209 (dhcpcd)
      Tasks: 5 (limit: 37707)
     Memory: 2.1M
        CPU: 54ms
     CGroup: /system.slice/dhcpcd.service
             ├─1209 "dhcpcd: [manager] [ip4] [ip6]"
             ├─1210 "dhcpcd: [privileged proxy]"
             ├─1211 "dhcpcd: [network proxy]"
             ├─1212 "dhcpcd: [control proxy]"
             └─1236 "dhcpcd: [BPF ARP] enp8s0 192.168.2.133"

May 29 17:11:09 arch dhcpcd[1210]: enp8s0: carrier acquired
May 29 17:11:09 arch dhcpcd[1210]: enp8s0: IAID 59:ad:7a:6d
May 29 17:11:09 arch dhcpcd[1210]: enp8s0: adding address fe80::bc98:d0dd:1893:a22c
May 29 17:11:09 arch dhcpcd[1210]: enp8s0: soliciting an IPv6 router
May 29 17:11:10 arch dhcpcd[1210]: enp8s0: rebinding lease of 192.168.2.133
May 29 17:11:11 arch dhcpcd[1210]: enp8s0: probing address 192.168.2.133/24
May 29 17:11:16 arch dhcpcd[1210]: enp8s0: leased 192.168.2.133 for 1814400 seconds
May 29 17:11:16 arch dhcpcd[1210]: enp8s0: adding route to 192.168.2.0/24
May 29 17:11:16 arch dhcpcd[1210]: enp8s0: adding default route via 192.168.2.1
May 29 17:11:23 arch dhcpcd[1210]: enp8s0: no IPv6 Routers available
À la fin j'obtiens ce resolv.conf.

Code : Tout sélectionner

$ cat /etc/resolv.conf
# Generated by resolvconf
domain speedport.ip
nameserver 192.168.2.1
dwm — BÉPO — vim — “more is less !”
Répondre