HPIA - Exited with 0 even though it was unable to retrieve all recommended softpaqs

4 posts / 0 new
Last post
Author
Message
AlexandreP
Posted: 3 June 2021 - 1:17pm
HPIA - Exited with 0 even though it was unable to retrieve all recommended softpaqs

Hi,

Running Image Assistant 5.1.1, I happen to have encountered an error 407 - Proxy Authentication Required when checking Internet connection. Same 407 error happened when HPIA tried to download one of the required softpaqs. Still, HPIA exited with error 0

Shouldn't HPIA have exited with some specific error code indicating that at least one softpaq was not downloaded? I.e. 4098 No internet access, or 8199 The softpaq download failed

I'm asking this because we have an automation script that launches HPIA and, once the program has completed, logs the HPIA global exit code to an event in a Windows event log that gets fetched by Azure Log Analytics. That way, we can track which devices encounter installation issues, and proceed with investigation and remediation. If we have some device encountering download issues but still HPIA indicated that everything went as expected, then we will have much more difficulty finding devices encountering unexpected situations during HPIA execution.

Here is my HP Image Assistant.log debug log -- observe that we encounter proxy authentication required (407) à 03:20:39, and again at 03:22:49 and 03:22:51, resuting in sp113786 not being downloaded:

06-03-2021 03:20:33 -- HP Image Assistant 5.1.1.16136
06-03-2021 03:20:33 -- Command-Line: "C:\Program Files\HP\HPImageAssistant\HPImageAssistant.dll" /ipc:512,524,528 /Operation:Analyze /Action:Install /Selection:All /InstallType:AutoInstallable /AutoCleanup:True /Category:BIOS Drivers Firmware Accessories /ReportFolder:C:\HPIA\Report /SoftpaqDownloadFolder:C:\HPIA\Download /silent /debug /lang:en 
06/03/2021 03:20:35 -- Target Image: '<This Computer>'
06/03/2021 03:20:35 -- Reference Image: '<From HP.com>'
06/03/2021 03:20:36 -- ProductListSearchViewModel 58406714
06/03/2021 03:20:37 -- Application initialization started
06/03/2021 03:20:37 --     Setting default connection to HP.com until AWS is successful.
06/03/2021 03:20:37 --     Checking Internet connection...
06/03/2021 03:20:39 --     ERROR: authenticationrequired
06/03/2021 03:20:39 --         Exception (Handled): The remote server returned an error: (407) Proxy Authentication Required.
06/03/2021 03:20:39 --            at System.Net.HttpWebRequest.GetResponse()
   at HP.ImageAssistant.ImagePal.Common.WebDownloadJob.CheckInternet(String url, String proxyUrl, UInt32 proxyPort)
06/03/2021 03:20:39 --     ERROR: authenticationrequired
06/03/2021 03:20:39 --         Exception (Handled): The remote server returned an error: (407) Proxy Authentication Required.
06/03/2021 03:20:39 --            at System.Net.HttpWebRequest.GetResponse()
   at HP.ImageAssistant.ImagePal.Common.WebDownloadJob.CheckInternet(String url, String proxyUrl, UInt32 proxyPort)
06/03/2021 03:20:39 --     Using URL http://www.msftconnecttest.com/connecttest.txt...
06/03/2021 03:20:39 --     Checking for available application update
06/03/2021 03:20:39 --     ProductListSearchViewModel 16856419
06/03/2021 03:20:39 --     Connecting to AWS...
06/03/2021 03:20:39 --     Downloading 'https://hpia.hpcloud.hp.com/HPIAMsg.cab?hpia=5.1.1&m=cl'
06/03/2021 03:20:39 -- Application initialization completed
06/03/2021 03:20:40 -- Verifying cab signature/authenticode
06/03/2021 03:20:40 -- Extracting content file 'HPIAMsg.xml'
06/03/2021 03:20:40 -- Download completed
06/03/2021 03:20:40 -- XML parsing completed.
06/03/2021 03:20:40 -- Successful connection to AWS, setting Default connection back to AWS.
06/03/2021 03:20:40 -- Connecting to AWS...
06/03/2021 03:20:40 -- Downloading 'https://hpia.hpcloud.hp.com/ref/platformList.cab'
06/03/2021 03:20:40 -- Verifying cab signature/authenticode
06/03/2021 03:20:40 -- Extracting content file 'platformList.xml'
06/03/2021 03:20:41 -- Download completed
06/03/2021 03:20:41 -- Connecting to AWS...
06/03/2021 03:20:41 -- Downloading 'https://hpia.hpcloud.hp.com/kb/common/latest.cab'
06/03/2021 03:20:41 -- Verifying cab signature/authenticode
06/03/2021 03:20:41 -- Extracting content file 'latest.zip'
06/03/2021 03:20:41 -- Download completed
06/03/2021 03:20:41 -- Setting up of Knowledge Database started
06/03/2021 03:20:41 -- Parsing KB file 'dependencies/BIOSSettings.xml'

<snip>

06/03/2021 03:22:44 --             Setting up advisories grid filter
06/03/2021 03:22:44 --             Grid filters update completed
06/03/2021 03:22:44 --             Setting up Summary Tab information
06/03/2021 03:22:44 --         Tabs setup completed
06/03/2021 03:22:48 --     Comparison/Analysis completed
06/03/2021 03:22:48 -- Analysis completed
06/03/2021 03:22:48 -- Downloading 'https://ftp.hp.com/pub/softpaq/sp113501-114000/sp113786.exe?hpia=5.1.1&wf=1&pn=HP+EliteBook+850+G6&osv=10.0.19042&osa=64&op=4&m=cl'
06/03/2021 03:22:49 --     Exception (Handled): The remote server returned an error: (407) Proxy Authentication Required.
06/03/2021 03:22:49 --        at System.Net.HttpWebRequest.GetResponse()
   at HP.ImageAssistant.ImagePal.Common.DownloadJobHttp.GetAndSetWebResponse(String url)
   at HP.ImageAssistant.ImagePal.Common.WebDownloadJob.Download(String uri, FileStream outStream, Int32 downloadProgressCount, String uriDisplayName)
06/03/2021 03:22:49 -- Downloading 'https://ftp.hp.com/pub/softpaq/sp113501-114000/sp113786.exe?hpia=5.1.1&wf=1&pn=HP+EliteBook+850+G6&osv=10.0.19042&osa=64&op=4&m=cl'
06/03/2021 03:22:50 --     Exception (Handled): The remote server returned an error: (407) Proxy Authentication Required.
06/03/2021 03:22:50 --        at System.Net.HttpWebRequest.GetResponse()
   at HP.ImageAssistant.ImagePal.Common.DownloadJobHttp.GetAndSetWebResponse(String url)
   at HP.ImageAssistant.ImagePal.Common.WebDownloadJob.Download(String uri, FileStream outStream, Int32 downloadProgressCount, String uriDisplayName)
06/03/2021 03:22:50 -- Downloading 'https://ftp.hp.com/pub/softpaq/sp113501-114000/sp113786.exe?hpia=5.1.1&wf=1&pn=HP+EliteBook+850+G6&osv=10.0.19042&osa=64&op=4&m=cl'
06/03/2021 03:22:51 --     Exception (Handled): The remote server returned an error: (407) Proxy Authentication Required.
06/03/2021 03:22:51 --        at System.Net.HttpWebRequest.GetResponse()
   at HP.ImageAssistant.ImagePal.Common.DownloadJobHttp.GetAndSetWebResponse(String url)
   at HP.ImageAssistant.ImagePal.Common.WebDownloadJob.Download(String uri, FileStream outStream, Int32 downloadProgressCount, String uriDisplayName)
06/03/2021 03:22:51 -- Saving recommendations as HTML started
06/03/2021 03:22:51 -- Saving recommendations as HTML completed
06/03/2021 03:22:51 -- Saving recommendations as XML started
06/03/2021 03:22:51 -- Saving recommendations as XML completed
06/03/2021 03:22:51 -- Saving recommended SoftPaqs as JSON started
06/03/2021 03:22:51 -- Saving recommendations as JSON completed
06/03/2021 03:22:51 -- Exiting with exit code: 0

 

Top
Author
Message
AlexandreP
Posted: 3 June 2021 - 1:29pm
Re: HPIA - Exited with 0 even though it was unable to retriev...

Also, I don't understand why in %ComputerModel%.json the exit code for the specific softpaq SP113786 is 0 with an empty ReturnDescription, while in Readme (%date%).html the description is correctly populated with "The remote server returned an error: (407) Proxy Authentication Required."

{
  "HPIA": {
    "DeviceHealthCode": "7",
    "LastAnalyzedDate": "2021-06-03T15:22:48.7087419-04:00",
    "BIOSSetupSecurity": "BIOS_NOT_PROTECTED",
    "HPIAOperation": "Analyze Action Install",
    "ExitCode": "0",
    "LastOperation": "EndAnalyze",
    "LastOperationStatus": "Success",
    "LastOperationStatusDesc": "Comparison/Analysis completed",
    "Recommendations": [
      {
        "RecommendationId": "3c1365877360cb6ba82b3980a7b6085b3f8570ce4a4d5e59f490a2202ee803cc",
        "Name": "HP BIOS and System Firmware (R70)",
        "RecommendationValue": "01.09.00",
        "SoftPaqID": "sp113786",
        "SSMCompliant": "True",
        "DPBCompliant": "False",
        "Url": "ftp.hp.com/pub/softpaq/sp113501-114000/sp113786.exe",
        "ReleaseNotesUrl": "ftp.hp.com/pub/softpaq/sp113501-114000/sp113786.html",
        "MetadataUrl": "ftp.hp.com/pub/softpaq/sp113501-114000/sp113786.cva",
        "Severity": "CRITICAL",
        "Source": [],
        "Comments": "HP_UPDATE_CRITICAL",
        "Remediation": {
          "RemediationId": "3c1365877360cb6ba82b3980a7b6085b3f8570ce4a4d5e59f490a2202ee803cc",
          "Date": "2021-06-03T15:22:48.7197357-04:00",
          "Status": "INSTALL_UNKNOWN",
          "ReturnCode": "0",
          "ReturnDescription": ""
        }
      }
    ]
  }
}

 

<table class='SolutionTable'>
<thead>
<tr>
<th>Solution</th>
<th>Component</th>
<th>Version</th>
<th>Details</th>
</tr>
</thead>
<tbody>
<tr>
<td>HP BIOS and System Firmware (R70)
<br />
<a href="https://ftp.hp.com/pub/softpaq/sp113501-114000/sp113786.html" target="_blank">SP113786</a>
</td>
<td>HP EliteBook 850 G6
</td>
<td>01.09.00
</td>
<td><span class="Error">The remote server returned an error: (407) Proxy Authentication Required.</span>
</td>
</tr>
</tbody>
</table>

 

Top
Author
Message
jchou
Posted: 3 June 2021 - 2:07pm
Re: HPIA - Exited with 0 even though it was unable to retriev...

Hi Alexandre, this is a known issue and is being investigated.

Top
Author
Message
AlexandreP
Posted: 3 June 2021 - 2:39pm
Re: HPIA - Exited with 0 even though it was unable to retriev...

Thanks for the reply, really appreciated. I'll be glad to see this changed in a future HPIA release :)

Top
Please login to comment