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

wireless problems: how to revert? #9

Open
orcaomar opened this issue Jun 18, 2015 · 9 comments
Open

wireless problems: how to revert? #9

orcaomar opened this issue Jun 18, 2015 · 9 comments

Comments

@orcaomar
Copy link

so, this is what happens to me:

  • everything works, but when i connect to the AP, i don't get any webpage (at the address with port 88)
  • when i go to localhost:88 on the pi itself, i get the webpage, but don't see any APs
  • now my WiFi is hosed -- i can't seem to reconfigure back into normal wifi mode.

question: how do i undo everything that this program has done? is there a flag i can use? maybe some uninstall instructions are in order in case the whole installation fails.

@sabhiram
Copy link
Owner

Oh snap, that sounds terrible!

What happens when you reboot the Pi after the Wifi being hosed? Worst case, you can update the /etc/network/interfaces file to look like the correct version for your wifi connection at home / work.

Take a look at "./assets/etc/network/interfaces.wifi.template" which should be written to "/etc/network/interfaces".

Hope this helps!

@orcaomar
Copy link
Author

orcaomar commented Jul 9, 2015

hey sorry for my really delayed reply. first, your fix does work, in terms of bringing back wifi. i'll switch back to your wifi later today and post what happens on reboot. again, sorry for the delay -- i was travelling and not near my pi

@sabhiram
Copy link
Owner

sabhiram commented Jul 9, 2015

No worries at all! Glad that resolves it for you - When I find some time I will get to fixing this in a cleaner way. Could be as simple as a helper script that just does a "reset" to whatever known good "old" state.

@orcaomar
Copy link
Author

orcaomar commented Jul 9, 2015

yes, that sounds like a good idea. ok, now when i reboot i get this error:

[FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed!
failed!
My IP address is 192.168.1.158
[FAIL] startpar: service(s) returned failure: isc-dhcp-server ... failed!

this is after i've set things back to the way they were. so perhaps restoring to the way they were includes stopping this dhcp server from running at startup? can you point me to where this server is getting inserted in your code?

@sabhiram
Copy link
Owner

Check out this file: ./assets/etc/default/isc-dhcp-server.template

And look at how it is used here: https://github.com/sabhiram/raspberry-wifi-conf/blob/master/app/wifi_manager.js#L194

@sabhiram
Copy link
Owner

sabhiram commented Oct 5, 2015

Any update @orcaomar ?

@hakankaraduman
Copy link

hakankaraduman commented Feb 21, 2018

I have the same problem, I reinstalled and executed your app, I can reach the server on the pi itself and try to connect my ssid, it says ap is closed and wifi is enabled, I restarted the pi, changed the /etc/network/interfaces to wifi template but I still have the 'no wireless interfaces found' text. Is there a way to recover this without reinstalling the raspbian os. The funny thing is it's really connected to internet with the settings I defined. I can surf on the internet

@sabhiram
Copy link
Owner

Hah @hakankaraduman unfortunately I did not spend too much time in the reverse direction since I usually would just replace all the relevant service / config files using this method.

@vicwomg
Copy link

vicwomg commented Dec 25, 2019

I just experienced this as well. Lots of hours rebooting, modifying files, and enabling/disabling services trying to get my wifi back up and running again. I think that at the very least the old conf files should be backed up before they are overwritten, and there should be a troubleshooting warning about this in the documentation.

To anyone else having issues here are the steps I took to reverse the changes and recover wifi on my pi, not sure if everything was necessary but made sure to write everything down:

  1. Edit /etc/dnsmasq.conf , set to a blank file
  2. Edit /etc/hostapd/hostapd.conf , set to a blank file
  3. Edit /etc/dhcpcd.conf , comment out or remove these lines at the end:
interface wlan0
static ip_address=192.168.88.1/24
nohook wpa_supplicant
  1. Add the following to the end of your /etc/network/interfaces
allow-hotplug wlan0 
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  1. Edit your /etc/wpa_supplicant/wpa_supplicant.conf to your wifi ap
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<your 2-letter country code>
network={
  ssid="<your router ssid>"
  psk="<your pw>"
  key_mgmt=WPA-PSK
}
  1. Re-enable the wpa_supplicant service
    sudo systemctl enable wpa_supplicant.service
  2. Remove raspberry wifi conf service
    /etc/init.d/raspberry-wifi-conf
  3. reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants