2009-06-17 15 views
7

CCNET lancia questa eccezione sul dashboard web. Che cosa sta causando questo? System.Net.Sockets.SocketException: non è stato possibile effettuare alcuna connessione poiché il computer di destinazione lo ha attivamente rifiutato. 127.0.0.1:21234 Traccia dello stack del server: su System.Net.Sockets.Socket.DoConnect (EndPoint endPointSnapshot, SocketAddress socketAddress) sul sistema. Net.Sockets.Socket.Connect (EndPoint remoteEP) su System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket (EndPoint ipEndPoint) su System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket() su System.Runtime.Remoting.Channels. RemoteConnection.GetSocket() su System.Runtime.Remoting.Channels.SocketCache.GetSocket (String machinePortAndSid, Boolean openNew) su System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry (IMessage msg, ITransportHeaders requestHeaders, Stream requestStream) su System .Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders & responseHeaders, Stream & responseStream) a System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage (IMessage msg) Eccezione rethrown su [0]: su System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage (IMessage reqMsg, IMessage retMsg) su System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (MessageData & MSGDATA, tipo Int32) a ThoughtWorks.CruiseControl.Remote.ICruiseManager.GetServerLog() a ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.ServerAggregatingCruiseManagerWrapper.GetServerLog (IServerSpecifier serverSpecifier) ​​a ThoughtWorks. CruiseControl.WebDashboard.Plugins.ServerReport.ServerLogServerPlugin.Execute (richiesta ICruiseRequest) su ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ServerCheckingProxyAction.Execute (ICruiseRequest cruiseRequest) su ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.CruiseActionProxyAction.Execute (Richiesta IRequest) su ThoughtWorks.Cru iseControl.WebDashboard.MVC.Cruise.ExceptionCatchingActionProxy.Execute (richiesta IRequest)Eccezione server CCNET

risposta

17

hai controllato che ccservice sia avviato? è possibile utilizzare telnet per verificarlo e, per il test, è possibile utilizzare ccnet.exe che è un'app per console semplificata

+0

Grazie, grazie COSÌ, e grazie Google :) – si618

5

Questo problema sembra un altro processo che blocca la stessa porta utilizzata da CCNet. È possibile utilizzare PortMon per tenere traccia di quale processo sta bloccando quella specifica porta. È inoltre possibile configurare CCNet nel file di configurazione per utilizzare una porta diversa per evitare la collisione. La configurazione dovrebbe apparire come segue

<system.runtime.remoting> 
    <application> 
     <channels> 
      <!-- change port here --> 
      <channel ref="tcp" port="21234">    
      <serverProviders> 
      <formatter ref="binary" typeFilterLevel="Full"/> 
      </serverProviders> 
     </channel> 
     </channels> 
    </application> 
    </system.runtime.remoting> 
Problemi correlati