Whenever i try to reboot my rpi 3 using
sudo shutdown -r
it fails to boot up again. However all works fine if power it down and power it up again.
I've had a look at booting troubleshooting documenation, and based on the LEDs behaviour that i'm seeing (both red and green LEDs steadily ON), the image in the sd card should be corrupt. However how can it be corrupt if it all loads and works fine when i power it off and on again?
I have 2 DTH22 sensors connected to the pi GPIOs, but I've had these connected and not giving any issue for the last 5 months. I have 3 "identical" setups with one Raspberry Pi, and 2 DHT22 sensors, logging data into a server and automatically rebooting once everyday. All three systems have worked with no issues in the last 5 months, and never fell over after the daily reboot until last weekend, when 2 out of the 3 rpi.
Now i can't reboot these rpi without unplugging the power. Neither via scripts, nor manual terminal commands.
Here is what happens in sequence, after i run sudo reboot:
Then the screen goes blank and stays like that forever, with no HDMI signla etc and with both red and green LEDs constantly ON
If instead I unplug the power, and plug it back, I see the same sequence as above, but doesn't get stuck to a blank screen, and instead goes through the usual boot scrolling info, and eventually boots up as normal.