MongoDB Authentication failedminikube에서 mongodb에 접속하고나서 명령어를 실행한 순간 인증을 요구하는 에러가 발생한다.kubectl exec -it -n litmus chaos-mongodb-0 -- mongosh --authenticationDatabase admin -u root -p 1234MongoServerError: command listDatabases requires authenticationMongoServerError: Authentication failed.use admindb.auth("root")Enter password1234****{ ok: 1 }Mongodb secondary to mastermongodb에서 master로 접근하기 위해 다..
원격 저장소의 커밋 내역을 수정하기 위해 git rebase를 수행했다. 문제는 rebase 이후 원격저장소에 커밋을 반영한 결과, rebase 이전 다른 사람들의 커밋에도 영향을 끼친것이다. 내가 작업한 커밋이 아니지만 같이 수행한 것으로 표기된다. 예상되는 원인으로는 다른 브랜치에서 작업한 후 master 브랜치에 이를 병합하고나서 rebaes를 수행한 것이 원인으로 보인다. 병합한 것은 최근이지만 커밋들은 직전의 커밋이 아닌 중간중간에 속해있기 때문이다. 로컬 저장소 git 로그 확인1.git reflog특정 시점으로 되돌아가기2.git reset --hard HEAD@{61}다른 브랜치에서 작업한 후 다시 병합을 해주었다. https://velog.io/@whoyoung90/TIL-51-git-..
pm2 logs를 보면 다음과 같은 문제로 계속해서 재실행되는 것을 볼수가 있다.Script /home/ec2-user/app.js had too many unstable restarts (16). Stopped. "errored"해당 문제에 대한 원인을 찾기 위해 bin/www를 실행시키면 다음과 같은 로그가 찍혀있다.node:internal/fs/utils:350 throw err; ^Error: EACCES: permission denied, open '/etc/letsencrypt/live/test.com/privkey.pem' at Object.openSync (node:fs:603:3) at Object.readFileSync (node:fs:471:35) at Ob..
@PutMapping(value = "/user", consumes = "multipart/form-data")public ResponseEntity updateUserProfile(@Login long user, @RequestPart("file") MultipartFile file, @RequestBdoy Dto userDto){포스트맨에서 PUT 메소드로 api를 호출하는 순간 다음 에러가 발생했다.http status : 415content type 'multipart/form-data boundary=' not supported postman내가 원하는 것은 JSON 형식의 데이터와 Multipart 이미지를 동시에 보내는 것이기에 다음 방식으로 문제를 해..