Automatic install hangs (repeated task vhciq-keep blocked info messages)

I’m running into problems when installing via dietpi.txt automatic install.
I do not have the issues without the custom automatic setup.
I am not sure at what point the PI should be reachable via ethernet, but I cannot see or ping it

Here is the output of my PI where it hangs/is stuck, and my file

Mod edit (image to text):

DietPi-Set_hardware | systemctl daemon-reload] 
DietPi-Set hardware | systemctl enable --now ethtool_force_speed 
3.676188] INFO: task vchiq-keep/0:72 blocked for more than 122 seconds. 
3.682052] Not tainted 6.12.34+rpt-rpi-v7 #1 Raspbian 1:6.12.34-1+rpt1 bookworm 
3.687899] “echo > /proc/sys/kernel/hung_task_timeout_secs” disables this message. 
6.556197] INFO: task vchiq-keep/0:72 blocked for more than 245 seconds. 
.562150] Not tainted 6.12.34+rpt-rpi-v7 #1 Raspbian 1:6.12.34-1+rpt1 bookworm 
66.568129] “echo > /proc/sys/kernel/hung_task_timeout_secs” disables this message. 
89.436198] INFO: task vchiq-keep/0:72 blocked for more than 368 seconds. 
89.442185] Not tainted 6.12.34+rpt-rpi-v7 #1 Raspbian 1:6.12.34-1+rpt1 bookworm 
489.448156] “echo > /proc/sys/kernel/hung_task_timeout_secs” disables this message. 
612.316195] INFO: task vchiq-keep/0:72 blocked for more than 491 seconds. 
612.322163] Not tainted 6.12.34+rpt-rpi-v7 #1 Raspbian 1:6.12.34-1+rpt1 bookworm 
612.328039] “echo > /proc/sys/kernel/hung_task_timeout_secs” disables this message. 
735.196188] INFO: task vchiq-keep/0:72 blocked for more than 614 seconds. 
735.202129] Not tainted 6.12.34+rpt-rpi-v7 #1 Raspbian 1:6.12.34-1+rpt1 bookworm 
735.207978] “echo > /proc/sys/kernel/hung_task_timeout_secs” disables this message. 
858.076191] INFO: task vchiq-keep/0:72 blocked for more than 737 seconds. 
858.082050] Not tainted 6.12.34+rpt-rpi-v7 #1 Raspbian 1:6.12.34-1+rpt1"bookworm 
858.087866] “echo > /proc/sys/kernel/hung_task_timeout_secs” disables this message. Starting systemd-tmpfiles-clean.service Cleanup of Temporary Directories… Cleanup of Temporary Directories.
OK ] Finished systemd-tmpfiles-clean.service
[ 980.956173] INFO: task vchiq-keep/0:72 blocked for more than 860 seconds. 
[980.962156] Not tainted 6.12.34+rpt-rpi-v7 #1 Raspbian 1:6.12.34-1+rpt1"bookworm 
[980.968137] “echo > /proc/sys/kernel/hung_task_timeout_secs” disables this message. 
[1103.836197] INFO: task vchiq-keep/0:72 blocked for more than 983 seconds. 
[ 1103.842273] Not tainted 6.12.34+rpt-rpi-v7 #1 Raspbian 1:6.12.34-1+rpt1 bookworm
[ 1103.848308] "echo > /proc/sys/kernel/hung_task_timeout_secs’ 
[1226.716203] INFO: task vchiq-keep/0:72 blocked for more than 1105 seconds. 
[ 1226.722348] disables this message. Not tainted 6.12.34+rpt-rpi-v7 #1 Raspbian 1:6.12.34-1+rpt1 bookworm 
[1226.728468] “echo > /proc/sys/kernel/hung_task_timeout_secs” disables this message. 
[1349.596185] INFO: task vchiq-keep/0:72 blocked for more than 1228 seconds. 
[ 1349.602409][1349.608577] “echo > /proc/sys/kernel/hung_task_timeout_secs” disables this message. Not tainted 6.12.34+rpt-rpi-v7 #1 Raspbian 1:6.12.34-1+rpt1 bookworm

dietpi.txt (12.5 KB)

Can you please share the exact SBC model. I assume you are using the latest DietPi version.

Sorry what is an SBC?
It is a raspberry pi 2 B, if that is what you mean. And yes ofc, latest version
But I am starting to think it is defective as I cannot get it to boot at all anymore

SBC stands for Single Board Computer, and this was exactly why I meant :slight_smile:

seems to be similar to this one Raspberry Pi | Repeating "task vchiq-keep/0:39 blocked" kernel error · Issue #7610 · MichaIng/DietPi · GitHub

EDIT:

vchiq-keep/0:72 blocked this doesn’t seems to be related. Issue probably has a different reason.

@cbns can you share your custom script located at /boot/Automation_Custom_Script.sh

I don’t have any custom script. All I did was modify the dietpi.txt so it would do an automatic setup.

Also one more question: after flashing the image to the SD card with balenaEtcher on Windows I can only access one of the partitions as I don’t have any linux filesystem drivers installed.

I’m assuming that is the /boot partition?

Yes, the boot partition is FAT32, which can be read by Windows.

ok but you have set following

# Custom Script (post-networking and post-DietPi install)
# - Allows you to automatically execute a custom script at the end of DietPi install.
# - Option 0 = Copy your script to /boot/Automation_Custom_Script.sh and it will be executed automatically.
# - Option 1 = Host your script online, then use e.g. AUTO_SETUP_CUSTOM_SCRIPT_EXEC=https://myweb.com/myscript.sh and it will be downloaded and executed automatically.
# - Executed script log: /var/tmp/dietpi/logs/dietpi-automation_custom_script.log
AUTO_SETUP_CUSTOM_SCRIPT_EXEC=0

AUTO_SETUP_CUSTOM_SCRIPT_EXEC=0 requires a custom script at the boot partition.

This option is not needed if you don’t plan to use an own script.

and following might not work either

# - This user must exist before firstrun installs, otherwise it will be reverted to root.
# - Applies to all autostart options but: 0, 6, 14 and 16
AUTO_SETUP_AUTOSTART_LOGIN_USER=cars11

I doubt you will have this user created automatically?, do you?

What did you exspect from this user? You don’t have any desktop or other GUI app installed.

The vchiq-keep hung task message is unrelated, it is actually hanging here

Or more precisely at this command it seems:

ethtool -s eth0 speed 100 duplex full autoneg off

assuming you are aiming to enforce 100 Mbit link speed. This means you set AUTO_SETUP_NET_ETH_FORCE_SPEED=100 in dietpi.txt.

Note that this is not needed in your case. The reason and only case I know about where this was needed, was a certain SBC with 1000 Mbit Ethernet, but using it was very unstable, and much better when limiting the speed to 100 Mbit instead. We should probably enhance the description in dietpi.txt and dietpi-config about this.

However, it should not hang, of course, and especially it should stop hanging at latest when the default systemd unit startup time has been reached. Looks like aiming to set the link speed like this hangs the kernel at some lower level, somehow.

Which RPi 2 revision is it? PCB v1.1 or PCB v1.2? I could try to replicate it in the first case. Since first run setup never finished, you could just edit dietpi.txt and set AUTO_SETUP_NET_ETH_FORCE_SPEED=0 again, which leads to the removal of this hanging service, in case I do not misinterpret the logs. Then above command could be tested to narrow it down.

ah, my mistake. i assumed =0 means off. so i just delete the line, then?

And yes, then the user login is also a mistake. that is just my windows username so i have an easier time logging in via SSH.

its PCB v1.1

I tried a setup without the automatic setup/dietpi.txt and ran into the same issue, but only after setting my ethernet interface to static and restarting it. then it stopped responding and i saw the some error/info on the screen with vchiq-keep.

and now it won’t boot at all anymore for some reason after reflashing and trying so many times

vchiq-keep should not be related as I understood.

simply put a # in front of the line

i’ve been trying the raspi 1 dietpi image (with armv6 in the name) and that is what is not booting at all for me. the armv7 image at least boots occasionally.

now after messing around with it many more times, I think it is my SD card reader, my SD card, or my image that has died/ is dying.
every flash now fails to verify. and all the files have hieroglyphs for names.
So I moved to my iMac and tried it on its internal card reader. same result. So I then I downloaded the image again on the mac and it finally flashed. With so many variables, I have no idea what is at fault.

Safe to say, it must have something to do with my setup, as it is working now.
My gut feeling is I downloaded a corrupt image (despite re-downloading it 3 times!) or my SSD on my PC corrupted it somehow.

Eitherway, flashing it from my mac and commenting out the lines you guys suggested has it working again.

Thank you very much for your help

All good with =0 does mean off. If a custom script has been manually added it is executed, but otherwise this setting can be used to load a custom script from an URL.

Okay, then I can test with mine, having the same.

As far as I can see, the issue has nothing to do with automatic setup, since it hangs when the dietpi-firstboot script runs, which is way before the automated setup/login happens. So did you set AUTO_SETUP_NET_ETH_FORCE_SPEED to something other than 0? Not to confuse with the custom script setting that you were talking about :wink:.

Yes that is expected, since it contains the ARMv6 kernel only. The RPi 2 requires the ARMv7 kernel. I just recognized that our info in this regards is wrong on the download page. On the RPi 1 image it still says at the bottom line “compatible with all RPi models”, which was true with the old combined kernel packages. The new kernel packages are much more tailored for specific RPi SoCs.

1 Like

Oh my god. I have been tearing my hair out all night because I thought my RPi is defective and I kept using that version because it said compatible and because I couldn’t understand why I was having problems with the new one.

Oh well, at least one good thing came of all this. Hopefully no one else will run into that issue now that you fixed the description

But even if it was compatible, why would you use an ARMv6 image intended for RPi 1 and Zero models on an RPi 2, while there is an explicit image intended for RPi 2? :smile:

Because i was having problems and was trying to rule things out. There being a new special image just for the rpi2 is a new variable. And i knew the old image file never gave me any problems

Understood. The new kernel stack was quite a significant change, when Raspberry Pi OS Bookworm was released. We gave it a while before we migrated as well. I just updated the description on our download page: Switch to Debian Trixie images by MichaIng · Pull Request #374 · MichaIng/DietPi-Website · GitHub

The RPi 2 v1.1 image really is the only one which works on this model, being also the only RPi model with BCM2709 (BCM2836) SoC, the only true ARMv7 RPi. I learned just now that a Compute Module 2 based on this SoC was designed, but never released. But a Chinese manufacturer sold fake CM2s instead :smile:.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.