Troubleshooting(6)
-
[Troubleshooting] Jenkins에서 docker-compose 명령 수행 시 Permission denied 에러
문제 상황 컨테이너에서 돌아가고 있는 젠킨스에서 docker-compose 명령을 수행하면 다음과 같이 Permission denied 가 뜨는 상황 호스트 서버 OS는 CentOS 이다. + docker-compose build backend_flask_server /var/jenkins_home/workspace/connect-gnu-flask@tmp/durable-af0a7acc/script.sh.copy: 1: docker-compose: Permission denied Jenkinsfile stage('Build') { sh(script: 'docker-compose build backend_flask_server') } docker-compose.yml versio..
2024.04.12 -
[Troubleshooting] NestJS - EntityMetadataNotFoundError: No metadata 에러 해결
문제 상황 맥북에서는 잘 돌아갔던 코드가, 이상하게 윈도우에서만 돌아가지 않아서 며칠을 삽질함. 오류 내용은 다음과 같음 [Nest] 21720 - 2023. 03. 31. 오후 2:14:52 ERROR [ExceptionsHandler] No metadata for "detachedhouserent" was found. EntityMetadataNotFoundError: No metadata for "detachedhouserent" was found. at DataSource.getMetadata (C:\Users\User\Desktop\github\rich-jinju\src\data-source\DataSource.ts:438:30) at Repository.get metadata [as metad..
2023.03.31 -
[Troubleshooting] NestJS 'an unknown value was passed to the validate function' 오류
문제 원인 NestJS에서 데이터 전송 객체(DTO)를 사용해서 POST를 요청하니 다음과 같은 오류가 발생했다. { "statusCode": 400, "message": [ "an unknown value was passed to the validate function" ], "error": "Bad Request" } createUserDto의 코드는 다음과 같다. export class CreateUserDto { name: string; email: string; } 해결 방안 1. @nestjs/common을 9.3.9으로 업데이트 @nestjs/common 버전을 업그레이드 하고 다시 테스트를 진행하니 다음과 같이 떴다. { "statusCode": 400, "message": [ "prope..
2023.03.08 -
[Troubleshooting] 깃허브 히스토리에 민감한 정보가 올라갔을 때 지우는 법
문제 원인 깃허브 저장소에 DB 비밀번호 값을 올리는 대형 사고를 쳐버렸다. 별생각 없이 다시 로컬에서 해당 파일을 지우거나 수정 후 다시 commit 한 뒤 remote origin에 push 해도 히스토리상에 해당 정보가 남게 된다. 해결 방안 원본 레포지토리 클론(clone) git clone --mirror [레포지토리 주소] cd [레포지토리 폴더명] BFG Repo-Cleaner 다운로드 BFG Repo-Cleaner by rtyley $ bfg --strip-blobs-bigger-than 100M --replace-text banned.txt repo.git an alternative to git-filter-branch The BFG is a simpler, faster alternati..
2023.02.19 -
[Troubleshooting] git push -f 실패 (GH006)
문제 원인 원격 저장소에 올라간 커밋을 되돌리기 위해 로컬에서 커밋을 되돌린 후에 강제로 push를 해야 하는데, 강제로 push 하는 명령어가 허용되지 않았다. $ git push -f origin main Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 remote: error: GH006: Protected branch update failed for refs/heads/main. remote: error: Cannot force-push to this protected branch To https://github.com/WhatTheSong/WhatTheSong-Server.git ! [remote rejected] main -> main (prote..
2023.01.27 -
[Troubleshooting] Github Actions 'npm ci' 실패
문제 원인 Github Actions에서 빌드하는 과정에서 `npm ci` 명령어를 실행하지 못했다. 해결 방안 테스트 node-version을 14.x에서 16.x로 변경해주어야 한다. strategy: matrix: node-version: [16.x] 참고 자료
2023.01.15