Raspbian "Pisces" Image hangs on reboot


24 posts
by paaland » Thu May 31, 2012 9:01 am
I've switched from Debian to Raspbian and I'm now running a copy of the pisces image. It's running headless and only has ethernet and the SD card connected. Everything seems to work fine except one thing. Everytime i try to reboot (sudo reboot or sudo shutdown -r now) it never comes back up. I need to unplug the power to get it to boot properly.

As I said it's running headless, so I don't know what it's stuck at. It stops responding to ping, but the ethernet light on the swith is flashing. All leds on the raspi is also lit.

Any ideas? I'll attach a screen and try a reboot this weekend.
Dragon 32>BBC Model B>PC>PC>PC>PC>Raspberry PI (circle complete)
User avatar
Posts: 68
Joined: Mon Mar 12, 2012 2:30 pm
Location: Norway
by bob_binz » Thu May 31, 2012 11:11 am
Think you need a screen, not a lot to go on without. I'm running headless but with Hexxeh R3, reboots fine.
User avatar
Posts: 367
Joined: Thu Feb 02, 2012 7:58 pm
Location: Stockport, UK
by plugwash » Thu May 31, 2012 2:24 pm
I haven't used that particular image myself but can you check if "kexec-tools" is installed and if so remove it?
Forum Moderator
Forum Moderator
Posts: 2266
Joined: Wed Dec 28, 2011 11:45 pm
by paaland » Thu May 31, 2012 3:51 pm
Attached a screen today and the last thing I see is something like "System halted. Rebooting" then the screen goes black. Nothing further happens before I pull the power and reinsert it again. Then it always boots fine.

Did a "dpkg --get-selections|grep kexec" and it does not return anything.
Dragon 32>BBC Model B>PC>PC>PC>PC>Raspberry PI (circle complete)
User avatar
Posts: 68
Joined: Mon Mar 12, 2012 2:30 pm
Location: Norway
by Davespice » Thu May 31, 2012 4:15 pm
Might be worth it to check if you can ssh in after this hang has occured. I've had something similar with the Debian 'Squeeze' image. It seems the Pi does reboot, but the display fails to come back up afterwards.
User avatar
Raspberry Pi Foundation Employee & Forum Moderator
Raspberry Pi Foundation Employee & Forum Moderator
Posts: 1441
Joined: Fri Oct 14, 2011 8:06 pm
Location: London, United Kingdom
by paaland » Thu May 31, 2012 4:18 pm
No ssh, no ping and only black screen. As I said in the first post the link led on the switch does blink from time to time indicating something happening.

I did not have this issue with Debian squeeze. So I think it's something software.
Dragon 32>BBC Model B>PC>PC>PC>PC>Raspberry PI (circle complete)
User avatar
Posts: 68
Joined: Mon Mar 12, 2012 2:30 pm
Location: Norway
by mpthompson » Thu May 31, 2012 6:05 pm
paaland wrote:No ssh, no ping and only black screen. As I said in the first post the link led on the switch does blink from time to time indicating something happening.

I did not have this issue with Debian squeeze. So I think it's something software.


paaland, I'm sorry you're having these problems. The pisces image has many more services started than what is on the more minimal hexxeh image. I suspect one of the services is hanging when the system attempts to shut it down.

Below is a photo (and link) of my screen when I issue a reboot command on the pisces image from a remote ssh session. Your output should appear nearly identical. If there are differences, that should hopefully be a clue to what may be wrong with your reboot sequence.

Image

http://home.comcast.net/~michael.p.thom ... reboot.jpg
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by paaland » Thu May 31, 2012 7:13 pm
I have neither a HDMI screen nor a RCA video screen, so I have the raspi hooked up to a USB tv capture device on another computer. Then I use amcap as my "screen" if I'm doing stuff I cannot do via ssh or vnc.

This arrangement came in handy since I could easily capture a shutdown sequence:

http://youtu.be/uVK3WnZutls

As you can see the shutdown seems to be by the book except that it does not start again.
Dragon 32>BBC Model B>PC>PC>PC>PC>Raspberry PI (circle complete)
User avatar
Posts: 68
Joined: Mon Mar 12, 2012 2:30 pm
Location: Norway
by mpthompson » Thu May 31, 2012 8:35 pm
paaland wrote:As you can see the shutdown seems to be by the book except that it does not start again.


Yes, it does look to be by the book. I can't say for sure, but I suspect it may be something more to do with the boot sequence after the reset occurs. Let me suggest this. Remove or backup the files in the /boot partition of the Raspbian SD card and in their place put a copy of the files from the working Debian SD card -- just make sure you edit the cmdline.txt file to use /dev/mmcblk0p3 as the root file system. That will remove a source of difference between Debian and Raspbian.
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by Gerhard Schwarz » Sun Jun 03, 2012 9:15 am
I had the same problem with the Hexxeh-image of raspbian, so probably (as Mike suggested) it's an issue of Raspbian rather than Pisces-related problem.
Posts: 3
Joined: Sun Jun 03, 2012 9:11 am
by trn » Mon Jun 04, 2012 3:59 pm
Some work around, solution for this problem?
Posts: 46
Joined: Wed May 09, 2012 11:30 am
by mpthompson » Mon Jun 04, 2012 4:13 pm
Sorry, I don't have any work arounds yet as the cause of the issue is still unknown.

Another suggestion, copy the "Pisces" image (as downloaded, without any changes) to the SD card, boot and then reboot using "shutdown -r now". Have only a keyboard plugged in the USB port. Does your Raspberry Pi reboot successfully under that scenario?

Presumably, everyone with a Pi has the same hardware and that image does reboot on the hardware I'm using. If it doesn't reboot for you, there must be some difference between our hardware that we'll need to figure out. For instance, is it related to the SD card?

On the other hand, if it does reboot without making changes to the "Pisces" image, we'll need to track down what package updates or hardware issues might be causing the reboot failure.

I'm sorry these problems are occurring with Raspbian, but these issues tend to be the nature of the beast at these early stages of getting a port to work on small embedded devices. The community doesn't yet have good knowledge of all the failure scenarios between all the different hardware and software combinations that can cause issues with the Raspberry Pi.
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by marsman2020 » Mon Jun 04, 2012 7:45 pm
Is GPM installed in the Pisces image? I've had it hang on stopping on the official Debian Squeeze image, as part of my debugging of the USB-hub-kills-Ethernet issue.
Posts: 70
Joined: Sun May 20, 2012 11:26 pm
by trn » Mon Jun 04, 2012 7:49 pm
I reinstaling(on other sd card), and now is ok!
Reboot is working now.
Posts: 46
Joined: Wed May 09, 2012 11:30 am
by mpthompson » Tue Jun 05, 2012 6:15 am
trn wrote:I reinstaling(on other sd card), and now is ok!
Reboot is working now.


Do you think the issue was related to the SD card? Or, an update or package that you might have installed on the other card?
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by trn » Tue Jun 05, 2012 8:00 am
mpthompson wrote:
trn wrote:I reinstaling(on other sd card), and now is ok!
Reboot is working now.


Do you think the issue was related to the SD card? Or, an update or package that you might have installed on the other card?


i think other SD card is not problem, but some package, some conf,..

on first sd card, i have dhcp, on second static, maybe this...
Posts: 46
Joined: Wed May 09, 2012 11:30 am
by mpthompson » Tue Jun 05, 2012 6:19 pm
trn wrote:
mpthompson wrote:i think other SD card is not problem, but some package, some conf,..

on first sd card, i have dhcp, on second static, maybe this...


OK, if you track the issue down with the other card, please report back.
User avatar
Forum Moderator
Forum Moderator
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
by sharix » Sat Jun 09, 2012 8:26 am
I have the same problem, but on debian.
edit: I found out that if I ping the Pi after the reboot when I can't SSH to it anymore, the LNK led blinks every time I send a packet.
Last edited by sharix on Sat Jun 09, 2012 8:46 am, edited 1 time in total.
Posts: 170
Joined: Thu Feb 16, 2012 11:29 am
Location: Slovenia
by plugwash » Sat Jun 09, 2012 8:37 am
viewtopic.php?f=50&t=7607 may or may not help.
Forum Moderator
Forum Moderator
Posts: 2266
Joined: Wed Dec 28, 2011 11:45 pm
by paaland » Thu Jun 14, 2012 10:28 am
Wee hee! Today my raspi running Raspbian managed to reboot for the first time ever. I'm fully apt-get upgraded and running the latest rpi-update firmware. It even boots with root on a usb hdd. It's never been able to reboot sucessfully before. Don't know it it's any of the latest apt-get updates or the latest firmware that fixes this issue.
Dragon 32>BBC Model B>PC>PC>PC>PC>Raspberry PI (circle complete)
User avatar
Posts: 68
Joined: Mon Mar 12, 2012 2:30 pm
Location: Norway
by oztrailrider » Thu Jun 14, 2012 1:11 pm
paaland wrote:Wee hee! Today my raspi running Raspbian managed to reboot for the first time ever. I'm fully apt-get upgraded and running the latest rpi-update firmware. It even boots with root on a usb hdd. It's never been able to reboot sucessfully before. Don't know it it's any of the latest apt-get updates or the latest firmware that fixes this issue.



I would suspect that the fix has come from the big SD updates in the firmware pushed out on Wednesday. I could be wrong though.
User avatar
Posts: 55
Joined: Sat Jan 14, 2012 3:21 am
by dom » Thu Jun 14, 2012 1:45 pm
oztrailrider wrote:I would suspect that the fix has come from the big SD updates in the firmware pushed out on Wednesday. I could be wrong though.


I don't believe that would have an effect.

When the reboot fails, can you mention whether shutdown or booting that is hanging.
I believe when shutdown hangs, the network lights continue flashing.
If shutdown completes, the chip is reset, and the network leds go off. So if network LEDs are off, it is a booting problem.
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4030
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Yoda007 » Thu Jun 14, 2012 6:10 pm
I have a similar problem with the Debian squeeze updated with rpi-update

When trying too reboot my pi the screen goes blank and I have to plug it out/in to start it:
- sudo reboot
- I enter my password
- it starts to reboot
- the last message on the screen is : Will now restart.

Then the screen goes blank and it doesn't start up again. All the LEDs are on. So its probably the shutdown that is the problem in my case.

When i started with the image the restart worked fine, so apparently something i did afterwards broke the reboot (i didn't do that much - apt-get update and apt-get upgrade, rpi-update, installed and configured lighttpd, and installed mplayer).
Posts: 34
Joined: Mon Jan 23, 2012 6:05 pm
by mahtiaivo » Fri Jun 21, 2013 7:21 pm
i have this problem too from time to time on 3 of my raspis...
for me the solution that always worked was to unplug whatever is plugged to the upper usb port and replug it, after that it reboots fine again for some time...
could be a power problem?
Posts: 8
Joined: Sat May 25, 2013 9:05 pm