You are not logged in.

#1 2013-05-07 14:18:49

gundamfj
Member
Registered: 2012-01-02
Posts: 21

can not start hostapd using systemd

My configuration below:

ssid=test
wpa_passphrase=passwd
interface=wlp8s0
bridge=br0
auth_algs=3
channel=7
driver=nl80211
hw_mode=g
logger_stdout=-1
logger_stdout_level=2
max_num_sta=5
rsn_pairwise=CCMP
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP

and the error message returned by systemctl:

jack ~ $ sudo systemctl start hostapd
Job for hostapd.service failed. See 'systemctl status hostapd.service' and 'journalctl -xn' for details.
jack ~ $ sudo systemctl status hostapd.service
[sudo] password for jack: 
hostapd.service - Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
   Loaded: loaded (/usr/lib/systemd/system/hostapd.service; enabled)
   Active: failed (Result: exit-code) since 三 2013-05-08 06:07:30 CST; 14min ago
  Process: 1415 ExecStart=/usr/bin/hostapd /etc/hostapd/hostapd.conf -P /run/hostapd.pid -B (code=exited, status=1/FAILURE)

5月 08 06:07:30 Jack-PC systemd[1]: Starting Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator...
5月 08 06:07:30 Jack-PC hostapd[1415]: Configuration file: /etc/hostapd/hostapd.conf
5月 08 06:07:30 Jack-PC hostapd[1415]: Line 935: invalid WPA passphrase length 7 (expected 8..63)
5月 08 06:07:30 Jack-PC hostapd[1415]: WPA-PSK enabled, but PSK or passphrase is not configured.
5月 08 06:07:30 Jack-PC hostapd[1415]: 2 errors found in configuration file '/etc/hostapd/hostapd.conf'
5月 08 06:07:30 Jack-PC systemd[1]: hostapd.service: control process exited, code=exited status=1
5月 08 06:07:30 Jack-PC systemd[1]: Failed to start Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
5月 08 06:07:30 Jack-PC systemd[1]: MESSAGE=Unit hostapd.service entered failed state.

info about wlp8s0:

wlp8s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.57.1  netmask 255.255.255.0  broadcast 0.0.0.0
        ether 68:5d:43:b4:f8:cf  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I really don't know why that happend. I completely follow the wiki of hostapd step by step.

Last edited by gundamfj (2013-05-07 14:22:59)

Offline

#2 2013-05-07 14:26:19

gundamfj
Member
Registered: 2012-01-02
Posts: 21

Re: can not start hostapd using systemd

OH, I understad what happened. The password is not long enough. Hostapd require a password longer than 8. After Changing the password longer than 8 everything is OK.

Offline

Board footer

Powered by FluxBB