본문 바로가기

반응형

전체 글

(73)
git action - 에러 1. https://jojoldu.tistory.com/543 2. https://jojoldu.tistory.com/549 1. git action에서 에러남. * What went wrong: 27Execution failed for task ':compileJava'. 28> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'. 서버에서도 11로 되어있는데 이런 에러가 난다. deplyo.yml에 버전을 바꿔줌. - name: Set up JDK 11 uses: actions/setup-java@v1 # (5) with: java-version: 11 빌드성공!
nohup.out실행시 8080 was already in use Description: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that's listening on port 8080 or configure this application to listen on another port. 위와 같은 에러가 나왔다. ec2 서버에서는 netstat -ano 로 검색하면 pid가 검색되지 않음. 관리자 계정이나, sudo로 해줘야 되었던 것이다... sudo netstat -tnlp | grep 8080 나온 pid를 죽인다! kill -9 [PID] 해결 : https://velog.io/@semi-cloud/Spring-Boot-Web-serv..
nohup.out 실행시 오류 ./deploy.sh: line 48: -Dspring.profiles.active=real: command not found 며칠을 다 해봐도 안되어 가지고 deploy.sh 파일에 있는 Dspring.profiles.active=real 문구를 지움. 그래도 저문구 나온 후에 스프링 실행은 됨 그런데 그 후에 - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotatio..
./gradlew build 실행 후 에러 gradle 빌드 하니까 아래와 같은 에러 메시지가 나왔다. Starting a Gradle Daemon (subsequent builds will be faster) Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings **문구 바꿔서 넣어봄. (./gradlew build → ./gradlew ..
./gradlew test 후 java.lang.IllegalStateException 에러 테스트 페이지 run해봐도 오류 없이 잘 돌아가는데 ec2에서 ./gradlew test만 하면 위와 같은 오류가 발생함. "application-oauth.properties 파일은 보안상의 문제로 깃허브에 올리지 않았었는데, 이 파일 없이 테스트를 돌리니 오류가 발생했던 것이다. " 출처 : https://cookiee.tistory.com/687 ==> 하지만 나는 서버에 바로 올렸는데... 그리고 deploy.sh 파일도 수정했는데... 심지어 난 application.properties 파일은 깃허브에도 올라가 있다. 앗... 테스트 파일쪽에 application.properties가 없었다. 그래서 만들어줌. 이 문제는 해결이 되었다.
배포스크립트 만들기 .sh 파일을 만들어보자. [ec2-user@freelec-springboot2-webservice step1]$ vim nohub.out 나는 파일이 열리지가 않고 그냥 insert 하라고 뜬다.?? 일단 넘어가자!
./gradlew test 후 javafx에 대한 오류 [ec2-user@freelec-springboot2-webservice freelec-springboot2-webservice]$ ./gradlew test //오류메시지들... > Task :compileJava FAILED /home/ec2-user/.../freelec-springboot2-webservice/.../PostsService.java:9: error: package javafx.geometry does not exist import javafx.geometry.Pos; ^ 1 error FAILURE: Build failed with an exception. javafx와 jdk8은 더이상 호환이 안된다고 한다. 근데 나는 javafx를 이 프로젝트에서 사용하지도 않으므로 삭제를 하..
ec2에서 rds에서 접근실패 putty에서 mysql 설치후 rds에 접속하기 명령어 mysql -u 계정 -p -h Host 주소 ERROR 2003 (HY000): Can't connect to MySQL server on 위와같은 에러 메시지가 뜨면서 접속이 안된다. RDS 비번 넣어도 안되고, 그냥 비번을 임의로 넣어도 안됨. ※ CentOS 6이전 버전은 service~구문으로, CentOS 7이후 버전은 systemctl~ 구문으로 제어한다. //mysql 이 실행 자체가 안됨. 왜냐면 service 명령어 대신에 systemctl 사용해야 한다고 함. [ec2-user@freelec-springboot2-webservice ~]$ service mysqld start Redirecting to /bin/systemctl..

반응형