Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CONTENTS:
- [1] Reenable Netctl profile
- [2] List directories
- [3] Start netctl profile
- [4] Start fails, print systemctl output
- NEW [4.1] Other error check output
- [5] Output says wifi is already up. Maybe the device is up, but the network connection is not!
- [6] My Netctl Profile for MyWifi3
- [7] Start up wireless using manual means via #wpa_supplicant
- NEW [8] Recommendation to manually bring the interface down and back up with netctl
- [9] Search on "Failed to connect to non-global ctrl_ifname: wlp3s0 error: No such file or directory"
- [9.1] Check if dhcpcd is already up.
- [9.2] Ok. According to the advice @9, disable dhcpcd
- [9.3] Set the link down
- [9.4] Try to bring it back up with netctl
- [9.5] Check error log
- [10] More systemctl commands
- ---
- [1] Reenable Netctl profile
- # netctl reenable MyWifi3_wireless_dhcp_wpa
- rm '/etc/systemd/system/multi-user.target.wants/netctl@MyWifi3_wireless_dhcp_wpa.service'
- ln -s '/etc/systemd/system/netctl@MyWifi3_wireless_dhcp_wpa.service' '/etc/systemd/system/multi-user.target.wants/netctl@MyWifi3_wireless_dhcp_wpa.service'
- [2] List directories
- # ll netctl/
- total 40
- drwxr-xr-x 6 root root 4096 Mar 16 11:54 .
- drwxr-xr-x 68 root root 4096 Mar 13 12:19 ..
- -rw-r--r-- 1 root root 189 Dec 16 12:55 MyWifi1_ethernet_dhcp
- -rwxr-xr-x 1 root root 187 Dec 23 15:06 MyWifi1_wireless_dhcp_wpa
- -rw------- 1 root root 142 Dec 23 15:07 MyWifi2_wireless_dhcp
- drwxr-xr-x 2 root root 4096 Nov 17 04:37 examples
- drwxr-xr-x 2 root root 4096 Nov 17 04:37 hooks
- drwxr-xr-x 2 root root 4096 Nov 17 04:37 interfaces
- drwxr-xr-x 2 root root 4096 Mar 8 03:20 save
- -rw-r--r-- 1 root root 193 Mar 16 10:28 MyWifi3_wireless_dhcp_wpa
- -rw------- 1 root root 159 Mar 16 12:07 wlp3s0-MyWifi3
- # ll /etc/systemd/system
- total 20
- drwxr-xr-x 4 root root 4096 Mar 16 10:28 .
- drwxr-xr-x 6 root root 4096 Mar 12 13:42 ..
- drwxr-xr-x 2 root root 4096 Dec 16 12:28 getty.target.wants
- drwxr-xr-x 2 root root 4096 Mar 16 10:28 multi-user.target.wants
- -rw------- 1 root root 236 Mar 16 10:28 netctl@MyWifi3_wireless_dhcp_wpa.service
- # ll /etc/systemd/system/multi-user.target.wants/
- total 12
- drwxr-xr-x 2 root root 4096 Mar 16 10:28 .
- drwxr-xr-x 4 root root 4096 Mar 16 10:28 ..
- lrwxrwxrwx 1 root root 38 Dec 16 12:51 dhcpcd.service -> /usr/lib/systemd/system/dhcpcd.service
- lrwxrwxrwx 1 root root 65 Mar 16 10:28 netctl@MyWifi3_wireless_dhcp_wpa.service -> /etc/systemd/system/netctl@MyWifi3_wireless_dhcp_wpa.service
- lrwxrwxrwx 1 root root 40 Mar 6 17:21 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
- lrwxrwxrwx 1 root root 36 Dec 18 11:45 sshd.service -> /usr/lib/systemd/system/sshd.service
- [3] Start netctl profile
- # netctl start MyWifi3_wireless_dhcp_wpa
- Job for netctl@MyWifi3_wireless_dhcp_wpa.service failed. See 'systemctl status netctl@MyWifi3_wireless_dhcp_wpa.service' and 'journalctl -xn' for details.
- [4] Start fails, print systemctl output
- # systemctl status netctl@MyWifi3_wireless_dhcp_wpa.service
- netctl@MyWifi3_wireless_dhcp_wpa.service - MyWifi3 wpa_supplicant configuration file based wireless connection
- Loaded: loaded (/etc/systemd/system/netctl@MyWifi3_wireless_dhcp_wpa.service; enabled)
- Active: failed (Result: exit-code) since Sun 2014-03-16 12:03:26 EST; 20s ago
- Docs: man:netctl.profile(5)
- Process: 766 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
- Main PID: 766 (code=exited, status=1/FAILURE)
- Mar 16 12:03:26 MasterShake network[766]: Starting network profile 'MyWifi3_wireless_dhcp_wpa'...
- Mar 16 12:03:26 MasterShake systemd[1]: netctl@MyWifi3_wireless_dhcp_wpa.service: main process exited, code=exited, status=1/FAILURE
- Mar 16 12:03:26 MasterShake systemd[1]: Failed to start MyWifi3 wpa_supplicant configuration file based wireless connection.
- Mar 16 12:03:26 MasterShake systemd[1]: Unit netctl@MyWifi3_wireless_dhcp_wpa.service entered failed state.
- Mar 16 12:03:26 MasterShake network[766]: The interface of network profile 'MyWifi3_wireless_dhcp_wpa' is already up
- [4.1] Other error check output
- # journalctl -xn
- -- Logs begin at Tue 2013-12-17 13:19:59 EST, end at Mon 2014-03-17 10:43:2
- Mar 17 10:42:37 MasterShake systemd[489]: Starting Default.
- -- Subject: Unit UNIT has begun with start-up
- -- Defined-By: systemd
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- Unit UNIT has begun starting up.
- Mar 17 10:42:37 MasterShake systemd[489]: Reached target Default.
- -- Subject: Unit UNIT has finished start-up
- -- Defined-By: systemd
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- Unit UNIT has finished starting up.
- --
- -- The start-up result is done.
- Mar 17 10:42:37 MasterShake systemd[489]: Startup finished in 114ms.
- -- Subject: System start-up is now complete
- -- Defined-By: systemd
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- All system services necessary queued for starting at boot have been
- -- successfully started. Note that this does not mean that the machine is
- -- now idle as services might still be busy with completing start-up.
- --
- -- Kernel start-up required KERNEL_USEC microseconds.
- --
- -- Initial RAM disk start-up required INITRD_USEC microseconds.
- --
- -- Userspace start-up required 114994 microseconds.
- Mar 17 10:42:37 MasterShake login[346]: ROOT LOGIN ON tty1
- Mar 17 10:43:25 MasterShake systemd[1]: Starting MyWifi3 wpa_supplicant configuration file based wireless connection...
- -- Subject: Unit netctl@MyWifi3_wireless_dhcp_wpa.service has begun with start-up
- -- Defined-By: systemd
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- Unit netctl@MyWifi3_wireless_dhcp_wpa.service has begun starting up
- Mar 17 10:43:25 MasterShake network[549]: Starting network profile 'MyWifi3_wireless_dhcp_wpa'...
- Mar 17 10:43:25 MasterShake systemd[1]: netctl@MyWifi3_wireless_dhcp_wpa.service: main process exited, code=exited, status=1/FAILURE
- Mar 17 10:43:25 MasterShake systemd[1]: Failed to start MyWifi3 wpa_supplicant configuration file based wireless connection.
- -- Subject: Unit netctl@MyWifi3_wireless_dhcp_wpa.service has failed
- -- Defined-By: systemd
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- Unit netctl@MyWifi3_wireless_dhcp_wpa.service has failed.
- --
- -- The result is failed.
- Mar 17 10:43:25 MasterShake systemd[1]: Unit netctl@MyWifi3_wireless_dhcp_wpa.service entered failed state.
- Mar 17 10:43:25 MasterShake network[549]: The interface of network profile 'MyWifi3_wireless_dhcp_wpa' is already up
- [5] Output says wifi is already up. Maybe the device is up, but the network connection is not!
- //NOTE: This step [5] output is the same after both [4] and the new steps [4.1] [4.2]
- # ping 206.13.31.12 //Check for network connection, easiest for me to remember :)
- connect: Network is unreachable
- # ip addr //Verify the link is up
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
- 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: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
- link/ether 00:22:68:1c:fb:cc brd ff:ff:ff:ff:ff:ff
- 3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
- link/ether 00:26:c6:8a:11:b6 brd ff:ff:ff:ff:ff:ff
- # iw dev wlp3s0 link //Check link status
- Not connected.
- [6] My Netctl Profile for MyWifi3
- # cat MyWifi3_wireless_dhcp_wpa
- Description='MyWifi3 wpa_supplicant configuration file based wireless connection'
- Interface=wlp3s0
- Connection=wireless
- Security=wpa-config
- WPAConfigFile='/etc/wpa_supplicant.conf'
- IP=dhcp
- [7] Start up wireless using manual means via #wpa_supplicant
- # wpa_supplicant -i wlp3s0 -c /etc/wpa_supplicant.conf
- Successfully initialized wpa_supplicant
- wlp3s0: CTRL-EVENT-SCAN-STARTED
- wlp3s0: SME: Trying to authenticate with 00:22:55:de:52:60 (SSID='MyWifi3' freq=2427 MHz)
- wlp3s0: Trying to associate with 00:22:55:de:52:60 (SSID='MyWifi3' freq=2427 MHz)
- wlp3s0: Associated with 00:22:55:de:52:60
- wlp3s0: WPA: Key negotiation completed with 00:22:55:de:52:60 [PTK=TKIP GTK=TKIP]
- wlp3s0: CTRL-EVENT-CONNECTED - Connection to 00:22:55:de:52:60 completed [id=0 id_str=]
- [...]
- # ip addr
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
- 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: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
- link/ether 00:22:68:1c:fb:cc brd ff:ff:ff:ff:ff:ff
- 3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
- link/ether 00:26:c6:8a:11:b6 brd ff:ff:ff:ff:ff:ff
- inet 10.0.0.11/24 brd 10.0.0.255 scope global wlp3s0
- valid_lft forever preferred_lft forever
- inet6 fe80::226:c6ff:fe8a:11b6/64 scope link
- valid_lft forever preferred_lft forever
- # ping 206.13.31.12
- PING 206.13.31.12 (206.13.31.12) 56(84) bytes of data.
- 64 bytes from 206.13.31.12: icmp_seq=1 ttl=237 time=85.3 ms
- 64 bytes from 206.13.31.12: icmp_seq=2 ttl=237 time=85.1 ms
- [8] Try Recommendation to manually bring the interface DOWN then back up with Netctl
- # ip link set wlp3s0 down
- [root@MasterShake netctl]# netctl start MyWifi3_wireless_dhcp_wpa
- // THIS ACTUALLY TAKES SOME TIME... LIKE NORMAL, BUT STILL ENTERS FAILED STATE:
- Job for netctl@MyWifi3_wireless_dhcp_wpa.service failed. See 'systemctl status netctl@MyWifi3_wireless_dhcp_wpa.service' and 'journalctl -xn' for details.
- # journalctl -xn
- -- Logs begin at Tue 2013-12-17 13:19:59 EST, end at Mon 2014-03-17 11:25:17 EST. --
- Mar 17 11:25:16 MasterShake network[634]: Failed to connect to non-global ctrl_ifname: wlp3s0 error: No such file or directory
- Mar 17 11:25:17 MasterShake kernel: wlp3s0: deauthenticating from 00:22:55:de:52:60 by local choice (reason=3)
- Mar 17 11:25:17 MasterShake kernel: cfg80211: Calling CRDA to update world regulatory domain
- Mar 17 11:25:17 MasterShake dhcpcd[323]: wlp3s0: carrier lost
- Mar 17 11:25:17 MasterShake dhcpcd[323]: wlp3s0: deleting route to 10.0.0.0/24
- Mar 17 11:25:17 MasterShake dhcpcd[323]: wlp3s0: deleting default route via 10.0.0.1
- Mar 17 11:25:17 MasterShake systemd[1]: netctl@MyWifi3_wireless_dhcp_wpa.service: main process exited, code=exited, status=1/FAILURE
- Mar 17 11:25:17 MasterShake systemd[1]: Failed to start MyWifi3 wpa_supplicant configuration file based wireless connection.
- -- Subject: Unit netctl@MyWifi3_wireless_dhcp_wpa.service has failed
- -- Defined-By: systemd
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- Unit netctl@MyWifi3_wireless_dhcp_wpa.service has failed.
- --
- -- The result is failed.
- Mar 17 11:25:17 MasterShake systemd[1]: Unit netctl@MyWifi3_wireless_dhcp_wpa.service entered failed state.
- Mar 17 11:25:17 MasterShake network[634]: Failed to bring the network up for profile 'MyWifi3_wireless_dhcp_wpa'
- [9] Search on "Failed to connect to non-global ctrl_ifname: wlp3s0 error: No such file or directory"
- [url=https://bbs.archlinux.org/viewtopic.php?id=173038]
- "...I think you just need to decide how you want to manage it. Pick ONE management option: netctl etc. would be one option; wicd would be another option. I don't think merely disabling wicd's wired profile is really going to work - you still have two things trying to manage dhcpd etc. and it is just asking for trouble. Pick one and work with that. Disable everything else. (Including: do not start dhcpd directly with systemctl - let the tool you pick manage it as it will try to anyway..)
- The more is the miserable where wifi management is concerned. Less is more so enjoy."
- [9.1] Check if dhcpcd is already up.
- Show the status of a unit, including whether it is running or not:
- $ systemctl status unit
- # systemctl status dhcpcd
- dhcpcd.service - dhcpcd on all interfaces
- Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled)
- Active: active (running) since Mon 2014-03-17 11:42:49 EST; 2min 0s ago
- Process: 315 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
- Main PID: 322 (dhcpcd)
- CGroup: /system.slice/dhcpcd.service
- └─322 /usr/bin/dhcpcd -q -b
- Mar 17 11:42:51 MasterShake dhcpcd[322]: enp0s25: waiting for carrier
- Mar 17 11:42:51 MasterShake dhcpcd[322]: wlp3s0: waiting for carrier
- Mar 17 11:42:51 MasterShake dhcpcd[322]: wlp3s0: carrier acquired
- Mar 17 11:42:51 MasterShake dhcpcd[322]: wlp3s0: carrier lost
- Mar 17 11:42:58 MasterShake dhcpcd[322]: wlp3s0: waiting for carrier
- [9.2] Ok. According to the advice @9, disable dhcpcd
- # systemctl stop dhcpcd
- # systemctl status dhcpcd
- dhcpcd.service - dhcpcd on all interfaces
- Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled)
- Active: failed (Result: exit-code) since Mon 2014-03-17 11:45:14 EST; 1s ago
- Process: 552 ExecStop=/usr/bin/dhcpcd -x (code=exited, status=0/SUCCESS)
- Process: 315 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
- Main PID: 322 (code=exited, status=1/FAILURE)
- Mar 17 11:42:51 MasterShake dhcpcd[322]: wlp3s0: waiting for carrier
- Mar 17 11:42:51 MasterShake dhcpcd[322]: wlp3s0: carrier acquired
- Mar 17 11:42:51 MasterShake dhcpcd[322]: wlp3s0: carrier lost
- Mar 17 11:42:58 MasterShake dhcpcd[322]: wlp3s0: waiting for carrier
- Mar 17 11:45:14 MasterShake systemd[1]: Stopping dhcpcd on all interfac....
- Mar 17 11:45:14 MasterShake systemd[1]: dhcpcd.service: main process ex...E
- Mar 17 11:45:14 MasterShake systemd[1]: Stopped dhcpcd on all interfaces.
- Mar 17 11:45:14 MasterShake systemd[1]: Unit dhcpcd.service entered fai....
- Mar 17 11:45:14 MasterShake dhcpcd[552]: dhcpcd[552]: sending signal 15...2
- Mar 17 11:45:14 MasterShake dhcpcd[552]: dhcpcd[552]: waiting for pid 3...t
- Hint: Some lines were ellipsized, use -l to show in full.
- [9.3] Set the link down
- # ip link set wlp3s0 down
- [9.4] Try to bring it back up with netctl
- # netctl start TooterTurtle_wireless_dhcp_wpa
- Job for netctl@TooterTurtle_wireless_dhcp_wpa.service failed. See 'systemctl status netctl@TooterTurtle_wireless_dhcp_wpa.service' and 'journalctl -xn' for details.
- [9.5] Check error log
- # journalctl -xn
- -- Logs begin at Tue 2013-12-17 13:19:59 EST, end at Mon 2014-03-17 11:46:23 EST. --
- Mar 17 11:46:21 MasterShake network[575]: Failed to connect to non-global ctrl_ifname: wlp3s0 error: No such file or directory
- Mar 17 11:46:21 MasterShake network[575]: WPA association/authentication failed for interface 'wlp3s0'
- Mar 17 11:46:21 MasterShake network[575]: Failed to connect to non-global ctrl_ifname: wlp3s0 error: No such file or directory
- Mar 17 11:46:21 MasterShake network[575]: Failed to connect to non-global ctrl_ifname: wlp3s0 error: No such file or directory
- Mar 17 11:46:22 MasterShake kernel: wlp3s0: deauthenticating from 00:22:55:de:52:60 by local choice (reason=3)
- Mar 17 11:46:22 MasterShake kernel: cfg80211: Calling CRDA to update world regulatory domain
- Mar 17 11:46:22 MasterShake network[575]: Failed to bring the network up for profile 'MyWifi3_wireless_dhcp_wpa'
- Mar 17 11:46:22 MasterShake systemd[1]: netctl@MyWifi3_wireless_dhcp_wpa.service: main process exited, code=exited, status=1/FAILURE
- Mar 17 11:46:22 MasterShake systemd[1]: Failed to start MyWifi3 wpa_supplicant configuration file based wireless connection.
- -- Subject: Unit netctl@MyWifi3_wireless_dhcp_wpa.service has failed
- -- Defined-By: systemd
- -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
- --
- -- Unit netctl@MyWifi3_wireless_dhcp_wpa.service has failed.
- [10] More systemctl commands
- [url=http://www.archlinux.org/systemctl]
- Activate a unit immediately:
- # systemctl start unit
- Deactivate a unit immediately:
- # systemctl stop unit
- Enable a unit to be started on bootup:
- # systemctl enable unit
- Disable a unit to not start during bootup:
- # systemctl disable unit
- +++
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement