Re: [ccnet-user] Problem while starting CCNET Service

1,795 views
Skip to first unread message

Ruben Willems

unread,
Sep 6, 2012, 3:06:44 AM9/6/12
to ccnet...@googlegroups.com
Hi

you probably have the service and the console running at the same time :
one usage of each socket address (protocol/network address/port) is normally permitted

or it could be that you ran the service/console with a bad config, and it crashed,
but the port is not set free (yet)

Normally the port is freed again after a few minutes, or after a reboot

with kind regards
Ruben Willems



On 6 September 2012 08:55, santhosh yalamuri <santh...@gmail.com> wrote:
the cruisecontrol.net server service on local computer started and then stopped.

When i try to run ccnet.exe from command line i get the following errorr:


D:\CCNET\CruiseControl.NET\server>ccnet.exe
CruiseControl.NET Server 1.8.0.0 -- .NET Continuous Integration Server
Copyright c 2003 - 2012 ThoughtWorks Inc.  All Rights Reserved.
.NET Runtime Version: 2.0.50727.3603    Image Runtime Version: v2.0.50727
OS Version: Microsoft Windows NT 5.1.2600 Service Pack 3        Server locale: en-US

[1:DEBUG] The trace level is currently set to debug.  This will cause CCNet to log at the most verbose level, which is useful for setting up or debugging the server.  Once your server is running smoothly, we recommend changing this set
ting in D:\CCNET\CruiseControl.NET\server\ccnet.exe.Config to a lower level.
[1:WARN] ! ! Tracing is enabled ! !It allows you to sent the developpers of CCNet very detailed information of the program flow. This setting should only be enabled if you want to report a bug with the extra information. When bug repor
ting is done, it is advised to set the trace setting off. Adjust the setting in D:\CCNET\CruiseControl.NET\server\ccnet.exe.Config
[1:DEBUG] [FileChangedWatcher] Add config file 'ccnet.config' to file change watcher collection.
[CCNet Server:INFO] Reading configuration file "D:\CCNET\CruiseControl.NET\server\ccnet.config"
[CCNet Server:DEBUG] [FileChangedWatcher] Add config file 'D:\CCNET\CruiseControl.NET\server\ccnet.config' to file change watcher collection.
[CCNet Server:WARN] Configuration does not have any version information - assuming the configuration is for version 1.8
[CCNet Server:INFO] No projects found
[CCNet Server:INFO] Log cache time set to 5 minutes
[CCNet Server:ERROR] INTERNAL ERROR: Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: Only
 one usage of each socket address (protocol/network address/port) is normally permitted
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at System.Net.Sockets.TcpListener.Start(Int32 backlog)
   at System.Net.Sockets.TcpListener.Start()
   at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse)
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data)
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback)
   at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
   at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry)
   at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
   at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'.
----------
System.Runtime.Remoting.RemotingException: Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException
: Only one usage of each socket address (protocol/network address/port) is normally permitted
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at System.Net.Sockets.TcpListener.Start(Int32 backlog)
   at System.Net.Sockets.TcpListener.Start()
   at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse)
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data)
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback)
   at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
   at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry)
   at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
   at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'.
   at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)
   at System.Runtime.Remoting.RemotingConfigHandler.DoConfiguration(String filename, Boolean ensureSecurity)
   at System.Runtime.Remoting.RemotingConfiguration.Configure(String filename, Boolean ensureSecurity)
   at ThoughtWorks.CruiseControl.Core.RemoteCruiseServer..ctor(ICruiseServer server, String remotingConfigurationFile, Boolean disableRemoting)
   at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateRemote(String configFile)
   at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.Create(Boolean remote, String configFile)
   at ThoughtWorks.CruiseControl.Core.ConsoleRunner.LaunchServer()
   at ThoughtWorks.CruiseControl.Core.ConsoleRunner.Run()
   at ThoughtWorks.CruiseControl.Console.AppRunner.Run(String[] args, Boolean usesShadowCopying)
----------

An unexpected error has caused the console to crash, please press any key to continue...





santhosh yalamuri

unread,
Sep 7, 2012, 2:58:24 AM9/7/12
to ccnet...@googlegroups.com
Thanks a lot, it worked after restart.

Nanda Kumar

unread,
Aug 26, 2013, 9:34:39 AM8/26/13
to ccnet...@googlegroups.com
Thanks its worked 

Nanda Kumar

unread,
Aug 26, 2013, 9:35:32 AM8/26/13
to ccnet...@googlegroups.com
Thanks for the solution.its worked after restart.

mubed

unread,
Mar 10, 2014, 11:34:10 AM3/10/14
to ccnet...@googlegroups.com
Is there any other solution that restarting the machine each time? I have this problem very often and it takes me a lot of time to save all my work, restart the server and continue.Can I free up those ports somehow manually?

Ruben Willems

unread,
Mar 24, 2014, 6:50:26 AM3/24/14
to ccnet...@googlegroups.com
Hi

tcpview from sysinternals can close ports

with kind regards
Ruben Willems

--

---
You received this message because you are subscribed to the Google Groups "ccnet-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ccnet-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jensen, Aaron

unread,
Mar 25, 2014, 6:03:46 PM3/25/14
to ccnet...@googlegroups.com

I noticed this happens when a process started by CCNet is still running after CCNet stops.  If you can identify and kill those zombie child processes, you should be able to re-start CCNet.

--

Reply all
Reply to author
Forward
0 new messages