Programming/R

[ServerR] ERROR R SUICIDE: unable to initialize the JIT

김해김씨99대손 2024. 7. 22. 19:40

1. 서버 R접속이 안되어서 에러 확인 

$ less /var/log/messages 

-> Unable to initialize the JIT라는 에러 발생 

 

 

$ sudo journalctl -u rstudio-server

 이걸로도 재 확인 

 

2. "Unable to initialize the JIT" 검색 

-> https://support.posit.co/hc/en-us/articles/17423794149143-Unable-to-initialize-the-JIT

 

 

1) http://<server-address>:<server-port>/home 에 접속이 된다면?

그렇다면 session을 종료 후 재 시작 해보자

 

 

2) 되지 않는다면, R session시작에 문제가 있는 것이다. 

$ less /etc/rstudio/rserver.conf

문서를 확인해 보아라 

보니까 R  에서 세팅된  R은 4.3.3인데 경로가 4.4.0으로 잘 못 지정되어 있었다. 

 

 

3. 경로 원위치

그럼 원래 R 위치는 ?

$ cd /usr/local/bin/

위치로 가보면 r의 원래 위치는/opt/R/4.3.3/bin/R이다 

 

$ vi /etc/rstudio/rserver.conf 

위 문서에서 다시 R 위치 수정하기 

 

$ sudo rstudio-server start
$ sudo rstudio-server stop

$ systemctl status rstudio-server.service

 

잘 된다 굿뜨🥳

반응형