Not working

Re: Not working

Postby chavv » 27.10.2013, 13:03

1st run from mapped drive was not intentional.
The problem is still will stop at some point - even run from local disk :/
chavv
 
Posts: 12
Joined: 25.10.2013, 10:24

Re: Not working

Postby aker » 27.10.2013, 15:41

Do you use wget (default) or aria2 to download the updates?
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32

Re: Not working

Postby chavv » 28.10.2013, 06:56

Activating Aria leads again to error
Ї®­ 28.10.2013 7:55:24.71 - Info: Starting WSUS Offline Update download (v. 8.7) for wxp enu
Ї®­ 28.10.2013 7:55:24.71 - Info: Option /nocleanup detected
Ї®­ 28.10.2013 7:55:24.72 - Info: Option /exitonerror detected
Ї®­ 28.10.2013 7:55:24.86 - Info: Set time zone to LOC-2:00
2013-10-28 07:55:25.269264 [NOTICE] [HttpResponseCommand.cc:192] GID#82e3175922b496a9 - Download has already completed: ../static/StaticDownloadFiles-modified.txt
2013-10-28 07:55:25.269264 [NOTICE] [RequestGroup.cc:1177] Download complete: ../static/StaticDownloadFiles-modified.txt
Ї®­ 28.10.2013 7:55:25.36 - Info: Updated static download definitions
Ї®­ 28.10.2013 7:55:25.68 - Info: Downloaded/validated mkisofs tool
Ї®­ 28.10.2013 7:55:25.81 - Info: Found sigcheck.exe version 2.0.0.0 (common options: /accepteula -q -c)
Ї®­ 28.10.2013 7:55:26.16 - Info: Downloaded/validated most recent Windows Update Agent installation and catalog files
Ї®­ 28.10.2013 7:55:26.18 - Info: Determined static update urls for win glb
2013-10-28 07:55:26.605398 [NOTICE] [HttpResponseCommand.cc:192] GID#5f11bd0c71acc364 - Download has already completed: ../exclude/ExcludeList-superseded-exclude.txt
2013-10-28 07:55:26.605398 [NOTICE] [RequestGroup.cc:1177] Download complete: ../exclude/ExcludeList-superseded-exclude.txt
Ї®­ 28.10.2013 7:55:26.69 - Error: Download failure for win glb
chavv
 
Posts: 12
Joined: 25.10.2013, 10:24

Re: Not working

Postby chavv » 28.10.2013, 08:31

Looks Like I had found WHAT was causing the problem, tho I have no idea WHY

Some time ago I started using small 1GB RAM disk for temporary folder... and for some reason this was causing the error above
Set temp folder on HDD - all downloads went just fine.
chavv
 
Posts: 12
Joined: 25.10.2013, 10:24

Re: Not working

Postby chavv » 28.10.2013, 10:48

Even identified the line which causes the problem

%CSCRIPT_PATH% //Nologo //B //E:vbs XSLT.vbs "%TEMP%\package.xml" ..\xslt\ExtractDownloadLinks-%1-%3-%2.xsl "%TEMP%\DynamicDownloadLinks-%1-%2.txt"

from DownloadUpdates.cmd
It fails if temp dir is set to root folder !
eg
temp=g:\ == FAIL
temp=g:\temp == run ok

It has nothing to do with temp being set on ram disk... just some script expects temp dir to be subdir.
chavv
 
Posts: 12
Joined: 25.10.2013, 10:24

Re: Not working

Postby WSUSUpdateAdmin » 28.10.2013, 11:33

Hi!

chavv wrote:Even identified the line which causes the problem[...]It fails if temp dir is set to root folder !

...and that's why this is blocked by UpdateGenerator.au3 (line 2828++):
Code: Select all
If StringRight(@TempDir, 1) = "\" Then
  If ShowGUIInGerman() Then
    MsgBox(0x2010, "Fehler", "Der %TEMP%-Pfad enthält einen abschließenden Backslash ('\').")
  Else
    MsgBox(0x2010, "Error", "The %TEMP% path contains a trailing backslash ('\').")
  EndIf
  Exit(1)
EndIf

BTW: UpdateInstaller.au3 blocks this in a similar way.

Regards
Torsten Wittrock
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Not working

Postby chavv » 28.10.2013, 12:02

Weird, I never saw this Msgbox :/
This check exists in 0.8.6 - just checked, its line 2789 in 0.8.6
Looks like this check is not executed ?
chavv
 
Posts: 12
Joined: 25.10.2013, 10:24

Re: Not working

Postby chavv » 28.10.2013, 12:34

added:
Code: Select all
echo %TEMP%>>%DOWNLOAD_LOGFILE%

on line 27 in DownloadUpdates.cmd - when Temp dir has "\" at the end - download fails, NO error msgbox, in log I get
g:\temp\


Then I added
Code: Select all
GUISetState()
MsgBox (0x2010, "Info", "Temp dir is " & @Tempdir)

and...
Even when temp dir is g:\temp\
the msgbox says
g:\temp

So, somehow, the au3 script always gets Tempdir with last "\" trimmed. Maybe AutoIt feature?

But batch files fail, because they get the right temp path.
chavv
 
Posts: 12
Joined: 25.10.2013, 10:24

Re: Not working

Postby WSUSUpdateAdmin » 28.10.2013, 15:01

Sad.
Fixed in http://trac.wsusoffline.net/browser/trunk (r521): "- Fix: Check for trailing backslash in environment variable TEMP was broken in UpdateGenerator and UpdateInstaller scripts (Thanks to "chavv")"

Thanks for attention, sorry for inconvenience
and kind regards
T. Wittrock
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Previous

Return to Download

Who is online

Users browsing this forum: No registered users and 221 guests