chiefwigms / picobrew_pico

MIT License
149 stars 63 forks source link

Error on reboot after power failure #200

Closed ZuruckBleibenBitte closed 3 years ago

ZuruckBleibenBitte commented 3 years ago

We had a short power outage this morning and I'm now getting an error while the Pi is booting that is preventing the web server from loading and being avail from other computers. I can connect to it via smb or ssh into it.

I hooked the pi up to a monitor to see what is going on. The pi boots and does all the normal loads/checks/updates and it gets past the pi login screen. But then, instead of the server outputting connection updates, it just hangs. See the attached picture.

The error line is an import error saying "cannot import name 'load_iSpindel_session' from 'app.main.session_parser' --- but I don't have an iSpindel...

Any way to fix without having to reinstall from the beta 5 image?

tempImageZ4d2oS

chiefwigms commented 3 years ago

Looks like you have a conflict in your local repository (or corruption on the sd card, possibly due to power failure).

SSH in and do: cd /picobrew_pico
sudo git clean -xfd sudo git reset --hard

then reboot and see if it loads

ZuruckBleibenBitte commented 3 years ago

Thanks... Didn't work. the clean command worked, but the reset gave a couple errors. Rebooting stuck with the same error...

Guess I'll just load up another SD card with beta5...

Here's the errors after running the reset command:

pi@pibrew:/picobrew_pico $ sudo git reset --hard error: object file .git/objects/9a/2264926f8285dd64591e57d7cb7ef8c91e59bb is empty error: object file .git/objects/9a/2264926f8285dd64591e57d7cb7ef8c91e59bb is empty fatal: loose object 9a2264926f8285dd64591e57d7cb7ef8c91e59bb (stored in .git/objects/9a/2264926f8285dd64591e57d7cb7ef8c91e59bb) is corrupt

chiefwigms commented 3 years ago

Sorry about that - back up any recipes you have (if you want) before reimaging

ZuruckBleibenBitte commented 3 years ago

I already have those backed up. Eventually will get around to adding a scheduled rsync ;-)