intelliJ 실행시, The SUID sandbox helper binary was found, but is not configured correctly. 가 발생하는 경우
어느날 Kasm-Desktop VDI에서 IntelliJ를 실행했는데, 실행되는 듯 갑자기 꺼져버리는 현상이 발생했습니다.
IntelliJ 설치디렉토리로 이동해 ./idea.sh로 직접 실행해보니 아래와 같은 에러가 발생했습니다.
The SUID sandbox helper binary was found, but is not configured correctly.
찾다보니 chome의 sandbox (사용자의 개인정보보를 위해 서드파티쿠키를 제공하지 않는 기술)를 비활성화 하면된다고 하는데, 비활성화를 하는 방법에 대해선 정리된 정보가 거의 없더군요,,
이 sandbox를 비활성화하는 방법을 겨우 찾았는데,
ide.general.xml 파일에서 비활성화를 해주면 되는 거였습니다.
vim ~/.config/JetBrains/IdeaIC2024.1/options/ide.general.xml
해당파일을 열고,
<application>
...
<component name="Registry">
<entry key="ide.browser.jcef.sandbox.enable" value="false" />
</component>
</application>
<component name="Registry"> 태그 하위에
<entry key="ide.browser.jcef.sandbox.enable" value="false" />
태그를 삽입합니다.
그리고선 intelliJ를 다시 실행시키면 문제없이 실행되었습니다!
짐작컨데, 새로운 intelliJ 버전 업데이트 버전이 나오면서 광고성 popup 때문이라고 생각됩니다.
일반 ubuntu 환경에서 intelljJ를 설치해쓰면, 이런 현상이 발생하지 않을텐데, docker위에 intelliJ를 설치해서 사용하는 경우 저렇게 sandbox와 관련된 에러가 많이 발생되는 듯 합니다.
Reference:
IDE crashes due to "chrome-sandbox is owned by root and has mode" error when IDE is launching the JCEF in a sandbox : IJPL-59368
Workaround * Select "Help | Find Action" from the main menu, type "Registry...", select it and in the opened list, find and disable the "ide.browser.jcef.sandbox.enable" options here, restart the IDEA. Or: * Run "sysctl kernel.unprivileged_userns_clone=1"
youtrack.jetbrains.com