What is the cause of the error message: Failed to start Advanced IEEE 802.11 AP and IEEE 802.1X / WPA / WPA2 / EAP Authenticator?

Br
1

I followed the following instructions to set up an LTE mobile router:

https://maker.pro/raspberry-pi/tutorial/how-to-create-a-4g-hotspot-with-raspberry-pi

However, I can't start the hostapd daemon, if I then get the error message, I get this error code:

The unit hostapd.service has entered the 'failed' state with result 'exit-code'.
Jun 28 02:57:32 raspberrypi systemd [1]: Failed to start Advanced IEEE 802.11 AP and IEEE 802.1X / WPA / WPA2 / EAP Authenticator.

The status of hosted.service says this here:

hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X / WPA / WPA2 / EAP Authenticator
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2020-06-28 03:07:50 BST; 1s ago
Process: 2433 ExecStart = / usr / sbin / hostapd -B -P /run/hostapd.pid -B $ DAEMON_OPTS $ {DAEMON_CONF} (code = exited, status = 1 / FAILURE)

Unfortunately I can't understand the error codes, can someone please help me and explain to me what could be wrong

Use a RaspberryPi 4 with a Huawei E3372 LTE USB stick if that is relevant.

ha

You don't need to understand the error code immediately. But you can use it very well for a search on the Internet (I always do this with errors that are new to me).

According to github, the solution is probably simple:

sudo systemctl unmask hostapd
sudo systemctl enable hostapd
sudo systemctl start hostapd

Simply read the associated thread and the references:

https://github.com/...ssues/1018