Silo requests failing with error The target silo is no longer active
From last few days (from 23rd of March), in one of our environment with 6 Orleans instances, we started seeing an error - Error message: The target silo is no longer active: target was S100.115.122.69:11111:259510909, but this silo is S100.115.122.69:11111:259777677. The rejected message is Request S100.115.164.34:11111:259777673grn/89AD686A/7415dd99@dcbdc496->S100.115.122.69:11111:259510909grn/D850AA86/5b444c9d@d6c97486 #298658: global::CloudPlatform.Tenant.Grain.Interfaces.Device.Event.IEventGrain:ProcessEventAsync()." Argument1=" Server stack trace: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
The error is observed in all the instances of the cluster and all the communication to this one silo (S100.115.122.69) fails continuously.
From the OrleansSiloInstances table I can see that S100.115.122.69:11111:259510909 is marked to be dead on 23rd (2018-03-23 15:52:08.479 GMT)

There were these following warnings from other silos soon after the faulty silo was marked as dead - EventName="MessageEvent" Message="[2018-03-23 15:52:52.990 GMT 53 WARNING 100148 Dispatcher 100.115.116.30:11111] No target activation S100.115.138.17:11111:259511483grn/D66845D2/643cd8bd@ad32d9b5 for response message: Transient Rejection (info: Silo S100.115.116.30:11111:259511374 is rejecting message: Request S100.115.138.17:11111:259511483grn/D66845D2/643cd8bd@ad32d9b5->S100.115.122.69:11111:259510909grn/716E8E94/643cd8bd+CovStreamProvider_CovStreamNameSpace@165c009c #25883[ForwardCount=1]: global::Orleans.Streams.IPubSubRendezvousGrain:RegisterProducer(). Reason = Target S100.115.122.69:11111:259510909 silo is known to be dead) Response S100.115.122.69:11111:259510909grn/716E8E94/643cd8bd+CovStreamProvider_CovStreamNameSpace@165c009c->S100.115.138.17:11111:259511483*grn/D66845D2/643cd8bd@ad32d9b5 #25883: global::Orleans.Streams.IPubSubRendezvousGrain:RegisterProducer() " TraceSource="WaWorkerHost.exe"
These warning from the faulty silo: EventName="MessageEvent" Message="[2018-03-23 15:52:52.236 GMT 54 WARNING 100602 MembershipOracle 100.115.122.69:11111] Silo CloudPlatform.Tenant.Worker.OrleansHost_IN_0 restarted on same host RD0003FFA01D47 New silo address = S100.115.122.69:11111:259516351 Previous silo address = S100.115.122.69:11111:259510909 " TraceSource="WaWorkerHost.exe"
EventName="MessageEvent" Message="[2018-03-23 15:52:50.923 GMT 54 WARNING 100824 AzureBasedMembershipTable 100.115.122.69:11111] Update failed due to contention on the table. Will retry. Entry SiloAddress=S100.115.122.69:11111:259516351 SiloName=CloudPlatform.Tenant.Worker.OrleansHost_IN_0 Status=Joining, eTag W/"datetime'2018-03-23T15%3A52%3A33.0728507Z'", table version = <6255, W/"datetime'2018-03-23T15%3A52%3A08.7128507Z'"> " TraceSource="WaWorkerHost.exe"
EventName="MessageEvent" Message="[2018-03-23 15:52:08.369 GMT 115 WARNING 100325 Silo 100.115.122.69:11111] Ignoring System.TimeoutException exception thrown from an action called by Silo.Stop. Exc level 0: System.TimeoutException: Task.WaitWithThrow has timed out after 00:01:00. at Orleans.OrleansTaskExtentions.WaitWithThrow(Task task, TimeSpan timeout) at Orleans.Runtime.Utils.SafeExecute(Action action, Logger logger, Func`1 callerGetter)" TraceSource="WaWorkerHost.exe"
We did a couple of re starts and deployments but nothing seemed to have fixed the issue. Even now other silos are trying to connect to the faulty silo using older epoch S100.115.122.69:11111:259510909 and getting No longer active error. Could you please help us finding what is the cause of this and how can we fix this?
Update failed due to contention on the table.
This looks like the root cause. Is the storage key still valid? Is there any other reason why the silo is consistently failing to write to the table to mark its own old record as Dead?
Please find the below Orleans Matrix. There are 3 restart of the Oreans in last 24 hours and every time new epoch (silo address) created but still it's getting old epoch (silo address) only. We have few question here.
- How can we reset/change orleans to get new epoch(silo address)?
- Is Orleans responsible to fetch new epoch every time instead of old when new epoch(silo address) is being created?
- Where these entries are stored? can we manually reset these entries?

Thanks Sergey for looking into this, We actually got this issue resolved by stopping the entire cloud service and starting it again, It looks like the Grain Directory Service distributed hash table, which I presume is in-memory, was corrupt or not in sync with the Silo status persistent store. Reboot of instances one by one (which was what we were doing, as it is a QA environment) some how kept the stale reference circulating even after multiple deployments (which triggers reboots of instances one by one). And also we only had the contention error logged once last Friday (3/23), Any insight into what might be the root cause will be helpful for us to deal with this kind of issues in the future, Can contention on the table be a cause to this issue?
It looks like the Grain Directory Service distributed hash table, which I presume is in-memory, was corrupt or not in sync with the Silo status persistent store.
This sounds extremely unlikely, as we've never seen anything like that over the years. Are you using Azure Table for clustering? Can you download and share (privately, if necessary) a copy of it? We will see records of the whole cluster history there.
yes, we use Azure table for clustering. I have shared the Instances table dump with you privately. Please let us know if you need any further details
Thanks for sending the data. Looking at it, I don't see any traces of a problem.
Every single time a silo was declared dead, it was done by itself, presumably as part of an orderly shutdown/reboot.
I added a column where I calculated life time of each silo incarnation as the time between its start time and when it declared itself dead (shutdown). I don't see a single case where it would be less than 30 minutes. So I don't see any abnormalities here.
Can you share Info level logs of the silos to see what was going on there?
Closing due to inactivity - we can reopen if this is still an issue