tigernero
Posts: 158
Joined: Fri Dec 30, 2016 5:51 pm

Problem 7 led act raspberry pi4 with sudo reboot

Fri Feb 07, 2020 8:49 pm

since I updated to version 2020-02-05 raspbian with kernel update 4.19.97,
7 times out of 10 with the simple "sudo reboot" command my 2 pi4s that worked well until a few days ago do not restart,
and I am forced to turn off and on again. I noticed that the led act emits 7 short flashes which means kernel image not found,
but maybe I am wrong that this does it to me after the update of February 5, and with 2 pi4 to which
I connected an external USB hd. it doesn't happen to me on pi3 that i have with the same raspbian image

ralphrmartin
Posts: 15
Joined: Sat May 06, 2017 3:42 pm

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sat Feb 08, 2020 10:16 am

I am having the same problem.

Previously, I could boot my RPi 4 fine with rootfs on a Sandisk Extreme SSD connected via a powered Startech USB 3. Now boot fails every time, but messages flash by took quickly to see what starts the chain of problems off - but there are definitely USB related error messages.

The same setup works OK if I swap out the USB 3 hub for a USB 2 hub.

Something is definitely broken in USB3 in 4.19.97

raspijunky
Posts: 1
Joined: Sat Feb 08, 2020 1:09 pm

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sat Feb 08, 2020 1:12 pm

Same to me with 2 Pi's 4

Setting up a brand new rapsbian with only webmin installed reboot hangs and green led flashes 7 times

tigernero
Posts: 158
Joined: Fri Dec 30, 2016 5:51 pm

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 6:02 am

you too like me have connected an external HD with data inside on USB 3.0?

I think it is a serious bug not being able to restart a pi4 with HD connected on USB and to see it not to start with. 7 flashing LEDs

RonR
Posts: 847
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 9:38 am

Add me to the list of affected Raspberry Pi 4 users.

It began here with the kernel update just before the 2020-02-05 image was posted. I had hoped the problem would go away with the new image, but it has not. I'm running Raspbian Lite here.

I don't know if it's related, but when logged in as root, raspi-config now displays:
Capture.JPG
Capture.JPG (28.99 KiB) Viewed 904 times

User avatar
DougieLawson
Posts: 37489
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 10:22 am

You have to run raspi-config as pi (not root) and let it switch to root when needed.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
HawaiianPi
Posts: 5240
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 10:22 am

My 4B2 was recently updated to the latest (stable) firmware and kernel, and it has the OS on SSD (SATA-III SSD with USB 3.0 adapter cable).

I have no trouble restarting that system. The system was updated with the following command.

Code: Select all

sudo apt update && sudo apt full-upgrade -y

RaspberryPi4B2:~ $ uname -a
Linux RaspberryPi4B2 4.19.97-v8+ #1294 SMP PREEMPT Thu Jan 30 13:27:08 GMT 2020 aarch64 GNU/Linux

RaspberryPi4B2:~ $ cat /sys/firmware/devicetree/base/model;echo
Raspberry Pi 4 Model B Rev 1.1

RaspberryPi4B2:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

RonR
Posts: 847
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 7:25 pm

DougieLawson wrote:
Sun Feb 09, 2020 10:22 am
You have to run raspi-config as pi (not root) and let it switch to root when needed.

raspi-config has ALWAYS run properly as root until this last update. If you run it as pi, it insists that you run it with sudo. If you enter root instead of pi, it simply re-prompts with pi as the default again. I don't do anything as user pi. I always run as root (please don't start with the lectures).

Something is terribly out of whack with this the last update and image.

tigernero
Posts: 158
Joined: Fri Dec 30, 2016 5:51 pm

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 7:56 pm

the startup lock error after a simple "sudo reboot" occurs 9 times out of 10 only on Raspberry pi4

not on the other pi4s that I have.
something in the latest February 5 update or in the 4.19.97 kernel does not correctly restart the pi4.

is it possible that the raspbian team is not aware of this problem?

User avatar
HermannSW
Posts: 2006
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 8:05 pm

Buster 2/5 image broke raspivid recording as well.
6by9 provided rpi-update workaround 4 hours ago, and now raspivid works again:
https://www.raspberrypi.org/forums/view ... 5#p1608966

Going back with rpi-update to some changelist will definitely fix the reboot issue you see, unclear which changelist.
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

RonR
Posts: 847
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 8:50 pm


Running 'rpi-update 993f475' appears to fix the reboot problem (the expected behavior of the red power led is also restored).

[If you are booting a USB device via an SD card and you update your SD card first, you must delete /boot/.firmware_revision before you will be able to update your USB device.]

NOTE: The problem with running raspi-config as root is NOT corrected with this update.

tigernero
Posts: 158
Joined: Fri Dec 30, 2016 5:51 pm

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 8:57 pm

I gave "sudo rpi-update 993f475" command on my pi4 and see if it gets stuck in reboots. on another pi4 that is no longer reachable after a reboot located at work, I will give the same command tomorrow and see if the subsequent reboots resolved the problem thanks for now.

tigernero
Posts: 158
Joined: Fri Dec 30, 2016 5:51 pm

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 9:14 pm

after giving two consecutive restarts to my home, the second one gave the same problem as the no restart of raspbian. also after having given the rpi-update 993f475 command as mentioned above

raspbian is installed on microsd, but i have a hd of my data connected on usb 3.0

tigernero
Posts: 158
Joined: Fri Dec 30, 2016 5:51 pm

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 9:26 pm

tried to remove the /boot/.firmware_revision file and restore the rpi-update 993f475 command and it seems to say it seems to hold 2 consecutive reboots. we hope well

RonR
Posts: 847
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 10:04 pm

tigernero wrote:
Sun Feb 09, 2020 9:14 pm
after giving two consecutive restarts to my home, the second one gave the same problem as the no restart of raspbian. also after having given the rpi-update 993f475 command as mentioned above

The first reboot after running 'rpi-update 993f475' may still be problematic as the Raspberry Pi is not running the updated software until after the reboot. Hopefully you'll be good after that.

RonR
Posts: 847
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Problem 7 led act raspberry pi4 with sudo reboot

Sun Feb 09, 2020 11:13 pm

RonR wrote:
Sun Feb 09, 2020 9:38 am
I don't know if it's related, but when logged in as root, raspi-config now displays:
Capture.JPG
Capture.JPG (28.99 KiB) Viewed 714 times

The problem with running raspi-config as user 'root' is not related to the reboot problem. This problem was introduced into the latest update of raspi-config.

The following script will make a copy of the original raspi-config as /usr/bin/raspi-config_orig and patch /usr/bin/raspi-config to be able to run when logged in as user 'root':

Code: Select all

#!/bin/bash

if [ ! -f /usr/bin/raspi-config_orig ]; then
  cp /usr/bin/raspi-config /usr/bin/raspi-config_orig
fi
sed -i 's/\"root\"/""/' /usr/bin/raspi-config

carver1
Posts: 6
Joined: Sun Feb 09, 2020 11:23 pm

Re: Problem 7 led act raspberry pi4 with sudo reboot

Mon Feb 10, 2020 8:46 pm

HawaiianPi wrote:
Sun Feb 09, 2020 10:22 am
My 4B2 was recently updated to the latest (stable) firmware and kernel, and it has the OS on SSD (SATA-III SSD with USB 3.0 adapter cable).

I have no trouble restarting that system. The system was updated with the following command.

Code: Select all

sudo apt update && sudo apt full-upgrade -y
Out of curiousity:
—Have you rebooted more than once since applying that update?
—And assuming you’ve rebooted while using a terminal, were you doing so with an keyboard attached to your RPi4, or via SSH, VNC, etc?
—Are you running Raspbian Desktop or Lite?
—What syntax did you use to reboot? (This sounds tedious, but I can consistently reboot via ‘sudo reboot’ but I consistently get only a shutdown followed by a solid red light whenever I use ‘sudo shutdown -r now’ )

tigernero
Posts: 158
Joined: Fri Dec 30, 2016 5:51 pm

Re: Problem 7 led act raspberry pi4 with sudo reboot

Tue Feb 11, 2020 6:42 am

kernel update 4.19.97 of 10 February has solved the restart problem if not also resolved raspi-config problem with root user

RonR
Posts: 847
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Problem 7 led act raspberry pi4 with sudo reboot

Tue Feb 11, 2020 6:54 am

tigernero wrote:
Tue Feb 11, 2020 6:42 am
kernel update 4.19.97 of 10 February has solved the restart problem if not also resolved raspi-config problem with root user

I'm not seeing a resolution to raspi-config running under user 'root' other than the patch I posted (that may be what you were saying as your statement is unclear to me).

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6194
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Problem 7 led act raspberry pi4 with sudo reboot

Tue Feb 11, 2020 10:25 am

The raspi-config change is intentional.

There are a number of setting which are user-specific rather than system-wide. In the past, raspi-config would assume the user is 'pi', which isn't always the case. Then it assumed that it was run through sudo, so $SUDO_USER was set. Now it used $SUDO_USER, falls back on who -m, and then if the user insists on trying to run it directly as root, it will ask which user those settings should apply to.

RonR
Posts: 847
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Problem 7 led act raspberry pi4 with sudo reboot

Tue Feb 11, 2020 8:50 pm

ShiftPlusOne wrote:
Tue Feb 11, 2020 10:25 am
The raspi-config change is intentional.

There are a number of setting which are user-specific rather than system-wide.

But you're excluding user 'root' from being one of those users.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6194
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Problem 7 led act raspberry pi4 with sudo reboot

Tue Feb 11, 2020 9:19 pm

RonR wrote:
Tue Feb 11, 2020 8:50 pm
ShiftPlusOne wrote:
Tue Feb 11, 2020 10:25 am
The raspi-config change is intentional.

There are a number of setting which are user-specific rather than system-wide.

But you're excluding user 'root' from being one of those users.
Yes. If you're using raspi-config and don't know why you wouldn't want to autologin as root, then it won't let you shoot yourself in the foot. If you believe you have a good reason to override that check, you don't need raspi-config in the first place.

RonR
Posts: 847
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Problem 7 led act raspberry pi4 with sudo reboot

Tue Feb 11, 2020 9:52 pm

ShiftPlusOne wrote:
Tue Feb 11, 2020 9:19 pm
RonR wrote:
Tue Feb 11, 2020 8:50 pm
ShiftPlusOne wrote:
Tue Feb 11, 2020 10:25 am
The raspi-config change is intentional.

There are a number of setting which are user-specific rather than system-wide.

But you're excluding user 'root' from being one of those users.
Yes. If you're using raspi-config and don't know why you wouldn't want to autologin as root, then it won't let you shoot yourself in the foot. If you believe you have a good reason to override that check, you don't need raspi-config in the first place.

I guess we're going to have to agree to disagree on this one. My philosophy has always been to write software that makes tasks easier for the user, not more difficult. As noted, the restriction is easily removed.

Return to “Raspbian”