Translate

2017년 7월 25일 화요일

[Python] mongod 실행 중 ERROR: Insufficient free space for journal files 오류 해결법


Laptop
운영체제Ubuntu 16.04 LTS 64bit

mongod 명령어를 입력했을 때 ERROR: Insufficient free space for journal files 가 포함된 로그가 출력되면서 제대로 되지 않을 때가 있는데, --smallfiles 옵션을 추가하면 해결된다.
(에러 바로 아래에 [initandlisten] Please make at least 3379MB available in /data/db/journal or use --smallfiles 라는 로그가 함께 나오긴 한다.)

$ sudo mongod --smallfiles

혹은 mongod.conf 파일을 생성하여 smallfiles=true를 입력하면 된다.
/etc/ 에 생성했을 경우, 실행은 다음과 같이 한다.

$ sudo mongod -f /etc/mongod.conf



그 외에, listen이나 bind 등 연결 관련 오류가 난다면 이전 연결이 종료가 제대로 되지 않은 상태이므로
$ sudo killall -15 mongod 를 해보고 실행해보면 된다.

참고 사이트:
https://stackoverflow.com/questions/14584393/why-getting-error-mongod-dead-but-subsys-locked-and-insufficient-free-space-for

https://stackoverflow.com/questions/6478113/unable-to-start-mongodb-local-server

0 개의 댓글:

댓글 쓰기