Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • omnibus-gitlab omnibus-gitlab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 1,130
    • Issues 1,130
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 87
    • Merge requests 87
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • omnibus-gitlabomnibus-gitlab
  • Merge requests
  • !1575

Mattermost: Fix config.json template for sql_data_source_search_replicas

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Jason Plum requested to merge 2368-mattermost-template-error-breaks-service-start into master May 22, 2017
  • Overview 12
  • Commits 4
  • Pipelines 4
  • Changes 2

6b0aed5a inadvertantly quoted the value for DataSourceSearchReplicas in Mattermost's config.json, which is supposed to be an array, causing a failure to load the data sources.

[CRIT] Failed to ping DB err:missing "=" after "[]" in connection info string"

Correct this by removing the quotes in the ERB template. Before making this change, I verified that all other handling of the values are also of Array.

[omnibus-gitlab]$ grep -Rn sql_data_source_search_replicas
files/gitlab-config-template/gitlab.rb.template:1061:# mattermost['sql_data_source_search_replicas'] = []
files/gitlab-cookbooks/gitlab/attributes/default.rb:746:default['gitlab']['mattermost']['sql_data_source_search_replicas'] = []
files/gitlab-cookbooks/gitlab/templates/default/config.json.erb:58:        "DataSourceSearchReplicas": "<%= @sql_data_source_search_replicas %>"

Closes #2368 (closed)

cc @stanhu

Edited Nov 17, 2021 by GitLab Release Tools Bot
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 2368-mattermost-template-error-breaks-service-start