Hi yoahn 개발블로그

Jenkins 배포 시 timeout 에러 본문

카테고리 없음

Jenkins 배포 시 timeout 에러

hi._.0seon 2021. 8. 12. 22:34
반응형

https://stackoverflow.com/questions/27477982/exception-when-publishing-exception-message-exec-timed-out-or-was-interrupted

 

Exception when publishing, exception message [Exec timed out or was interrupted after .. ms]

I need to create a Jenkins job that runs a PowerShell script on another server over SSH. I am using 'Send files or execute commands over SSH' option to do the needful. The 'Exec command' field has ...

stackoverflow.com

https://okky.kr/article/884329

 

OKKY | AWS EC2 프리티어 쓰시는분들 참고하세요!

일기장에 기록해둔건데 프리티어 쓰시는 분들에겐 좋은 정보일것 같아 남깁니다. 제 일기장에서 긁어온거라 폼이 많이 깨지긴 했는데 감안하고 봐주세요!   AWS 프리티어 EC2를 사용 중 겪은 문

okky.kr

젠킨스 배포 중 이런 에러메시지를 만났는데, 서버는 돌아가고 있고, timeout 시간을 늘려도 해결이 안되는 이슈가 발생했다.

위 링크를 보니까 문제는 달라도 원인은 같아보여서, 

nohup 을 이용한 배포 시에 출력스트림이 끊기지 않아서 젠킨스가 타임아웃이 나는 거라고 나와있어서

nohup 명령에 > /dev/null 2>&1 을 추가해서 출력스트림을 끊어주도록 변경했다.

 

 

결과는 성공!

반응형
Comments