Task server on SMP unable to bind on ports 50121 and 50124

Article:TECH187699  |  Created: 2012-04-29  |  Updated: 2013-11-05  |  Article URL http://www.symantec.com/docs/TECH187699
Article Type
Technical Solution


Issue



Task Server installed on Symantec Management Platform (SMP) unable to bind on ports 50121 & 50124
Another remote task server i.e. site server works as normal.
Client Task agent for SMP server points to its 2nd Task server NOT itself i.e. registered Task Server.
 

Customer had proxy in use, and that was raising proxy errors even though we knew ports were not binding.


Error



"BaseXmlHttpCallback Exception: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:50121
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at Altiris.DotNetLib.Sockets.SecureRemoting.SecureRemotingClient.EstablishConnection()
 

The following proxy errors were found misleading for port binding issue.

Module: AtrsHost.exe
Source: Altiris.TaskManagement.ClientTask.*
Description: ClientTaskServer.RegisterTaskServer(): Failed to register: System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.

Module: AtrsHost.exe
Source: Altiris.TaskManagement.ClientTask.*
Description: NotificationServerWebConnection.FigureOutCredentials(): Credentials in Agent registry were invalid, or there was an error connecting to the server.

Module: AtrsHost.exe
Source: Altiris.TaskManagement.ClientTask.*
Description: NotificationServerWebConnection::CheckCredentials(): Credential check for "_Altiris" failed: System.Net.WebException: The remote server returned an error: (407) Proxy Authentication

 

 


Environment



ITMS 7.1 SP2 (migrated from SMP 7.0 SP5)

Task Server 7.1


Cause



Corrupt install of SMP task management & Task Server


Solution



1. Please use netstat -an | more to review the ports in listening mode for Task Server component on SMP.
 
 
2. Please review the following registry keys using regedit on SMP server.
HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Plugin Objects\Agents\CTServerAgent
HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Plugin Objects\Agents\CTServerAgent_x64
 
Both point to <install directory> \altiris\Task Management folder
but HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\eXpress\TaskServerSetup
points to <install directory> \altiris\Altiris AGent\Client task Server\
this is NOT consistent as compared to a newly installed SMP server.
 
 
3. If Step 2 registry keys are incorrect then:
 
a) make sure you are logged in to ther server as app id user or the user previously used to install SMP server.
b) uninstall Task Server by running the following installer and select uninstall option.
 <install directory>\Altiris\Notification Server\NSCap\bin\Win64\x64\Client Task Management\Server Package\TaskServerSetup_x64.exe
c) Please verify that all above mentioned registry keys are removed & no longer available.
d) reboot server
e) Use same TS installer and reinstall Task Server.
f) Please verify that all the registry keys are now consistent.
 
 
4. Run netstat -an | more to verify if the ports are binding.
 
 
5. Verify the path the following two services are pointing to:
 
a) Altiris Client Task Data Loader (ONLY on SMP server NOT remote Task Server)
Correct path: "<install directory>\Altiris\TaskManagement\CTDataLoad.exe"
b) Altiris Object Host Service (ONLY on SMP server NOT remote Task Server)
Correct path: "<install directory>\Altiris\TaskManagement\AtrsHost.exe"
 
 
6. If some of the ports are still not binding i.e. 50120, 50121, 50122, 50123, 50124
Repair Task Management on SMP using the following MSI.
 
run cmd line as Administrator:
 
      msiexec /i "%\Program Files\Altiris\Symantec Installation Manager\Installs\Altiris\altiris_taskmanagement_7_1_sp2__mp1_x64.msi" skipaim=1
 
 
 
7. This should allow all SMP services to bind all ports & start listening.
 
 
8. Run netstat -an | more to verify if the ports are binding.
 
 
 
Related KBs:
 
KNOWN ISSUE: Task Server's Object Host Service fails to bind on all ports  
http://www.symantec.com/docs/TECH47615
 
Title: Task clients unable to communcate with Notification Server (SMP). Ports 50121 and 50124 not binding.  
http://www.symantec.com/docs/TECH166793 



Article URL http://www.symantec.com/docs/TECH187699


Terms of use for this information are found in Legal Notices