WIndows Ugrade Assistant - ISO download failure

Support forums for the Habitat Automate plugin
Post Reply
jcasteel
Posts: 8
Joined: Thu Aug 13, 2020 1:22 pm
3

WIndows Ugrade Assistant - ISO download failure

Post by jcasteel »

'The Windows 10 ISO failed to download the [%ltsvcdir%\Habitat\Windows10UG\2004.iso]. Pleas...' T: 118.0305656

getting this error/failure trying to upgade a machine.

The machine can pull the ISO directly using the URL in the policy setup and above folder structure is there.

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: WIndows Ugrade Assistant - ISO download failure

Post by Cubert »

Plausible timeout occurred?

When you download the ISO how long does it take to fully complete?

You can also see this action in the script and command logs. See if the downloads time out.

jcasteel
Posts: 8
Joined: Thu Aug 13, 2020 1:22 pm
3

Re: WIndows Ugrade Assistant - ISO download failure

Post by jcasteel »

Downloading the iso in question directly from the client machine takes about 3-5 minutes, give or take, but only about 30 seconds seems to pass between downloading and failure. see below:

Habitat - OS Upgrade Service Information 5/4/2021 9:19:52 AM -04:00 We have completed the ISO Download
Habitat - OS Upgrade Service Information 5/4/2021 9:19:52 AM -04:00 The Windows 10 ISO failed to download the [%ltsvcdir%\Habitat\Windows10UG\2004.iso]. Please debug failure and retry script.
Habitat - OS Upgrade Service Information 5/4/2021 9:19:22 AM -04:00 Downloading from URL [https://www.webserver.com/files/]
Habitat - OS Upgrade Service Information 5/4/2021 9:19:22 AM -04:00 The ISO Download path is set to [https://www.webserver.com/files/]
Habitat - OS Upgrade Service Information 5/4/2021 9:19:22 AM -04:00 We are using the Web URL to downlaod ISO file.

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: WIndows Ugrade Assistant - ISO download failure

Post by Cubert »

Please post screenshot of your policy for the installs

jcasteel
Posts: 8
Joined: Thu Aug 13, 2020 1:22 pm
3

Re: WIndows Ugrade Assistant - ISO download failure

Post by jcasteel »

Screenshot 2021-05-10 103254.jpg
Screenshot 2021-05-10 103254.jpg (96.74 KiB) Viewed 3819 times
I've tried with both the ENT iso listed or the 32/64 bit iso's, same result either way.

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: WIndows Ugrade Assistant - ISO download failure

Post by Cubert »

Ok so by your config I see your only downloading Enterprise Windows 10 and neither the 64 or 32 bit versions of PRO.

So We should be looking at that part of the script code to see what it is doing.

Since you say it dies pretty much strait away that tells us that we either have a bad URL or some other (get from URL) issue.

To test this theory, lets open the Scripts\Maintenance\Habitat - OS Upgrade Service script and in the "Then" section lets add a new line at line 60.

The new line should be a "script log message" function and place in the log line the variable "@ISODOWNLOADPATH@" which will print out the URL it will attempt to fetch.

Lets see what it logs as a URL to see if it got malformed in some way.

You should now get a log message during the running of script that will print out this URL.


Capture.PNG
Capture.PNG (61.66 KiB) Viewed 3740 times


Between Line 52 and 60 we construct the URL from the entries placed in the configs for 32 bit, 64 bit and Enterprise. If for some reason your grabbing incorrect data then URL will be malformed here and we should be able to see that in the logs during an update attempt.

jcasteel
Posts: 8
Joined: Thu Aug 13, 2020 1:22 pm
3

Re: WIndows Ugrade Assistant - ISO download failure

Post by jcasteel »

Sorry for the delay. I added in the two empty .iso fields and it worked. Just wanted to close the loop on this. Thanks for your help!

NinjaMonk
Posts: 4
Joined: Fri Dec 03, 2021 10:11 pm
2

Re: WIndows Ugrade Assistant - ISO download failure

Post by NinjaMonk »

I'm having a similar issue where the download fails but I'm using the Google Drive API. It's seeing the files, but if I try to download the file from the Google Drive File Manager I get Access denied?

2021-12-08_16-24-32.png
2021-12-08_16-24-32.png (60.42 KiB) Viewed 1811 times
Did I possibly miss something in configuration steps again?

Thanks in advance


Sounds like your issue is with the uploaded file permissions. Go into Google Drive and allow it to be shared by only the link and not restricted to users.
Capture.PNG
Capture.PNG (40.81 KiB) Viewed 1781 times

NinjaMonk
Posts: 4
Joined: Fri Dec 03, 2021 10:11 pm
2

Re: WIndows Ugrade Assistant - ISO download failure

Post by NinjaMonk »

That was it thank you very much file is now downloading :D :D :D :D

Post Reply

Return to “Habitat”