[arm, amd] M1 맥북에서 intel 버전 사용기(rosetta 전용 터미널 만들어 편하게 사용하기!)
Project/(공통)troubleshooting2024. 5. 8. 00:49[arm, amd] M1 맥북에서 intel 버전 사용기(rosetta 전용 터미널 만들어 편하게 사용하기!)

[작성중]0. 상황    - 새로 참여하게 된 프로젝트가 arm을 지원하지 않는 python 버전(3.7.9)을 사용하고 있었다.    - 하지만 나의 노트북은 M1(arm)... 어쩌지!      ( 관련된 나의 python 관련 삽질 일기는 여기! 에서 볼 수 있다 ...;-    - 팀 리드분이 "rosetta" 를 이용해 intel 기반으로 환경 설정을 맞출것을 요청하셔서,       iterm을 복제해 rosetta 전용 터미널로 적용하고 brew나 pyenv처럼 자주 사용할 명령어에 대해서는 alias를     적용해 사용하기러 결정했다. + 각 아키텍쳐별 터미널을 켤때 해당 아키텍쳐별 PATH로 알아서 변경해준다면..?1. rosetta가 적용된 iterm2를 만든다!1. finder 에서..

[zsh, iterm2] alias 설정하다가 .zshrc 날려먹은 썰 푼다..(카오스엔지니어링?)
Project/(공통)troubleshooting2024. 5. 6. 17:13[zsh, iterm2] alias 설정하다가 .zshrc 날려먹은 썰 푼다..(카오스엔지니어링?)

0. 상황    - rosetta 전용 iterm shell 을 생성하고, 관련 alias를 생성하던 중.. 잘못된 명령어를 입력해 .zsh 파일이.. 덮어씌워졌다.1. 울지 말고 말해봐  좌절하던 내게 코코가 보내온 한마디....... 그래...! 나는...! 내게 카오스 엔지니어링을 하는 중인거야!2. 원인    - 원인은.. alias를 생성하다가.. 정말..무심결에...입력한.. 단...한줄의... 스크립트에서 시작된다..!! 주의 !! 아래 스크립트는 절대 따라 입력하지 마시오..!!alias rpyenv="arch -x86_64 /usr/local/bin/pyenv" -> .zshrc  그렇다..  >>를.... 정신을 놓은채로 ->로 입력하고 말았다...원래 입력했어야할 스크립트는.. 아래..

[aws-elb] target is in an availability zone that is not enabled for the load balancer
Project/(공통)troubleshooting2024. 4. 6. 00:24[aws-elb] target is in an availability zone that is not enabled for the load balancer

0. 상황 - AWS ELB 중 ALB에 nstance-target-group을 변경하던 중, 새로 추가한 인스턴스의 상태가 "Unused"에서 변경되지 않으며, target is in an availability zone that is not enabled for the load balancer가 발생. 1. 에러코드 전문 - "Unused", target is in an availability zone that is not enabled for the load balancer 2. 원인 - 기존에 ELB의 서브넷 그룹관련 test를 하면서 서브넷 그룹을 일부 제외시켰는데, 새로 생성한 인스턴스가 제거된 서브넷 그룹중 하나에 생성이 되면서 발생된 문제이다 3. 해결방안 - load balancer의 작..

[troubleShooting, Spring] Internal error - Type definition error(Response Getter, JPA, Fetch Lazy Loding, Entity to DTO 반환중 Type Error)
Project/(공통)troubleshooting2023. 8. 18. 17:22[troubleShooting, Spring] Internal error - Type definition error(Response Getter, JPA, Fetch Lazy Loding, Entity to DTO 반환중 Type Error)

💡 JPA Lazy Loding관련 오류인줄 알았으나, Dto 적용시 Response에 @Getter를 생성해주지 않아 발생한 문제였다. 에러코드 "Internal error - Type definition error: [simple type, class wanted.preonboarding.backend.post.dto.PostResponse] \n cause : com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class wanted.preonboarding.backend.post.dto.PostResponse and no properties discovered to create BeanSeria..

Project/(공통)troubleshooting2023. 5. 30. 06:40[AWS, SSH] Permission denied (publickey)

💡 Private key의 Permission이 너무 공개되어있기 때문에 발생한 이슈 에러 코드 McBookPro ~ % ssh -i "[pem 키 위치/파일명].pem" [계정]@[aws 퍼블릭 IPv4 DNS 주소] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '[pem 키 위치/파일명].pem' are too open. It is required that your private key files are NOT acces..

Project/(공통)troubleshooting2023. 5. 30. 06:37[RDS,mySQL] RDS 포트 변경 이슈com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

💡 RDS 포트를 보안 관련 이슈로 변경하였지만, yml에 변경된 포트를 반영해주지 않았기 때문에 발생한 이슈 에러 코드 2023-05-30 06:27:29.225 ERROR 58789 --- [nio-8021-exec-1] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received a..

[troubleShooting] AWS RDS 인바운드 포트 설정 관련(Operation timed out)
Project/(공통)troubleshooting2023. 5. 29. 17:56[troubleShooting] AWS RDS 인바운드 포트 설정 관련(Operation timed out)

💡 NAT 환경에서 공인 IP주소를 입력해주지 않았기 때문에 발생한 이슈. 에러 코드 DBMS: MySQL(버전 8.0.28) 대/소문자 구분: 일반=exact, 구분자 추가=exact 드라이버: MySQL Connector/J(버전 mysql-connector-java-8.0.25 (Revision: 08be9e9b4cba6aa115f9b27b215887af40b159e0), JDBC4.2) Operation timed out. 핵심 요점 와이파이 등 NAT을 이용할 시 공인 IP가 아닌 사설 IP를 AWS 보안그룹 인바운드 규칙에 추가할 시 계속해서 접근이 차단된다. 해결 방안 공인 IP를 인바운드 규칙에 추가한다 ipconfig가 아닌 네이버의 내 ip 찾기 이용 터미널에서 curl [ifconfi..

[troubleShooting, Spring] package org.springframework.jdbc.datasource does not exist
Project/(공통)troubleshooting2023. 5. 28. 14:45[troubleShooting, Spring] package org.springframework.jdbc.datasource does not exist

package org.springframework.jdbc.datasource does not exist 💡 프로젝트 생성시 JDBC dependency를 implementation 하지 않았기 때문에 발생한 이슈 에러 코드 java : package org.springframework.jdbc.datasource does not exist 핵심 요점 JDBC dependency를 gradle.build에 추가해준다. 해결 방안 JDBC dependency를 gradle.build에 추가해준다. implementation 'org.springframework.boot:spring-boot-starter-jdbc'

[troubleShooting, Gmail] Gmail SMTP "AuthenticationFailedException: 535-5.7.8 Username and Password not accepted"
Project/(공통)troubleshooting2023. 5. 28. 14:42[troubleShooting, Gmail] Gmail SMTP "AuthenticationFailedException: 535-5.7.8 Username and Password not accepted"

Gmail SMTP "AuthenticationFailedException: 535-5.7.8 Username and Password not accepted" 💡 Google에서 2022년 5월 이후 Google 계정에 대한 “보안 수준이 맞은 앱 엑세스”를 허용하지 않기 때문에 발생한 이슈 에러 코드 핵심 요점 메일 발송을 위한 g-mail계정의 보안탭에서 2단계 인증을 실행한 후, 앱 비밀번호를 생성하고 해당 비밀번호를 기존에 입력해두었던 비밀번호와 교체하면 해결됨 (https://support.google.com/a/answer/3726730?hl=ko) 해결 방안 //application.yml mail: host: smtp.gmail.com port: 587 username: [g-mail아이디..

Project/(공통)troubleshooting2023. 5. 28. 14:38[troubleShooting, JAVA] method replaceAll in class String cannot be applied to given types; return my_string.replaceAll(letter);

method replaceAll in class String cannot be applied to given types; return my_string.replaceAll(letter); 💡 JAVA에서 String의 replace, replaceAll 함수의 경우, 매개변수로 ([String] 탐색할 요소, [String] 치환할 요소)를 주어줘야 하는데, 치환할 요소를 주지 않았기 때문에 발생한 이슈 에러 코드 /Solution.java:3: error: method replaceAll in class String cannot be applied to given types; return my_string.replaceAll(letter); ^ required: String,String found: S..

Project/(공통)troubleshooting2023. 5. 28. 14:37[troubleShooting, JAVA] optionaldouble cannot be converted to double

optionaldouble cannot be converted to double 💡 자바의 Stream 에서 optional 때문에 발생한 이슈 에러 코드 import java.util.Arrays; class Solution { public double solution(int[] numbers) { return Arrays.stream(numbers).average(); } } /Solution.java:10: error: incompatible types: OptionalDouble cannot be converted to double return Arrays.stream(numbers).average(); ^ 1 error 핵심 요점 stream연산에서 반환한 값이 null일 수 있는 optiona..

Project/(공통)troubleshooting2023. 5. 28. 14:36[troubleShooting, JAVA] bad operand types for binary operator

bad operand types for binary operator 💡 논리 연산자 사용 시 비교 대상 값이 이상하기 때문에 발생한 이슈 에러 코드 /Solution.java:3: error: bad operand types for binary operator '

image