5장. RHEL Lightspeed의 명령줄 지원 지원 문제 해결
RHEL Lightspeed가 지원하는 명령줄 도우미를 설치하고 사용할 때 문제를 진단하고 해결합니다. 이는 전체 목록이 아닙니다.
TLS 인증서 파일을 찾을 수 없습니다. 잘못된 경로: /etc/pki/consumer/cert.pem
명령줄 도우미에 질문을 하고 TLS 인증서 파일을 잘못된 경로 때문에 찾을 수 없기 때문에 도우미가 실패하면 시스템이 등록되지 않은 것일 수 있습니다.
오류를 해결하려면 시스템을 등록해야 합니다. 다음 단계를 따르십시오.
시스템이 등록되어 있는지 확인합니다.
subscription-manager identity
# subscription-manager identity
시스템이 등록되지 않은 경우 다음 명령을 사용하여 시스템을 등록합니다.
subscription-manager register --username <username> --password <password>
# subscription-manager register --username <username> --password <password>
서버와의 통신 오류
시스템에서 c
명령을 실행하려고 하면 다음 오류와 함께 실패합니다.
🙁 Communication error with the server: HTTPSConnectionPool(host='cert.console.redhat.com', port=443): Max retries exceeded with url: /api/lightspeed/v1/infer (Caused by ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))). Please try again in a few minutes.
🙁 Communication error with the server: HTTPSConnectionPool(host='cert.console.redhat.com', port=443): Max retries exceeded with url: /api/lightspeed/v1/infer (Caused by ProtocolError('Connection aborted.', PermissionError(13, 'Permission denied'))). Please try again in a few minutes.
오류를 해결하려면 명령줄 도우미 데몬(clad)을 다시 시작하고 c
명령을 재실행합니다.
systemctl restart clad c “<Your_question>”
$ systemctl restart clad
$ c “<Your_question>”
파일을 연결할 때 경고
c
명령을 실행하여 파일을 연결하려고 하면 경고가 표시됩니다.
"오류: 질문 및 컨텍스트의 총 크기 (478.46KB)는 2.00KB 제한을 초과합니다. 예상 크기에 맞게 트리밍하면 일부 컨텍스트가 손실될 수 있습니다."
이 문제는 도우미에 클라이언트에 대한 2KB 제한이 있기 때문에 발생합니다.
Clad가 업데이트된 인증서를 올바르게 다시 로드하지 않음
루트가 아닌 사용자로 clad
를 실행하려고 하면 clad
가 업데이트된 인증서를 올바르게 다시 로드하지 않습니다. /etc/pki/consumer
아래의 인증서는 root에서만 읽을 수 있는 파일에 액세스해야 하므로 root가 소유해야 합니다.
오류를 해결하려면 key.pem
권한을 root로 변경하고 root로 clad
명령을 실행합니다.
sudo ls -l /etc/pki/consumer/ sudo chown $(whoami):$(id -gn) /etc/pki/consumer/${KEY_NAME}
$ sudo ls -l /etc/pki/consumer/
$ sudo chown $(whoami):$(id -gn) /etc/pki/consumer/${KEY_NAME}