본문 바로가기
반응형

노트/오류 노트16

[오류 노트] : (code=exited, status=14) / mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb / mongod.service: failed with result 'exit-code'. 문제 MongoDB를 잘 못 종료했나.. 문제가 있어서 다시 실행하려고 했으나 아래와 같은 오류가 떴다. .lock 파일도 삭제하고 다시 실행하도 또 .lock파일이 생기고, 여러 방법으로 껐다 켜도 mongo가 실행되지 않았다. mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb (code=exited, status=14) mongod.service: failed with result 'exit-code'. ​ 해결 sudo chown -R mongodb:mongodb /var/lib/mongodb sudo chown mongodb:mongodb /tmp/mongodb-27017.sock sudo service mongod.. 2022. 4. 7.
[오류 노트] : Could not find any META-INF/persistence.xml file in the classpath 문제 H2 데이터베이스로 JPA실습을 하려고 했는데 아래와 같은 오류로 Main 메서드가 실행이 안 되었다. Could not find any META-INF/persistence.xml file in the classpath 해결 경로를 체크해 보면 되는데 실수로 META-INF를 META_INF로 만들었다. 경로를 잘 확인해 보자. 2022. 4. 6.
[오류 노트] : Command failed with error 48 (NamespaceExists): 'Collection already exists. 문제 멜론 프로젝트를 하면서 MongoDB에 저장된 인기 차트 데이터 중 "방탄소년단"을 "BTS"로 변경하려고 했는데 아래와 같은 오류가 떴다. Command failed with error 48 (NamespaceExists): 'Collection already exists. 해결 해당 Collection이 이미 존재해서 그렇다. 매번 삭제해 주거나 삭제 로직을 만들어주면 된다. protected boolean dropCollection(String colNm) { boolean res = false; if (mongodb.collectionExists(colNm)) { mongodb.dropCollection(colNm); res = true; } return res; } 함수를 추가해 컬렉션이 .. 2022. 4. 5.
[오류 노트] : Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set 문제 MongoDB와 Mariadb를 연동하는데 아래와 같은 문구가 떴다. 서버 시작이 안 되었다. Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set 해결 spring.jpa.database=mysql application.properties 위와 같이 코드를 적어줬다. JPA를 사용해 보려고 build.gradle에 추가해 주었는데 어떤 DB를 사용할 것인지 정의해 줘야하는 것 같다. 일단 Mariadb를 사용하긴 하는데 자동완성에 안 떠서 mysql로 설정해 주었다. 나중에 안 돌아가면 이 부분을 다시 mariadb로 설정해 줘봐야겠다. 어차피 둘 다 호환되니까 안 될 것 같지는 않다. 2022. 4. 4.
[오류 노트] : Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. ItW 문제 우분투,ubuntu에서 방화벽 설정을 하려고 했는데 apt install firewalld firewalld 설치를 하라고 떴다. 설치를 하려고 키워드를 입력하니 아래와 같은 오류가 뜨면서 진행이 안 되었다. Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. ItW 해결 sudo rm /var/lib/dpkg/lock* sudo dpgk --configure -a sudo apt update apt install firewalld 위와 같이 오류가 뜬 곳을 지워주고 다시 설정을 해주고 정상적으로 다운로드가 되었다. 2022. 4. 3.
[오류 노트] : git: 'create' is not a git command. See 'git --help'.The most similar command is reset 문제 git create vite frontend -- --template react 위 명령어로 react 프로젝트를 생성하려는 도중에 아래와 같은 오류가 떴다. git: 'create' is not a git command. See 'git --help'. The most similar command is reset 해결 npm create vite frontend -- --template react 첫 명령어가 git이 아닌, npm이다. 익숙함을 경계하자.. 혹시 찾을 사람이 있을까봐 올려둔다. 2022. 3. 25.
[오류 노트] : detecting mongodb server feature compatibility version failed와 mongo server error (mongoqueryexception): query failed with error code 13 and error message 'command find requires authentication' on server IP:27017 문제 CentOS에서 MongoDB를 설치하고 Studio 3T에 외부접속을 하려고 했는데 detecting mongodb server feature compatibility version failed 오류와 mongo server error (mongoqueryexception): query failed with error code 13 and error message 'command find requires authentication' on server IP:27017 이런 오류가 떴다. 해결 vi /etc/mongod.conf 파일에서 #security: #authorization : enabled ​security 부분을 주석처리하고 MongoDB PID를 조회하여 kill하고 다시 재실행 해주고.. 2022. 3. 22.
[오류 노트] : Error while powering on: Virtualized performance counters require at least one available functioning counter. Module 'VPMC' power on failed. Failed to start the virtual machine. 문제 Error while powering on: Virtualized performance counters require at least one available functioning counter. Module 'VPMC' power on failed. Failed to start the virtual machine. VMWare를 통해 Ubuntu 접속을 하려고 하는데 위와 같은 에러 메시지가 뜨면서 접속이 안 되는 문제가 생겼다. 해결 먼저 생성한 VMWare Ubuntu 파일을 열어준다. 잘 모르겠다면 아마 ISO 이미지 파일이 있는 곳으로 가면 될 것이다. 나는 git bash를 활용해 파일을 확인했고 확장자가 .vmx 인 파일을 vi 명령어를 통해 열어준다. 아래로 내리다 보면 vpmc.en.. 2022. 2. 18.
[오류 노트] : proxy: listen tcp4 0.0.0.0:80: bind: address alr eady in use sudo /etc/init.d/apache2 stop 문제 Error response from daemon: driver failed programming external connectivity on e ndpoint mywebserver (): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address alr eady in use 도커(docker)에서 컨테이너를 시작하려고 docker start mywebserver를 했는데 위와 같은 오류가 떴다. 80포트가 사용중인 게 문제였다. 해결 sudo /etc/init.d/apache2 stop 전에 실험삼아 돌렸던 아파치가 문제였다. 아파치를 종료해 주었더니 정상적으로 돌아왔다. 2022. 2. 13.
[오류 노트] : Class 'PenSetting' is public, should be declared in a file named 'PenSetting.java' 문제 Class 'PenSetting' is public, should be declared in a file named 'PenSetting.java' Run 시키는데 위와 같은 오류가 뜬다. 해결 클래스명과 파일명이 맞지 않아서 그렇다. 간단한 오류라 오타 확인을 해보면 될 것 같다. 2022. 1. 14.
[오류 노트] : (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape 문제 주피터 노트북에서 판다스를 통해 csv 파일을 읽으려 했는데 위와 같은 오류가 뜬다. 해결 파일 경로에서 / 문자를 써줘야 하는데 \ 문자를 써줘서 그렇다. c:\ 가 아니라 c:/ ~ / ~ / 이런 형식으로 바꿔주면 된다. 2022. 1. 7.
[오류 노트] : there is '1' error in 'web-common_3_0.xsd'. 문제 there is '1' error in 'web-common_3_0.xsd'. web-xml에 web-app 쪽에 빨간색 밑 줄이 쳐지는 현상이 발생했다. 해결 빨간 줄이 쳐진 web-app을 클릭하고 스페이스바를 한 번 치고 지워주면 된다. 꼭 스페이스바가 아니더라도 web-app를 지웠다 다시 적거나 하면 사라진다. 그 뒤, porject clean을 해주면 깔끔하게 사라진다. 2021. 12. 27.
[오류 노트] : cannot connect to the mongodb at :27017. error: network is unreachable. reason: couldn't connect to server :27017, connection attempt failed: socketexception: error connecting to27017 :: caused by :: ǻ ϳ ź ƿ ߽ θ . 문제 cannot connect to the mongodb at :27017. error: network is unreachable. reason: couldn't connect to server :27017, connection attempt failed: socketexception: error connecting to27017 :: caused by :: ǻ ϳ ź ƿ ߽ θ . MongoDB를 Robo 3T를 통해 외부 접속하려고 했는데 연결하는 도중에 이런 오류가 떴다. 해결 sudo service mongod status 우선 MongoDB의 작동 상태를 확인했는데 정상적으로 돌아가고 있었다. sudo service mongod stop MongoDB의 작동을 잠시 멈춰주고 멈춘 상태를 다시 .. 2021. 12. 24.
[오류 노트] : 오류: 기본 클래스 poly.util.EncryptTest을(를) 찾거나 로드할 수 없습니다. 문제 암호화 알고리즘 로직을 완성시키고 테스트 클래스를 만들어 작동하나 확인을 하려고 했는데 아래와 같은 오류가 떴다. 오류: 기본 클래스 poly.util.EncryptTest을(를) 찾거나 로드할 수 없습니다. 해결 구글링을 해보니 Project Clean을 하거나 Run Configurations에서 Main 체크와 Classpath 확인을 하라고 해서 다시 해봤고 Run setting도 삭제하고 다시 했는데 안 됐다. 의외로 간단하게 해결했다. Maven Update를 통해 해결이 완료되었다. 만약 Maven Update를 통해 해결이 안 된다면 Run Setting을 삭제하고 Project Clean을 하고 Maven Update를 진행해 보는 것도 좋다. 내가 그렇게 해결했기 때문이다. 2021. 12. 20.
[오류노트] : anaconda 오류 EnvironmentLocationNotFound: Not a conda environment: 문제 EnvironmentLocationNotFound: Not a conda environment: 아나콘다에서 주피터 노트북을 설치하려고 하는데 오류가 뜹니다. 해결 우선 해결을 완료했습니다. 설치한 파일을 지우고 다시 설치했습니다. 문제는 가상화 구축할 때 버전을 3.9로 넣었었는데 3.6으로 넣으니 정상 실행이 됩니다. conda create -n venv python=3.6 anacond 오류 해결을 위해 가상화 구축할 때 버전을 체크해 보면 좋을 것 같습니다. 2021. 11. 24.
[오류노트] : git push 후 멈춤 현상 오류 - Git Bash에서 GIit Push를 하면 멈추는 현상이 발생했습니다. - 시간이 지나도 반응이 없고 Ctrl + C를 통해 나오는 건 가능했습니다. - 몇 번을 시도해도 push에서 멈춤 현상이 반복적으로 나타났습니다. 해결 - CMD(명령프롬프트)창을 열어줍니다. | Git Bash가 아니라 CMD창 입니다. !! - 1번 박스처럼 .git 파일이 있는 경로로 이동해 줍니다. - 2번, 3번, 4번 박스처럼 git add, commit, push까지 진행을 해 줍니다. - push 명령어까지 진행했으면 5번 박스처럼 선택지가 나옵니다. - 6번 박스처럼 1을 선택해줍니다. 뭐가 꼬였던건지 인증이 성공된 계정이였는데 다시 성공이 됐다고 떴습니다. 다시 Git Bash에서 push를 해보면 멈.. 2021. 11. 21.
반응형