Seite 1 von 1

[gelöst] WIM-Capture bricht ab "The system cannot find the path specified"

Verfasst: 05 Jan 2017, 16:29
von mhofmann
Moin,

wir evaluieren gerade Opsi mit einer entsprechenden Testlizenz. Server und Depot sind soweit fertig, läuft. Einzig WIM-Capture macht Probleme. Egal ob DISM oder ImageX es kommt immer "The system cannot find the path specified":

Code: Alles auswählen

Executing "cmd.exe" /C c:\opsi.org\tmp\_opsiscript_Dx25Sr17.cmd
Start Showoutput
ExitCode 3
Stop Showoutput
            
            output:
            --------------
            
            X:\windows\system32>dism /Append-Image /ImageFile:"p:\win10-x64-captured\installfiles\sources\install.wim" /CaptureDir::\ /Name:"opsitest" /Description:"opsitest"
            
            Deployment Image Servicing and Management tool
            Version: 10.0.14393.0
            
            
            Error: 3
            
            The system cannot find the path specified.
            
            The DISM log file can be found at X:\windows\Logs\DISM\dism.log
            
            X:\windows\system32>exit 3

Code: Alles auswählen

Error   DISM WIM Provider: PID=1236 X:\windows\system32\:\$WIMDESC (HRESULT=0x80070003) - CWimManager::WimProviderMsgLogCallback

Error	DISM WIM Provider: PID=1236 TID=1240 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:1207 - CWimManager::Capture(hr:0x80070003)

Error   DISM WIM Provider: PID=1236 TID=1240 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:4656 - CWimManager::InternalCmdCaptureBase(hr:0x80070003)

Error   DISM WIM Provider: PID=1236 TID=1240 "Error executing command" - CWimManager::InternalExecuteCmd(hr:0x80070003)

Error   DISM WIM Provider: PID=1236 TID=1240 onecore\base\ntsetup\opktools\dism\providers\wimprovider\dll\wimmanager.cpp:2223 - CWimManager::ExecuteCmdLine(hr:0x80070003)

Error   DISM.EXE: WimManager processed the command line but failed. HRESULT=80070003
Wenn ich den Capture Mode von "append" auf "always_create" stelle, wird das install.wim gelöscht, aber danach kommt der selbe Fehler...

Depot: CentOS7, Samba 4.4.4, Opsi 4.0.7
WinPE: Windows 10 1607 64bit ADK
win10-x64 - 4.0.7.1-4: Windows 10 2016 LTSB, VM wurde daraus installiert
win10-x64-captured - 4.0.7.1-4: Dateien aus win10-x64, kein Symlinks
Samba: oplocks = no

Code: Alles auswählen

smbstats

8509 0 DENY_ALL  0x12019f  RDWR  NONE  /var/lib/opsi/depot   win10-x64-captured/installfiles/sources/install.wim
8509 0 DENY_WRITE  0x1000a1  RDONLY  NONE  /var/lib/opsi/depot   opsi-wim-capture/Windows_7_Tools/64/imagex.exe 
Ich weiss nicht mehr weiter, kann mir jemand helfen?

Gruß
Martin Hofmann
PTS IT Services AG

Re: WIM-Capture bricht ab

Verfasst: 05 Jan 2017, 17:04
von pandel
Ich hab eigtl. keine Ahnung davon und hab's nur aus Neugierde gelesen... trotzdem... ist das richtig so?

Code: Alles auswählen

/CaptureDir::\
Gehört da nicht ein richtiger Pfad hin? Ich weiß ja nicht, ob man das in dem Paket iwie parametrieren kann...

Re: WIM-Capture bricht ab

Verfasst: 05 Jan 2017, 17:13
von mhofmann
Ja das ist mir auch gerade aufgefallen, habe das Log nochmal durchforstet.

Code: Alles auswählen

comment: get lines with ntfs volume ...
Set  $resultlist$ = getListContaining($resultlist$,"NTFS")
    retrieving strings from $resultlist$ [switch to loglevel 7 for debugging]
        (string   0)
        (string   1)X:\windows\system32>echo list volume  1>x:\lv.txt 
        (string   2)
        (string   3)X:\windows\system32>diskpart /s x:\lv.txt 
        (string   4)
        (string   5)Microsoft DiskPart version 10.0.14393.0
        (string   6)
        (string   7)Copyright (C) 1999-2013 Microsoft Corporation.
        (string   8)On computer: MININT-00GPV6K
        (string   9)
        (string  10)  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
        (string  11)  ----------  ---  -----------  -----  ----------  -------  ---------  --------
        (string  12)  Volume 0     E                       DVD-ROM         0 B  No Media           
        (string  13)  Volume 1     D   System       NTFS   Partition     95 GB  Healthy            
        (string  14)  Volume 2     C   WINPE        NTFS   Partition   4000 MB  Healthy            
        
    retrieving strings from getListContaining [switch to loglevel 7 for debugging]
        (string   0)  Volume 1     D   System       NTFS   Partition     95 GB  Healthy            
        (string   1)  Volume 2     C   WINPE        NTFS   Partition   4000 MB  Healthy            
        
comment: get lines with windows volume ...
Set  $str$ = takeFirststringContaining($resultlist$ ,"WINDOWS")
    retrieving strings from $resultlist$ [switch to loglevel 7 for debugging]
        (string   0)  Volume 1     D   System       NTFS   Partition     95 GB  Healthy            
        (string   1)  Volume 2     C   WINPE        NTFS   Partition   4000 MB  Healthy            
        
  The value of the variable "$str$" is now: ""
Set  $resultlist$ = splitstringOnWhitespace($str$)
    retrieving strings from splitstringOnWhitespace [switch to loglevel 7 for debugging]
        (string   0)
        
Set  $captureDriveLetter$ = takeString(3, $resultlist$)
    retrieving strings from $resultlist$ [switch to loglevel 7 for debugging]
        (string   0)
        
Stringlist list $resultlist$) has 1 elements. And the effective list index 3 is out of bounds in takeString function ! Use count() before takestring() to avoid this problem.
  The value of the variable "$captureDriveLetter$" is now: ""
Liegt das am DVD-ROM? Ich probiere es mal ohne...

Re: WIM-Capture bricht ab

Verfasst: 05 Jan 2017, 17:16
von mhofmann
Ach ich habe windows_partition_label von WINDOWS auf System geändert, glaube danach geht er explizit.

Re: WIM-Capture bricht ab "The system cannot find the path specified"

Verfasst: 05 Jan 2017, 18:15
von mhofmann
WIM-capture läuft jetzt, es geht wieder vorwärts :D

Wenn das einer vom Opsi Team liest, vielleicht solltet ihr das ins Handbuch mit aufnehmen:

Abläufe Übersicht

Das capturen eines installierten Windows läuft wie folgt ab:

Vorbereitung:

Installation von Windows mit der Property Einstellung:
preserve_winpe_partition=true
boot_partition_size=0
windows_partition_size=100%
windows_partition_label=WINDOWS

Re: [gelöst] WIM-Capture bricht ab "The system cannot find the path specified"

Verfasst: 09 Jan 2017, 10:42
von n.wenselowski
Hi,

du hast natürlich völlig Recht mit deinen Beobachtungen!

Das wollten wir schon im Dezember mal ins Handbuch aufnehmen, ist leider dann in Vergessenheit geraten.
Ich habe gerade nochmal die Kollegen daran erinnert, dass es möglichst fix aufgenommen wird!


Viele Grüße

Niko