Skip to content

GitLab Common Issues

Gitlab Directly Access The Internal Database

From the shell running one of the following command.

$ sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql/ gitlabhq_production
$ sudo -u gitlab gitlab-rails dbconsole

GitLab Delete A Mattermost Team

Note

This applies to Gitlab EE with Mattermost. How this maybe achieved in a different situation may vary.

Solution

  1. Change directory.
    $ cd /opt/gitlab/embedded/service/mattermost
    
  2. Delete desired team.
    $ sudo -u mattermost /opt/gitlab/embedded/bin/mattermost --config="/var/opt/gitlab/mattermost/config.json" team delete team-name-here
    
  3. Answer the following prompts as follows.
    1. Have you performed a database backup? (YES/NO): YES
    2. Are you sure you want to delete the teams specified? All data will be permanently deleted? (YES/NO): YES

Sources