inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

비전공자도 이해할 수 있는 CI/CD 입문·실전

[실습] 개인 프로젝트에서 많이 쓰는 CI/CD 구축 방법 - 1

8080 포트에서 실행 중인 프로그램이 없습니다.

해결된 질문

366

JJEONG

작성한 질문수 8

0

스크린샷 2024-05-31 오후 1.35.51.pngubuntu@ip-172-31-86-200:~$ cd memberCertification ubuntu@ip-172-31-86-200:~/memberCertification$ ./gradlew clean build BUILD SUCCESSFUL in 7s 6 actionable tasks: 6 executed ubuntu@ip-172-31-86-200:~/memberCertification$ ls build build.gradle gradle gradlew gradlew.bat settings.gradle src ubuntu@ip-172-31-86-200:~/memberCertification$ cd build ubuntu@ip-172-31-86-200:~/memberCertification/build$ ls classes generated libs resolvedMainClassName resources tmp ubuntu@ip-172-31-86-200:~/memberCertification/build$ cd libs ubuntu@ip-172-31-86-200:~/memberCertification/build/libs$ ls memberCertification-0.0.1-SNAPSHOT-plain.jar memberCertification-0.0.1-SNAPSHOT.jar ubuntu@ip-172-31-86-200:~/memberCertification/build/libs$ nohup java -jar memberCertification-0.0.1-SNAPSHOT.jar & [1] 1678 ubuntu@ip-172-31-86-200:~/memberCertification/build/libs$ nohup: ignoring input and appending output to 'nohup.out' ubuntu@ip-172-31-86-200:~/memberCertification/build/libs$ sudo lsof -i:8080 ubuntu@ip-172-31-86-200:~/memberCertification/build/libs$
build를 했는데 publicIPs에 8080 포트를 주소에 입력하면 "연결을 거부했습니다." 라는 문구가 뜹니다.8080 포트가 쓰이지 않는 거 같아 cat nohup.out을 입력해보면 org.postgresql.util.PSQLException: FATAL: password authentication failed for user "jjeong" at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:693) ~[postgresql-42.6.0.jar!/:42.6.0] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.exception.GenericJDBCException: Unable to open JDBC Connection for DDL execution [FATAL: password authentication failed for user "jjeong"] [n/a] application.properties#datasource spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql://localhost:5432/membercertification spring.datasource.username=jjeong spring.datasource.password=0525url, username, password가 다 들어맞는 것도 확인했습니다. build.gradledependencies { implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.modelmapper:modelmapper:3.1.0' implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.2.RELEASE' // implementation 'org.hibernate.orm:hibernate-core:6.2.6.Final' compileOnly 'org.projectlombok:lombok' runtimeOnly 'org.postgresql:postgresql' annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.security:spring-security-test' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' developmentOnly 'org.springframework.boot:spring-boot-devtools' } 어디가 문제인지 모르겠습니다 ㅠㅠ

aws docker ci/cd github-actions aws-code-deploy infrastructure aws-ec2

답변 1

0

JSCODE 박재성

해당 에러 메시지가 줄 글로 되어 있어서 조금 읽기가 어렵네요..!!

혹시 아래 오픈 톡방으로 연락 한 번 주실 수 있을까요 ?

https://open.kakao.com/o/sHdY8yrg

제가 에러를 파악하는 데 필요한 내용들을 하나씩 요청드릴게요!

무중단 배포

0

52

2

workflows/deploy.yml 궁금증

0

46

2

.git-credentials 파일이 없이 배포가 성공한 이유가 궁금

0

54

1

(해결 - 정보공유) /home/runner/work/_temp/6be6e~0.sh: line 1: ./gradlew: Permission denied 오류

1

60

2

(확인 완료) git config --global creadential.helper store 후에도 비밀번호 물어보는 현상

1

68

2

질문_ 강의 순서 및 그외

0

67

2

섹션 4 - Docker + 백엔드(Spring Boot)

0

60

2

deploy.yml작성후 원격에 push불가

0

60

2

CodeDeploy 사용시 registration 요구

0

100

3

스프링 종료 명령어

0

66

2

RAM & 스왑메모리 폭증하는 문제

0

100

2

섹션 4, 5와 6, 7은 유사한가요?

0

64

1

code deploy 배포입니다.

0

97

3

사용자 삭제가 안되는 이유

0

83

2

이미지 pull중 no basic auth credentials 문제입니다.

0

112

2

Docker Compose파일을 작성했을때 CI CD와의 연동

0

94

2

보안그룹 생성 오류

0

82

3

AWS 5월에 탈퇴해서 그러는데....

0

79

1

배포 오류

0

78

2

node.js 설치시 에러

0

146

2

appspec.yml, 스크립트 파일 수정요청

0

81

2

appleboy/ssh-action stop_script 대체

1

178

2

Vue.js 파일 배포

0

59

2

aws를완강하고 ci/cd로 넘어왔습니다.

0

81

1