Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looks for /data/db folder when looking locally #4

Open
taragurung opened this issue Mar 11, 2020 · 1 comment
Open

Looks for /data/db folder when looking locally #4

taragurung opened this issue Mar 11, 2020 · 1 comment

Comments

@taragurung
Copy link

taragurung commented Mar 11, 2020

When trying to run the node application inside knote-js/01/ locally, it is looking for /data/db created else npm run mongodb will not run. Though this is not exactly an issue but may be if could have mentioned about volume too it would have been great.

@lyqht
Copy link
Collaborator

lyqht commented May 24, 2022

Able to replicate issue with the following logs

2022-05-24T23:05:10.387+0800 I CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2022-05-24T23:05:10.395+0800 I CONTROL  [initandlisten] MongoDB starting : pid=47241 port=27017 dbpath=/data/db 64-bit host=Estees-MacBook-Pro.local
2022-05-24T23:05:10.395+0800 I CONTROL  [initandlisten] db version v3.7.9-154-g51dce76
2022-05-24T23:05:10.395+0800 I CONTROL  [initandlisten] git version: 51dce76324173089098e8c9fd09e46b98b32adc4
2022-05-24T23:05:10.395+0800 I CONTROL  [initandlisten] allocator: system
2022-05-24T23:05:10.395+0800 I CONTROL  [initandlisten] modules: none
2022-05-24T23:05:10.395+0800 I CONTROL  [initandlisten] build environment:
2022-05-24T23:05:10.395+0800 I CONTROL  [initandlisten]     distarch: x86_64
2022-05-24T23:05:10.395+0800 I CONTROL  [initandlisten]     target_arch: x86_64
2022-05-24T23:05:10.395+0800 I CONTROL  [initandlisten] options: {}
2022-05-24T23:05:10.395+0800 I STORAGE  [initandlisten] exception in initAndListen: NonExistentPath: Data directory /data/db not found., terminating
2022-05-24T23:05:10.395+0800 I CONTROL  [initandlisten] now exiting
2022-05-24T23:05:10.396+0800 I CONTROL  [initandlisten] shutting down with code:100

Added additional instructions so that users can start mongod with a specified db path.

@lyqht lyqht mentioned this issue May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants