Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pi-ap Bug Report : Script No Longer Enables AP mode #5

Open
dazz100 opened this issue May 3, 2020 · 2 comments
Open

pi-ap Bug Report : Script No Longer Enables AP mode #5

dazz100 opened this issue May 3, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@dazz100
Copy link

dazz100 commented May 3, 2020

Script No Longer Enables AP mode because of rfkill

Firstly, thank you for making this script available. It is clear you have spent a lot of time and applied a high level of expertise to produce this script. Being able to run a script in a few minutes is a much better solution than transcribing a series of instructions. Well done.

OK so During installation, I get the following error message:

Job for hostapd.service failed because the control process exited with error code.

As a result, the wifi does not run in AP mode.

Also, just a small point, Raspbian Lite does not have git installed by default.

I did the installation with a new virgin install of Raspbian Buster Lite. No other applications were installed. I burned a fresh install of Buster and then installed pi-ap without making any changes to the OS or the pi-ap scripts or variables.

After installation, AP mode was not enabled.

Did AP EVER work correctly before fault?

Never tried it before.

Bug CONSISTENTLY reproducible?

yes

If "yes", provide detailed steps to reproduce bug:
Just run the unmodified pi-ap scripts/variables on a fresh install of Buster.

Error Messages/Screenshots

Additional context

The reason I found your script was because my own, much simpler script, shows the same problem. I get the same error message at the same stage in installation.

Proposed Fixes
IF you have any suggested fixes, please describe them here.

Yes. Add the following commands to the script.

echo "Unblock and enable wifi "
rfkill unblock wlan
echo " Check that wifi is unblocked. "
rfkill list wlan

AP Client:
Please provide details about the client used to connect to the AP:

The RPi clients can't connect to the RPi server AP.

@dazz100 dazz100 added the bug Something isn't working label May 3, 2020
@dazz100
Copy link
Author

dazz100 commented May 3, 2020

Hi
I also found a problem with dnsmasq in the logs.

May 03 09:02:54 raspberrypi dnsmasq[1349]: Too few arguments.
May 03 09:02:54 raspberrypi systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
May 03 09:11:59 raspberrypi systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
May 03 09:11:59 raspberrypi dnsmasq[1641]: Too few arguments.

I think I have found the solution to the problem of too few arguments at this post:

https://www.raspberrypi.org/forums/viewtopic.php?t=199037

It is not a problem and can be ignored.

@dazz100 dazz100 changed the title pi-ap Bug Report : hostapd.service failed pi-ap Bug Report : Script No Longer Enables AP mode May 5, 2020
@Piehti
Copy link

Piehti commented Jun 3, 2020

Unfortunatly, the AP wont show up on any device after the initial reboot. Any ideas or alternate (WORKING!!!!) tutorials to finally get my RasPi back to AP? :/

Where exactly did you put the rfkill?

Got it working. Thanks for the RFKILL hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants