Seite 1 von 1

opsi-local-image-capture often fails on win7-x64

Verfasst: 20 Okt 2017, 15:44
von nicolaslebrun
Hi,

Since a few weeks (months), opsi-local-image-capture fails very often, on win7-x64 computers (not tested on win10).

The product "opsi-local-image-capture" remains in "unknown running" state and no log is on the server.

The client reboots and gives a screen asking for the name of the computer just as after a sysprep... The opsi-local-image-restore is not setup.

Despite the image install.wim has grown, the wim info doesn't give anything just as if the image had been saved but the index not written.

Does anyone have and idea ?

I'm try at the moment to uncomment the copy_log section of capture.opsiscript to get more info.

Regards,

Nicolas

Re: opsi-local-image-capture often fails on win7-x64

Verfasst: 21 Okt 2017, 13:32
von nicolaslebrun
Here is part of the log

Code: Alles auswählen

[7] [oct. 20 15:51:20:055]             (string   0)Name:                   Windows 7 PROFESSIONAL                                                                                                                                                                        [0/831]
[7] [oct. 20 15:51:20:055]             (string   1)Display Name:           Windows Professionnel
[7] [oct. 20 15:51:20:055]             (string   2)Product Name:           Syste dexploitation Microsoft� Windows�
[7] [oct. 20 15:51:20:055]             
[6] [oct. 20 15:51:20:055]     
[6] [oct. 20 15:51:20:055]     ~~~~~~ Looping through:  'Name:                   Windows 7 PROFESSIONAL', 'Display Name:           Windows Professionnel', 'Product Name:           Syste dexploitation Microsoft� Windows�'
[6] [oct. 20 15:51:20:055]       
[6] [oct. 20 15:51:20:055]       ~~~~~~~ Start Sub ~~~~~~~  sub_make_namelist
[6] [oct. 20 15:51:20:055]       If
[5] [oct. 20 15:51:20:055]       "1" = strPos("Name:                   Windows 7 PROFESSIONAL", "Name:")   <<< result true
[6] [oct. 20 15:51:20:055]     Then
[5] [oct. 20 15:51:20:055]       Set  $str$ = trim(strPart("Name:                   Windows 7 PROFESSIONAL", "6", strlength("Name:                   Windows 7 PROFESSIONAL")))
[8] [oct. 20 15:51:20:055]       strPart from: Name:                   Windows 7 PROFESSIONAL start: 6 number: 46 gives: >                   Windows 7 PROFESSIONAL<
[6] [oct. 20 15:51:20:071]         The value of the variable "$str$" is now: "Windows 7 PROFESSIONAL"
[5] [oct. 20 15:51:20:071]       Set  $imagelist$ = addtolist($imagelist$,$str$)
[6] [oct. 20 15:51:20:071]           retrieving strings from $imagelist$ [switch to loglevel 7 for debugging]
[7] [oct. 20 15:51:20:071]               
[6] [oct. 20 15:51:20:071]           retrieving strings from addtolist [switch to loglevel 7 for debugging]
[7] [oct. 20 15:51:20:071]               (string   0)Windows 7 PROFESSIONAL
[7] [oct. 20 15:51:20:071]               
[5] [oct. 20 15:51:20:071]       Set  $valuesListStr$ = stringReplace($valuesListStr$, '"]', '",')
[6] [oct. 20 15:51:20:071]         The value of the variable "$valuesListStr$" is now: "["
[5] [oct. 20 15:51:20:071]       Set  $valuesListStr$ = $valuesListStr$ +'"'+$str$+'"]'
[6] [oct. 20 15:51:20:071]         The value of the variable "$valuesListStr$" is now: "["Windows 7 PROFESSIONAL"]"
[6] [oct. 20 15:51:20:071]     EndIf
[6] [oct. 20 15:51:20:071]       
[6] [oct. 20 15:51:20:071]       ~~~~~~~ End Sub   ~~~~~~~  sub_make_namelist
[6] [oct. 20 15:51:20:071]       
[6] [oct. 20 15:51:20:071]       
[6] [oct. 20 15:51:20:071]       ~~~~~~~ Start Sub ~~~~~~~  sub_make_namelist
[6] [oct. 20 15:51:20:071]       If
[5] [oct. 20 15:51:20:071]       "1" = strPos("Display Name:           Windows Professionnel", "Name:")   <<< result false
[6] [oct. 20 15:51:20:071]     Then
[6] [oct. 20 15:51:20:071]     EndIf
[6] [oct. 20 15:51:20:071]       
[6] [oct. 20 15:51:20:071]       ~~~~~~~ End Sub   ~~~~~~~  sub_make_namelist
[6] [oct. 20 15:51:20:071]       
[6] [oct. 20 15:51:20:071]       
[6] [oct. 20 15:51:20:071]       ~~~~~~~ Start Sub ~~~~~~~  sub_make_namelist
[6] [oct. 20 15:51:20:071]       If
[5] [oct. 20 15:51:20:071]       "1" = strPos("Product Name:           Syste dexploitation Microsoft� Windows�", "Name:")   <<< result false
[6] [oct. 20 15:51:20:071]     Then
[6] [oct. 20 15:51:20:071]     EndIf
[6] [oct. 20 15:51:20:071]       
[6] [oct. 20 15:51:20:071]       ~~~~~~~ End Sub   ~~~~~~~  sub_make_namelist
[6] [oct. 20 15:51:20:071]       
[6] [oct. 20 15:51:20:071]     
[6] [oct. 20 15:51:20:071]     ~~~~~~ End Loop
[5] [oct. 20 15:51:20:071]     Set  $possiblenames$ = getListContaining($imagelist$,$imagename$)
[6] [oct. 20 15:51:20:071]         retrieving strings from $imagelist$ [switch to loglevel 7 for debugging]
[7] [oct. 20 15:51:20:086]             (string   0)Windows 7 PROFESSIONAL
[7] [oct. 20 15:51:20:086]             
[6] [oct. 20 15:51:20:086]         retrieving strings from getListContaining [switch to loglevel 7 for debugging]
[7] [oct. 20 15:51:20:086]             
[6] [oct. 20 15:51:20:086]     If
[6] [oct. 20 15:51:20:086]           retrieving strings from $possiblenames$ [switch to loglevel 7 for debugging]
[7] [oct. 20 15:51:20:086]               
[5] [oct. 20 15:51:20:086]       count($possiblenames$) > "0"   <<< result false
[6] [oct. 20 15:51:20:086]     Then
[6] [oct. 20 15:51:20:086]     Else
[5] [oct. 20 15:51:20:086]       Set  $imageexists$ = "false"
[6] [oct. 20 15:51:20:086]         The value of the variable "$imageexists$" is now: "false"
[6] [oct. 20 15:51:20:086]     EndIf
[6] [oct. 20 15:51:20:086]     If
[5] [oct. 20 15:51:20:086]       $imageexists$ = "true"   <<< result false
[6] [oct. 20 15:51:20:086]     Then
[6] [oct. 20 15:51:20:086]     EndIf
[5] [oct. 20 15:51:20:086]     
[5] [oct. 20 15:51:20:086]     ShellInAnIcon_copylog
[6] [oct. 20 15:51:20:086]       c:\opsi.org\tmp\_opsiscript_Qi36Tr00.cmd saved back
[6] [oct. 20 15:51:20:086]       Executing "cmd.exe" /C c:\opsi.org\tmp\_opsiscript_Qi36Tr00.cmd
And the capture fails ...

Regards

Nico

Re: opsi-local-image-capture often fails on win7-x64

Verfasst: 23 Okt 2017, 16:38
von n.wenselowski
Hi Nico,

general advice is to use the latest version of the products. Also be aware that capturing can only be done a limited time from a client (this is a limitation Microsoft has implemented).
I'd suggest trying to capture a previously uncaptured client to see if everything works.

As this is one of the non-free extensions please contact support for further assistance.


Kind regards

Niko

Re: opsi-local-image-capture often fails on win7-x64

Verfasst: 23 Okt 2017, 18:49
von nicolaslebrun
Thanks Niko,

I'll do as you suggest ...

Our opsi local image capture seems to be last version : opsi-local-image-capture_4.0.7.1-1.opsi

A remark, i just see that :

Code: Alles auswählen

(LxC)(undefu-)(opsi)(root)[/var/lib/opsi/depot/opsi-wim-capture]$ cat wimlib-version.txt 
-1.9.1-windows-i686-bin
(LxC)(undefu-)(opsi)(root)[/var/lib/opsi/depot/opsi-local-image-capture]$ cat wimlib-version.txt 
wimlib-1.6.2-windows-x86_64-bin
Could I use the wimlib of opsi-wim-capture in opsi-local-image-capture ?

I'll try to contact the support.

Thanks !

Nico