Deployment Solution

 View Only
  • 1.  Dagents connection closed, session terminated

    Posted Apr 02, 2015 07:34 AM

    Hi,

    We have recently upgraded our Deployment Solution to Version 6.9 SP6.

    2300 client machines..all Windows 7 SP1

    Agent: 6.9.(Build 648)

    A lot of our Dagent clients (Windows 7 SP1) are disconnecting after a couple of hours.

    Restarting the Altiris Deployment Agent service, unticking Enctrypted sessions and unticking "Refresh connection" after x hours have had no effect.

    The log files on the disconnecting clients are returning the same error:

    [04/02/2015 10:56:43.082 3536 2] DsAgent.cpp:968 CDSAgent::Shutdown() - DAgent is shutting down.
    [04/02/2015 10:56:43.083 3536 2] DsAgent.cpp:978 - Enter Critical Section
    [04/02/2015 10:56:43.083 3536 2] DsAgent.cpp:981 - Inside Critical Section
    [04/02/2015 10:56:43.084 3536 2] DsAgent.cpp:990 - Calling ipc->CancelBlockingCall
    [04/02/2015 10:56:43.094 3536 2] DsAgent.cpp:998 CDSAgent::Shutdown() - Resetting DAgent Service Event.
    [04/02/2015 10:56:43.094 3536 2] DsAgent.cpp:1003 CDSAgent::Shutdown() - Setting Check DAgent Service Event.
    [04/02/2015 10:56:43.113 4324 2] DsAgent.cpp:244 CDSAgent::WaitForClose() - Signaling the dispatch thread
    [04/02/2015 10:56:43.132 4324 2] DsAgent.cpp:248 CDSAgent::WaitForClose() - Waiting for Dispatch thread to exit
    [04/02/2015 10:56:43.134 4324 2] DsAgent.cpp:252 CDSAgent::WaitForClose()) - Signaling the Output thread
    [04/02/2015 10:56:43.134 4324 2] DsAgent.cpp:255 CDSAgent::WaitForClose() - Waiting for Output thread to exit
    [04/02/2015 10:56:43.146 4324 2] DsAgent.cpp:258 CDSAgent::WaitForClose()) - Signaling the Initial Connect thread
    [04/02/2015 10:56:43.147 4324 2] DsAgent.cpp:261 CDSAgent::WaitForClose() - Waiting for Initial Connect thread to exit
    [04/02/2015 10:56:43.147 4540 2] UiInitialConnectThread.cpp:76 - Reading initial connect packet.
    [04/02/2015 10:56:43.148 4540 2] UiInitialConnectThread.cpp:145 - CUiInitialConnect::ReadConnectPacket.
    [04/02/2015 10:56:43.172 4540 0] UiInitialConnectThread.cpp:97 - CUIError error, CUiInitialConnect::ReadConnectPacket() - Shutting down. - 0
    [04/02/2015 10:56:43.173 4540 0] UiInitialConnectThread.cpp:138 - CUiInitialConnect::Run RETURNING...
    [04/02/2015 10:56:43.174 4324 2] DsAgent.cpp:264 CDSAgent::WaitForClose()) - Signaling and waiting on the UI Listener thread
    [04/02/2015 10:56:43.177 1032 2] UiPipeListenerThread.cpp:176 - CUiPipeListener::Run leaving.
    [04/02/2015 10:56:43.177 4324 2] DsAgent.cpp:267 CDSAgent::WaitForClose()) - Signaling the WlogEvent thread
    [04/02/2015 10:56:43.178 4324 2] DsAgent.cpp:270 CDSAgent::WaitForClose() - Waiting for WLogEvent thread to exit
    [04/02/2015 10:56:43.287 4548 0] apps\dsagent\agent\LogEventThread.cpp:57 - CLogEventThread::Run CLogEventError
     Thrown from apps\dsagent\agent\LogEventThread.cpp:113 -message = CLogEventThread::ReadLogEvent() - Shutting down.
     SystemError Value = 0x00000000
     
    [04/02/2015 10:56:43.289 4324 2] DsAgent.cpp:273 CDSAgent::WaitForClose() - All threads exited, exiting application
    [04/02/2015 10:56:43.322 4324 2] DsAgent.cpp:287 CDSAgent::Destroy()
    [04/02/2015 10:56:43.323 4324 2] DsAgent.cpp:293 CDSAgent::Destroy() - Closing socket connection
    [04/02/2015 10:56:43.324 4324 2] DsAgent.cpp:304 About to serialize data
    [04/02/2015 10:56:43.329 4324 0] DsAgent.cpp:488 About to serialize objects
    [04/02/2015 10:56:43.336 4324 2] DsAgent.cpp:307 Deleting queues
    [04/02/2015 10:56:43.338 4324 2] DsAgent.cpp:898 CDSAgent::NewMessage()
    [04/02/2015 10:56:43.338 4324 2] DsAgent.cpp:803 InvokeHandler called - Internal=MemoryConsumptionOverLimit
    [04/02/2015 10:56:43.339 4324 2] TbxDispatch.cpp:40  - Attempting to load default.dll
    [04/02/2015 10:56:43.402 3536 0] main.cpp:786 - Leaving Main()
    [04/02/2015 10:56:43.403 3536 0] main.cpp:787 - =============================================================
     

    Has anyone an idea what could be causing this?

    It is really frustrating.

    Thanks..

    Regards..

     

     

     

     

     

     



  • 2.  RE: Dagents connection closed, session terminated

    Posted Apr 08, 2015 09:08 AM

    Not sure if this will help, but have you checked on the console, what the settings are for new agents?

    Tools -> Options -> Agent Settings tab:

    - Tick the box for the Force new agents to take these default settings

    - Change Default Settings

    - Adjust settings as per requirements and quit with OK

    - Back on the Options window, hit Apply, then untick the checkbox, Apply and OK.

    We noticed that there are multiple INP files being used, so the alternative is to check under the eXpress share, the Agents folder and any additional subfolder you might be using that the INP files are using the same settings as you need them.

    -BBC



  • 3.  RE: Dagents connection closed, session terminated

    Posted Apr 16, 2015 07:25 AM

    Hi...

    Thank youfor your reply...no luck I'm afraid.

    I decided to remove Mcafee Anti Virus from one of our Windows 7 computers and it remained stable for 2 days but this morning an hour after boot up the "Altiris Deployment Service" stopped on the client computer for no apparent reason. The log file extract is below:

    [04/16/2015 10:52:39.270 3084 2] DsAgent.cpp:968 CDSAgent::Shutdown() - DAgent is shutting down.
    [04/16/2015 10:52:39.271 3084 2] DsAgent.cpp:978 - Enter Critical Section
    [04/16/2015 10:52:39.271 3084 2] DsAgent.cpp:981 - Inside Critical Section
    [04/16/2015 10:52:39.271 3084 2] DsAgent.cpp:990 - Calling ipc->CancelBlockingCall
    [04/16/2015 10:52:39.278 3084 2] DsAgent.cpp:998 CDSAgent::Shutdown() - Resetting DAgent Service Event.
    [04/16/2015 10:52:39.280 3084 2] DsAgent.cpp:1003 CDSAgent::Shutdown() - Setting Check DAgent Service Event.
    [04/16/2015 10:52:39.305 3548 2] DsAgent.cpp:244 CDSAgent::WaitForClose() - Signaling the dispatch thread
    [04/16/2015 10:52:39.309 3548 2] DsAgent.cpp:248 CDSAgent::WaitForClose() - Waiting for Dispatch thread to exit
    [04/16/2015 10:52:39.310 3548 2] DsAgent.cpp:252 CDSAgent::WaitForClose()) - Signaling the Output thread
    [04/16/2015 10:52:39.310 3548 2] DsAgent.cpp:255 CDSAgent::WaitForClose() - Waiting for Output thread to exit
    [04/16/2015 10:52:39.317 3548 2] DsAgent.cpp:258 CDSAgent::WaitForClose()) - Signaling the Initial Connect thread
    [04/16/2015 10:52:39.318 3548 2] DsAgent.cpp:261 CDSAgent::WaitForClose() - Waiting for Initial Connect thread to exit
    [04/16/2015 10:52:39.320 3768 2] UiInitialConnectThread.cpp:76 - Reading initial connect packet.
    [04/16/2015 10:52:39.320 3768 2] UiInitialConnectThread.cpp:145 - CUiInitialConnect::ReadConnectPacket.
    [04/16/2015 10:52:39.320 3768 0] UiInitialConnectThread.cpp:97 - CUIError error, CUiInitialConnect::ReadConnectPacket() - Shutting down. - 0
    [04/16/2015 10:52:39.320 3768 0] UiInitialConnectThread.cpp:138 - CUiInitialConnect::Run RETURNING...
    [04/16/2015 10:52:39.321 3548 2] DsAgent.cpp:264 CDSAgent::WaitForClose()) - Signaling and waiting on the UI Listener thread
    [04/16/2015 10:52:39.323 4544 2] UiPipeListenerThread.cpp:176 - CUiPipeListener::Run leaving.
    [04/16/2015 10:52:39.323 3548 2] DsAgent.cpp:267 CDSAgent::WaitForClose()) - Signaling the WlogEvent thread
    [04/16/2015 10:52:39.324 3548 2] DsAgent.cpp:270 CDSAgent::WaitForClose() - Waiting for WLogEvent thread to exit
    [04/16/2015 10:52:39.342 3776 0] apps\dsagent\agent\LogEventThread.cpp:57 - CLogEventThread::Run CLogEventError
     Thrown from apps\dsagent\agent\LogEventThread.cpp:113 -message = CLogEventThread::ReadLogEvent() - Shutting down.
     SystemError Value = 0x00000000
     
    [04/16/2015 10:52:39.350 3548 2] DsAgent.cpp:273 CDSAgent::WaitForClose() - All threads exited, exiting application
    [04/16/2015 10:52:39.351 3548 2] DsAgent.cpp:287 CDSAgent::Destroy()
    [04/16/2015 10:52:39.351 3548 2] DsAgent.cpp:293 CDSAgent::Destroy() - Closing socket connection
    [04/16/2015 10:52:39.351 3548 2] DsAgent.cpp:304 About to serialize data
    [04/16/2015 10:52:39.352 3548 0] DsAgent.cpp:488 About to serialize objects
    [04/16/2015 10:52:39.352 3548 2] DsAgent.cpp:307 Deleting queues
    [04/16/2015 10:52:39.362 3548 2] DsAgent.cpp:898 CDSAgent::NewMessage()
    [04/16/2015 10:52:39.362 3548 2] DsAgent.cpp:803 InvokeHandler called - Internal=MemoryConsumptionOverLimit
    [04/16/2015 10:52:39.363 3548 2] TbxDispatch.cpp:40  - Attempting to load default.dll
    [04/16/2015 10:52:39.374 3084 0] main.cpp:786 - Leaving Main()
    [04/16/2015 10:52:39.375 3084 0] main.cpp:787 - =============================================================
     

    It is occuring on every computer at least once per day; there is something occuring that is stopping the "Altiris Deployment Agent" service. It appears to be a client side problem.

    Regards..

     

     

     

     

     

     



  • 4.  RE: Dagents connection closed, session terminated

    Posted Apr 28, 2015 07:27 AM

    Hi...

    Just want to add some information to this thread.

    This morning, approx 50 computers disconnected from the Deployment Console in a matter of a couple of minutes.

    An extract from the axengine.log is below:

    *********************************************************************************************************************

    [04/28/15 10:36:41.206] 7f0-SessionList delete 5000578 (11836) from m_mapComputerID (6).
    [04/28/15 10:36:41.206] 7f0-Deleting session 5000578 (11836) from DeleteSessions.
    [04/28/15 10:36:41.206] 7f0-CSession::~CSession - Closing connection to computer: 5000578, socket (11836).
    [04/28/15 10:36:41.472] 4d0-FD_CLOSE received socket (5400) - added to read queue.
    [04/28/15 10:36:41.472] be0-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] be0-Socket: Received 0 (zero) on socket (5400).
    [04/28/15 10:36:41.472] be0-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] be0-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] be0-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] a20-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] a20-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] be8-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] be8-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] bd0-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] bd0-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] 494-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] 494-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] b08-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] b08-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] be4-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] be4-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] bec-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] bec-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] ac8-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] ac8-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] 27c-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.472] 27c-CCtrlServer::SessionRequestProcessor - Exited.
    [04/28/15 10:36:41.472] 7f0-SessionList delete 5000504 (5400) from m_mapComputerID (6).
    [04/28/15 10:36:41.472] 7f0-Deleting session 5000504 (5400) from DeleteSessions.
    [04/28/15 10:36:41.472] 7f0-CSession::~CSession - Closing connection to computer: 5000504, socket (5400).
    [04/28/15 10:36:41.487] 4d0-FD_CLOSE received socket (5976) - added to read queue.
    [04/28/15 10:36:41.487] 27c-CCtrlServer::SessionRequestProcessor - Entered.
    [04/28/15 10:36:41.487] 27c-Socket: Received 0 (zero) on socket (5976).
    [04/28/15 10:36:41.487] 7f0-SessionList delete 5000632 (5976) from m_mapComputerID (6).

    ******************************************************************************************************************

    Is the Deployment Server itself disconnecting the clients for some reason?

    Thanks..

    Regards,

     

     

     



  • 5.  RE: Dagents connection closed, session terminated

    Posted May 06, 2015 05:29 AM

    Just want to add a further extract from the axengine.log....every couple of hours Altiris Deployment Server for some reason closes connections to 50/100 machines over a period of 1 minute..

    axengine.log Extract:

    ********************************************************************************************************

    [05/06/15 10:08:11.242] bb4-SessionList delete 5001071 (9308) from m_mapComputerID (4).
    [05/06/15 10:08:11.242] bb4-CSession::~CSession - Closing connection to computer: 5001071, socket (9308).
    [05/06/15 10:08:11.242] a78-SessionList delete 5002203 (11500) from m_mapComputerID (4).
    [05/06/15 10:08:11.242] a78-CSession::~CSession - Closing connection to computer: 5002203, socket (11500).
    [05/06/15 10:08:11.242] a44-SessionList delete 5001139 (9304) from m_mapComputerID (4).
    [05/06/15 10:08:11.242] a44-CSession::~CSession - Closing connection to computer: 5001139, socket (9304).
    [05/06/15 10:08:11.242] bb4-SessionList inserted 5001071 into m_mapComputerID (1).
    [05/06/15 10:08:11.242] a78-SessionList inserted 5002203 into m_mapComputerID (1).
    [05/06/15 10:08:11.242] a44-SessionList inserted 5001139 into m_mapComputerID (1).

    *********************************************************************************************************

    Thanks..



  • 6.  RE: Dagents connection closed, session terminated
    Best Answer

    Posted Jun 26, 2015 10:25 AM

    Hi..

    I have managed to resolve this issue.

    Computers were disconnecting from the Console after a couple of hours. I started to run a SQL script to delete computers from the database whose Inventory was last sent > 70 days ago.

    USE eXpress

    DELETE from computer

    WHERE datediff(dd,last_inventory,getdate())>70

    This stabilised the Console and now we have 70% of our computers remaining active in the Console at any one time. I suspect there were some bad records in the database which may have conflicted with existing computer records and the purge exercise cleared these out.