-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System gets stuck when initiating a reboot (x86_64/EFI/Bookworm) #7104
Comments
Updates:
|
Since this is what we changed with last DietPi release, can you test whether this makes a difference: sed -i '/^[^#].*network-pre.target/s/^/#/' /etc/systemd/system/ifupdown-pre.service.d/dietpi.conf
systemctl daemon-reload
reboot Probably you need to do another reboot to see the effect. |
Was this the first reboot, or did you try a 2nd reboot? Because I am not sure whether it has an effect on the 1st reboot, despite systemd reload. So the last thing we see in the logs which did not finish, is ifdown eth0 Can you try this command manually from console, and see whether it hangs as well? |
I first rebooted remotely with Earlier, when I ran |
|
Hmm, so stopping either The question is why this never was an issue before. Since our recent change to Just to rule it out, can you show the content of the file: cat /etc/systemd/system/ifupdown-pre.service.d/dietpi.conf And try to move it out of place completely? mv /etc/systemd/system/ifupdown-pre.service.d/dietpi.conf{,_bak} I played a bit around on a VM with DHCP, starting, stopping and restarting those services, and rebooting, but could not replicate the issue. However, one must note that However, we should find out whether our service ordering caused this. Because in general I see no reason why those two services could not have run/stopped concurrently before. It would have been a more random incidence, but perfectly possible. |
Found it, at least part of the issue. I am still not sure how our ordering might have an effect on it, or if it really has (testing above would help), since I cannot replicate the issue, but I thought and found the following:
Hence here the proper solution: cat << '_EOF_' > /etc/systemd/system/ifup@.service
[Unit]
Description=ifup for %I
After=local-fs.target network-pre.target apparmor.service systemd-sysctl.service
Before=network.target network-online.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
DefaultDependencies=no
IgnoreOnIsolate=yes
[Service]
Type=oneshot
# avoid stopping on shutdown via stopping system-ifup.slice
Slice=system.slice
ExecStart=/sbin/ifup --allow=hotplug %I
ExecStop=/sbin/ifdown %I
RemainAfterExit=true
TimeoutStartSec=5min
_EOF_
rm -R /etc/systemd/system/ifup@.service.d This is a copy of |
Merge request sent upstream: https://salsa.debian.org/debian/ifupdown/-/merge_requests/23 And our end: 5dac7e3 |
The file you asked about contains this:
I will try the fix and will report back. |
Unfortunately the patch did not resolve the issue on my end. It's possible I applied the patch incorrectly, though. Is there anything I can check? |
Is there any other workaround? |
@ioctl2 systemctl cat ifup@eth0.service
systemctl show -p Conflicts ifup@eth0.service |
Here are the outputs:
|
Sorry for the late reply. On my tests, |
@ioctl2 |
Sorry about that. The issue persists on the one test system I have. |
@ioctl2 |
I had to move the affected system into its permanent home, and reboots are now disruptive. I can try to replicate the issue again on a similar system, though I'm not sure how quickly. |
Creating a bug report/issue
Required Information
DietPi version |
cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=5
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN
bookworm
Kernel version |
uname -a
Linux asus-psff 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux
SBC model |
echo $G_HW_MODEL_NAME
or (EG: RPi3)Manufacturer: ASUSTeK COMPUTER INC.
Product Name: VM40B
Power supply used | (EG: 5V 1A RAVpower)
The PSU is fine.
SD card used | (EG: SanDisk ultra)
Lexar 64G
Additional Information (if applicable)
N/A
Fresh deployment of the OS + all updates applied.
Yes.
echo $G_HW_UUID
Steps to reproduce
reboot
Expected behaviour
Actual behaviour
System starts the reboot process but gets stuck on
Stopping networking.service - Raise network interfaces...
/Stopping ifup@eth0.service - ifup for eth0
At this point it's stuck. If I hit Ctrl+Alt+Del, it continues to reboot and everything is fine (as in, the system reboots and comes back).
Also,
reboot -f
reboots the system without the issue above.Extra details
The text was updated successfully, but these errors were encountered: