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