![[AWS EC2 ubuntu] EC2 gradle build 멈출 때](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FFQuI4%2Fbtshr5Kg1uY%2FyC0uJzkP009kk7O8zzjvs0%2Fimg.png)
에러 메세지 에러....? 라고 보긴 뭐하지만 여튼 EC2를 통한 배포 과정에서 ./gradlew build명령어를 사용하여 gradle을 build하는 도중 멈춰버렸다. 원인 AWS 의 프리티어를 사용 시 프리티어가 사용할 수 있는 메모리의 크기는 1GB라고 한다. (free를 입력하여 내 메모리 상태를 볼 수 있음) 메모리가 작기 때문에 빌드 규모에 따라 멈춰버릴 때가 있다. 해결 메모리를 늘린다 > 과금 메모리 스왑으로 해결했는데, 방법을 몰라서 아래 게시물의 도움을 받았다. OKKY - AWS EC2 프리티어 쓰시는분들 참고하세요! 일기장에 기록해둔건데 프리티어 쓰시는 분들에겐 좋은 정보일것 같아 남깁니다.제 일기장에서 긁어온거라 폼이 많이 깨지긴 했는데 감안하고 봐주세요! AWS 프리티어 EC2..
![[JDBC] DB Connection ERROR / No operations allowed after connection closed](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F8Tq2v%2Fbtshp30iLCB%2FALJTEzuewe73L4OWU6RSP0%2Fimg.png)
에러 메세지 No operations allowed after connection closed 에러 원인 PreparedStatement pst = mysql.prepareStatement(query); 위의 코드에서 에러가 발생했는데, 에러 원인은 Connection 객체가 연결 해제됐거나. PreparedStatement 이 이상하거나 둘 중 하나라고 생각했는데, connection closed이기 때문에 Connection의 인스턴스인 mysql이 연결 해제된 후에 pst를 사용하여 쿼리를 실행하려 했기 때문인 것 같다. 만약 No operations allowed after statement closed 이라면 statement객체를 의심해봐야 할 것이다. 해결 처음에는 아래와 같이 해결하고자 했..
![[SpringBoot/WebSocket+SocketJS] CORS 설정 시 에러 (When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-Allow-Origin" response header. To allow credentials to a set of or..](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FsKVLn%2FbtsgCCYbFj9%2FTYN99AWcelIJbeKxaIXnvk%2Fimg.png)
에러 메세지 When allowCredentials is true, allowedOrigins cannot contain the special value "*" since that cannot be set on the "Access-Control-Allow-Origin" response header. To allow credentials to a set of origins, list them explicitly or consider using "allowedOriginPatterns" instead. 원인 CORS설정 시 allowedCredentials true와, allowedOrigins "*"를 같이 사용할 수 없다. 해결 에러 메세지에 친절하게 나와있다. allowedOrigins("*") 대신..
![[SpringBoot/AWS S3] Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied;](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcAn2Tu%2FbtsgDKt7WlU%2FkBGWRchRHi5baKfoLqGka0%2Fimg.png)
에러 메세지 Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; 에러 원인 단순 읽어보면 접근이 막혔다는 것 같다. KEY가 노출되어 접근이 제한됐을 경우 재생성해주어야 하는 것 같고. 나의 경우 단순히 S3을 생성하고 이미지 업로드를 시도해보자마자 생겼던 터라 버킷 내부 설정들을 꼼꼼히 들여다 보았는데, 액세스 차단설정이 되어있었다. 나와 같은 경우가 아니라면 아래 링크들을 참조해 보는것도 좋을 것 같다. [AWS CLI] Github에 Access Key 노출 IAM User AccessDenied cloudest.oopy.io Spring S3 업로드 S3 파일 업로드 코드 velog.io 해결 위의 액세스 차..
![[Java/Selenium] org.openqa.selenium.WebDriverException: java.net.ConnectionException: Failed to connect to localhost/0:0:0:0:0:0:0:1:port](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbjIvXM%2FbtsgUsTwRfe%2FX4ZWvuKwJ5Fq7G3SrkQW31%2Fimg.png)
에러 메세지 org.openqa.selenium.WebDriverException: java.net.ConnectionException: Failed to connect to localhost/0:0:0:0:0:0:0:1:port 원인 정확한 원인은 모르겠어서 구글링을 아무리 이리저리 해봤으나 해결하지 못했고 위의 사진처럼 저런식으로 IPv4를 받아와서 해결했다는 사람도 있다고 하길래 해봤지만 나는 실패했다. 그거 외엔 아무리 구글링을 해봐도 시도해볼만한 거리가 없어서 고민하던 중에 공식문서를 보게 됐고 The Selenium Browser Automation Project Selenium automates browsers. That's it! www.selenium.dev selenium 사용에 있어 ..
![[SpringBoot/AWS S3] com.amazonaws.services.s3.model.AmazonS3Exception: The bucket does not allow ACLs (Service: Amazon S3; Status Code: 400; Error Code: AccessControlListNotSupported; Request ID:](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbKjBmk%2FbtsgKnRT0wb%2FwRI9dd8bJmueEH9plQCxJK%2Fimg.png)
에러 메세지 The bucket does not allow ACLs (Service: Amazon S3; Status Code: 400; Error Code: AccessControlListNotSupported; Request ID: "?"; S3 Extended Request ID: "?"=; Proxy: null) 원인 버킷의 ACL이 비활성화되어 있음. 해결 활성화 시키기
![[AWS S3] AWS S3 Access denied(Console 빨간줄)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdShDaa%2FbtsgL9Nmhwq%2FEZKJy5bc8jilkvEXPLN931%2Fimg.png)
에러 메세지 Access denied Eclipse로 AWS S3 업로드 작업 중 위의 Access denied 딱 요 글자만 빨간색으로 콘솔에 찍힘. 해결 버킷 - 권한 - 버킷 정책에 아래와 같이 작성 { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1405592139000", "Effect": "Allow", "Principal": "*", "Action": "s3:*", "Resource": [ "arn:aws:s3:::버킷명/*", "arn:aws:s3:::버킷명" ] } ] }
![[SpringBoot/Thymeleaf] java.lang.NumberFormatException : Failed to convert value of type 'java.lang.String' to required type 'int'; For input string: "{idx}"](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbLiDZF%2FbtsgECbrq9B%2F5iYhcH0gJQSAuWzpx4TXek%2Fimg.png)
에러 메세지 Failed to convert value of type 'java.lang.String' to required type 'int'; For input string: "{idx}" 에러 원인 AWS S3로 이미지 업로드를 구현하는 과정에서 발생했고 String형태로 넘어가서 int로 받지를 못하는 듯 하다 @ResponseBody @PostMapping("/img/{idx}") public String img_modify(@PathVariable int idx, @RequestParam("imgfile") MultipartFile imgfile, UserDTO dto) throws IOException { System.out.println(imgfile.getName()); System.ou..