Giter VIP home page Giter VIP logo

Comments (9)

iDrewbs avatar iDrewbs commented on July 28, 2024 1

I have automatic downloads disabled, however the update did already download and prepare during a previous attempt by super. It seemed to keep stalling when trying to initiate that download that had already completed. I increased the timeout to over an hour but obviously that didn't make a difference, neither did a reboot.

If there is a way to detect a completed download that would help. However If there isn't a way to detect if the update was previously downloaded, are there any terminal commands that I could manually run that would flush/reset any updates already downloaded so the process can just start fresh?

from super.

Macjutsu avatar Macjutsu commented on July 28, 2024

This is not an issue with super. After the Jamf API command is sent, there is nothing super can do but wait for the download to start. We literally have no control over the download process after the MDM command workflow is started... none. Instead super waits for softwareupdated to start the download to complete, and quite often it simply will not. The update.log is the raw output of the softwareupdated process, and if it never starts to download then super v3.0 will properly timeout and try again. See this example log for what should happen when the download is working.

from super.

Macjutsu avatar Macjutsu commented on July 28, 2024

Reopening for clarification... are the affected systems set to automatically download updates? If so, that could be the cause. In other words, if the update is already downloaded before the MDM command tells it to download, then the softwareupdate log may not indicate any download progress because it's already done. If this is the case then there could be something super could do to try and detect if the update was previously downloaded automatically.

from super.

Macjutsu avatar Macjutsu commented on July 28, 2024

The problem is that there aren't any good methods to detect this. The only "official" method is to literally run softwareupdate --download every time super runs to validate previous downloads, but as we all now know... every run of softwareupdate is another chance for it to hang. Normally super keeps track of downloads it completes to avoid re-downloading, so did you reset super between download/install attempts?

from super.

iDrewbs avatar iDrewbs commented on July 28, 2024

Yes I did reset super between download/install attempts but it didn't have any effect.
I have a feeling this would be a rare occurrence. It's only come up this once, and super has been able to reset other times.
Maybe in the future a flag could be added to force a re-download of all updates but it's probably a low priority at this point.

from super.

iDrewbs avatar iDrewbs commented on July 28, 2024

It looks like someone submitted a pull request for what sounds like this same issue, I noticed you had commented on it a bit ago. Think that could be the solution?

from super.

Macjutsu avatar Macjutsu commented on July 28, 2024

It's not ideal as it still requires running softwareupdate again... an ideal solution would be to know before any download is attempted if the update is already cached. I found this... working on it... defaults read /System/Volumes/Update/Update.plist update-asset-attributes

from super.

Macjutsu avatar Macjutsu commented on July 28, 2024

Well.. I've tested some things... I will likely be re-architecting the download mechanism again... stay tuned for the next beta.

from super.

Macjutsu avatar Macjutsu commented on July 28, 2024

Please check out the super v3.0b4 as it has a completely rearchitected download workflow.

from super.

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.