IT Management Suite

 View Only
Expand all | Collapse all

Task to copy files fails

ianatkin

ianatkinNov 10, 2014 06:33 AM

  • 1.  Task to copy files fails

    Posted Nov 05, 2014 06:00 PM

    I am running 7.5 HF6 and have a copy file task that fails on random PCs.  I haven't been able to find exactly what it is that is causing the issue.  I have tried uninstalling and reinstalling the SMA and the plug-ins but still have the issue.  Here is what I am seeing in the logs when the copy file fails:

     

    <event date='11/05/2014 16:54:56.5320000 -06:00' severity='1' hostName='XXXXXXXXXX' source='CAtrsException' module='client task agent.dll' process='AeXNSAgent.exe' pid='3132' thread='5360' tickCount='479469' >
      <![CDATA[CClientTaskInstance::Execute(): CAtrsException exception, error = "Unable to find class ID", OS error = 2147746291, at line 69
     re-throw at CAtrsComPtr::CoCreateInstance
     re-throw at CAtrsComPtr::CoCreateInstance(BSTR)
     re-throw at CClientTaskInstanceWin32::_CreateTaskHandler
     re-throw at CClientTaskInstanceBase::_CreateTaskHandler
     re-throw at CClientTaskInstanceBase::_Execute]]>
    </event>
    <event date='11/05/2014 16:54:56.5330000 -06:00' severity='4' hostName='XXXXXXXXXX' source='CDeliveryPolicy::OnTaskFinished' module='smfagent.dll' process='AeXNSAgent.exe' pid='3132' thread='5360' tickCount='479469' >
      <![CDATA[Task completed. Success:false. InProgress:false, Name:Verint - Copy PROD shortcut to desktop, instance:a7104a26-eb5a-49dd-91fa-9747dadb6e72]]>
    </event>

    <event date='11/05/2014 16:54:56.7550000 -06:00' severity='1' hostName='XXXXXXXXX' source='CAtrsException' module='client task agent.dll' process='AeXNSAgent.exe' pid='3132' thread='5360' tickCount='479703' >
      <![CDATA[CTaskExecutionEngineBase::_onExecuteTask(): CAtrsException exception, error = "Failed to execute task", OS error = 2147746291, at line 387
     re-throw at CTaskExecutionEngineBase::_onExecuteTask
     re-throw at CTaskExecutionEngineBase::_onExecuteTask
     re-throw at CTaskExecutionEngineBase::_onExecuteTask]]>
    </event>

    Any ideas?  It only seems to happen on random machines at this point.



  • 2.  RE: Task to copy files fails

    Trusted Advisor
    Posted Nov 05, 2014 06:06 PM

    Hi,

    I take it that this is happening in production? Does this happen consistently on those random machines, or can a machine that fails at one time work the next?

    Kind Regards,
    Ian./

     



  • 3.  RE: Task to copy files fails
    Best Answer

    Trusted Advisor
    Posted Nov 05, 2014 06:14 PM

    To add.. if a machine that fails consistently fails from that point on, check that the task plug-in is registered and working correctly (using the Altiris Agent UI).

    I've seen an issue similar to this where an standalone inventory package was created and used on machines...in a similar manner to inventory on NS6.... and the running of that package actually screwed up the registration of some agent DLLs which caused plug-in failures.



  • 4.  RE: Task to copy files fails

    Posted Nov 06, 2014 10:52 AM

    The machines that fail are consistently failing.  How do we know if the plug-in is working correctly?  I am showing that the Altiris Client Task Agent is in the list of Agents/Plug-ins.



  • 5.  RE: Task to copy files fails

    Trusted Advisor
    Posted Nov 06, 2014 11:33 AM

     

    The fact that when a machine breaks in this way it becomes permanently broken certainly sounds like this isn't random then; something action is breaking the agent on your machines. 

    I'd do the following on a broken machine;

    1. on a machine that's broken take a look at what's recently been executed on it. Could there be some job or policy which ran on the machine that caused this?
       
    2. Take a look at the Windows event logs. See if anything ties up in the System of Application logs with the time you first saw the error in the Altiris logs
       
    3. On a broken machine, uninstall and then re-install the Altiris Agent. Does this fix the issue (even if in the short term?)


    If you open up the Altiris Agent you can look the status of the task service as shown below.... You should be able to view the task history from here, reset the agent and check for tasks all with ease. 

    1_1.png

    What do you see here in your environment?

     

     



  • 6.  RE: Task to copy files fails

    Posted Nov 06, 2014 12:00 PM

    I'm showing that it is communicating with the task server.  I looked through the task history and noticed that any task I was trying to deliver was failing with the same error.  I restarted the Altiris Client Task Data Loader service on the task server and then it started working!  I thought I had tried that before but I'll try it again on a PC that is talking to a different task server and see if it fixes that one as well.



  • 7.  RE: Task to copy files fails

    Trusted Advisor
    Posted Nov 06, 2014 01:49 PM

    Wow. Just seen your response. Didn't see the task server being at fault coming... and that's peaked my interest.  Would certainly be interesting to see what happens with the other PCs.



  • 8.  RE: Task to copy files fails

    Trusted Advisor
    Posted Nov 10, 2014 06:33 AM

    Just nudging... How did your testing go? 

     



  • 9.  RE: Task to copy files fails

    Posted Nov 12, 2014 12:32 PM

    I too am experiencing the failing task for copy file. Have tried restarting the Altiris Client Task Data Loader service as well but no luck. However, scripts and quick delivery tasks execute successfully.

     

    delete1.JPG



  • 10.  RE: Task to copy files fails

    Posted Nov 12, 2014 12:51 PM

    I was still having some issues after restarting that service.  I then looked at my agent policies and made sure that the Software Management Solution Plug-in Install, Software Management Solution Plug-in Upgrade, Deployment Plug-in Install and Deployment Plug-in Upgrade tasks were all enabled and set to run every hour.  It was previously configured to only run once.



  • 11.  RE: Task to copy files fails

    Trusted Advisor
    Posted Nov 12, 2014 01:43 PM

    Hi dgott20, does this mean that this came down to the plug-ins not being installed and registered properly?



  • 12.  RE: Task to copy files fails

    Posted Nov 12, 2014 02:47 PM

    Another note, and I feel like I am beating a dead horse here, but is there any way to pull additional info from this?

     

    delete3.JPG

    Mainly looking to get download progress pulled somehow. Just stumbled across this a moment ago, hoping there is some light there...

     

    BTW, this screencap is from the QD task.



  • 13.  RE: Task to copy files fails

    Posted Nov 12, 2014 03:43 PM

    I do believe this was the most likely cause to my issue.



  • 14.  RE: Task to copy files fails

    Trusted Advisor
    Posted Nov 12, 2014 03:54 PM

    Hi upioneer,

    The issue were were talking about here is different... its was a failiing of the tasks on a specific small number of computers due to a problem with the plug-in installation on those machines.

    At the moment, as I'm likely only one reading this thread it's worth posting this as a new thread detailing the following,

    1. What version of Altiris you are using
    2. What client OS version has the problem (just one OS or mulitple platforms?)
    3. Scope of problem. Does this file copy task work on some machines?
    4. The relevent portion of the Altiris Agent logs

    These details are what I was going to ask you to provide next anyhow, so you won't be wasting your time!

    Kind Regards,
    Ian./

     



  • 15.  RE: Task to copy files fails

    Posted Nov 12, 2014 04:12 PM

    My mistake! Had several browser tabs open and accidentally posted here rather than a more applicable forum discussion. My apologies.