Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[오류] nginx 포트 변경 오류 #232

Closed
kimjunghak opened this issue Feb 7, 2020 · 1 comment
Closed

[오류] nginx 포트 변경 오류 #232

kimjunghak opened this issue Feb 7, 2020 · 1 comment

Comments

@kimjunghak
Copy link

기존에 올라온 질문이 아닌지 먼저 검색해주세요!

가장 자주 나온 제보

어떤 오류인가요?

오류설명: 마지막 단계에서 real1, real2 에서 포트 변경이 되지 않고 계속해서 8080으로 실행됩니다.
일단 배포하면 포트번호 없이 페이지 접속은 되는데 /profile 에 가면 real1로 나오는데 포트 번호를 붙이면 8080으로밖에 접속이 되지 않아요.. 이걸로 몇 시간째 답을 못 찾고 있어요 ㅠㅠ

프로젝트 주소

Github에 오류가 난 프로젝트를 올려주세요.
Github 주소를 작성해주지 않으시면 답변해드릴수가 없어요!

오류 로그

어떤 오류인지 캡쳐해주세요.

codedeploy.log

  • [2020-02-07 19:33:37.815] [d-NHTFJHMK1]LifecycleEvent - ApplicationStart
    [2020-02-07 19:33:37.816] [d-NHTFJHMK1]Script - start.sh
    [2020-02-07 19:33:37.825] [d-NHTFJHMK1][stdout]> Build 파일 복사
    [2020-02-07 19:33:37.825] [d-NHTFJHMK1][stdout]> cp /home/ec2-user/app/step3/zip/.jar /home/ec2-user/app/step3/
    [2020-02-07 19:33:37.865] [d-NHTFJHMK1][stdout]> 새 애플리케이션 배포
    [2020-02-07 19:33:37.867] [d-NHTFJHMK1][stdout]> JAR Name : /home/ec2-user/app/step3/webservice-1.0.1-SNAPSHOT-20200207103237.jar
    [2020-02-07 19:33:37.909] [d-NHTFJHMK1][stdout]> /home/ec2-user/app/step3/webservice-1.0.1-SNAPSHOT-20200207103237.jar 에 실행권한 추가
    [2020-02-07 19:33:37.909] [d-NHTFJHMK1][stdout]> /home/ec2-user/app/step3/webservice-1.0.1-SNAPSHOT-20200207103237.jar 실행
    [2020-02-07 19:33:37.909] [d-NHTFJHMK1][stdout]> /home/ec2-user/app/step3/webservice-1.0.1-SNAPSHOT-20200207103237.jar 를 profile=real1 로 실행합니다.
    [2020-02-07 19:33:38.861] [d-NHTFJHMK1]LifecycleEvent - ValidateService
    [2020-02-07 19:33:38.862] [d-NHTFJHMK1]Script - health.sh
    [2020-02-07 19:33:38.971] [d-NHTFJHMK1][stdout]> Health Check Start
    [2020-02-07 19:33:38.971] [d-NHTFJHMK1][stdout]> IDLE_PORT: 8081
    [2020-02-07 19:33:38.971] [d-NHTFJHMK1][stdout]> curl -s http://localhost:8081/profile
    [2020-02-07 19:33:49.021] [d-NHTFJHMK1][stdout]> Health Check의 응답을 알 수 없거나 혹은 실행 상태가 아닙니다.
    [2020-02-07 19:33:49.021] [d-NHTFJHMK1][stdout]> Helath Check:
    [2020-02-07 19:33:49.021] [d-NHTFJHMK1][stdout]> Health Check 연결 실패. 재시도..
    [2020-02-07 19:33:59.037] [d-NHTFJHMK1][stdout]> Health Check의 응답을 알 수 없거나 혹은 실행 상태가 아닙니다.
    [2020-02-07 19:33:59.037] [d-NHTFJHMK1][stdout]> Helath Check:
    [2020-02-07 19:33:59.037] [d-NHTFJHMK1][stdout]> Health Check 연결 실패. 재시도..
    [2020-02-07 19:34:09.051] [d-NHTFJHMK1][stdout]> Health Check의 응답을 알 수 없거나 혹은 실행 상태가 아닙니다.
    [2020-02-07 19:34:09.051] [d-NHTFJHMK1][stdout]> Helath Check:
    [2020-02-07 19:34:09.051] [d-NHTFJHMK1][stdout]> Health Check 연결 실패. 재시도..
    [2020-02-07 19:34:19.065] [d-NHTFJHMK1][stdout]> Health Check의 응답을 알 수 없거나 혹은 실행 상태가 아닙니다.
    [2020-02-07 19:34:19.065] [d-NHTFJHMK1][stdout]> Helath Check:
    [2020-02-07 19:34:19.065] [d-NHTFJHMK1][stdout]> Health Check 연결 실패. 재시도..
    [2020-02-07 19:34:29.079] [d-NHTFJHMK1][stdout]> Health Check의 응답을 알 수 없거나 혹은 실행 상태가 아닙니다.
    [2020-02-07 19:34:29.079] [d-NHTFJHMK1][stdout]> Helath Check:
    [2020-02-07 19:34:29.079] [d-NHTFJHMK1][stdout]> Health Check 연결 실패. 재시도..
    [2020-02-07 19:56:17.667] [d-CPYP06NK1]LifecycleEvent - AfterInstall
    [2020-02-07 19:56:17.668] [d-CPYP06NK1]Script - stop.sh
    [2020-02-07 19:56:17.714] [d-CPYP06NK1][stdout]> 8082 에서 구동중인 애플리케이션 pid 확인
    [2020-02-07 19:56:17.720] [d-CPYP06NK1][stdout]> 현재 구동 중인 애플리케이션이 없습니다.
    [2020-02-07 19:56:18.711] [d-CPYP06NK1]LifecycleEvent - ApplicationStart
    [2020-02-07 19:56:18.711] [d-CPYP06NK1]Script - start.sh
    [2020-02-07 19:56:18.720] [d-CPYP06NK1][stdout]> Build 파일 복사
    [2020-02-07 19:56:18.720] [d-CPYP06NK1][stdout]> cp /home/ec2-user/app/step3/zip/
    .jar /home/ec2-user/app/step3/
    [2020-02-07 19:56:18.750] [d-CPYP06NK1][stdout]> 새 애플리케이션 배포
    [2020-02-07 19:56:18.753] [d-CPYP06NK1][stdout]> JAR Name : /home/ec2-user/app/step3/webservice-1.1-SNAPSHOT-20200207105517.jar
    [2020-02-07 19:56:18.753] [d-CPYP06NK1][stdout]> /home/ec2-user/app/step3/webservice-1.1-SNAPSHOT-20200207105517.jar 에 실행권한 추가
    [2020-02-07 19:56:18.754] [d-CPYP06NK1][stdout]> /home/ec2-user/app/step3/webservice-1.1-SNAPSHOT-20200207105517.jar 실행
    [2020-02-07 19:56:18.787] [d-CPYP06NK1][stdout]> /home/ec2-user/app/step3/webservice-1.1-SNAPSHOT-20200207105517.jar 를 profile=real2 로 실행합니다.
    [2020-02-07 19:56:19.772] [d-CPYP06NK1]LifecycleEvent - ValidateService
    [2020-02-07 19:56:19.772] [d-CPYP06NK1]Script - health.sh
    [2020-02-07 19:56:19.928] [d-CPYP06NK1][stdout]> Health Check Start
    [2020-02-07 19:56:19.928] [d-CPYP06NK1][stdout]> IDLE_PORT: 8082
    [2020-02-07 19:56:19.928] [d-CPYP06NK1][stdout]> curl -s http://localhost:8082/profile
    [2020-02-07 19:56:29.970] [d-CPYP06NK1][stdout]> Health Check의 응답을 알 수 없거나 혹은 실행 상태가 아닙니다.
    [2020-02-07 19:56:29.970] [d-CPYP06NK1][stdout]> Helath Check:
    [2020-02-07 19:56:29.970] [d-CPYP06NK1][stdout]> Health Check 연결 실패. 재시도..
    [2020-02-07 19:56:39.986] [d-CPYP06NK1][stdout]> Health Check의 응답을 알 수 없거나 혹은 실행 상태가 아닙니다.

nohup.out

  • 020-02-07 19:56:33.697 ERROR 6468 --- [ main] org.apache.catalina.util.LifecycleBase : Failed to start component [Connector[HTTP/1.1-8080]]

org.apache.catalina.LifecycleException: Protocol handler start failed
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1008) ~[tomcat-embed-core-9.0.22.jar!/:9.0.22]


APPLICATION FAILED TO START


Description:

The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.

@kimjunghak kimjunghak changed the title [오류] p.몇페이지 [오류] nginx 포트 변경 오류 Feb 7, 2020
@kimjunghak
Copy link
Author

자꾸 바보같은 오류를 올리는 거 같네요..
start.sh 에 applitcation-$IDLE_PROFILE.properties 옵션이 빠져있었네요.....
ㅠㅠ 다 비슷해서 착각했나봐요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants