Macbook M1 pro 16 개발 환경구성 - docker와 oracle listener 오류 / 1521 port 비활성화 오류 / 상태: 실패 -테스트 실패: IO 오류: The Network Adapter could not establish the connection (CONNECTION_ID=/DJQ/0BASUOpP2bmPQF+LQ==)
❤ 김춘장이의 위키백과 - 나만의 공부 기록 Tistory ❤
gayulz - Overview
개발자가 되고싶은 개발어린이💟. gayulz has 11 repositories available. Follow their code on GitHub.
github.com
🤬 날 화나게 하지 마 docker^^🐳
정말 화가 났다.
마지막 프로젝트기간인데 oracle이 먹통이 됐다.
상태: 실패 -테스트 실패:
IO 오류: The Network Adapter could not establish the connection (CONNECTION_ID=/DJQ/0BASUOpP2bmPQF+LQ==)
잘 되다가 갑자기 안되었다.
별 짓을 다해봐도 해결이 되지 않았다.
그래서 인프런에도 문의를 올려 보고 , 스택오버플로우에도 올려봤다.
상태: 실패 -테스트 실패: IO 오류: The Network Adapter could not establish the connection / docker-oracle / MAC m1 오
안녕하세요현재 docker 를 사용하여 oracle 11g를 이용중인데요이미지는 jaspeen/oracle-xe-11g 를 사용중입니다기존에 sql developer와 dbeaver에 연결해서 잘 사용했는데2~3일 전부터 갑자기 연결이안되며sql과
www.inflearn.com
Status: Failed -Test Failed: IO Error: The Network Adapter could not establish the connection / docker-oracle / MAC m1 ErrorI ha
I am currently using oracle 11g using docker. The image is jaspeen/oracle-xe-11g. Previously, I connected to sql developer and dbeaver and used it well. 2-3 days ago, suddenly I can't connect and B...
stackoverflow.com
하지만 답변.. 은.. 흠.. 시원치 않았고
스택오버플로우는 답변조차 달리지 않았다 🥲
(퉤퉤)
그러다 개발자 단톡방에 어떤 은인께서
sudo lsof -i -P | grep -i "listen"
이걸 쳐보라는 말씀을 하셨다.
1521 포트가 로컬상 listen상태인지 보라는 조언이었다.
지금은 활성화가 되어 있지만, 안 됐을 때 보니 1521 포트가 없었다...!!!!!!!!!!
원인은?
예상해 본바론 colima 실행 시 ssh 포트포워딩 되는 부분에 문제로 추정된다 (정확한 건 모르겠다)
[hostagent] Waiting for the essential requirement 1 of 5: "ssh"
[hostagent] Waiting for the essential requirement 1 of 5: "ssh"
[hostagent] Waiting for the essential requirement 1 of 5: "ssh"
[hostagent] Waiting for the essential requirement 1 of 5: "ssh"
[hostagent] Waiting for the essential requirement 1 of 5: "ssh"
did not receive an event with the "running" status
FATA[0600] error starting vm: error at 'starting': exit status 1`
예전에도 이랬던 것 같은데.. 흠
colima 실행은 되었으나 뭔가 오류가 있는 듯했다.
하지만 이게 매번 일어난 게 아니었다.
이 부분을 캐치하고 colima와 docker 모두 종료 후 colima실행을 할 때 유심히 보면서
오류문구가 없을 때 docker를 실행하니 1521 포트가 올라왔다.
결론
colima 실행 시 나오는 메시지는 꼼꼼히 봐야 한다
docker 실행 후
sudo lsof -i -P | grep -i "listen"
이걸 꼭 입력해서 1521 포트가 활성화되었는지 봐야 한다...
이걸 해결하기까지 1일이 걸려 프로젝트도 지연되었다.
분통이.. 터진다...😡