Gitlabパッケージをアップデートしたらつまった話
サーバのパッケージも定期的アップグレードしていましたが少々サボっていましたらアップグレードできなくなっていたのでそれをメモしておきます
パッケージのアップグレードといってもubuntuなのでapt-get upgradeを叩くだけですが
少々サボってコマンド打っていなかった間にgitlabが詰まるようになりました
apt-get upgradeでパッケージの反映でエラーになります…
gitlab preinstall: It seems you are upgrading from 17.3 to 17.7.
gitlab preinstall: It is required to upgrade to the latest 17.5.x version first before proceeding.
gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrade-paths
dpkg: error processing archive /tmp/apt-dpkg-install-N4cQRa/37-gitlab-ee_17.7.0-ee.0_amd64.deb (--unpack):
new gitlab-ee package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/tmp/apt-dpkg-install-N4cQRa/37-gitlab-ee_17.7.0-ee.0_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
書いている通りに、17.3系を17.7の最新にすることはできません。
一旦、17.5.x系のバージョンを当ててください
詳しくは、プランパスを確認ください : https://docs.gitlab.com/ee/update/index.html#upgrade-paths
とま、17.5.x系を経由してやらればOKなのでバージョンを指定してインストール
~$ sudo apt-get install gitlab-ee=17.5.0-ee.0
すると、ちゃんと17.3.1が17.5.0に上がっていることを確認
Keeping all older configuration backups
Unpacking gitlab-ee (17.5.0-ee.0) over (17.3.1-ee.0) ...
Setting up gitlab-ee (17.5.0-ee.0) ...
ちゃんとGitlabのロゴが表示されれば終了と
次に最新を当てます..
~$ sudo apt-get upgrade
Unpacking gitlab-ee (17.7.0-ee.0) over (17.5.0-ee.0) ...
Setting up gitlab-ee (17.7.0-ee.0) ...
webで確認すると 17.7になりました