Skip to content
Snippets Groups Projects
Select Git revision
  • 2353-update-package-architecture-and-vision
  • 9-2-stable
  • 9-2-stable-ee
  • disable-proxy-request-buffering
  • bjk/var-run
  • master default protected
  • rubocop-lib
  • 2193-prevent-gitlab-ctl-reconfigure-to-restart-services-automagically
  • bjk/kubelet_node
  • 2285-bump-git-2.13.0
  • port-postgres-metrics
  • 2242-use-smaller-images
  • try-smaller-image
  • make-redis-persistence-configurable
  • move_to_pandoc
  • 9-1-stable
  • 9-1-stable-ee
  • rename-geo-download-dispatch-worker
  • bjk/node_rules
  • fix-slack-notification-for-triggers
  • 9.2.0+rc6.ce.0
  • 9.2.0+rc6.ee.0
  • 9.2.0+rc5.ce.0
  • 9.2.0+rc5.ee.0
  • 9.2.0+rc4.ce.0
  • 9.2.0+rc4.ee.0
  • 9.2.0+rc3.ce.0
  • 9.2.0+rc3.ee.0
  • 9.1.4+ce.0
  • 9.2.0+rc2.ce.0
  • 9.2.0+rc2.ee.0
  • 9.1.4+ee.0
  • 9.2.0+rc1.ce.0
  • 9.2.0+rc1.ee.0
  • 9.1.3+ee.0
  • 8.17.6+ce.0
  • 8.17.6+ee.0
  • 9.0.7+ce.0
  • 9.0.7+ee.0
  • 9.1.3+ce.0
40 results

replicate_geo_database.rb

Forked from GitLab.org / omnibus-gitlab
Source project has a limited visibility.
  • Stan Hu's avatar
    ef6f26b1
    Improve `gitlab-ctl replicate-geo-database` error messages · ef6f26b1
    Stan Hu authored
    Users forgetting to run this command as root would not see any
    helpful warning messages. Now it will say:
    
    ```
    * Stopping PostgreSQL and all GitLab services
    warning: geo-postgresql: unable to open supervise/ok: access denied
    warning: gitaly: unable to open supervise/ok: access denied
    warning: gitlab-monitor: unable to open supervise/ok: access denied
    warning: gitlab-workhorse: unable to open supervise/ok: access denied
    warning: logrotate: unable to open supervise/ok: access denied
    warning: nginx: unable to open supervise/ok: access denied
    warning: node-exporter: unable to open supervise/ok: access denied
    warning: postgres-exporter: unable to open supervise/ok: access denied
    warning: postgresql: unable to open supervise/ok: access denied
    warning: prometheus: unable to open supervise/ok: access denied
    warning: redis: unable to open supervise/ok: access denied
    warning: redis-exporter: unable to open supervise/ok: access denied
    warning: sidekiq: unable to open supervise/ok: access denied
    warning: unicorn: unable to open supervise/ok: access denied
    
    [ERROR] Failed to execute: gitlab-ctl stop -- be sure to run as root
    ```
    
    Closes gitlab-org/gitlab-ee#2176
    ef6f26b1
    History
    Improve `gitlab-ctl replicate-geo-database` error messages
    Stan Hu authored
    Users forgetting to run this command as root would not see any
    helpful warning messages. Now it will say:
    
    ```
    * Stopping PostgreSQL and all GitLab services
    warning: geo-postgresql: unable to open supervise/ok: access denied
    warning: gitaly: unable to open supervise/ok: access denied
    warning: gitlab-monitor: unable to open supervise/ok: access denied
    warning: gitlab-workhorse: unable to open supervise/ok: access denied
    warning: logrotate: unable to open supervise/ok: access denied
    warning: nginx: unable to open supervise/ok: access denied
    warning: node-exporter: unable to open supervise/ok: access denied
    warning: postgres-exporter: unable to open supervise/ok: access denied
    warning: postgresql: unable to open supervise/ok: access denied
    warning: prometheus: unable to open supervise/ok: access denied
    warning: redis: unable to open supervise/ok: access denied
    warning: redis-exporter: unable to open supervise/ok: access denied
    warning: sidekiq: unable to open supervise/ok: access denied
    warning: unicorn: unable to open supervise/ok: access denied
    
    [ERROR] Failed to execute: gitlab-ctl stop -- be sure to run as root
    ```
    
    Closes gitlab-org/gitlab-ee#2176
Code owners
Assign users and groups as approvers for specific file changes. Learn more.