You are not logged in.

#1 2019-06-29 11:01:50

vipinbalakrishnan
Member
Registered: 2018-07-10
Posts: 36

[SOLVED] Connect using wifi-menu . connection failed error message

Unable to connect using wifi-menu in my arch linux always it give me connection failed.

i am using 4.19.56-1-lts kernal

My profile which is created by wifi menu

sudo cat /etc/netctl/wifitest

Description='Automatically generated profile by wifi-menu'
Interface=wlp2s0
Connection=wireless
Security=wpa
ESSID=wifitest
IP=dhcp
Key=mypassword

It always give me an error shown below

Job for netctl@wifitest.service failed because the control process exited with error code.
See "systemctl status netctl@wifitest.service" and "journalctl -xe" for details.

systemctl status netctl@wifitest.service

* netctl@wifitest.service - Networking for netctl profile wifitest
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2019-06-29 16:06:36 IST; 39s ago
     Docs: man:netctl.profile(5)
  Process: 2574 ExecStart=/usr/lib/netctl/network start wifitest (code=exited, status=1/FAILURE)
 Main PID: 2574 (code=exited, status=1/FAILURE)

journalctl -xe

Jun 29 16:06:36 vipin-laptop systemd[1]: Starting Networking for netctl profile wifitest...
Jun 29 16:06:36 vipin-laptop network[2574]: Starting network profile 'wifitest'...
Jun 29 16:06:36 vipin-laptop network[2574]: The interface of network profile 'wifitest' is already up
Jun 29 16:06:36 vipin-laptop systemd[1]: netctl@wifitest.service: Main process exited, code=exited, status=1/FAILURE
Jun 29 16:06:36 vipin-laptop systemd[1]: netctl@wifitest.service: Failed with result 'exit-code'.
Jun 29 16:06:36 vipin-laptop systemd[1]: Failed to start Networking for netctl profile wifitest.
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: GSimpleAsyncResult: 0x55b984fbd600
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: polkit_qt_listener_initiate_authentication callback for  0x55b984f950a0
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: Initiating authentication
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: Message of action:  "Authentication is required to start 'netctl@wifitest.service'."
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: Action description has been found
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: WinId of the dialog is  37748742 37748742
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: WinId of the shown dialog is  37748742 37748742
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: Trying again
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: REQUEST
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: Request:  "Password: "
Jun 29 16:03:50 vipin-laptop polkit-kde-authentication-agent-1[1357]: "Password: "
Jun 29 16:03:53 vipin-laptop polkit-kde-authentication-agent-1[1357]: Dialog cancelled
Jun 29 16:03:53 vipin-laptop polkit-kde-authentication-agent-1[1357]: COMPLETED
Jun 29 16:03:53 vipin-laptop polkit-kde-authentication-agent-1[1357]: Completed:  false
Jun 29 16:03:53 vipin-laptop polkit-kde-authentication-agent-1[1357]: Finishing obtaining privileges
Jun 29 16:03:53 vipin-laptop polkit-kde-authentication-agent-1[1357]: Listener adapter polkit_qt_listener_initiate_authentication_finish
Jun 29 16:03:53 vipin-laptop polkit-kde-authentication-agent-1[1357]: polkit_qt_listener_initiate_authentication_finish callback for  0x55b984f950a0
Jun 29 16:03:53 vipin-laptop polkit-kde-authentication-agent-1[1357]: Finish obtain authorization: false
Jun 29 16:03:53 vipin-laptop polkit-kde-authentication-agent-1[1357]: Finishing obtaining privileges
Jun 29 16:03:53 vipin-laptop polkit-kde-authentication-agent-1[1357]: Finish obtain authorization: false
Jun 29 16:03:53 vipin-laptop polkitd[498]: Operator of unix-session:3 FAILED to authenticate to gain authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.493 [systemctl start netctl@wifitest.service] (owned by unix-user:vipin)
Jun 29 16:03:53 vipin-laptop polkitd[498]: Unregistered Authentication Agent for unix-process:2550:528519 (system bus name :1.492, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale C) (disconnected from bus)
Jun 29 16:03:59 vipin-laptop sudo[2558]:    vipin : TTY=pts/1 ; PWD=/home/vipin ; USER=root ; COMMAND=/usr/bin/cat /etc/netctl/wifitest
Jun 29 16:03:59 vipin-laptop sudo[2558]: pam_unix(sudo:session): session opened for user root by vipin(uid=0)
Jun 29 16:03:59 vipin-laptop sudo[2558]: pam_unix(sudo:session): session closed for user root
Jun 29 16:04:04 vipin-laptop kernel: [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun
Jun 29 16:04:05 vipin-laptop sudo[2560]:    vipin : TTY=pts/1 ; PWD=/home/vipin ; USER=root ; COMMAND=/usr/bin/nano /etc/netctl/wifitest
Jun 29 16:04:05 vipin-laptop sudo[2560]: pam_unix(sudo:session): session opened for user root by vipin(uid=0)
Jun 29 16:06:21 vipin-laptop sudo[2560]: pam_unix(sudo:session): session closed for user root
Jun 29 16:06:36 vipin-laptop sudo[2569]:    vipin : TTY=pts/1 ; PWD=/home/vipin ; USER=root ; COMMAND=/usr/bin/netctl start wifitest
Jun 29 16:06:36 vipin-laptop sudo[2569]: pam_unix(sudo:session): session opened for user root by vipin(uid=0)
Jun 29 16:06:36 vipin-laptop systemd[1]: Starting Networking for netctl profile wifitest...
-- Subject: A start job for unit netctl@wifitest.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit netctl@wifitest.service has begun execution.
-- 
-- The job identifier is 2048.
Jun 29 16:06:36 vipin-laptop network[2574]: Starting network profile 'wifitest'...
Jun 29 16:06:36 vipin-laptop network[2574]: The interface of network profile 'wifitest' is already up
Jun 29 16:06:36 vipin-laptop systemd[1]: netctl@wifitest.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@wifitest.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
Jun 29 16:06:36 vipin-laptop systemd[1]: netctl@wifitest.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The unit netctl@wifitest.service has entered the 'failed' state with result 'exit-code'.
Jun 29 16:06:36 vipin-laptop systemd[1]: Failed to start Networking for netctl profile wifitest.
-- Subject: A start job for unit netctl@wifitest.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- A start job for unit netctl@wifitest.service has finished with a failure.
-- 
-- The job identifier is 2048 and the job result is failed.
Jun 29 16:06:36 vipin-laptop audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@wifitest comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jun 29 16:06:36 vipin-laptop kernel: audit: type=1130 audit(1561804596.416:62): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@wifitest comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jun 29 16:06:36 vipin-laptop sudo[2569]: pam_unix(sudo:session): session closed for user root

systemctl --type=service

UNIT                                                                                      LOAD   ACTIVE SUB     DESCRIPTION                                                                  
  dbus.service                                                                              loaded active running D-Bus System Message Bus                                                     
  dhcpcd.service                                                                            loaded active running dhcpcd on all interfaces                                                     
  kmod-static-nodes.service                                                                 loaded active exited  Create list of required static device nodes for the current kernel           
  lvm2-lvmetad.service                                                                      loaded active running LVM2 metadata daemon                                                         
  lvm2-monitor.service                                                                      loaded active exited  Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
  lvm2-pvscan@254:0.service                                                                 loaded active exited  LVM2 PV scan on device 254:0                                                 
* netctl@wifitest.service                                                                   loaded failed failed  Networking for netctl profile wifitest                                       
  polkit.service                                                                            loaded active running Authorization Manager                                                        
  rtkit-daemon.service                                                                      loaded active running RealtimeKit Scheduling Policy Service                                        
  sddm.service                                                                              loaded active running Simple Desktop Display Manager                                               
  systemd-backlight@backlight:intel_backlight.service                                       loaded active exited  Load/Save Screen Backlight Brightness of backlight:intel_backlight           
  systemd-cryptsetup@mydata.service                                                         loaded active exited  Cryptography Setup for mydata                                                
  systemd-fsck@dev-disk-by\x2duuid-2bceea9f\x2d6c5a\x2d4a2e\x2dbb36\x2da65ae797ebfe.service loaded active exited  File System Check on /dev/disk/by-uuid/2bceea9f-6c5a-4a2e-bb36-a65ae797ebfe  
  systemd-journal-flush.service                                                             loaded active exited  Flush Journal to Persistent Storage                                          
  systemd-journald.service                                                                  loaded active running Journal Service                                                              
  systemd-logind.service                                                                    loaded active running Login Service                                                                
  systemd-modules-load.service                                                              loaded active exited  Load Kernel Modules                                                          
  systemd-random-seed.service                                                               loaded active exited  Load/Save Random Seed                                                        
  systemd-remount-fs.service                                                                loaded active exited  Remount Root and Kernel File Systems                                         
  systemd-sysctl.service                                                                    loaded active exited  Apply Kernel Variables                                                       
  systemd-timesyncd.service                                                                 loaded active running Network Time Synchronization                                                 
  systemd-tmpfiles-setup-dev.service                                                        loaded active exited  Create Static Device Nodes in /dev                                           
  systemd-tmpfiles-setup.service                                                            loaded active exited  Create Volatile Files and Directories                                        
  systemd-udev-trigger.service                                                              loaded active exited  udev Coldplug all Devices                                                    
  systemd-udevd.service                                                                     loaded active running udev Kernel Device Manager                                                   
  systemd-update-utmp.service                                                               loaded active exited  Update UTMP about System Boot/Shutdown                                       
  systemd-user-sessions.service                                                             loaded active exited  Permit User Sessions                                                         
  udisks2.service                                                                           loaded active running Disk Manager                                                                 
  upower.service                                                                            loaded active running Daemon for power management                                                  
  user-runtime-dir@1000.service                                                             loaded active exited  User Runtime Directory /run/user/1000                                        
  user@1000.service                                                                         loaded active running User Manager for UID 1000    

lspci -k

        Subsystem: Dell Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
        Kernel driver in use: skl_uncore
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
        DeviceName:  Onboard IGD
        Subsystem: Dell Skylake GT2 [HD Graphics 520]
        Kernel driver in use: i915
        Kernel modules: i915
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
        Subsystem: Dell Sunrise Point-LP USB 3.0 xHCI Controller
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
        Subsystem: Dell Sunrise Point-LP Thermal subsystem
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
        Subsystem: Dell Sunrise Point-LP Serial IO I2C Controller
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
        Subsystem: Dell Sunrise Point-LP Serial IO I2C Controller
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
        Subsystem: Dell Sunrise Point-LP SATA Controller [AHCI mode]
        Kernel driver in use: ahci
        Kernel modules: ahci
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
        Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
        Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
        Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
        Subsystem: Dell Sunrise Point-LP LPC Controller
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
        Subsystem: Dell Sunrise Point-LP PMC
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
        Subsystem: Dell Sunrise Point-LP HD Audio
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_skl
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
        Subsystem: Dell Sunrise Point-LP SMBus
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile] (rev 81)
        Subsystem: Dell Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile]
        Kernel driver in use: radeon
        Kernel modules: radeon, amdgpu
02:00.0 Network controller: Intel Corporation Wireless 3160 (rev 83)
        Subsystem: Intel Corporation Dual Band Wireless AC 3160
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 07)
        Subsystem: Dell RTL810xE PCI Express Fast Ethernet controller
        Kernel driver in use: r8169
        Kernel modules: r8169

ip a s

3: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether f2:f1:a7:60:0f:38 brd ff:ff:ff:ff:ff:ff

If i connect using ethernet cable all is working fine. I want using netctl  to make the wifi work using wifi-menu. Please let me know what i am missing.

Last edited by vipinbalakrishnan (2019-06-30 02:59:04)

Offline

#2 2019-06-29 12:48:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,161

Re: [SOLVED] Connect using wifi-menu . connection failed error message

Stop dhcpcd, it will by default try to operate on all interfaces, causing wlp2s0 to be up and therefore netctl won't touch it.

Please read the wiki on network configuration and in general and for the future:
"journalctl -b", no tails and certainly not "-x" which probably means "eXclusively clutter" (ie. it makes the output unreadable w/o providing *any* benefit)

Offline

#3 2019-06-29 14:42:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,703

Re: [SOLVED] Connect using wifi-menu . connection failed error message

As Seth points out, The dhcpcd *Service* is fighting for control with the dhcp client that it started by netctl, so you need to stop and disable the service.   But, that will cause issues with the wired Ethernet.  If you want to use netctl, you will need to set up a profile for the wired and the wireless interfaces.  Or, you need to set up a dhcpcd@ service that restricts itself to only the wired NIC.

You may also want to look at the alternatives; systemd-network, NetworkManager, etc...


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2019-06-29 18:17:43

vipinbalakrishnan
Member
Registered: 2018-07-10
Posts: 36

Re: [SOLVED] Connect using wifi-menu . connection failed error message

Seth and ewaller, Thanks for the hint, Now I got the problem.

I stop and disable following systemd service

sudo systemctl disable dhcpcd
sudo systemctl disable NetworkManager

After doing the above step. I enable netctl-auto service.

systemctl enable netctl-auto@wlp2s0.service

Now my netctl profiles started working.

This link also help me alot
https://wiki.archlinux.org/index.php/Ne … e_Profiles

Offline

#5 2019-06-29 18:31:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Connect using wifi-menu . connection failed error message

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2019-12-11 17:44:50

atomikegg
Member
Registered: 2019-08-14
Posts: 128

Re: [SOLVED] Connect using wifi-menu . connection failed error message

ewaller wrote:

dhcpcd *Service* is fighting for control with the dhcp client that it started by netctl\

What client is that? netctl wiki says dhcpcd is an optional dependency of netctl. I installed dhcpcd on arch, and i never disabled it. netctl works no problem.
https://wiki.archlinux.org/index.php/Ne … stallation

Offline

#7 2019-12-11 18:02:20

loqs
Member
Registered: 2014-03-06
Posts: 19,097

Re: [SOLVED] Connect using wifi-menu . connection failed error message

atomikegg wrote:
ewaller wrote:

dhcpcd *Service* is fighting for control with the dhcp client that it started by netctl\

What client is that? netctl wiki says dhcpcd is an optional dependency of netctl. I installed dhcpcd on arch, and i never disabled it. netctl works no problem.
https://wiki.archlinux.org/index.php/Ne … stallation

atomicegg,  ewaller stated the dhcpcd service not the package.  The dhcpcd or dhclient package is required for DHCP use by netctl.
dhcpcd.service will conflict with netctl@.service as noted by Network_configuration#Network_managers
The link you provided does not mention enabling any service and infact warns against it:

Warning: Do not enable concurrent, conflicting network services. Use systemctl --type=service to ensure that no other network service is running before enabling a netctl profile/service.

Last edited by loqs (2019-12-11 18:03:11)

Offline

#8 2019-12-11 18:19:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,703

Re: [SOLVED] Connect using wifi-menu . connection failed error message

To expand on loqs' explanation.   It is dhcpcd daemon that carries the water -- it sits in the background and springs to life when needed to reach out to a server and obtain a new address.  This can occur when a lease expires, when a carrier is lost and restored, when you change networks, etc...    But, what starts the daemon in the first place?  NetworkManager will spawn it when it needs it.  So will netctl.  So does the dhcpcd service.   That is the point -- the service starts the daemon.   

If the daemon has been started by the dhcpcd service, and then later NetworkManager or Netctl try to spin up their own copy, bad things can and do happen.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB