Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676972 - Internal Server Error (500) on some queries
Summary: Internal Server Error (500) on some queries
Status: RESOLVED FIXED
Alias: None
Product: Websites
Classification: Unclassified
Component: Packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Packages Website
URL:
Whiteboard:
Keywords:
: 676996 677452 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-01-31 01:12 UTC by Georgy Yakovlev
Modified: 2019-07-19 19:37 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2019-01-31 18:06:57 UTC
*** Bug 676996 has been marked as a duplicate of this bug. ***
Comment 2 Brian Evans (RETIRED) gentoo-dev 2019-02-07 19:24:56 UTC
*** Bug 677452 has been marked as a duplicate of this bug. ***
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2019-02-08 02:38:30 UTC
(In reply to Georgy Yakovlev from comment #0)
> site returns unexpected 500 on some valid queries
> 
> https://packages.gentoo.org/packages/search?q=bash
> https://packages.gentoo.org/packages/search?q=man
> https://packages.gentoo.org/packages/search?q=fish
> https://packages.gentoo.org/packages/search?q=rm
> https://packages.gentoo.org/packages/search?q=attr
> 
> 
> Reproducible: Always

Yeah the elasticsearch container keeps dying for some reason.

[2019-02-08T02:33:08,961][WARN ][r.suppressed             ] path: /packages-production/package/_search, params: {index=packages-production, type=package}
org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed
        at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:288) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:128) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:249) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.InitialSearchPhase.onShardFailure(InitialSearchPhase.java:101) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.InitialSearchPhase.access$100(InitialSearchPhase.java:48) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.InitialSearchPhase$2.lambda$onFailure$1(InitialSearchPhase.java:222) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.InitialSearchPhase.maybeFork(InitialSearchPhase.java:176) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.InitialSearchPhase.access$000(InitialSearchPhase.java:48) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.InitialSearchPhase$2.onFailure(InitialSearchPhase.java:222) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.SearchExecutionStatsCollector.onFailure(SearchExecutionStatsCollector.java:73) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:51) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:527) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1095) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1188) [elasticsearch-6.3.0.jar:6.3.0]   
        at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1172) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:66) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.action.search.SearchTransportService$6$1.onFailure(SearchTransportService.java:385) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.search.SearchService$2.onFailure(SearchService.java:341) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:335) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:329) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.search.SearchService$3.doRun(SearchService.java:1019) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:724) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41) [elasticsearch-6.3.0.jar:6.3.0]
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.3.0.jar:6.3.0]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:844) [?:?]


I suspect it needs a healthcheck and a baby sitter or more work to figure out why it falls over. It seems to work effectively once its killed and restarted.
Comment 4 A. Wilcox (awilfox) 2019-07-19 18:37:30 UTC
I was hitting this bug this morning looking for mplayer stuff.  Specifically https://packages.gentoo.org/packages/search?q=mplayer was giving an immediate 500.

Now it's working, but...

 Results 1—2 of 2

sec-policy/selinux-mplayer
SELinux policy for mplayer

x11-themes/smplayer-themes
Icon themes for smplayer


I feel like Gentoo probably has more than these two packages to match 'mplayer'?  (Like... media-video/mplayer?)
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2019-07-19 19:37:01 UTC
(In reply to A. Wilcox (awilfox) from comment #4)
> I was hitting this bug this morning looking for mplayer stuff.  Specifically
> https://packages.gentoo.org/packages/search?q=mplayer was giving an
> immediate 500.
...
> I feel like Gentoo probably has more than these two packages to match
> 'mplayer'?  (Like... media-video/mplayer?)
The search index wasn't fully online, you were getting partial results.

It's fully back now (it took about 90 minutes to finish starting up).