# EventLog spamming

**URL:** https://www.finalbuilder.com/forums/t/eventlog-spamming/5889
**Category:** Bugs
**Created:** [January 27, 2014, 1:11am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889 "2014-01-27T01:11:50Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [January 27, 2014, 1:11am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/1 "2014-01-27T01:11:50Z")

</div>

We have recently seen 2 crashes of the server. It writes a _lot_ (at least 10 / second) entries to the event log:  
  
A call from the agent to the server failed, it will be re-tried again after the connection has been re-established.&nbsp;  
There was no endpoint listening at net.pipe://localhost/ContinuaCI/IAgentCallbackService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.  
  
1 / second is enough 😉

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [January 27, 2014, 1:14am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/2 "2014-01-27T01:14:09Z")

</div>

And this is the reason Continua has crashed:   
  
 Application: Continua.Server.Service.exe   
 Framework Version: v4.0.30319   
 Description: The process was terminated due to an unhandled exception.   
 Exception Info: System.AccessViolationException   
 Stack:   
 at System.Data.SqlServerCe.SqlCeDataReader.Move(IntPtr, System.Data.SqlServerCe.DIRECTION)   
 at System.Data.SqlServerCe.SqlCeDataReader.Move(System.Data.SqlServerCe.DIRECTION)   
 at System.Data.SqlServerCe.SqlCeDataReader.Read()   
 at Continua.Modules.Builds.Logging.SqlCeLogReaderSession.GetMessages(System.Guid, System.Nullable`1<int32>, Int32, Int32, System.Nullable`1\<system.datetime\>)   
 at Continua.Modules.Builds.Logging.BuildLogReader.GetMessages(System.Guid, System.Nullable`1<int32>, Int32, Int32, System.Nullable`1\<system.datetime\>)   
 at Continua.Modules.Builds.Services.BuildLogService.GetUpdates(Int32, Continua.Modules.Builds.Common.Services.DataTransferObjects.LogItemsToUpdateDTO, Int32)   
 at DynamicClass.SyncInvokeGetUpdates(System.Object, System.Object[], System.Object[])   
 at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(System.Object, System.Object[], System.Object[] ByRef)   
 at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(System.ServiceModel.Dispatcher.MessageRpc ByRef)   
 at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(System.ServiceModel.Dispatcher.MessageRpc ByRef)   
 at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(System.ServiceModel.Dispatcher.MessageRpc ByRef)   
 at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean)   
 at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(System.ServiceModel.Channels.RequestContext, Boolean, System.ServiceModel.OperationContext)   
 at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(System.ServiceModel.Channels.RequestContext, System.ServiceModel.OperationContext)   
 at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(System.IAsyncResult)   
 at System.Runtime.Fx+AsyncThunk.UnhandledExceptionFrame(System.IAsyncResult)   
 at System.Runtime.AsyncResult.Complete(Boolean)   
 at System.ServiceModel.Channels.TransportDuplexSessionChannel+TryReceiveAsyncResult.OnReceive(System.IAsyncResult)   
 at System.Runtime.Fx+AsyncThunk.UnhandledExceptionFrame(System.IAsyncResult)   
 at System.Runtime.AsyncResult.Complete(Boolean)   
 at System.ServiceModel.Channels.SynchronizedMessageSource+ReceiveAsyncResult.OnReceiveComplete(System.Object)   
 at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(System.Object)   
 at System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean, Int32, Int32)   
 at System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32, UInt32, System.Threading.NativeOverlapped\*)   
 at System.Runtime.Fx+IOCompletionThunk.UnhandledExceptionFrame(UInt32, UInt32, System.Threading.NativeOverlapped\*)   
 at System.Threading.\_IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped\*)\</system.datetime\>\</system.datetime\>

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 28, 2014, 12:39pm UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/3 "2014-01-28T12:39:21Z")

</div>

Ouch, will look into it.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 30, 2014, 5:07am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/4 "2014-01-30T05:07:45Z")

</div>

We were not able to reproduce this on our dev machine, but I found that we were not using the latest sqlce assemblies, so updated them, put that build on our build server and… bang… same problem! So my guess is that for some reason Continua CI is picking up the newer version on your machine. Googling the error doesn’t provide any solutions. Still investigating.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 30, 2014, 9:46am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/5 "2014-01-30T09:46:32Z")

</div>

Hi Geert   
  
 I think we have this solved, at least I’m no longer able to reproduce it. Please try this build (you will need to update your agents). This build has built itself several times and was tested with lots of clients opening the same log view so I’m reasonably confident it fixes the problem, but we’ll do more testing tomorrow   
  
 Please make sure you have a database backup as this build also includes some schema changes that are not backwards compatible (ie if you have to roll back to an earlier build it will not work with the new schema).   
  
 [http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup\_x64\_1.0.0.2890.exe](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup_x64_1.0.0.2890.exe)   
 [http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup\_1.0.0.2890.exe](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup_1.0.0.2890.exe)   
 [http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Agent.Setup\_x64\_1.0.0.2890.exe](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Agent.Setup_x64_1.0.0.2890.exe)   
 [http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Agent.Setup\_1.0.0.2890.exe](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Agent.Setup_1.0.0.2890.exe)

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [January 30, 2014, 10:04am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/6 "2014-01-30T10:04:31Z")

</div>

Thanks, I will try this asap and let you know!

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [January 30, 2014, 11:32am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/7 "2014-01-30T11:32:17Z")

</div>

Thanks, we just installed. If you don’t hear anything from me on this thread, assume it is fixed.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [January 30, 2014, 11:40am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/8 "2014-01-30T11:40:43Z")

</div>

The default agent properties seems to be missing now (no properties).

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 30, 2014, 12:46pm UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/9 "2014-01-30T12:46:34Z")

</div>

Did you update your agents?

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [January 30, 2014, 12:57pm UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/10 "2014-01-30T12:57:40Z")

</div>

Yes, both from the installer of the server (just hit yes if you want to install the agent) and a separate download. Even rolling back to a previous version does not seem to work (both agent and server). At first I see the properties (93), then they disappear.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [January 30, 2014, 12:58pm UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/11 "2014-01-30T12:58:21Z")

</div>

Unhandled Service Exception   
  
 Exception: NullReferenceException   
 Message: Object reference not set to an instance of an object.   
 Stack Trace: at Continua.Modules.Builds.Agents.ServerAgentManager.UpdateProperties(RegisteredAgent agent, IEnumerable`1 propertiesToUpdate)

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [January 30, 2014, 1:08am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/12 "2014-01-30T01:08:05Z")

</div>

Rebooting the machine solved the issue. I can now view properties with the old agents. Maybe for the new install, you also need a full reboot? We are using Windows Server 2012 R2.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 30, 2014, 1:40am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/13 "2014-01-30T01:40:52Z")

</div>

Not sure why, a reboot should not be needed, the installer stops the service before doing anything. But then with wcf anything can happen… sigh!

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [January 30, 2014, 1:58am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/14 "2014-01-30T01:58:31Z")

</div>

I manually restarted the services several times. I don’t know how the agent reads its properties, but maybe there might be an issue there? Existing environment variables that no longer exists? Just popping up some ideas which might help you find out the cause.

---

<div class="post-metadata">

### Author: ![lucasdegrande](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/eb9ed0/32.png) [@lucasdegrande](https://www.finalbuilder.com/forums/u/lucasdegrande)
#### Post date: [January 31, 2014, 1:36am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/15 "2014-01-31T01:36:12Z")

</div>

Hi,   
  
 I’m getting the same error. I need to reboot everytime to resolve this.   
  
 The server and agent is on the v1.0.0.2859.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 31, 2014, 1:49am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/16 "2014-01-31T01:49:29Z")

</div>

Which error are you seeing, there the sqlce error or the NullReferenceException?

---

<div class="post-metadata">

### Author: ![lucasdegrande](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/eb9ed0/32.png) [@lucasdegrande](https://www.finalbuilder.com/forums/u/lucasdegrande)
#### Post date: [January 31, 2014, 2:01am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/17 "2014-01-31T02:01:30Z")

</div>

Hi Vincent,   
  
 NullReferenceException. Then, after the error, the message: “A call from the agent to the server failed, it will be re-tried again after the connection has been re-established.   
 There was no endpoint listening at net.pipe://localhost/ContinuaCI/IAgentCallbackService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.” shows up on CI Server.   
  
 Even restarting the “ContinuaCI Agent Service” a lot of times, the message continue to shows up. Then, I need to reboot the system.   
  
 By the way, even restarting all the Continua CI services, the message shows up.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [February 1, 2014, 8:29am UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/18 "2014-02-01T08:29:18Z")

</div>

Hi Lucas   
  
 I wasn’t able to reproduce the problem here so it’s not possible to say that it’s fixed, but I made some changes to the error handling in the area where the error is occurring. Please try this build. It’s been running all day on our server without any errors.   
  
 [http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup\_x64\_1.0.0.2911.exe](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup_x64_1.0.0.2911.exe)   
 [http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup\_1.0.0.2911.exe](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup_1.0.0.2911.exe)   
 [http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Agent.Setup\_x64\_1.0.0.2911.exe](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Agent.Setup_x64_1.0.0.2911.exe)   
 [http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Agent.Setup\_1.0.0.2911.exe](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Agent.Setup_1.0.0.2911.exe)

---

<div class="post-metadata">

### Author: ![lucasdegrande](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/eb9ed0/32.png) [@lucasdegrande](https://www.finalbuilder.com/forums/u/lucasdegrande)
#### Post date: [February 3, 2014, 12:10pm UTC](https://www.finalbuilder.com/forums/t/eventlog-spamming/5889/19 "2014-02-03T12:10:40Z")

</div>

Hi,   
  
 Thanks Vincent. I installed the build.
