Coder Social home page Coder Social logo

Comments (5)

chriseldredge avatar chriseldredge commented on July 20, 2024

Based on the stack trace it looks like you have nuget.org package mirroring enabled. You can disable this feature (enabled by default) by editing Web.config and changing the app setting NuGet.Lucene.Web:packageMirrorTargetUrl to be blank.

http://www.nuget.org/ is experiencing degraded performance today and I suspect this is why you are experiencing the issue.

This error should be handled and logged without propagating out to clients, so it should be safe to ignore, although you may experience poor performance when the origin is slow to respond.

from klondike.

JarrodJ83 avatar JarrodJ83 commented on July 20, 2024

Thanks for the quick response, Chris! That seems to have gotten rid of the above and our server is able to create releases again!

I know you use Octopus (or used to) so I will include the following:

When testing the feed from the Octopus configuration screen it will throw an exception every time you search for a package. Perhaps it's the way Octopus is calling the Klondike API from this particular screen that causes the issue. I can post this on the Octopus support forum as well if needed.

2014-04-02 11:59:22,914 ERROR  8 UnhandledExceptionLogger HandleException System.InvalidOperationException: Stack empty.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Stack`1.Pop()
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.MakeBooleanQuery(BinaryExpression expression)
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)
   at Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitExpression(Expression expression)
   at Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.MakeBooleanQuery(BinaryExpression expression)
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)
   at Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitExpression(Expression expression)
   at Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.MakeBooleanQuery(BinaryExpression expression)
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)
   at Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitExpression(Expression expression)
   at Lucene.Net.Linq.Translation.QueryModelTranslator.VisitWhereClause(WhereClause whereClause, QueryModel queryModel, Int32 index)
   at Remotion.Linq.Clauses.WhereClause.Accept(IQueryModelVisitor visitor, QueryModel queryModel, Int32 index)
   at Remotion.Linq.QueryModelVisitorBase.VisitBodyClauses(ObservableCollection`1 bodyClauses, QueryModel queryModel)
   at Remotion.Linq.QueryModelVisitorBase.VisitQueryModel(QueryModel queryModel)
   at Remotion.Linq.QueryModel.Accept(IQueryModelVisitor visitor)
   at Lucene.Net.Linq.LuceneQueryExecutorBase`1.PrepareQuery(QueryModel queryModel)
   at Lucene.Net.Linq.LuceneQueryExecutorBase`1.<ExecuteCollection>d__3`1.MoveNext()
   at System.Data.Services.DataService`1.SerializeResponseBody(RequestDescription description, IDataService dataService)
   at System.Data.Services.DataService`1.HandleNonBatchRequest(RequestDescription description)
   at System.Data.Services.DataService`1.HandleRequest()

Corresponding Log in Octopus:

2014-04-02 11:59:22.9226  ERROR  Unhandled error on request: http://localhost/api/feeds/feeds-1/packages?packageId=Vend&partialMatch=true&take=10 : An error occurred while processing this request.
System.InvalidOperationException: An error occurred while processing this request. ---> System.Data.Services.Client.DataServiceQueryException: An error occurred while processing this request. ---> System.Data.Services.Client.DataServiceClientException: <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  <code></code>
  <message xml:lang="en-US">An error occurred while processing this request.</message>
  <innererror>
    <message>Stack empty.</message>
    <type>System.InvalidOperationException</type>
    <stacktrace>   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)&#xD;
   at System.Collections.Generic.Stack`1.Pop()&#xD;
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.MakeBooleanQuery(BinaryExpression expression)&#xD;
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)&#xD;
   at Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitExpression(Expression expression)&#xD;
   at Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)&#xD;
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.MakeBooleanQuery(BinaryExpression expression)&#xD;
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)&#xD;
   at Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitExpression(Expression expression)&#xD;
   at Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)&#xD;
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.MakeBooleanQuery(BinaryExpression expression)&#xD;
   at Lucene.Net.Linq.Translation.TreeVisitors.QueryBuildingExpressionTreeVisitor.VisitBinaryExpression(BinaryExpression expression)&#xD;
   at Remotion.Linq.Parsing.ExpressionTreeVisitor.VisitExpression(Expression expression)&#xD;
   at Lucene.Net.Linq.Translation.QueryModelTranslator.VisitWhereClause(WhereClause whereClause, QueryModel queryModel, Int32 index)&#xD;
   at Remotion.Linq.Clauses.WhereClause.Accept(IQueryModelVisitor visitor, QueryModel queryModel, Int32 index)&#xD;
   at Remotion.Linq.QueryModelVisitorBase.VisitBodyClauses(ObservableCollection`1 bodyClauses, QueryModel queryModel)&#xD;
   at Remotion.Linq.QueryModelVisitorBase.VisitQueryModel(QueryModel queryModel)&#xD;
   at Remotion.Linq.QueryModel.Accept(IQueryModelVisitor visitor)&#xD;
   at Lucene.Net.Linq.LuceneQueryExecutorBase`1.PrepareQuery(QueryModel queryModel)&#xD;
   at Lucene.Net.Linq.LuceneQueryExecutorBase`1.&lt;ExecuteCollection&gt;d__3`1.MoveNext()&#xD;
   at System.Data.Services.DataService`1.SerializeResponseBody(RequestDescription description, IDataService dataService)&#xD;
   at System.Data.Services.DataService`1.HandleNonBatchRequest(RequestDescription description)&#xD;
   at System.Data.Services.DataService`1.HandleRequest()</stacktrace>
  </innererror>
</error>
   at System.Data.Services.Client.QueryResult.Execute()
   at System.Data.Services.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents)
   --- End of inner exception stack trace ---
   at System.Data.Services.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents)
   at System.Data.Services.Client.DataServiceQuery`1.Execute()
   at System.Data.Services.Client.DataServiceQuery`1.ExecuteInternal()
   at NuGet.DataServiceQueryWrapper`1.Execute[TResult](Func`1 action)
   --- End of inner exception stack trace ---
   at NuGet.DataServiceQueryWrapper`1.Execute[TResult](Func`1 action)
   at NuGet.DataServiceQueryWrapper`1.<GetAll>d__7.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Octopus.Server.Web.Api.Actions.PackageSearchAction.SearchForPackagesNamedLike(IPackageRepository repository, String packageId, Int32 take) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Web\Api\Actions\PackageSearchAction.cs:line 124
   at Octopus.Server.Web.Api.Actions.PackageSearchAction.Search(String feedId, String packageId, Boolean partialMatch, Boolean includeMultipleVersions, Boolean includeNotes, Boolean includePreRelease, Int32 take) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Web\Api\Actions\PackageSearchAction.cs:line 59
   at Octopus.Server.Web.Api.Actions.PackageSearchAction.Execute() in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Web\Api\Actions\PackageSearchAction.cs:line 42
   at Octopus.Platform.Web.Api.Responder`1.Respond(TDescriptor options, NancyContext context) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Platform.Web\Api\Responder.cs:line 176
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at CallSite.Target(Closure , CallSite , Object , Object , NancyContext )
   at Octopus.Server.Web.Api.OctopusRestApiModule.<>c__DisplayClass5.<.ctor>b__2(Object o) in c:\TeamCity\buildAgent\work\1116bd9da9e239fd\source\Octopus.Server\Web\Api\OctopusRestApiModule.cs:line 47
   at CallSite.Target(Closure , CallSite , Func`2 , Object )
   at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)

from klondike.

chriseldredge avatar chriseldredge commented on July 20, 2024

That looks suspiciously similar to OctopusDeploy/Issues#189 which was traced to a bug in Lucene.Net.Linq (https://github.com/themotleyfool/Lucene.Net.Linq/issues/48). What version of Klondike are you using?

Does /api/version on the Klondike server return some version data? It was added in more recent builds.

from klondike.

JarrodJ83 avatar JarrodJ83 commented on July 20, 2024

I'm not sure the version. The /api/version is not available in the version we run. Looks like I installed on 8/26/2013. It's been running like a champ so I never found a need to update it. Perhaps I will try updating to the latest release here soon.

Thanks again for all your help!

from klondike.

chriseldredge avatar chriseldredge commented on July 20, 2024

Ah, that particular issue was fixed in v1.0.1 but there also have been plenty of other enhancements in later releases too.

from klondike.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.