# Unable to see Continua Agent from Continua CI Server

**URL:** https://www.finalbuilder.com/forums/t/unable-to-see-continua-agent-from-continua-ci-server/5556
**Category:** Discussion
**Created:** [April 19, 2017, 4:50am UTC](https://www.finalbuilder.com/forums/t/unable-to-see-continua-agent-from-continua-ci-server/5556 "2017-04-19T04:50:36Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)
#### Post date: [April 19, 2017, 4:50am UTC](https://www.finalbuilder.com/forums/t/unable-to-see-continua-agent-from-continua-ci-server/5556/1 "2017-04-19T04:50:36Z")

</div>

I’ve recently re-installed a Continua CI Agent on a new Windows Server 2012 R2 installation and I cannot get the Contina CI Server to see it.  
I’m using default ports and manually added firewall rules to enable access from both directions.  
I’ve enabled debug logging and attached the local Continua CI Agent log file. Appears that it can’t register with the server.  
The Continua CI Server has not changed between installing Windows Server and the Continua CI Agent (it worked when agent was previously installed on same VM).  
  
I am starting the Continua CI Agent with a custom domain user but I have verified that has ‘Log on as a service’ permissions. What am I missing?  
  
I enabled debug logging and copied this from the file (I cannot attach the ‘.txt’ file as the forum complains that the format is not supported!)  
  
Medium: 12:40:31.441 {T6} [Registration] Agent failed to register with the server six times. Time elapsed for last registration attempt was 1ms.  
Error message: Exception: EndpointNotFoundException  
  
Message: There was no endpoint listening at net.pipe://localhost/ContinuaCI/IAgentRegistrationService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.  
  
Stack Trace:&nbsp;  
Server stack trace:&nbsp;  
&nbsp; &nbsp;at System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName(Uri uri, IPipeTransportFactorySettings transportFactorySettings)  
&nbsp; &nbsp;at System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey(EndpointAddress address, Uri via)  
&nbsp; &nbsp;at System.ServiceModel.Channels.CommunicationPool`2.TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, TKey&amp; key)<br>&nbsp; &nbsp;at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)<br>&nbsp; &nbsp;at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)<br>&nbsp; &nbsp;at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)<br>&nbsp; &nbsp;at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)<br>&nbsp; &nbsp;at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)<br><br>Exception rethrown at &#91;0&#93;:&nbsp;<br>&nbsp; &nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)<br>&nbsp; &nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)<br>&nbsp; &nbsp;at System.ServiceModel.ICommunicationObject.Open()<br>&nbsp; &nbsp;at Continua.Shared.WCF.Client.ServiceClient`1.Initialise()  
&nbsp; &nbsp;at Continua.Shared.WCF.Client.ServiceClient`1.get\_Proxy()  
&nbsp; &nbsp;at Continua.Modules.Builds.Agent.RegistrationController.Register()  
  
  
Exception: PipeException  
  
Message: The pipe endpoint ‘net.pipe://localhost/ContinuaCI/IAgentRegistrationService’ could not be found on your local machine.&nbsp;  
  
Stack Trace:&nbsp;

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [April 19, 2017, 5:17am UTC](https://www.finalbuilder.com/forums/t/unable-to-see-continua-agent-from-continua-ci-server/5556/2 "2017-04-19T05:17:27Z")

</div>

Hi Simon,  
  
Check the debug log for the Server. If there is an error similar to “There is already a listener on IP endpoint” then this usually means agent registration service listener was not fully disconnected when the service was last shutdown. The only solution we have for this at the moment is to reboot the server.&nbsp;  
  
Otherwise, please send the debug logs to [support@finalbuilder.com](mailto:support@finalbuilder.com).

---

<div class="post-metadata">

### Author: ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)
#### Post date: [April 19, 2017, 6:40am UTC](https://www.finalbuilder.com/forums/t/unable-to-see-continua-agent-from-continua-ci-server/5556/3 "2017-04-19T06:40:42Z")

</div>

Restarting both machines has made no difference. I’ve sent the logs for both machines to ‘support@finalbuilder.com’.

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [April 19, 2017, 7:28am UTC](https://www.finalbuilder.com/forums/t/unable-to-see-continua-agent-from-continua-ci-server/5556/4 "2017-04-19T07:28:02Z")

</div>

Hi Simon,  
  
Thanks for sending the debug logs. I can see that the service listener is starting up ok.  
  
&nbsp;I understand that you have installed the agent on a separate machine to the server. However, the agent appears to be trying to connect to a service on the same machine (localhost).   
  
Can you check that you have entered the correct machine name for&nbsp;serverHostName&nbsp;under endpoints&nbsp;in the agent configuration file (%ProgramFiles%VSoft Technologies\ContinuaCI Agent\Continua.Agent.Service.exe.config) ?  
  
e.g.

| \<endpoints&nbsp;port=“9002”&nbsp;serverhostname=“localhost”&nbsp;serverport=“9000”\>\</endpoints&nbsp;port=“9002”&nbsp;serverhostname=“localhost”&nbsp;serverport=“9000”\> |

---

<div class="post-metadata">

### Author: ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)
#### Post date: [April 19, 2017, 8:10am UTC](https://www.finalbuilder.com/forums/t/unable-to-see-continua-agent-from-continua-ci-server/5556/5 "2017-04-19T08:10:43Z")

</div>

Yep, it was the ‘serverHostname’. I did not notice the input field when installing. I was assuming it was using zero config or other discovery mechanism to discover each other

---

<div class="post-metadata">

### Author: ![karmasponge](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/4491bb/32.png) [@karmasponge](https://www.finalbuilder.com/forums/u/karmasponge)
#### Post date: [December 4, 2020, 5:34am UTC](https://www.finalbuilder.com/forums/t/unable-to-see-continua-agent-from-continua-ci-server/5556/6 "2020-12-04T05:34:24Z")

</div>

For future reference the ‘PortQry’ tool is really useful for diagnosing these issues (see [https://www.microsoft.com/en-us/download/details.aspx?id=17148](https://www.microsoft.com/en-us/download/details.aspx?id=17148))

After updating Continua CI to 1.9.2.484 we found we that external agents could no longer contact it after being upgraded. Turns out the firewall on the Continua CI Server machine was blocking the ports (no idea how this changed).
