[ Vagrant ] incompatible character encodings 오류/Encoding::CompatibilityError 오류/경로명 인코딩 오류/경로명 호환성 오류/경로명 한글 오류/사용자명 한글 오류
Kubernetes

[ Vagrant ] incompatible character encodings 오류/Encoding::CompatibilityError 오류/경로명 인코딩 오류/경로명 호환성 오류/경로명 한글 오류/사용자명 한글 오류

DevOps의 필수적인 Kubernetes! k8s라고도 불립니다.

업계 내에서 많이 언급되지만 정확히 알지는 못해서 기초부터 직접 배워볼 예정인데요~

오늘은 간단히 설치를 진행해 보겠습니다.

작성된 Vagrantfile의 정보로 Provisioning 진행

vagrant up

아니나 다를까... 역시 한 번에 되지 않는다.

오류 :

C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/childprocess-4.1.0/lib/childprocess/windows/process_builder.rb:48:in `join': incompatible character encodings: CP949 and UTF-8 (Encoding::CompatibilityError)

찾아보니까 경로명이 한글로 돼 있어서 인코딩 정보가 호환이 안 된다고 한다.

하여튼 경로를 찾지 못해 발생하는 오류였다.

해결 방법은

1
3

  1. .vagrant.d 폴더를 영문명을 가지고 있는 폴더의 하위 경로로 이동시켜 준다. 본인은 그냥 사용하기 간편하게 HashiCorp 폴더의 하위 경로로 이동시켜 주었다.
  2. Win 10 기준으로 설정 > 정보 > 고급 시스템 설정 > 환경 변수 > 시스템 변수 > 편집 >
  3. (1) 시스템 변수 > 변수 이름 : VAGRANT_HOME (2) 시스템 변수 > 변수 값 : . vagrant.d 폴더 경로 (3) 작성 시 주의해야 할 점은 시스템 변수 > 변수 값에 기입되는 경로의 \는 \\ 2개여야 한다.
  4. cmd 창 재실행. 그래야 환경 변수를 읽어온다.

 

오류 없이 잘 Provisioning 되었다.

Info URL
VirtualBox 6.1.28 https://www.virtualbox.org/wiki/Download_Old_Builds_6_1
Vagrant 2.3.4 https://developer.hashicorp.com/vagrant/downloads
Code https://github.com/sysnet4admin/_Lecture_k8s_starter.kit