Management

GitLab

Configuration

Backup

/root/backup_procedure.bash

Backing up the GitLab secrets file is required to avoid complicated steps when recovering GitLab from backup. The secrets file is stored at /etc/gitlab/gitlab-secrets.json inside the container, or $GITLAB_HOME/config/gitlab-secrets.json on the container host.

Upgrade

Upgrade 2022-12-31

Upgrade from 10.7.3 to 15.7.0.

Instant restoration: Run docker-compose up at /home/git/gitlab-2022-12-30

Migrate legacy storage into hashed storage

Two projects (yshimmyo/graduation_thesis and yshimmyo/IMUReceiver) occured errors that the repositories are read-only. I used ruby console of gitlab runtime and manually release read-only attributes following the below article.

Projects::HashedStorage::RepositoryInUseError: Target repository 'yshimmyo/IMUReceiver' cannot be made read-only: Repository already read-only

Known Problem

Timestamps of repositories are updated into a same datetime during migration. Accordingly, the order of the project list sorted by Updated date is awkward. One of the solutions against this problem is to use file timestamps in repositories kept as before upgrade and manually manipulate the DB. This is a little bit dangerous so I don't want to do unless it is absolutely necessary. Contact administrator if you think it is a serious problem.

TODO

Zero downtime update

Succession of update manner

We encourage everyone to run the latest stable release ...

If you are unable to follow our monthly release cycle, there are a couple of cases you must consider.

https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations

Mattermost

Configuration

Initiate

docker-compose -f docker-compose.yml -f docker-compose.without-nginx.yml up -d

Upgrade 2022-12-31

Instant restoration: Run docker-compose at /home/mie/mattermost-2022-12-30

migration of database

migration of non-db data

You can copy `app` volumes directly with a few structure changes.

Upgrade chain of mattermost server

Current version (2022-12-30) of mattermost is 5.26.0. Upgrading from the version requires a chain upgrade.

https://forum.mattermost.com/t/failed-to-get-channel-members-after-upgrade/13101/5

See Also

See also https://adaptive.u-aizu.ac.jp/gitlab/yshimmyo/configuration-of-adaptive-u-aizu-ac-jp

Contact

Yohei Shimmyo <d8221101@u-aizu.ac.jp> <qwpmb554@gmail.com>


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS