April 18, 2015 at 5:37 pm #36862
Apologies for the long post. I’ve learned some things today 😉
I think I’ve resolved (at least some) of my OSPi’s reliability issues. My OSPi is networked via WiFi (Edimax EW-7811Un). About every two weeks, it would drop off my network and not return. It would keep watering things, however, so being off-network was not a problem until I needed to do service, etc. At that point, I would cycle the power supply and the OSPi would reboot and return to the network. I know I’m supposed to do a proper shutdown, but w/o connectivity, I thought power cycling was my only choice. Things would go on like this until the OSPi would not reboot because I’d cycled the power supply at a particularly awkward moment, at which point I’d restore the SD card from a backup image and the whole cycle would begin again.
Today, I learned that I can remove the Edimax, re-insert it, and the OSPi will re-connect. But the even better news (because physically removing the Edimax is inconvenient) is that the wifi configuration can be modified to re-connect automatically:
- Go to /etc/ifplugd/action.d/ and rename the ifupdown file to ifupdown.original
- Then do: cp /etc/wpa_supplicant/ifupdown.sh ./ifupdown
- Finally: sudo reboot
I’ve tested this by cycling the power on my router, and it does seem to work. Perhaps this is part of the pre-configured image? I built mine from the RPi foundation’s Raspbian image.
As a belt for my suspenders, however, I’m tempted to make my SD card read only using these instructions. If I used a link (hard or soft?) to “move” OSPi/data/ to my NAS via NFS, would OSPi (the software) be happy? A read only SD card would seem to make my setup much more robust against power outages and any “need” I have to reboot it the hard way.
AlexApril 19, 2015 at 9:15 pm #36911
The tip about replacing the ifupdown script is a great suggestion, thanks!
In regard to the NFS for data folder, I think this would work fine so long the folder is mounted in the data directory.December 6, 2015 at 3:03 pm #40938
Thanks for this. I also had an issue with my wi-fi dropping.
I’ve made the change you recommended and will see if the Pi stays up.
Ps. Have you made any progress on making your sd card read only? I’m also keen on this as it’s a real pain rebuilding the SD Card.January 20, 2016 at 6:00 am #41360
Just to report back, that this seemed to have done the trick for me as it’s been more than a month since I’ve had issues with connecting to it.March 20, 2016 at 1:47 am #41797April 15, 2016 at 1:01 am #42045
Hello to everybody,
regarding the robustness of the SD card using this option:
on the SD card is stored only boot starter:http://www.berryterminal.com/doku.php/berryboot#berryboot_v20_-_bootloaderuniversal_operating_system_installer
SD card then shut the switch. All traffic data and run only on a USB flash drive. It is quite robust and not prone to mistakes as when it runs only on an SD card.
- You must be logged in to reply to this topic.