Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
G
gitlab-exporter
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 17
    • Issues 17
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • gitlab-exporter
  • Issues
  • #25

Closed
Open
Opened May 19, 2017 by Mark Fletcher@markglenfletcher🔴Developer

CiBuildsCollector::PER_RUNNER_QUERY assumes mirror features not available in CE

Description

For my CE install, I noticed the following error logged periodically in association with GitLab Monitor's DB checks:

==> /var/log/gitlab/postgresql/current <==
2017-05-19_05:22:54.35893 ERROR:  column projects.mirror does not exist at character 57
2017-05-19_05:22:54.35902 STATEMENT:  SELECT   ci_builds.runner_id,   ci_runners.is_shared,   projects.mirror,   projects.pending_delete,   projects.mirror_trigger_builds,   COUNT(*) AS count   FROM ci_builds   JOIN ci_runners     ON ci_runners.id = ci_builds.runner_id   JOIN projects     ON projects.id = ci_builds.project_id   WHERE ci_builds.type = 'Ci::Build'     AND ci_builds.status = 'running'   GROUP BY     ci_builds.runner_id,     projects.mirror,     projects.pending_delete,     projects.mirror_trigger_builds,     ci_runners.is_shared
  • https://gitlab.com/gitlab-org/gitlab-monitor/blob/06964419a9441910e6816bc46231a843fc635b01/lib/gitlab_monitor/database/ci_builds.rb#L30-50
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/gitlab-exporter#25