The Altiris Administrator recently added one of his machines as a Site Server. He enabled the Package and Task Services and those were installed on the machine. However, when he looked at the machine, he noticed that the machine couldn't register to itself as a Task Server or it failed to get package snapshots. He saw errors like:
Error 1:Package Server could not access its own Web Site using HTTPS, although it is configured to serve it. The HTTPS requests from clients cannot be served.
Error 2:Could not register using "https://<TaskServer01>.<Domain>:443/Altiris/ClientTaskServer/Register.aspx"
Error 3:Error code: HTTP status 500: An unexpected condition prevented the server from fulfilling the request (0x8FA101F4)
Error 4:Download Snapshot failed: HTTP error occured (-2147209951)
Entry 1:Operation 'Direct: Head' failed.Protocol: HTTPSOriginal Host: <TaskServer01>.<Domain>:443Real Host: <NSserver01>:443Path: /Altiris/ClientTaskServer/Register.aspxId: 232.7188Error type: HTTP errorError code: HTTP status 500: An unexpected condition prevented the server from fulfilling the request (0x8FA101F4)Error note: 500 Internal Server ErrorServer HTTPS connection info: Server certificate: Serial number: xx xx xx xx ad 5b f9 61 f7 da 2b 57 2f c3 2f 42 xx xx xx xx Thumbprint: xx xx xx xx 98 a7 59 ff fb 43 de 04 2c cc b3 8c xx xx xx xx Cryptographic protocol: TLS 1.0 Cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256 Cipher algorithm: AES Cipher key length: 256 Hash algorithm: SHA1 Hash length: 160 Key exchange algorithm: ECDH_P256 Key length: 256-----------------------------------------------------------------------------------------------------Date: 4/5/2017 12:58:14 AM, Tick Count: 1824800687 (21.02:53:20.6870000), Size: 1.07 KBProcess: AeXNSAgent.exe (7188), Thread ID: 5892, Module: AeXNetComms.dllPriority: 1, Source: NetworkOperation
Entry 2:
Could not register using "https://<TaskServer01>.<Domain>:443/Altiris/ClientTaskServer/Register.aspx"-----------------------------------------------------------------------------------------------------Date: 4/5/2017 12:58:14 AM, Tick Count: 1824800687 (21.02:53:20.6870000), Size: 355 BProcess: AeXNSAgent.exe (7188), Thread ID: 5892, Module: client task agent.dllPriority: 2, Source: Client Task Agent
Entry 3:
Operation 'Direct: Get' failed.Protocol: HTTPSHost: <NSserver01>.<Domain>:4726Path: /Altiris/PS/getpackagesnapshot.aspId: 181.3512Error type: HTTP errorError code: HTTP status 500: An unexpected condition prevented the server from fulfilling the request (0x8FA101F4)Error note: Empty response content receivedServer HTTPS connection info: Server certificate: Serial number: xx xx xx xx d9 f6 c6 32 25 39 b0 24 9c af 9e xx xx xx xx Thumbprint: xx xx xx xx c1 e7 d3 30 a6 38 fa 24 1b 05 eb f2 xx xx xx xx Cryptographic protocol: TLS 1.0 Cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256 Cipher algorithm: AES Cipher key length: 256 Hash algorithm: SHA1 Hash length: 160 Key exchange algorithm: ECDH_P256 Key length: 256-----------------------------------------------------------------------------------------------------Date: 4/5/2017 1:19:58 AM, Tick Count: 1831471921 (21.04:44:31.9210000), Size: 1.03 KBProcess: AeXNSAgent.exe (3512), Thread ID: 6468, Module: AeXNetComms.dllPriority: 1, Source: NetworkOperation
Entry 4:
Operation 'Direct: Get' failed.Protocol: HTTPHost: <TaskServer02>.<Domain>:80Path: /Altiris/PS/getpackagesnapshot.aspId: 180.3512Error type: HTTP errorError code: HTTP status 500: An unexpected condition prevented the server from fulfilling the request (0x8FA101F4)Error note: Empty response content received-----------------------------------------------------------------------------------------------------Date: 4/5/2017 1:19:56 AM, Tick Count: 1831469953 (21.04:44:29.9530000), Size: 576 BProcess: AeXNSAgent.exe (3512), Thread ID: 6468, Module: AeXNetComms.dllPriority: 1, Source: NetworkOperation
Entry 5:
Download Snapshot failed: HTTP error occured (-2147209951)-----------------------------------------------------------------------------------------------------Date: 4/5/2017 1:14:57 AM, Tick Count: 1831171421 (21.04:39:31.4210000), Size: 304 BProcess: AeXNSAgent.exe (3512), Thread ID: 6468, Module: AeXPackageDelivery.dllPriority: 1, Source: PackageDownload
Entry 6:
Package Server could not access own Web Site using HTTPS, although it is configured to serve it. The HTTPS requests from clients cannot be served. See logs for detailed failure reason. (health state: 0x00001331).-----------------------------------------------------------------------------------------------------Date: 4/5/2017 1:14:03 AM, Tick Count: 1831116906 (21.04:38:36.9060000), Size: 464 BProcess: AeXNSAgent.exe (3512), Thread ID: 7104, Module: AeXNSCPackageServer.dllPriority: 1, Source: Package Server Agent
As well similar messages can be noticed in the IIS logs:
SVC1 <TaskServer02> <IP Address> HEAD /Altiris/ClientTaskServer/Register.aspx lastResort=true&resourceGuid=94a3fd5f-7929-4a8d-8e61-1fd1ef331675&crc=00080001000011B0 4726 - 12.xxx.xx.127 HTTP/1.1 - - - <TaskServer02>.<Domain> 401 5 293 235 109
2017-04-21 19:40:00 W3SVC1 <TaskServer02> <IP Address> HEAD /Altiris/ClientTaskServer/Register.aspx - 443 - <IP Address>.83 HTTP/1.1 - - - <TaskServer02>.<Domain> 401 5 293 148 31
ITMS 8.1 and later
Cause 1:
Missing the proper permissions for "Authenticated Users" group under <installdrive>:\Program Files\Altiris\Altiris Agent
Cause 2:
An Update (possibly WSUS) or installation other inserted a line into ApplicationHost.config when it registered its WSUS x64 DLL-- which turned on Dynamic Compression (as opposed to Static Compression which is probably already enabled), or an update was run that did not complete or clean up after its self.
In this case, the following section was added to "C:\Windows\System32\inetsrv\ApplicationHost.config". The path to the compression DLL existed, but file did not:
<scheme name="xpress" doStaticCompression="false" doDynamicCompression="true" dll="C:\Program Files\Update Services\WebServices\suscomp.dll" staticCompressionLevel="10" dynamicCompressionLevel="0" />
Cause 3:
While trying "https://<TaskServer01>.<Domain>.com:443/Altiris/ClientTaskServer/Register.aspx", the following error occurred:
This error indicated an issue with IIS and the "\package server agent\web.config", which is an unusual call when trying to access the "ClientTaskServer/Register.aspx".
Cause 1:
Grant the following permissions to "Authenticated Users" group under the <installdrive>:\Program Files\Altiris folder:
Cause 2:
Since static compression is preferred for Task and Package Server agent activities, do the following:
Cause 3:
1. Go to "...\Program Files\Altiris\Altiris Agent\Package Server Agent" folder and verify that the "Web.config" looks like this:
2. If it is different, grab the same web.config from another Package Server and copy and replace it.
3. Restart Agent service.