Deployment Error

Getting the following error while trying to deploy a release. PLease guide.

Url: “/indexes/MachinesByEnvironment?query=EnvironmentId%253ADeploymentEnvironments%255C-1&pageSize=1024&fetch=EnvironmentId&fetch=MachineId&cutOffEtag=00000001-0000-3500-0000-000000000025&include=MachineId”

See attachment for details

Following are the event logs :-

  1. 2013-08-19 14:03:51,449 [72] FATAL Octopus [(null)] - System.AggregateException: One or more errors occurred. —> System.AggregateException: One or more errors occurred. —> System.IndexOutOfRangeException: Index of bound 1
    at Lucene.Net.Util.BitVector.GetAndSet(Int32 bit) in c:\Work\lucene.net\src\core\Util\BitVector.cs:line 88
    at Lucene.Net.Index.SegmentReader.DoDelete(Int32 docNum) in c:\Work\lucene.net\src\core\Index\SegmentReader.cs:line 1144
    at Lucene.Net.Index.IndexReader.DeleteDocument(Int32 docNum) in c:\Work\lucene.net\src\core\Index\IndexReader.cs:line 985
    at Lucene.Net.Index.DocumentsWriter.ApplyDeletes(IndexReader reader, Int32 docIDStart) in c:\Work\lucene.net\src\core\Index\DocumentsWriter.cs:line 1325
    at Lucene.Net.Index.DocumentsWriter.ApplyDeletes(SegmentInfos infos) in c:\Work\lucene.net\src\core\Index\DocumentsWriter.cs:line 1268
    at Lucene.Net.Index.IndexWriter.ApplyDeletes() in c:\Work\lucene.net\src\core\Index\IndexWriter.cs:line 5367
    at Lucene.Net.Index.IndexWriter.DoFlushInternal(Boolean flushDocStores, Boolean flushDeletes) in c:\Work\lucene.net\src\core\Index\IndexWriter.cs:line 4377

  2. 2013-08-19 14:04:06,715 [23] ERROR Octopus [(null)] - Unhandled error on web server: Url: “/indexes/dynamic/Users?query=IsActive%253Atrue&pageSize=0&cutOffEtag=00000001-0000-3500-0000-00000000009b”

System.ObjectDisposedException: Cannot access a disposed object.
Object name: ‘The ThreadLocal object has been disposed.’.
at System.Threading.ThreadLocal1.get_Value() at Raven.Storage.Esent.TransactionalStorage.ExecuteImmediatelyOrRegisterForSynchronization(Action action) in c:\Builds\RavenDB-Stable\Raven.Database\Storage\Esent\TransactionalStorage.cs:line 571 at Raven.Database.DocumentDatabase.PutIndex(String name, IndexDefinition definition) in c:\Builds\RavenDB-Stable\Raven.Database\DocumentDatabase.cs:line 1093 at Raven.Database.Queries.DynamicQueryRunner.TouchTemporaryIndex(String temporaryIndexName, String permanentIndexName, Func1

  1. 2013-08-19 14:04:08,199 [6] ERROR Octopus [(null)] - Unhandled error on web server: Object reference not set to an instance of an object.
    System.NullReferenceException: Object reference not set to an instance of an object.
    at Octopus.Portal.Application.Authentication.OctopusPrincipalFilter.OnAuthorization(AuthorizationContext filterContext)
    at System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList1 filters, ActionDescriptor actionDescriptor) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__1e(AsyncCallback asyncCallback, Object asyncState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult1.Begin(AsyncCallback callback, Object state, Int32 timeout)
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state)
    at System.Web.Mvc.Controller.<>c__DisplayClass1d.b__17(AsyncCallback asyncCallback, Object asyncState)

Cant access the protal now. Please guide. Urgent work.

PLease check the following screen shot as well

Hi Sam,

Can you try working though this procedure?

It looks like the indexes may have become corrupt.

Regards,

Paul Stovell
Octopus Deploy
W: octopusdeploy.com | T: @octopusdeploy http://twitter.com/octopusdeploy

Thanks Paul.