Sorting issues by votes on the groups issues page results in SQL errors
For example https://gitlab.com/groups/mailman/issues?assignee_id=&author_id=&label_name=&milestone_title=&scope=all&sort=upvotes_desc&state=opened fails. Another example is https://gitlab.com/groups/gitlab-org/issues?assignee_id=&author_id=&label_name=&milestone_title=&scope=all&sort=upvotes_desc&state=opened.
Sentry errors:
- https://sentry.gitlap.com/gitlab/gitlabcom/issues/2663/
- https://sentry.gitlap.com/gitlab/gitlabcom/issues/2664/
Backtrace:
ActionView::Template::Error: PG::GroupingError: ERROR: column "projects.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: ...."archived" = $4 GROUP BY "issues"."id" ORDER BY "projects"...
^
: SELECT COUNT(DISTINCT "issues"."id") AS count_id, "issues"."id" AS issues_id FROM "issues" INNER JOIN "projects" ON "projects"."id" = "issues"."project_id" LEFT OUTER JOIN "notes" ON "notes"."noteable_id" = "issues"."id" AND "notes"."noteable_type" = 'Issue' AND "notes"."is_award" = 't' AND "notes"."note" = 'thumbsup' WHERE ("issues"."state" IN ('opened','reopened')) AND "issues"."project_id" IN (SELECT "projects"."id" FROM "projects" WHERE "projects"."namespace_id" = $1) AND "projects"."namespace_id" = $2 AND "projects"."visibility_level" = $3 AND "projects"."archived" = $4 GROUP BY "issues"."id" ORDER BY "projects"."id" DESC LIMIT 20 OFFSET 0
Tags
browser = Slackbotdevice = Spiderlevel = erroros = Otherrelease = 0db2605server_name = worker20.cluster.gitlab.comurl = https://gitlab.com/groups/mailman/issuesuser = ip:127.0.0.1
User
IP Address
127.0.0.1
App OnlyFullRaw
Exceptionmost recent call first
PG::GroupingError: ERROR: column "projects.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: ...."archived" = $4 GROUP BY "issues"."id" ORDER BY "projects"...
^
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `<main>'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `load'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.9.0/bin/unicorn:126:in `<top (required)>'
from unicorn/http_server.rb:294:in `join'
from unicorn/http_server.rb:540:in `maintain_worker_count'
from unicorn/http_server.rb:529:in `spawn_missing_workers'
from unicorn/http_server.rb:674:in `worker_loop'
from unicorn/worker_killer.rb:52:in `process_client'
from unicorn/http_server.rb:580:in `process_client'
from rack/urlmap.rb:50:in `call'
from rack/urlmap.rb:50:in `each'
from rack/urlmap.rb:66:in `block in call'
from rails/railtie.rb:194:in `method_missing'
from rails/railtie.rb:194:in `public_send'
from rails/application.rb:165:in `call'
from rails/engine.rb:518:in `call'
from raven/integrations/rack.rb:53:in `call'
from rack/sendfile.rb:113:in `call'
from rack/lock.rb:17:in `call'
from rack/runtime.rb:18:in `call'
from rack/methodoverride.rb:22:in `call'
from action_dispatch/middleware/request_id.rb:21:in `call'
from request_store/middleware.rb:8:in `call'
from rails/rack/logger.rb:20:in `call'
from active_support/tagged_logging.rb:68:in `tagged'
from active_support/tagged_logging.rb:26:in `tagged'
from active_support/tagged_logging.rb:68:in `block in tagged'
from rails/rack/logger.rb:20:in `block in call'
from rails/rack/logger.rb:38:in `call_app'
from action_dispatch/middleware/show_exceptions.rb:30:in `call'
from action_dispatch/middleware/debug_exceptions.rb:17:in `call'
from action_dispatch/middleware/remote_ip.rb:78:in `call'
from action_dispatch/middleware/callbacks.rb:27:in `call'
from active_support/callbacks.rb:81:in `run_callbacks'
from active_support/callbacks.rb:778:in `_run_call_callbacks'
from active_support/callbacks.rb:88:in `__run_callbacks__'
from action_dispatch/middleware/callbacks.rb:29:in `block in call'
from active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
from active_record/query_cache.rb:36:in `call'
from action_dispatch/middleware/cookies.rb:560:in `call'
from rack/session/abstract/id.rb:220:in `call'
from rack/session/abstract/id.rb:225:in `context'
from action_dispatch/middleware/flash.rb:260:in `call'
from lib/gitlab/middleware/readonly_geo.rb:29:in `call'
from action_dispatch/middleware/params_parser.rb:27:in `call'
from rack/head.rb:13:in `call'
from rack/conditionalget.rb:25:in `call'
from rack/etag.rb:24:in `call'
from warden/manager.rb:34:in `call'
from warden/manager.rb:34:in `catch'
from warden/manager.rb:35:in `block in call'
from rack/attack.rb:106:in `call'
from rack/cors.rb:80:in `call'
from lib/gitlab/middleware/go.rb:16:in `call'
from lib/gitlab/metrics/rack_middleware.rb:17:in `call'
from lib/gitlab/metrics/transaction.rb:45:in `run'
from lib/gitlab/metrics/rack_middleware.rb:17:in `block in call'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from action_dispatch/routing/route_set.rb:815:in `call'
from action_dispatch/journey/router.rb:30:in `serve'
from action_dispatch/journey/router.rb:30:in `each'
from action_dispatch/journey/router.rb:43:in `block in serve'
from action_dispatch/routing/route_set.rb:43:in `serve'
from action_dispatch/routing/route_set.rb:74:in `dispatch'
from action_dispatch/routing/route_set.rb:74:in `call'
from action_controller/metal.rb:237:in `block in action'
from action_controller/metal/rack_delegation.rb:13:in `dispatch'
from action_controller/metal.rb:196:in `dispatch'
from action_view/rendering.rb:30:in `process'
from abstract_controller/base.rb:137:in `process'
from active_record/railties/controller_runtime.rb:18:in `process_action'
from action_controller/metal/params_wrapper.rb:250:in `process_action'
from action_controller/metal/instrumentation.rb:30:in `process_action'
from active_support/notifications.rb:164:in `instrument'
from active_support/notifications/instrumenter.rb:20:in `instrument'
from active_support/notifications.rb:164:in `block in instrument'
from action_controller/metal/instrumentation.rb:32:in `block in process_action'
from action_controller/metal/rescue.rb:29:in `process_action'
from abstract_controller/callbacks.rb:19:in `process_action'
from active_support/callbacks.rb:81:in `run_callbacks'
from active_support/callbacks.rb:778:in `_run_process_action_callbacks'
from active_support/callbacks.rb:92:in `__run_callbacks__'
from active_support/callbacks.rb:505:in `call'
from active_support/callbacks.rb:505:in `call'
from active_support/callbacks.rb:555:in `block (2 levels) in compile'
from active_support/callbacks.rb:117:in `call'
from active_support/callbacks.rb:117:in `call'
from abstract_controller/callbacks.rb:20:in `block in process_action'
from action_controller/metal/rendering.rb:10:in `process_action'
from abstract_controller/base.rb:198:in `process_action'
from action_controller/metal/implicit_render.rb:4:in `send_action'
from app/controllers/concerns/issues_action.rb:11:in `issues'
from action_controller/metal/mime_responds.rb:217:in `respond_to'
from action_controller/metal/instrumentation.rb:43:in `render'
from active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
from action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
from action_controller/metal/instrumentation.rb:44:in `block in render'
from active_support/core_ext/benchmark.rb:12:in `ms'
from benchmark.rb:294:in `realtime'
from active_support/core_ext/benchmark.rb:12:in `block in ms'
from action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
from action_controller/metal/rendering.rb:16:in `render'
from abstract_controller/rendering.rb:25:in `render'
from action_controller/metal/renderers.rb:37:in `render_to_body'
from action_controller/metal/rendering.rb:32:in `render_to_body'
from action_view/rendering.rb:83:in `render_to_body'
from action_controller/metal/streaming.rb:217:in `_render_template'
from action_view/rendering.rb:100:in `_render_template'
from action_view/renderer/renderer.rb:27:in `render'
from action_view/renderer/renderer.rb:46:in `render_template'
from action_view/renderer/template_renderer.rb:14:in `render'
from action_view/renderer/template_renderer.rb:52:in `render_template'
from action_view/renderer/template_renderer.rb:61:in `render_with_layout'
from action_view/renderer/template_renderer.rb:53:in `block in render_template'
from action_view/renderer/abstract_renderer.rb:39:in `instrument'
from active_support/notifications.rb:164:in `instrument'
from active_support/notifications/instrumenter.rb:20:in `instrument'
from active_support/notifications.rb:164:in `block in instrument'
from action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
from action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
from action_view/template.rb:143:in `render'
from action_view/template.rb:333:in `instrument'
from active_support/notifications.rb:166:in `instrument'
from action_view/template.rb:145:in `block in render'
from app/views/groups/issues.html.haml:25:in `_app_views_groups_issues_html_haml___616018999248411608_35542900'
from haml/helpers/action_view_mods.rb:10:in `render_with_haml'
from haml/helpers.rb:89:in `non_haml'
from haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
from action_view/helpers/rendering_helper.rb:35:in `render'
from action_view/renderer/renderer.rb:51:in `render_partial'
from action_view/renderer/partial_renderer.rb:309:in `render'
from action_view/renderer/abstract_renderer.rb:39:in `instrument'
from active_support/notifications.rb:166:in `instrument'
from action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
from action_view/renderer/partial_renderer.rb:310:in `block in render'
from action_view/renderer/partial_renderer.rb:339:in `render_partial'
from action_view/template.rb:143:in `render'
from action_view/template.rb:333:in `instrument'
from active_support/notifications.rb:166:in `instrument'
from action_view/template.rb:145:in `block in render'
from app/views/shared/_issues.html.haml:1:in `_app_views_shared__issues_html_haml__681074559025226787_69986046707760'
from active_record/relation.rb:278:in `any?'
from active_record/relation.rb:268:in `empty?'
from active_record/relation/calculations.rb:42:in `count'
from active_record/relation/calculations.rb:127:in `calculate'
from active_record/relation/calculations.rb:219:in `perform_calculation'
from active_record/relation/calculations.rb:320:in `execute_grouped_calculation'
from active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all'
from active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql'
from active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all'
from active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all'
from active_record/connection_adapters/abstract/database_statements.rb:355:in `select'
from active_record/connection_adapters/postgresql/database_statements.rb:160:in `exec_query'
from active_record/connection_adapters/postgresql_adapter.rb:585:in `execute_and_clear'
from active_record/connection_adapters/postgresql_adapter.rb:596:in `exec_cache'
from active_record/connection_adapters/postgresql_adapter.rb:637:in `prepare_statement'
from active_record/connection_adapters/postgresql_adapter.rb:637:in `prepare'
ActiveRecord::StatementInvalid: PG::GroupingError: ERROR: column "projects.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: ...."archived" = $4 GROUP BY "issues"."id" ORDER BY "projects"...
^
: SELECT COUNT(DISTINCT "issues"."id") AS count_id, "issues"."id" AS issues_id FROM "issues" INNER JOIN "projects" ON "projects"."id" = "issues"."project_id" LEFT OUTER JOIN "notes" ON "notes"."noteable_id" = "issues"."id" AND "notes"."noteable_type" = 'Issue' AND "notes"."is_award" = 't' AND "notes"."note" = 'thumbsup' WHERE ("issues"."state" IN ('opened','reopened')) AND "issues"."project_id" IN (SELECT "projects"."id" FROM "projects" WHERE "projects"."namespace_id" = $1) AND "projects"."namespace_id" = $2 AND "projects"."visibility_level" = $3 AND "projects"."archived" = $4 GROUP BY "issues"."id" ORDER BY "projects"."id" DESC LIMIT 20 OFFSET 0
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `<main>'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `load'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.9.0/bin/unicorn:126:in `<top (required)>'
from unicorn/http_server.rb:294:in `join'
from unicorn/http_server.rb:540:in `maintain_worker_count'
from unicorn/http_server.rb:529:in `spawn_missing_workers'
from unicorn/http_server.rb:674:in `worker_loop'
from unicorn/worker_killer.rb:52:in `process_client'
from unicorn/http_server.rb:580:in `process_client'
from rack/urlmap.rb:50:in `call'
from rack/urlmap.rb:50:in `each'
from rack/urlmap.rb:66:in `block in call'
from rails/railtie.rb:194:in `method_missing'
from rails/railtie.rb:194:in `public_send'
from rails/application.rb:165:in `call'
from rails/engine.rb:518:in `call'
from raven/integrations/rack.rb:53:in `call'
from rack/sendfile.rb:113:in `call'
from rack/lock.rb:17:in `call'
from rack/runtime.rb:18:in `call'
from rack/methodoverride.rb:22:in `call'
from action_dispatch/middleware/request_id.rb:21:in `call'
from request_store/middleware.rb:8:in `call'
from rails/rack/logger.rb:20:in `call'
from active_support/tagged_logging.rb:68:in `tagged'
from active_support/tagged_logging.rb:26:in `tagged'
from active_support/tagged_logging.rb:68:in `block in tagged'
from rails/rack/logger.rb:20:in `block in call'
from rails/rack/logger.rb:38:in `call_app'
from action_dispatch/middleware/show_exceptions.rb:30:in `call'
from action_dispatch/middleware/debug_exceptions.rb:17:in `call'
from action_dispatch/middleware/remote_ip.rb:78:in `call'
from action_dispatch/middleware/callbacks.rb:27:in `call'
from active_support/callbacks.rb:81:in `run_callbacks'
from active_support/callbacks.rb:778:in `_run_call_callbacks'
from active_support/callbacks.rb:88:in `__run_callbacks__'
from action_dispatch/middleware/callbacks.rb:29:in `block in call'
from active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
from active_record/query_cache.rb:36:in `call'
from action_dispatch/middleware/cookies.rb:560:in `call'
from rack/session/abstract/id.rb:220:in `call'
from rack/session/abstract/id.rb:225:in `context'
from action_dispatch/middleware/flash.rb:260:in `call'
from lib/gitlab/middleware/readonly_geo.rb:29:in `call'
from action_dispatch/middleware/params_parser.rb:27:in `call'
from rack/head.rb:13:in `call'
from rack/conditionalget.rb:25:in `call'
from rack/etag.rb:24:in `call'
from warden/manager.rb:34:in `call'
from warden/manager.rb:34:in `catch'
from warden/manager.rb:35:in `block in call'
from rack/attack.rb:106:in `call'
from rack/cors.rb:80:in `call'
from lib/gitlab/middleware/go.rb:16:in `call'
from lib/gitlab/metrics/rack_middleware.rb:17:in `call'
from lib/gitlab/metrics/transaction.rb:45:in `run'
from lib/gitlab/metrics/rack_middleware.rb:17:in `block in call'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from action_dispatch/routing/route_set.rb:815:in `call'
from action_dispatch/journey/router.rb:30:in `serve'
from action_dispatch/journey/router.rb:30:in `each'
from action_dispatch/journey/router.rb:43:in `block in serve'
from action_dispatch/routing/route_set.rb:43:in `serve'
from action_dispatch/routing/route_set.rb:74:in `dispatch'
from action_dispatch/routing/route_set.rb:74:in `call'
from action_controller/metal.rb:237:in `block in action'
from action_controller/metal/rack_delegation.rb:13:in `dispatch'
from action_controller/metal.rb:196:in `dispatch'
from action_view/rendering.rb:30:in `process'
from abstract_controller/base.rb:137:in `process'
from active_record/railties/controller_runtime.rb:18:in `process_action'
from action_controller/metal/params_wrapper.rb:250:in `process_action'
from action_controller/metal/instrumentation.rb:30:in `process_action'
from active_support/notifications.rb:164:in `instrument'
from active_support/notifications/instrumenter.rb:20:in `instrument'
from active_support/notifications.rb:164:in `block in instrument'
from action_controller/metal/instrumentation.rb:32:in `block in process_action'
from action_controller/metal/rescue.rb:29:in `process_action'
from abstract_controller/callbacks.rb:19:in `process_action'
from active_support/callbacks.rb:81:in `run_callbacks'
from active_support/callbacks.rb:778:in `_run_process_action_callbacks'
from active_support/callbacks.rb:92:in `__run_callbacks__'
from active_support/callbacks.rb:505:in `call'
from active_support/callbacks.rb:505:in `call'
from active_support/callbacks.rb:555:in `block (2 levels) in compile'
from active_support/callbacks.rb:117:in `call'
from active_support/callbacks.rb:117:in `call'
from abstract_controller/callbacks.rb:20:in `block in process_action'
from action_controller/metal/rendering.rb:10:in `process_action'
from abstract_controller/base.rb:198:in `process_action'
from action_controller/metal/implicit_render.rb:4:in `send_action'
from app/controllers/concerns/issues_action.rb:11:in `issues'
from action_controller/metal/mime_responds.rb:217:in `respond_to'
from action_controller/metal/instrumentation.rb:43:in `render'
from active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
from action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
from action_controller/metal/instrumentation.rb:44:in `block in render'
from active_support/core_ext/benchmark.rb:12:in `ms'
from benchmark.rb:294:in `realtime'
from active_support/core_ext/benchmark.rb:12:in `block in ms'
from action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
from action_controller/metal/rendering.rb:16:in `render'
from abstract_controller/rendering.rb:25:in `render'
from action_controller/metal/renderers.rb:37:in `render_to_body'
from action_controller/metal/rendering.rb:32:in `render_to_body'
from action_view/rendering.rb:83:in `render_to_body'
from action_controller/metal/streaming.rb:217:in `_render_template'
from action_view/rendering.rb:100:in `_render_template'
from action_view/renderer/renderer.rb:27:in `render'
from action_view/renderer/renderer.rb:46:in `render_template'
from action_view/renderer/template_renderer.rb:14:in `render'
from action_view/renderer/template_renderer.rb:52:in `render_template'
from action_view/renderer/template_renderer.rb:61:in `render_with_layout'
from action_view/renderer/template_renderer.rb:53:in `block in render_template'
from action_view/renderer/abstract_renderer.rb:39:in `instrument'
from active_support/notifications.rb:164:in `instrument'
from active_support/notifications/instrumenter.rb:20:in `instrument'
from active_support/notifications.rb:164:in `block in instrument'
from action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
from action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
from action_view/template.rb:143:in `render'
from action_view/template.rb:333:in `instrument'
from active_support/notifications.rb:166:in `instrument'
from action_view/template.rb:145:in `block in render'
from app/views/groups/issues.html.haml:25:in `_app_views_groups_issues_html_haml___616018999248411608_35542900'
from haml/helpers/action_view_mods.rb:10:in `render_with_haml'
from haml/helpers.rb:89:in `non_haml'
from haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
from action_view/helpers/rendering_helper.rb:35:in `render'
from action_view/renderer/renderer.rb:51:in `render_partial'
from action_view/renderer/partial_renderer.rb:309:in `render'
from action_view/renderer/abstract_renderer.rb:39:in `instrument'
from active_support/notifications.rb:166:in `instrument'
from action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
from action_view/renderer/partial_renderer.rb:310:in `block in render'
from action_view/renderer/partial_renderer.rb:339:in `render_partial'
from action_view/template.rb:143:in `render'
from action_view/template.rb:333:in `instrument'
from active_support/notifications.rb:166:in `instrument'
from action_view/template.rb:145:in `block in render'
from app/views/shared/_issues.html.haml:1:in `_app_views_shared__issues_html_haml__681074559025226787_69986046707760'
from active_record/relation.rb:278:in `any?'
from active_record/relation.rb:268:in `empty?'
from active_record/relation/calculations.rb:42:in `count'
from active_record/relation/calculations.rb:127:in `calculate'
from active_record/relation/calculations.rb:219:in `perform_calculation'
from active_record/relation/calculations.rb:320:in `execute_grouped_calculation'
from active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all'
from active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql'
from active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all'
from active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all'
from active_record/connection_adapters/abstract/database_statements.rb:355:in `select'
from active_record/connection_adapters/postgresql/database_statements.rb:160:in `exec_query'
from active_record/connection_adapters/postgresql_adapter.rb:585:in `execute_and_clear'
from active_record/connection_adapters/postgresql_adapter.rb:596:in `exec_cache'
from active_record/connection_adapters/postgresql_adapter.rb:637:in `prepare_statement'
from active_record/connection_adapters/postgresql_adapter.rb:637:in `prepare'
ActionView::Template::Error: PG::GroupingError: ERROR: column "projects.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: ...."archived" = $4 GROUP BY "issues"."id" ORDER BY "projects"...
^
: SELECT COUNT(DISTINCT "issues"."id") AS count_id, "issues"."id" AS issues_id FROM "issues" INNER JOIN "projects" ON "projects"."id" = "issues"."project_id" LEFT OUTER JOIN "notes" ON "notes"."noteable_id" = "issues"."id" AND "notes"."noteable_type" = 'Issue' AND "notes"."is_award" = 't' AND "notes"."note" = 'thumbsup' WHERE ("issues"."state" IN ('opened','reopened')) AND "issues"."project_id" IN (SELECT "projects"."id" FROM "projects" WHERE "projects"."namespace_id" = $1) AND "projects"."namespace_id" = $2 AND "projects"."visibility_level" = $3 AND "projects"."archived" = $4 GROUP BY "issues"."id" ORDER BY "projects"."id" DESC LIMIT 20 OFFSET 0
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `<main>'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `load'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.9.0/bin/unicorn:126:in `<top (required)>'
from unicorn/http_server.rb:294:in `join'
from unicorn/http_server.rb:540:in `maintain_worker_count'
from unicorn/http_server.rb:529:in `spawn_missing_workers'
from unicorn/http_server.rb:674:in `worker_loop'
from unicorn/worker_killer.rb:52:in `process_client'
from unicorn/http_server.rb:580:in `process_client'
from rack/urlmap.rb:50:in `call'
from rack/urlmap.rb:50:in `each'
from rack/urlmap.rb:66:in `block in call'
from rails/railtie.rb:194:in `method_missing'
from rails/railtie.rb:194:in `public_send'
from rails/application.rb:165:in `call'
from rails/engine.rb:518:in `call'
from raven/integrations/rack.rb:53:in `call'
from rack/sendfile.rb:113:in `call'
from rack/lock.rb:17:in `call'
from rack/runtime.rb:18:in `call'
from rack/methodoverride.rb:22:in `call'
from action_dispatch/middleware/request_id.rb:21:in `call'
from request_store/middleware.rb:8:in `call'
from rails/rack/logger.rb:20:in `call'
from active_support/tagged_logging.rb:68:in `tagged'
from active_support/tagged_logging.rb:26:in `tagged'
from active_support/tagged_logging.rb:68:in `block in tagged'
from rails/rack/logger.rb:20:in `block in call'
from rails/rack/logger.rb:38:in `call_app'
from action_dispatch/middleware/show_exceptions.rb:30:in `call'
from action_dispatch/middleware/debug_exceptions.rb:17:in `call'
from action_dispatch/middleware/remote_ip.rb:78:in `call'
from action_dispatch/middleware/callbacks.rb:27:in `call'
from active_support/callbacks.rb:81:in `run_callbacks'
from active_support/callbacks.rb:778:in `_run_call_callbacks'
from active_support/callbacks.rb:88:in `__run_callbacks__'
from action_dispatch/middleware/callbacks.rb:29:in `block in call'
from active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
from active_record/query_cache.rb:36:in `call'
from action_dispatch/middleware/cookies.rb:560:in `call'
from rack/session/abstract/id.rb:220:in `call'
from rack/session/abstract/id.rb:225:in `context'
from action_dispatch/middleware/flash.rb:260:in `call'
from lib/gitlab/middleware/readonly_geo.rb:29:in `call'
from action_dispatch/middleware/params_parser.rb:27:in `call'
from rack/head.rb:13:in `call'
from rack/conditionalget.rb:25:in `call'
from rack/etag.rb:24:in `call'
from warden/manager.rb:34:in `call'
from warden/manager.rb:34:in `catch'
from warden/manager.rb:35:in `block in call'
from rack/attack.rb:106:in `call'
from rack/cors.rb:80:in `call'
from lib/gitlab/middleware/go.rb:16:in `call'
from lib/gitlab/metrics/rack_middleware.rb:17:in `call'
from lib/gitlab/metrics/transaction.rb:45:in `run'
from lib/gitlab/metrics/rack_middleware.rb:17:in `block in call'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from omniauth/strategy.rb:164:in `call'
from omniauth/strategy.rb:186:in `call!'
from action_dispatch/routing/route_set.rb:815:in `call'
from action_dispatch/journey/router.rb:30:in `serve'
from action_dispatch/journey/router.rb:30:in `each'
from action_dispatch/journey/router.rb:43:in `block in serve'
from action_dispatch/routing/route_set.rb:43:in `serve'
from action_dispatch/routing/route_set.rb:74:in `dispatch'
from action_dispatch/routing/route_set.rb:74:in `call'
from action_controller/metal.rb:237:in `block in action'
from action_controller/metal/rack_delegation.rb:13:in `dispatch'
from action_controller/metal.rb:196:in `dispatch'
from action_view/rendering.rb:30:in `process'
from abstract_controller/base.rb:137:in `process'
from active_record/railties/controller_runtime.rb:18:in `process_action'
from action_controller/metal/params_wrapper.rb:250:in `process_action'
from action_controller/metal/instrumentation.rb:30:in `process_action'
from active_support/notifications.rb:164:in `instrument'
from active_support/notifications/instrumenter.rb:20:in `instrument'
from active_support/notifications.rb:164:in `block in instrument'
from action_controller/metal/instrumentation.rb:32:in `block in process_action'
from action_controller/metal/rescue.rb:29:in `process_action'
from abstract_controller/callbacks.rb:19:in `process_action'
from active_support/callbacks.rb:81:in `run_callbacks'
from active_support/callbacks.rb:778:in `_run_process_action_callbacks'
from active_support/callbacks.rb:92:in `__run_callbacks__'
from active_support/callbacks.rb:505:in `call'
from active_support/callbacks.rb:505:in `call'
from active_support/callbacks.rb:555:in `block (2 levels) in compile'
from active_support/callbacks.rb:117:in `call'
from active_support/callbacks.rb:117:in `call'
from abstract_controller/callbacks.rb:20:in `block in process_action'
from action_controller/metal/rendering.rb:10:in `process_action'
from abstract_controller/base.rb:198:in `process_action'
from action_controller/metal/implicit_render.rb:4:in `send_action'
from app/controllers/concerns/issues_action.rb:11:in `issues'
from action_controller/metal/mime_responds.rb:217:in `respond_to'
from action_controller/metal/instrumentation.rb:43:in `render'
from active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
from action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
from action_controller/metal/instrumentation.rb:44:in `block in render'
from active_support/core_ext/benchmark.rb:12:in `ms'
from benchmark.rb:294:in `realtime'
from active_support/core_ext/benchmark.rb:12:in `block in ms'
from action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
from action_controller/metal/rendering.rb:16:in `render'
from abstract_controller/rendering.rb:25:in `render'
from action_controller/metal/renderers.rb:37:in `render_to_body'
from action_controller/metal/rendering.rb:32:in `render_to_body'
from action_view/rendering.rb:83:in `render_to_body'
from action_controller/metal/streaming.rb:217:in `_render_template'
from action_view/rendering.rb:100:in `_render_template'
from action_view/renderer/renderer.rb:27:in `render'
from action_view/renderer/renderer.rb:46:in `render_template'
from action_view/renderer/template_renderer.rb:14:in `render'
from action_view/renderer/template_renderer.rb:52:in `render_template'
from action_view/renderer/template_renderer.rb:61:in `render_with_layout'
from action_view/renderer/template_renderer.rb:53:in `block in render_template'
from action_view/renderer/abstract_renderer.rb:39:in `instrument'
from active_support/notifications.rb:164:in `instrument'
from active_support/notifications/instrumenter.rb:20:in `instrument'
from active_support/notifications.rb:164:in `block in instrument'
from action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
from action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
from action_view/template.rb:143:in `render'
from action_view/template.rb:333:in `instrument'
from active_support/notifications.rb:166:in `instrument'
from action_view/template.rb:145:in `block in render'
from app/views/groups/issues.html.haml:25:in `_app_views_groups_issues_html_haml___616018999248411608_35542900'
from haml/helpers/action_view_mods.rb:10:in `render_with_haml'
from haml/helpers.rb:89:in `non_haml'
from haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
from action_view/helpers/rendering_helper.rb:35:in `render'
from action_view/renderer/renderer.rb:51:in `render_partial'
from action_view/renderer/partial_renderer.rb:309:in `render'
from action_view/renderer/abstract_renderer.rb:39:in `instrument'
from active_support/notifications.rb:166:in `instrument'
from action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
from action_view/renderer/partial_renderer.rb:310:in `block in render'
from action_view/renderer/partial_renderer.rb:339:in `render_partial'
from action_view/template.rb:143:in `render'
from action_view/template.rb:333:in `instrument'
from active_support/notifications.rb:166:in `instrument'
from action_view/template.rb:145:in `block in render'
from app/views/shared/_issues.html.haml:1:in `_app_views_shared__issues_html_haml__681074559025226787_69986046707760'
from active_record/relation.rb:278:in `any?'
from active_record/relation.rb:268:in `empty?'
from active_record/relation/calculations.rb:42:in `count'
from active_record/relation/calculations.rb:127:in `calculate'
from active_record/relation/calculations.rb:219:in `perform_calculation'
from active_record/relation/calculations.rb:320:in `execute_grouped_calculation'
from active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all'
from active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql'
from active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all'
from active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all'
from active_record/connection_adapters/abstract/database_statements.rb:355:in `select'
from active_record/connection_adapters/postgresql/database_statements.rb:160:in `exec_query'
from active_record/connection_adapters/postgresql_adapter.rb:585:in `execute_and_clear'
from active_record/connection_adapters/postgresql_adapter.rb:596:in `exec_cache'
from active_record/connection_adapters/postgresql_adapter.rb:637:in `prepare_statement'
from active_record/connection_adapters/postgresql_adapter.rb:637:in `prepare'