'GHost64.exe' tool failed with exit code 1, return code 0, location 'Tcube_ClientCaptureImage.cpp430'

book

Article ID: 206070

calendar_today

Updated On:

Products

Deployment Solution

Issue/Introduction

While trying to capture an image, DSTasks.log shows the following error:

[2020/12/28 15:58:42.890 1808:1448 INFO] Create Image Task: Creating image on web server 'http://smpserver.domain.com:8080/Images/Win10.gho'
[2020/12/28 15:58:42.890 1808:1448 INFO] Create Image Task: Starting application 'x:\program files\Symantec\Deployment\Downloads\{ABD668D6-E76D-4313-B50C-3309D75D7012}\cache\Ghost\x64\GHost64.exe' with command-line ' -z1 -batch -sure -clone,MODE=create,SRC=1,DST="HTTP://SV_altiris:*****@smpserver.domain.com:8080/Images/Win10.gho" -dscrypt' in 'x:\program files\Symantec\Deployment'
[2020/12/28 15:58:42.905 1808:1448 <TRC>] Create Image Task: Process created
[2020/12/28 15:58:45.15 1808:1448 INFO] Create Image Task: The process completed with exit code 1
[2020/12/28 15:58:45.15 1808:1448 *ERRR] Create Image Task: Task failed, ClientCaptureImageException occured ''x:\program files\Symantec\Deployment\Downloads\{ABD668D6-E76D-4313-B50C-3309D75D7012}\cache\Ghost\x64\GHost64.exe' tool failed with exit code 1', return code 0, location 'Tcube_ClientCaptureImage.cpp:430'

or

ErrorMessage: ClientImageDeployException occured ''x\program files\Symantec\Deployment\Downloads\{ABD668D6-E76D-4313-B50C-3309D75D7012}\cache\Ghost\x64\GHost64.exe' tool failed with exit code 1', return code 0, location 'Tcube_ClientImageDeploy.cpp541'

Looking at 'x:\program files\Symantec\Deployment\Downloads\{ABD668D6-E76D-4313-B50C-3309D75D7012}\cache\Ghost\x64\GHost64.exe'  and the file is there.

Even earlier in the DSTasks.log shows that the file is fine:

[2020/12/28 15:58:42.858 1808:1448 <TRC>] Create Image Task: Tool 'x:\program files\Symantec\Deployment\Downloads{ABD668D6-E76D-4313-B50C-3309D75D7012}\cache\Ghost\x64\GHost64.exe' found

 

The customer is capturing and storing the image in a standalone HTTP server. It was configured in the "Create Image" task, under the Advanced>HTTP tab on that task. 

Cause

Since the customer is capturing from a standalone HTTP server, there were issues with the virtual directory settings. 

The best clue to know what happened that caused " 'GHost64.exe' tool failed with exit code 1', return code 0, location 'Tcube_ClientCaptureImage.cpp:430' " is to look at the error message that the task itself generated.


When we looked at the actual "Create Image" task, this was the error that displayed:


Task Instance Details (laptopwin10-base - 12/28/2020 9:58:42 AM)Task Instance Details (laptopwin10-base - 12/28/2020 9:58:42 AM)

Status: Failed
Return code: 1 
Start time: 12/28/2020 9:58:42 AM
End time: 12/28/2020 9:58:45 AM
Total run time: 3 seconds
Failed
Output Properties
: ErrorMessage: ClientCaptureImageException occured ''x\program files\Symantec\Deployment\Downloads\{ABD668D6-E76D-4313-B50C-3309D75D7012}\cache\Ghost\x64\GHost64.exe' tool failed with exit code 1', return code 0, location 'Tcube_ClientCaptureImage.cpp430'
Log output:
-------------------------------------------------------------------------------
BEGIN x:\program files\Symantec\Deployment\Logs\GHOSTERR_Mon_Dec_28_15_58_45_2020.TXT
-------------------------------------------------------------------------------
*********************************
Date   : Mon Dec 28 15:58:44 2020
Error Number: 51928
Message: Invalid URL failed to create the image file.  
HTTP Result: 500, SSL error: 0
Version: 12.0.0.10695(Sep 26 2019, Build=10695
OS Version: Professional  (Build 9200)
Command line arguments: -z1 -batch -sure -clone,mode=create,src=1,dst=http://smpserver.domain.com:8080/images/win10.gho -dscrypt
Active Switches :     
 AutoName
PathName            : 
DumpFile            : http://smpserver.domain.com:8080/images/win10.gho
DumpPos             : 0
Last LFO Buffersize : 0
Last LFO Path       :  
Full Path         : http://smpserver.domain.com:8080/images/win10.gho 
Drive Letter      : http 
Last LFO Filesystem : Proprietary
Last LFO Error      : HTTP Result: 500, SSL error: 0
Last LFO Error Path :  
Full Path         : http://smpserver.domain.com:8080/images/win10.gho 
Drive Letter      : http 
FlagImplode         : 2
FlagExplode         : 0
CloneSrc            : 1
BatchPartSrc        : 0
...
-------------------------------------------------------------------------------
END x:\program files\Symantec\Deployment\Logs\GHOSTERR_Mon_Dec_28_15_58_45_2020.TXT
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
BEGIN x:\program files\Symantec\Deployment\Logs\ghstwarn_Mon_Dec_28_15_58_45_2020.txt
-------------------------------------------------------------------------------
*********************************

Date   : Mon Dec 28 15:58:44 2020
Error Number: 51928
Message: Invalid URL failed to create the image file.  
HTTP Result: 500, SSL error: 0
Version: 12.0.0.10695(Sep 26 2019, Build=10695
OS Version: Professional  (Build 9200)
Command line arguments: -z1 -batch -sure -clone,mode=create,src=1,dst=http://smpserver.domain.com:8080/images/win10.gho -dscrypt
Active Switches :       AutoName
PathName            : 
DumpFile            : http://smpserver.domain.com:8080/images/win10.gho
DumpPos             : 0
Last LFO Buffersize : 0
Last LFO Path       :  
Full Path         : http://smpserver.domain.com:8080/images/win10.gho 
Drive Letter      : http 
Last LFO Filesystem : Proprietary
Last LFO Error      : HTTP Result: 500, SSL error: 0Last LFO Error Path :  
Full Path         : http://smpserver.domain.com:8080/images/win10.gho 
Drive Letter      : http 
FlagImplode         : 2
FlagExplode         : 0
CloneSrc            : 1
BatchPartSrc        : 0
...
-------------------------------------------------------------------------------
END x:\program files\Symantec\Deployment\Logs\ghstwarn_Mon_Dec_28_15_58_45_2020.txt
-------------------------------------------------------------------------------
------------------------------------------------------------------------------
CREATED x:\program files\Symantec\Deployment\Logs\ghost64_Mon_Dec_28_15_58_45_2020.dmp
------------------------------------------------------------------------------

 

Where the HTTP 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the web site's server but the server could not be more specific on what the exact problem is.

 

Also, a similar error when deploying an image could be related to the same issue with the virtual directory created:

The "deploy image" task shows the following error:

 

ErrorMessage: ClientImageDeployException occured ''x\program files\Symantec\Deployment\Downloads\{ABD668D6-E76D-4313-B50C-3309D75D7012}\cache\Ghost\x64\GHost64.exe' tool failed with exit code 1', return code 0, location 'Tcube_ClientImageDeploy.cpp541'

Log output:        

-------------------------------------------------------------------------------

BEGIN x:\program files\Symantec\Deployment\Logs\GHOSTERR_Tue_Jan__5_15_30_06_2021.TXT

-------------------------------------------------------------------------------

Date   : Tue Jan  5 15:30:06 2021

Error Number: 51929

Message: Invalid URL failed to open the image file.

 HTTP Result: 404, SSL error: 0

Version: 12.0.0.11197(Jul  2 2020, Build=11197

OS Version: Professional  (Build 9200)

Command line arguments: -FIXEFIBOOT -NTEXACT -batch -sure -clone,mode=restore,dst=1,src=http://smpserver.domain.com:8080/images/win10.gho -dscrypt

Active Switches :

       AutoName

...

-------------------------------------------------------------------------------

END x:\program files\Symantec\Deployment\Logs\GHOSTERR_Tue_Jan__5_15_30_06_2021.TXT

-------------------------------------------------------------------------------

 

-------------------------------------------------------------------------------

BEGIN x:\program files\Symantec\Deployment\Logs\ghstwarn_Tue_Jan__5_15_30_06_2021.txt

-------------------------------------------------------------------------------

 

Date   : Tue Jan  5 15:30:06 2021

Error Number: 51929

Message: Invalid URL failed to open the image file.

 HTTP Result: 404, SSL error: 0

Version: 12.0.0.11197(Jul  2 2020, Build=11197

OS Version: Professional  (Build 9200)

Command line arguments: -FIXEFIBOOT -NTEXACT -batch -sure -clone,mode=restore,dst=1,src=http://smpserver.domain.com:8080/images/win10.gho -dscrypt

Active Switches :

       AutoName

...

-------------------------------------------------------------------------------

END x:\program files\Symantec\Deployment\Logs\ghstwarn_Tue_Jan__5_15_30_06_2021.txt

-------------------------------------------------------------------------------

Environment

ITMS 8.5
DS 8.5 RU4

Resolution

Check the following:

1. Make sure that the desired location is accessible. That you can actually browse to that destination directory from a browser. For this example, that you can open "http://smpserver.domain.com:8080/images/"

2. Make sure that the virtual directory created on your SMP server has the proper settings as discussed under KB 154365 "Configure IIS 7.5 to allow Ghost and RDeploy image capture and deployment via HTTP in Server 2008 R2 and later"> You want to consider recreating the virtual directory as an option.

 

Attachments