minikube 실행을 위해 명령어를 쳤는데 오류가 남
sudo minikube start --force --driver=docker
1번 오류
Exiting due to HOST_JUJU_LOCK_PERMISSION: Failed to start host: boot lock: unable to open /tmp/juju-mke11f63b5835bf422927bf558fccac7a21a838f: permission denied
권한 오류로 생기는 메세지!
에러 메세지에서 코멘트 남겨준 대로 아래 명령어를 통해 /tmp 폴더의 파일 권한 문제를 해결
sudo sysctl fs.protected_regular=0
2번째 오류
Exiting due to IF_SSH_AUTH: Failed to start host: provision: Temporary Error: NewSession: new client: new client: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
이번엔 SSH 인증 실패... Docker 드라이버와의 통신 문제로 인한 오류 메세지
해결하기 어려워 보여서 그냥 minikube delete를 선택 후 다시 시작했는데 또 오류가 났다...
3번째 오류
Exiting due to HOST_JUJU_LOCK_PERMISSION: Failed kubeconfig update: writing kubeconfig: Error writing file /root/.kube/config: failed to acquire lock for /root/.kube/config: {Name:mk72a1487fd2da23da9e8181e16f352a6105bd56 Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}: unable to open /tmp/juju-mk72a1487fd2da23da9e8181e16f352a6105bd56: permission denied
다시 파일 잠금 권한으로 생긴 오류 메세지
#/root/.kube/config 파일에 대한 권한 문제를 해결
sudo chown -R $USER:$USER /root/.kube
#파일 보호 설정 수정(시스템에서 특정 파일의 보호를 비활성화)
sudo sysctl fs.protected_regular=0
위의 두 명령어로 해결 성공
'학부연구생 > 오류 모음집' 카테고리의 다른 글
[minikube] get pods시 ErrImagePull 오류 (0) | 2024.11.25 |
---|---|
Minikube 비활성화 (0) | 2024.09.15 |
Could not get lock /var/lib/dpkg/lock-frontend. unattended-upgr (0) | 2024.02.20 |
docker.io : Depends: containerd (>= 1.2.6-0ubuntu1~)unable to correct problems, you have held broken packages. (1) | 2024.02.06 |
could not get lock /var/lib/dpkg/lock-frontend (0) | 2024.02.06 |