본문 바로가기

Tool/VS Code

[VS Code] Shell server terminated (code: 255, signal: null) XSL

반응형

주인장은 아래 방법을 모두 동원해도 되지 않았다. 그냥 직접 연결로 해결 봤다.

그렇다고 하더라도 도움이 되길 바라며 적어보았다.

아래 방법이 다 안될 경우 컨테이너에 직접 연결하는 방법.

https://24hours-beginner.tistory.com/391

 

[Docker] vscode에서 Container 직접적으로 연결하기 (feat. ssh)

아래 자료에서는 컨테이너를 조회해서 찾아서 들어간다. (컨테이너에 따로 포트를 열수없는 등의 문제가 있을 경우 아래 방법을 추천한다.) https://24hours-beginner.tistory.com/278 [VSCode] SSH 연결하기 (+

24hours-beginner.tistory.com

 

아래와 같이 에러창이 나면서 컨테이너 목록이 안 나오는 경우

Shell server terminated (code: 255, signal: null) XSL ���� �Ǵ� ���� �̸��� �߸��Ǿ����ϴ�. node:child_process:925 throw err; ^ Error: Command failed: wmic process where (commandline like "%ssh-askpass.bat%") get processid,parentprocessid /format:"%WINDIR%\System32\wbem\en-us\csv" XSL ���� �Ǵ� ���� �̸��� �߸��Ǿ����ϴ�. at checkExecSyncError (node:child_process:848:11) at Object.execSync (node:child_process:922:15) at Object.<anonymous> (node:electron/js2c/asar_bundle:5:12704) at Object.<anonymous> (c:\Users\test\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\common\sshAskpass.js:5:808) at Module._compile (node:internal/modules/cjs/loader:1165:14) at Module._extensions..js (node:internal/modules/cjs/loader:1220:10) at Module.load (node:internal/modules/cjs/loader:1035:32) at Module._load (node:internal/modules/cjs/loader:876:12) at c._load (node:electron/js2c/asar_bundle:5:13343) at Function.executeUserEnt...

또는 아래와 같은 경고문이 나오는 경우

command 'remote-containers.newContainer' not found. This is likely caused by the extension that contributes remote-containers.newContainer.

☆하 xsl 복사랑 docker 재인스톨로 해결했다 할렐루야☆

주인장은 아래꺼 다해봐도 안됬는데 진짜 xsl 복사랑 docker 재인스톨로 해결했다 ☆할렐루야☆

제일 쉬우니까 제일 먼저 해보자!

아래에서 installing Docker 해주면 된다.

 

업그레이드 & 다운그레이 & 다시 깔기

업그레이드

Switch to Pre-Release Version 클릭 > Reload Required

 

다운그레이

Dev Containers v0.262.3로 다운그레이

extensions > Dev Containers > uninstall 화살표 클릭 > install Another Version.. 클릭 > v0.262.3 > Reload Required

 

uninstall > install

uninstall > reload > install

xsl 파일 복사

xsl 파일이 없다는 것이니 복사해서 만들어 준다.

내 local 언어의 폴더에 있는 xsl 파일들을 다 en-US로 복사한다.

그러나 이 방법은 시스템 파일을 변경하므로 권장되지 않는다고 한다.

원본) 파일 주소 %WINDIR%\System32\wbem\[local]\csv.xsl

ex) %WINDIR%\System32\wbem\ko-KR\csv.xsl

옮길 곳)

%WINDIR%\System32\wbem\en-US\csv.xsl

그리고 잘된다는 사람도 있고 안된다는 사람도 있다(나다😥)

하고 나서 오류창 자체는 사라졌는데 로딩이 계속 된다면

Remote Explorer > Containers > Refresh를 한번 해보고 그래도 안된다면

Remote Explorer > Containers > installing Docker 를 이용해서 다시 Docker를 install한 후 재부팅 해준다.

정말 잘된다!!!

 

sshAskpass.js 변경 (잘못했을 경우 아예 안됨)

아래 파일에서 en-us를 찾은 후 본인의 local (ex) ko-KR)로 변경

본인의 local은 csv.xsl 파일이 있는 곳

c:\Users\[User]\.vscode\extensions\ms-vscode-remote.remote-containers-[version]\dist\common\sshAskpass.js:5:808
ex)c:\Users\test\.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\common\sshAskpass.js:5:808

sshAskpass.js 파일에서 en-us를 ko-KR로 바꾸기 (ko-KR은 정해져 있지 않고 본인의 local로)

%WINDIR%\System32\wbem\en-us에는 csv 파일이 없었고 %WINDIR%\System32\wbem\ko-KR에는 csv 파일이 있었습니다.

변경했다가 아예 안 되는 경우

아래처럼 에러가 나서 아예 설치가 안되는 경우

1. Try Downloading Manually를 클릭 후 vsix를 다운로드한다.

Error while installing 'Dev Containers' extension. Please check the log for more details.

2. (이때 원격접속 상태가 아니여야 한다.)

두 번째로 나온 창에서 Install from VSIX를 클릭하거나

ctrl + shift + p (명령 팔레트)를 킨 후 Extensions: install from VSIX.. 를 클릭한다.

3. 다운로드한 vsix 파일 선택

install이 잘된 걸 알 수 있다. (란다.. 나는 왜 안돼..)

 

외국 사람들은 된다는데 왜.. 나는.. 그냥 맛이 가버리는가 ㅜ

 

 

 

참조

https://github.com/microsoft/vscode-remote-release/issues/7035

 

remote explorer - containers: Shell server terminated (code:255, signal: null) · Issue #7035 · microsoft/vscode-remote-releas

VSCode Version: 1.70.0 Local OS Version: Window 10 Remote OS Version: Ubuntu 20.04.2 Remote Extension/Connection Type: SSH/Containers/ Logs: Shell server terminated (code: 255, signal: null) 'w...

github.com

https://github.com/microsoft/vscode-remote-release/issues/7507

 

Error while connecting docker container hosted on remote linux. · Issue #7507 · microsoft/vscode-remote-release

Hi, I get the error below while connecting docker container hosted on remote linux. It was working couple days ago. The way I am using is pretty simple as Remote and Container drop down choices on ...

github.com

https://stackoverflow.com/questions/74751753/cant-access-containers-in-vscode-showing-message-shell-server-terminated-code

 

Can't access containers in vscode showing message "shell server terminated code 255" after doing nothing

I normaly access remote containers of host via remote explorer in vscode installed in my local computer. After I generated ssh-key "other host" that I've used, VScode started to show error

stackoverflow.com

 

반응형