Coder Social home page Coder Social logo

Install behind proxy about dietpi HOT 4 CLOSED

dimpfelmoser avatar dimpfelmoser commented on May 9, 2024
Install behind proxy

from dietpi.

Comments (4)

Fourdee avatar Fourdee commented on May 9, 2024

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.

dimpfelmoser avatar dimpfelmoser commented on May 9, 2024

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.

Fourdee avatar Fourdee commented on May 9, 2024

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.

Fourdee avatar Fourdee commented on May 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.