This is on a failed piratebox startup from no power:
I do have probing enabled. but id doesn't seem to take in to account the time to probe. Its defaulted to 10 seconds and I increased to 30 seconds. hmm....
Just did a reboot and everything worked just fine! Piratebox even started without errors. But it doesn't work every time.
After performing systemctl restart piratebox
I assume this is the culprit and have no idea how to fix it. It loads even after the login promt appears.
# systemctl status hostapd * hostapd.service - Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator Loaded: loaded (/usr/lib/systemd/system/hostapd.service; disabled; vendor preset: disabled) Active: inactive (dead)
# systemctl status dnsmasq * dnsmasq.service - A lightweight DHCP and caching DNS server Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; disabled; vendor preset: disabled) Active: inactive (dead) Docs: man:dnsmasq(8)
# systemctl status piratebox -l ?[0;1;32m*?[0m piratebox.service - PirateBox Service Loaded: loaded (/etc/systemd/system/piratebox.service; enabled; vendor preset: disabled) Active: ?[0;1;32mactive (exited)?[0m (Result: exit-code) since Fri 2016-01-22 05:23:43 UTC; 8min ago Process: 134 ExecStart=/opt/piratebox/init.d/piratebox_alt start ?[0;1;31m(code=exited, status=255)?[0m Main PID: 134 (code=exited, status=255) CGroup: /system.slice/piratebox.service Jan 22 05:23:45 alarmpi piratebox_alt[134]: Copy over design files Jan 22 05:23:46 alarmpi piratebox_alt[134]: Probe wlan Jan 22 05:23:46 alarmpi piratebox_alt[134]: Starting hostap... Jan 22 05:23:46 alarmpi piratebox_alt[134]: 0 Jan 22 05:23:46 alarmpi piratebox_alt[134]: Setting up wlan Jan 22 05:23:46 alarmpi piratebox_alt[134]: Bringing up wifi interface wlan0 Jan 22 05:23:46 alarmpi piratebox_alt[134]: wlan0: ERROR while getting interface flags: No such device Jan 22 05:23:46 alarmpi piratebox_alt[134]: ..failed Jan 22 05:23:46 alarmpi systemd[1]: ?[0;1;39mpiratebox.service: Main process exited, code=exited, status=255/n/a?[0m Jan 22 05:23:46 alarmpi piratebox_alt[134]: failed setting up Interface
I do have probing enabled. but id doesn't seem to take in to account the time to probe. Its defaulted to 10 seconds and I increased to 30 seconds. hmm....
Just did a reboot and everything worked just fine! Piratebox even started without errors. But it doesn't work every time.
After performing systemctl restart piratebox
systemctl status piratebox -l ?[0;1;32m*?[0m piratebox.service - PirateBox Service Loaded: loaded (/etc/systemd/system/piratebox.service; enabled; vendor preset: disabled) Active: ?[0;1;32mactive (exited)?[0m since Fri 2016-01-22 05:24:14 UTC; 3min 17s ago Process: 196 ExecStop=/opt/piratebox/init.d/piratebox_alt stop (code=exited, status=0/SUCCESS) Process: 208 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status=0/SUCCESS) Main PID: 208 (code=exited, status=0/SUCCESS) CGroup: /system.slice/piratebox.service |-224 /usr/sbin/hostapd /opt/piratebox/conf/hostapd.conf |-230 /usr/sbin/dnsmasq -x /var/run/piratebox_dnsmasq.pid -C /opt/piratebox/conf/dnsmasq_generated.conf |-237 python /opt/piratebox/bin/droopy -d /opt/piratebox/share/Shared -m --chmod 755 8080 `-249 /usr/sbin/lighttpd -f /opt/piratebox/conf/lighttpd/lighttpd.conf Jan 22 05:24:15 alarmpi piratebox_alt[208]: 0 Jan 22 05:24:16 alarmpi piratebox_alt[208]: Generated HTML-Shoutbox File. Jan 22 05:24:16 alarmpi piratebox_alt[208]: Starting lighttpd... Jan 22 05:24:16 alarmpi piratebox_alt[208]: 0 Jan 22 05:24:29 alarmpi hostapd[224]: wlan0: STA 58:6d:8f:ee:42:88 IEEE 802.11: associated Jan 22 05:24:29 alarmpi hostapd[224]: wlan0: STA 58:6d:8f:ee:42:88 RADIUS: starting accounting session 56A1BCFF-00000000 Jan 22 05:24:45 alarmpi hostapd[224]: wlan0: STA 58:6d:8f:ee:42:88 IEEE 802.11: disassociated Jan 22 05:25:17 alarmpi hostapd[224]: wlan0: STA f8:cf:c5:01:3c:f4 IEEE 802.11: associated Jan 22 05:25:17 alarmpi hostapd[224]: wlan0: STA f8:cf:c5:01:3c:f4 RADIUS: starting accounting session 56A1BCFF-00000001 Jan 22 05:25:17 alarmpi hostapd[224]: wlan0: STA f8:cf:c5:01:3c:f4 IEEE 802.11: disassociated
I assume this is the culprit and have no idea how to fix it. It loads even after the login promt appears.
alarmpi login: [ 15.540133] usbcore: registered new interface driver rtl8192cu