Gitlab 14.9.3에서 Gitlab 15.0 CE로 업그레이드
.bash_history
통과하면서 후프를 뛰어 넘었습니다. 다음에 할 일에 대한 작은 자기 노트입니다.그래서 실행
sudo apt update -y; sudo apt upgrade -y; sudo apt autoremove -y;
수수께끼 같은 메시지로 날 이끌어줘
Preparing to unpack .../gitlab-ce_15.0.0-ce.0_amd64.deb ...
gitlab preinstall: It seems you are upgrading from major version 14 to major version 15.
gitlab preinstall: It is required to upgrade to the latest 14.10.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 /var/cache/apt/archives/gitlab-ce_15.0.0-ce.0_amd64.deb (--unpack):
그러나 나는 몇 주마다 내 컴퓨터를 업데이트한다는 점을 고려할 때 꽤 최근에 실행 중입니다
14.9.3
. 여기서 혼란스러운 부분은 오류 메시지 또는 support website에 다음에 수행할 작업에 대한 간단한 지침이 없다는 것입니다. 더 혼란스러운 것은 지원 웹 사이트에서 버전 14.10을 옵션으로 언급조차 하지 않는다는 것입니다.지원 링크는 업그레이드 경로와 업그레이드 경로에 사용할 버전을 설명하지만 수행 방법은 설명하지 않습니다.
경고 ⚠️
The following command was executed on a system that was FULLY backed up using both GitLab backup process and a VM snapshot.
Do this at your own risk 😳
내 GitLab에 apt를 사용하는 우분투/데비안에서는 실제로 매우 간단합니다.
# First I removed old backups that were taking up a lot of space
# from /var/opt/gitlab/backups/
sudo apt upgrade -y gitlab-ce=14.10.0-ce.0
이 프로세스는 VM 속도 및 Gitlab 설치 크기에 따라 약간의 시간이 걸릴 수 있습니다. 저는 15분 정도 걸렸습니다.
If you need to upgrade from an earlier version of GitLab - the same steps apply. You just need to follow the upgrade path outlined on the support website. And NO you CANNOT skip steps, the result will be unpredictable.
이제 우리는 최신 GitLab CE를 설치할 준비가 되었습니다. 모든 위험을 감수하고 싶다면 이와 같은 일반 명령을 사용하여 수행할 수 있습니다.
sudo apt update -y; sudo apt upgrade -y; sudo apt autoremove -y;
또는 단순히
sudo apt upgrade -y gitlab-ce
추신: 재부팅하는 것을 잊지 마십시오.
P.P.S.: Future Me에 대한 알림 - 500 오류 응답이 표시되더라도 놀라지 마십시오. GitLab은 전체 재부팅 후 완전히 나타나기까지 3-5분이 걸립니다.
Reference
이 문제에 관하여(Gitlab 14.9.3에서 Gitlab 15.0 CE로 업그레이드), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/konung/upgrading-to-gitlab-150-ce-from-gitlab-1493-if5텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)