Blockchain App Builder Visual Studio Code Extension 문제 해결

다음은 Blockchain App Builder Visual Studio Code 확장의 시스템 문제를 해결하는 데 사용할 수 있습니다.

사전 요구 사항 문제
Blockchain App Builder에서 요구하는 전제 조건 소프트웨어를 수정하거나 업그레이드하는 경우 오류가 발생할 수 있습니다. 설치된 종속성 기능을 사용하여 Blockchain App Builder 설치가 여전히 필요 조건을 충족하는지 확인할 수 있습니다. Visual Studio 코드의 Blockchain App Builder 시작 페이지에서 설치된 종속성을 누릅니다. 필요한 버전과 Blockchain App Builder에서 사용하는 구성 요소의 실제 설치 버전을 보여주는 테이블이 표시됩니다. 필수 구성 요소는 별표(*)로 표시됩니다.
Blockchain App Builder를 설치하려고 할 때 오류 및 경고와 함께 필요 조건 검사가 실패하면 Visual Studio Code의 출력 창에 다음 예와 유사한 오류가 표시될 수 있습니다.If the prerequisites check fails with errors and warnings when you attempt to install Blockchain App Builder, you might see an error similar to the following example in the output pane in Visual Studio Code:
Error:
Aborting installation. Error:
Found 1 error(s) in pre-requisites check, failed with following errors:
1. Golang version mismatch. Expected 1.20.x, but found 1.18.5.

Found 3 warning(s) in pre-requisites check.
1. Docker is not installed. Please install Docker >= 18.09.0. To deploy chaincodes in the local environment, 
please install the recommended version of Docker.
2. Docker Compose is not installed. Please install Docker Compose >= 1.23.0. To deploy chaincodes in the 
local environment, please install the recommended version of Docker Compose.
3. Git is not installed. To sync chaincodes, please install the Git according to the documentation.
배치 실패
배치 실패, 손상된 배치, Docker 피어 컨테이너가 가득 찼거나 로컬 네트워크에서 Docker 피어가 종료되었기 때문에 다음과 유사한 오류가 표시될 수 있습니다.
============ Started instantiate Chaincode ============
[2028-19-01T19:25:lO.372] [ERROR] default - Error instantiating Chaincode GollGl on channel mychannel, detailed 
error: Error: error starting container: error starting container: Failed to generate platform-specific docker 
build: Failed to pull hyperledger/fabric-ccenv:latest : API error (404): manifest for hyperledger/ 
fabric-ccenv:latest not found: manifest unknown: manifest unknown [2020-19-01T19:25:10.372] (INFO) default -
============ Finished instantiate Chaincode ============
[2020-19-01119:25:10.372] [ERROR] default - Error: Error instantiating Chaincode Goll01 on channel mychannel, 
detailed error: Error: error starting container: error starting container: Failed to generate platfom-specific 
docker build: Failed to pull hyperledger/fabric-ccenv: latest : API error (404): manifest for hyperledger/ 
fabric-ccenv:lalest not found: manifest unknown: manifest unknown exited: signal: terminated 
INFO: exited: signal: terminated

ERROR: Error in Chaincode deployment
피어 컨테이너를 다시 제대로 시작할 수 없기 때문입니다.
해결 방법: 환경 창에서 로컬 환경을 선택하고 마우스 오른쪽 단추를 누른 다음 로컬 환경 재구축을 선택하여 런타임을 재구축합니다. 다시 배치를 시도합니다.
확장 데이터 재설정
Blockchain App Builder 사용자 데이터가 손상 될 수 있습니다. 이 옵션은 로컬에 저장된 항목에 영향을 주지 않고 블록체인 앱 빌더에서 데이터를 지웁니다.
  1. 보기 메뉴에서 명령 팔레트를 엽니다.
  2. 명령 팔레트에서 Reset Extension을 입력합니다.
    명령 팔레트의 확장 데이터 재설정 명령을 보여주는 화면 캡처입니다.
  3. Oracle Blockchain Platform 확장 데이터 재설정을 선택합니다. VS Code는 기존 블록체인 데이터를 지우고 기본 설치 데이터를 다시 로드합니다. 시스템에 로컬로 저장된 파일에는 영향을 주지 않지만 VS Code로 다시 가져와 이전에 설정한 환경을 재구성해야 합니다.
Mac OSX: Xcode
Mac OSX 업그레이드 후 또는 Xcode가 설치되지 않은 경우 오류 로그에 다음과 유사한 오류가 표시될 수 있습니다.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at
  • 이 동작을 해결하려면 터미널 창을 열고 다음 명령을 실행합니다.
    sudo rm -rf $(xcode-select --print-path)
    xcode-select --install