You are not logged in.

#1 2020-10-16 11:11:18

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Help setting up wifi... [SOLVED]

Hej guys,

I have installed wpa_supplicant, netctl and wifi-menu.

With this combination, I have got wifi working on my other devices very easily and quickly. On my new laptop however, I keep getting vague error messages. The config files (below) are actually exactly the same on my other laptop which works fine.

One thing that I have noticed that is odd is that on my other laptop I do not need to sudo to edit the files in /etc/netctrl, but on my new laptop I need to use sudo. Some setup difference that I have missed somewhere? Maybe a permission problem? I don't remember changing anything on my other laptop (unfortunately I don't have it with me at this minute to check the setup). Also, it still doesn't work in su mode.

Error:

[root@ArchDell netctl]# netctl start WorkWifi 
Job for netctl@WorkWifi.service failed because the control process exited with error code.
See "systemctl status netctl@WorkWifi.service" and "journalctl -xe" for details.
[root@ArchDell netctl]# systemctl status netctl@WorkWifi.service
* netctl@WorkWifi.service - Networking for netctl profile WorkWifi
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
     Active: failed (Result: exit-code) since Fri 2020-10-16 15:03:39 CEST; 4mi>
       Docs: man:netctl.profile(5)
    Process: 1393 ExecStart=/usr/lib/netctl/network start WorkWifi (code=exited>
   Main PID: 1393 (code=exited, status=1/FAILURE)

Oct 16 15:03:39 ArchDell systemd[1]: Starting Networking for netctl profile Wor>
Oct 16 15:03:39 ArchDell network[1393]: Starting network profile 'WorkWifi'...
Oct 16 15:03:39 ArchDell network[1393]: The interface of network profile 'WorkW>
Oct 16 15:03:39 ArchDell systemd[1]: netctl@WorkWifi.service: Main process exit>
Oct 16 15:03:39 ArchDell systemd[1]: netctl@WorkWifi.service: Failed with resul>
Oct 16 15:03:39 ArchDell systemd[1]: Failed to start Networking for netctl prof>
lines 1-13/13 (END)...skipping...
* netctl@WorkWifi.service - Networking for netctl profile WorkWifi
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
     Active: failed (Result: exit-code) since Fri 2020-10-16 15:03:39 CEST; 4min 57s ago
       Docs: man:netctl.profile(5)
    Process: 1393 ExecStart=/usr/lib/netctl/network start WorkWifi (code=exited, status=1/FAILURE)
   Main PID: 1393 (code=exited, status=1/FAILURE)

Oct 16 15:03:39 ArchDell systemd[1]: Starting Networking for netctl profile WorkWifi...
Oct 16 15:03:39 ArchDell network[1393]: Starting network profile 'WorkWifi'...
Oct 16 15:03:39 ArchDell network[1393]: The interface of network profile 'WorkWifi' is already up
Oct 16 15:03:39 ArchDell systemd[1]: netctl@WorkWifi.service: Main process exited, code=exited, status=1/FAILURE
Oct 16 15:03:39 ArchDell systemd[1]: netctl@WorkWifi.service: Failed with result 'exit-code'.
Oct 16 15:03:39 ArchDell systemd[1]: Failed to start Networking for netctl profile WorkWifi.
[root@ArchDell netctl]# journalctl -xe
-- A start job for unit systemd-tmpfiles-clean.service has begun execution.
-- 
-- The job identifier is 730.
Oct 16 15:03:23 ArchDell systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The unit systemd-tmpfiles-clean.service has successfully entered the 'dead' state.
Oct 16 15:03:23 ArchDell systemd[1]: Finished Cleanup of Temporary Directories.
-- Subject: A start job for unit systemd-tmpfiles-clean.service has finished successfully
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit systemd-tmpfiles-clean.service has finished successfully.
-- 
-- The job identifier is 730.
Oct 16 15:03:23 ArchDell audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Oct 16 15:03:23 ArchDell audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Oct 16 15:03:23 ArchDell kernel: audit: type=1130 audit(1602853403.988:59): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succes>
Oct 16 15:03:23 ArchDell kernel: audit: type=1131 audit(1602853403.988:60): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=succes>
Oct 16 15:03:39 ArchDell systemd[1]: Starting Networking for netctl profile WorkWifi...
-- Subject: A start job for unit netctl@WorkWifi.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit netctl@WorkWifi.service has begun execution.
-- 
-- The job identifier is 734.
Oct 16 15:03:39 ArchDell network[1393]: Starting network profile 'WorkWifi'...
Oct 16 15:03:39 ArchDell network[1393]: The interface of network profile 'WorkWifi' is already up
Oct 16 15:03:39 ArchDell systemd[1]: netctl@WorkWifi.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@WorkWifi.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
Oct 16 15:03:39 ArchDell systemd[1]: netctl@WorkWifi.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The unit netctl@WorkWifi.service has entered the 'failed' state with result 'exit-code'.
Oct 16 15:03:39 ArchDell systemd[1]: Failed to start Networking for netctl profile WorkWifi.
-- Subject: A start job for unit netctl@WorkWifi.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit netctl@WorkWifi.service has finished with a failure.
-- 
-- The job identifier is 734 and the job result is failed.
Oct 16 15:03:39 ArchDell audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@WorkWifi comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Oct 16 15:03:39 ArchDell kernel: audit: type=1130 audit(1602853419.084:61): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@WorkWifi comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
lines 1764-1818/1818 (END)

Setup file:

Description='A simple WPA encrypted wireless connection'
Interface=wlp2s0
Connection=wireless

Security=wpa
IP=dhcp

ESSID='ne-prim'
# Prepend hexadecimal keys with \"
# If your key starts with ", write it as '""<key>"'
# See also: the section on special quoting rules in netctl.profile(5)
Key=*************************
# Uncomment this if your ssid is hidden
#Hidden=yes
# Set a priority for automatic profile selection
#Priority=10

ip link:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether c8:f7:50:3f:f5:b0 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether d4:3b:04:55:47:d6 brd ff:ff:ff:ff:ff:ff

Last edited by wombatvvv (2020-10-17 10:10:28)

Offline

#2 2020-10-16 13:39:48

teckk
Member
Registered: 2013-02-21
Posts: 519

Re: Help setting up wifi... [SOLVED]

/etc/netctl/<mynetwork> should be owned by root.

Your systemctl and journalctl outputs are cut off. Use --no-pager or scroll right/left. Post the whole output.

https://wiki.archlinux.org/index.php/Netctl
Look at the troubleshooting section. Look at the warning for .include directives.

Offline

#3 2020-10-16 13:44:26

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: Help setting up wifi... [SOLVED]

Oct 16 15:03:39 ArchDell network[1393]: The interface of network profile 'WorkWifi' is already up

Some other service (possibly dhcpcd?) brought the interface up, please post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Offline

#4 2020-10-17 08:38:01

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Re: Help setting up wifi... [SOLVED]

Thanks for the replies guys.

Taking a tip from the second post there, I disabled dhcpcd (systemctl disable dhcpcd), rebooted, and it now works fine.

I was under the impression I should have dhcpcd enabled though ... in order to automatically connect the ehternet networks when they are plugged in? Is that wrong?

Thanks for taking the time to help me.

Offline

#5 2020-10-17 08:51:39

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: Help setting up wifi... [SOLVED]

No, you need to pick *one* service (at least per NIC), ie. at the very minimum, restrict the dhcpcd service to enp0s31f6 (there's a big fat note about that in the network wiki)
Also you may want to look at https://wiki.archlinux.org/index.php/Ne … temd_units (since you likely want to switch the used NIC and route)

Offline

#6 2020-10-17 10:10:11

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

Re: Help setting up wifi... [SOLVED]

Thankyou!

Offline

Board footer

Powered by FluxBB