hsleedevelop
hsleedevelop
hsleedevelop
  • 분류 전체보기 (22)
    • Develop (22)
      • CS (1)
      • iOS (7)
      • Swift (13)
      • SwiftUI (0)

최근 글

  • Xcode 14 빌드 속도 올리는 방법
    2023.01.29
    Xcode 14 빌드 속도 올리는 방법
  • 스토리보드, XIB Inspectable에 enum 연동하⋯
    2023.01.29
  • M1 ARM-64 Simulator 지원하지 않는 프레임워⋯
    2023.01.07
  • String에 HTML 링크 적용
    2023.01.07
  • Xcode 정의로 이동하지 않고 우측 에디터에서 보는 방법
    2022.11.13
    Xcode 정의로 이동하지 않고 우측 에디터에서 보는 방법

인기 글

  • [iOS][Swift] WiFi AP 목록 스캔 또는 장치⋯
    2022.08.28
  • Figma 자동 익스포트 for Xcode, Android⋯
    2022.08.28
    Figma 자동 익스포트 for Xcode, Android⋯
  • Failed to uninstall gitlab-runne⋯
    2022.09.16
    Failed to uninstall gitlab-runne⋯
  • iOS 메모리 사용량 파헤치기
    2022.09.11
  • Xcode 14 빌드 속도 올리는 방법
    2023.01.29
    Xcode 14 빌드 속도 올리는 방법

태그

  • architecturel
  • xcode 팁
  • Xcode 정의
  • SVG 다운로드
  • xcode 꿀팁
  • SVG download
  • XIB Inspectable
  • Xcode 빌드
  • Jump to definition
  • SwiftUI 상에서 HTML 출력과 Link
  • 스위프트
  • Swift
  • Kingfisher SVG
  • CSS 적용하는 방법
  • Xcode 베젤
  • Xcode Build
  • Xcode bezel
  • 시뮬레이터
  • Xcode
  • html
  • Xcode 정의로 이동하지 않고 우측 에디터에서 보는 방법
  • Link
  • excldue
  • KingFisher에서 SVG 이미지 다운로드하는 방법
  • Xcode Definition
  • Xcode 14 빌드 속도 올리는 방법
  • ios localization
  • Simulator
  • enum 연동하는 방법
  • Xcode Build 실행 시 명확하게 표시하는 방법

최근 댓글

전체 방문자
1,465
오늘
2
어제
2

티스토리

hELLO · Designed By 정상우.
hsleedevelop

hsleedevelop

Failed to uninstall gitlab-runner: remove /Library/LaunchDaemons/gitlab-runner.plist: no such file or directory gitlab-runner.plist
Develop/CS

Failed to uninstall gitlab-runner: remove /Library/LaunchDaemons/gitlab-runner.plist: no such file or directory gitlab-runner.plist

2022. 9. 16. 11:31
반응형

gitlab-runner

Given

CI Build를 위해 GitLab-Runner를 아래의 과정으로 직접 설치한 경우에 발행하는 현상으로 보입니다.

sudo curl --output /usr/local/bin/gitlab-runner "https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-arm64"

sudo chmod +x /usr/local/bin/gitlab-runner

gitlab-runner install

When

gitlab-runner를 삭제가 필요할 때의 절차는 아래 순서대로 진행합니다.

#1 - 모든 runner 삭제
$gitlab-runner unregister --all-runners

#2 - gitlab-runner 설정파일 제거
$sudo gitlab-runner uninstall

#3 - gitlab-runner 바이너리 삭제
$sudo rm -rf /usr/local/bin/gitlab-runner

Then

필자의 경우, 2번 진행하면서 타이틀과 같은 아래의 에러가 발생 되었습니다.

#2 - gitlab-runner 설정파일 제거
$sudo gitlab-runner uninstall

Failed to uninstall gitlab-runner: remove /Library/LaunchDaemons/gitlab-runner.plist: no such file or directory gitlab-runner.plist

gitlab 포럼에서 어렵게 찾은 내용을 정리하면,

 

gitlab-runner install 및 gitlab-runner uninstall은 러너 바이너리가 아닌 서비스 스크립트를 참조합니다. 시스템 시작 스크립트를 설치 및 제거하며 이전에 gitlab-runner install을 실행하지 않은 경우 제거에 실패합니다.

시작 스크립트를 루트로 설치했을 수도 있습니다. 

이 경우 sudo gitlab-runner uninstall을 실행해야 할 수도 있습니다.
시스템에서 러너를 제거하려는 경우 gitlab-runner stop을 실행한 다음 바이너리를 삭제할 수 있습니다.
gitlab.com에서 러너를 등록 취소하는 것을 고려해야 합니다.

 

즉, 위의 에러 발생 시 이전에 생성된 시작 스크립트 파일이 없기 때문에 무시하고 3번으로 진행하면 됩니다.

Conclusion

별도의 지원이 되지 않는 gitlab-runner 를 맥 환경에서 설치하는 경우 직접 바이너리를 받는 방법 보다는 home brew를 이용해서 설치하고 서비스를 돌리는 편이 여러면에서 심플하고 편리하다는 생각입니다.

 

 

ref: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2443

 

Failed to uninstall gitlab-runner on macOS ([...] gitlab-runner.plist: no such file or directory) (#2443) · Issues · GitLab.or

Summary I installed gitlab-runner (I realized that [recently?] the name changed to gitlab-ci-multi-runner) on my macOS computer. My initial configuration did...

gitlab.com

 

반응형
    gitlab, gitlab ci, gitlab remove, gitlab runner, gitlab uninstall
    hsleedevelop
    hsleedevelop
    iOS, Swift js, node js, react c, c++, .net ruby, sql
    댓글쓰기

    티스토리툴바