티스토리 뷰
728x90
회사 jenkins 작업 중에 plugin을 수동 업로드 했더니 jenkins가 맛탱이가 갔다.
파드 로그를 보니까 아마 작업하시는 분이 plugin의 버전 정보를 고려하지 않고 업로드해서 충돌이 생겨서 발생한 것 같다.
# 에러 로그 확인
kubectl logs [pod-name] -n [namespace]
그래서 원래는 웹에서 플러그인을 삭제하고 jenkins를 재시작하면 되지만
젠킨스가 아예 다운이 돼서 접근이 안되기 때문에 cli로 해결을 해야한다.
728x90
젠킨스 plugin 에러로 검색해보니까 수동으로 비활성화 하기 위해서는 disabled 파일을 추가하라고 나온다.
이렇게 하기만 해도 안전하게 삭제하는 것과 같은 효과를 낸다고 한다..
참고 : https://www.jenkins.io/doc/book/managing/plugins/
Managing Plugins
Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software
www.jenkins.io
그래서 지금 에러나는 플러그인이 build-monitor-plugin 이기 때문에
plugins/ 에서 검색해보니 3개가 나왔다.
하나는 폴더이고 하나는 백업파일, 나머지 하나는 실행파일인 것 같다.
$ ls | grep build-monitor-plugin
build-monitor-plugin
build-monitor-plugin.jpi
build-monitor-plugin.bak
처음에는 rm 명령어로 삭제하려고 했으나 mount 문제로 실패했고
jenkins 가이드 따라서 disabled 파일을 추가했다.
$ cp build-monitor-plugin.jpi build-monitor-plugin.jpi.disabled
$ ls | grep build-monitor-plugin
build-monitor-plugin
build-monitor-plugin.jpi
build-monitor-plugin.jpi.disabled
build-monitor-plugin.bak
728x90
'트러블슈팅' 카테고리의 다른 글
[Jenkins] workspace에 @2(골뱅이)가 붙어서 실행되는 현상 (1) | 2024.02.14 |
---|---|
[Jenkins] java.lang.NullPointerException 해결 (1) | 2024.02.14 |
[Jenkins] No such DSL method 'pipeline' found among steps (1) | 2024.02.14 |
[PHP] php를 한다면 한 번 쯤 겪어봤을 오류 syntax error, unexpected variable (1) | 2021.12.05 |
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크