Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

hostapd.service: Control process exited, code=exited, status=1/FAILURE

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
mfx
Posts: 4
Joined: 2022-05-28 01:57

hostapd.service: Control process exited, code=exited, status=1/FAILURE

#1 Post by mfx »

Hi,

I followed this tutorial : https://pimylifeup.com/raspberry-pi-wir ... ess-point/

But when:

Code: Select all

sudo systemctl start hostapd
I get:

Code: Select all

Job for hostapd.service failed because the control process exited with error code.
See "systemctl status hostapd.service" and "journalctl -xe" for details.
May someone give me a hand ?

Thanks in advance

Michael

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: hostapd.service: Control process exited, code=exited, status=1/FAILURE

#2 Post by 4D696B65 »

mfx wrote: 2022-05-28 02:07 May someone give me a hand ?
See "systemctl status hostapd.service" and "journalctl -xe" for details.

mfx
Posts: 4
Joined: 2022-05-28 01:57

Re: hostapd.service: Control process exited, code=exited, status=1/FAILURE

#3 Post by mfx »

Hi 4D696B65,

Thanks for your reply.
Here's the systemctl status hostapd.service :

Code: Select all

● hostapd.service - Access point and authentication server for Wi-Fi and Ethernet
     Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2022-05-27 17:52:00 -10; 295ms ago
       Docs: man:hostapd(8)
    Process: 8800 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=1/FAILURE)
        CPU: 57ms

mfx
Posts: 4
Joined: 2022-05-28 01:57

Re: hostapd.service: Control process exited, code=exited, status=1/FAILURE

#4 Post by mfx »

4D696B65 wrote: 2022-05-28 03:21
mfx wrote: 2022-05-28 02:07 May someone give me a hand ?
See "systemctl status hostapd.service" and "journalctl -xe" for details.
Hi 4D696B65,

The journalctl -xe gives me that :

Code: Select all

May 27 17:56:07 raspberrypi hostapd[8918]: Configuration file: /etc/hostapd/hostapd.conf
May 27 17:56:07 raspberrypi hostapd[8918]: rfkill: WLAN soft blocked
May 27 17:56:07 raspberrypi hostapd[8918]: Using interface wlan0 with hwaddr  and ssid ""
May 27 17:56:07 raspberrypi hostapd[8918]: Failed to set beacon parameters
May 27 17:56:07 raspberrypi hostapd[8918]: wlan0: Could not connect to kernel driver
May 27 17:56:07 raspberrypi hostapd[8918]: Interface initialization failed
May 27 17:56:07 raspberrypi hostapd[8918]: wlan0: interface state UNINITIALIZED->DISABLED
May 27 17:56:07 raspberrypi hostapd[8918]: wlan0: AP-DISABLED
May 27 17:56:07 raspberrypi hostapd[8918]: wlan0: Unable to setup interface.
May 27 17:56:07 raspberrypi hostapd[8918]: wlan0: interface state DISABLED->DISABLED
May 27 17:56:07 raspberrypi hostapd[8918]: wlan0: AP-DISABLED
May 27 17:56:07 raspberrypi hostapd[8918]: wlan0: CTRL-EVENT-TERMINATING
May 27 17:56:07 raspberrypi hostapd[8918]: hostapd_free_hapd_data: Interface wlan0 wasn't started
May 27 17:56:07 raspberrypi hostapd[8918]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
May 27 17:56:07 raspberrypi systemd[1]: hostapd.service: Control process exited, code=exited, status=1/FAILURE
I commented the driver line in /etc/hostapd/hostapd.conf

mfx
Posts: 4
Joined: 2022-05-28 01:57

Re: hostapd.service: Control process exited, code=exited, status=1/FAILURE

#5 Post by mfx »

OK solved it by using raspi-config to set the wifi locale.
Then brought wlan0 up.

Post Reply