Comments (4)
Hi,
Thanks for the bug report.
The hang is caused because DietPi is waiting for NTPD to finish (so we get a updated timestamp), however, the onscreen text does not display this.
A fix is available in the next release (v74). This will include the correct onscreen text, and, wait for a maxium of 8 seconds before killing NTPD. https://github.com/Fourdee/DietPi/blob/testing/dietpi/dietpi-apt-get_update#L102
from dietpi.
Thank you. However, the state file ist left with state 0 after reboot, because I had to SIGTERM the apt-update after the DietPi-version-update, in order to reboot. If apt-update runs again, it waits for the update to terminate although it's not running, so it waits forever.
Even in my V73 the NTPD-query should timeout after 10 s. But it hangs forever.
In other words, Wait_For_Completion() waits forever, because Get_Current_State() always returns a status of 0.
I think the root of the evil is that apt-update is called at all after the DietPi-update (from V70 to V73 in my case), instead of just rebooting.
I could resolve the issue by deleting the state file.
from dietpi.
DietPi runs ntpd with -gq flags (quit when done, to save memory). So unless it updates, NTPD wont terminate.
[[ In other words, Wait_For_Completion() waits forever, because Get_Current_State() always returns a status of 0.]]
Yes, as per my previous comment, this is resolved in the v74 code i linked.
[[I think the root of the evil is that apt-update is called at all after the DietPi-update (from V70 to V73 in my case), instead of just rebooting.]]
DietPi runs dietpi-apt-get_update in the background. This vastly reduces the waiting time during installation for 2> core devices.
It will also only run apt-get update every 7 days, avoiding the need to run apt-get update everytime the user installs software with dietpi-software.
from dietpi.
I forgot to mention. You will need to use the v74 image release (released later today). The online patch will not effect images with versions v73 or lower during 1st run.
from dietpi.
Related Issues (20)
- Image | Radxa ZERO 3 HOT 58
- Update from 9.2.1 to 9.3 fails. Appears to be corrupted update URLs or something with Tailscale running on the box HOT 8
- "cpu" command | Add CPUFreq stats for time in states
- USB0 Network setting HOT 2
- Pine A64 - update from 9.2.1 to 9.3.0 fails while upgrading APT packages HOT 3
- Trying to run HamClock on /dev/fb0 HOT 4
- Dietpi-9.3 issues with all existing services going down while using tailscale as an exit node. HOT 3
- Elecrow 10.7" 1920x1080 IPS HDMI - Current console font on boot looks unreadable. HOT 2
- /dev/fb0 disappeared HOT 4
- Software request - photoprism
- Issue with /dev/dri/ with no desktop running HOT 2
- DietPi-Installer | Add support for Amlogic S9xx TV boxes HOT 7
- DietPi-Software | NZBGet: Move to DEB packages?
- Dietpi-VPN IPVanish installation - Possible bugs with IpVanish's configs.zip and also "keysize" in .ovpn file HOT 5
- Dietpi connecting to Chinese sites? HOT 1
- Camera Led not working HOT 4
- Pi-hole setup fails after applying workaround from #6592 / bond0 interface HOT 2
- Unable to install Wazuh agent on Pi 5 HOT 3
- PiVPN (Wireguard) with Pi-Hole with Unbound DoT might leak the DNS query over VPN connection HOT 44
- Image | ROCK 3C HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dietpi.