2022-07-27 00:32:47
gitlab 옴니버스 버전 apt 업데이트 중 다음 에러 발생
Errno::EACCES: Permission denied @ dir_s_mkdir - 경로
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:364:in `connect_to_remote_directory'
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:181:in `upload'
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:45:in `create'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:12:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => gitlab:backup:create
(See full trace by running task with --trace)
gitlab preinstall:
gitlab preinstall: Database backup failed! If you want to skip this backup, run the following command and try again:
gitlab preinstall:
gitlab preinstall: sudo touch /etc/gitlab/skip-auto-backup
gitlab preinstall:
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_14.9.5-ce.0_amd64.deb (--unpack):
new gitlab-ce package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/gitlab-ce_14.9.5-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish
Gitlab 백업 아카이브를 생성할 경로 권한 문제
현재 환경에서는 기존 설정해둔 백업 생성 경로의 하드디스크 마운트를 해제하여 해당 경로가 존재하지 않는 상황.
# vim /etc/gitlab/gitlab.rb
gitlab_rails['backup_upload_connection'] = {
'provider' => 'Local',
'local_root' => '경로'
}
위 설정 부분을 찾아서 적절한 경로로 수정후 gitlab 재설정
# gitlab-ctl reconfigure
이후 해당 경로 소유 변경
# chown git:git 경로