Task Failure: Exiting task as either SWD Agent stop or task stop is requested
search cancel

Task Failure: Exiting task as either SWD Agent stop or task stop is requested

book

Article ID: 268300

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

Tasks are failing to properly complete.  When reviewing the output, you may see "Exiting task as either SWD Agent stop or task stop is requested"

Environment

Release: 8.6

Cause

This error message usually means the task server in question was not available within the allocated task timeout period.  In this case, ten minutes.  The next step would be to troubleshoot why the task server was not available or what issues may be going on.  In this particular case, the root cause is not verified.  From troubleshooting this issue we can see that the agent was having a difficult time registering over HTTPS, and fell back to HTTP.  It's possible that because the time out is set to ten minutes, the task just timed out while the agent was working on registration.

When reviewing the agent logs, the following was observed:

Task Server Connection: Failed to register on Task Server 'NameOfTaskServer.FQDN' over 'https', error: HTTP status 403: The client does not have sufficient access rights (0x8FA10193)
Protocol: HTTPS 
Host: :443 
Path: /Altiris/ClientTaskServer/Register.aspx 
Connection Id: 86.13864 
Communication profile Id: {xxxxxxxx-414B-4BD0-9230-1F2DFBBA6BE9} 
Throttling: 0 0 0 
Error type: HTTP error 
Error code: HTTP status 403: The client does not have sufficient access rights (0x8FA10193) 
Error note: Empty response content received 

 

Resolution

In this particular situation, we focused on resolving the registration issues for the agent to the task server.  In order to resolve we removed the HTTPS (443) binding on the task server and recreated it.  We then verified that the agents were able to register over HTTPS.

To remove and add the bindings in IIS simply open IIS Manager and navigate down to the Default Web site.

On the right-hand side, click on Bindings.

Highlight the binding for HTTPS and choose remove.

Now click on Add, and choose HTTPS, which will default to port 443.  Select the proper certificate and hit ok.

From an elevated command prompt, type in iisreset.