-
Notifications
You must be signed in to change notification settings - Fork 619
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
how can I mount host OS directory? #1
Comments
It looks like you're trying to use a shared folder through Vagrant, is that the case? From the page linked in the logs:
|
Yes, I am using vagrant. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to start container and store data to host os directory
root@ubuntu-14:/vagrant/mongo# docker run -P -v /vagrant/mongo/data:/data/db:rw -d mongo
Here is error log
root@ubuntu-14:/vagrant/mongo# docker logs 13601a07c67cafe96c3b96df350e68fd8b086144a06f0bc045b1782ea0cc9924
mongod --help for help and startup options
2014-07-21T12:15:28.268+0000 [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=13601a07c67c
2014-07-21T12:15:28.269+0000 [initandlisten] db version v2.6.1
2014-07-21T12:15:28.269+0000 [initandlisten] git version: e887f95
2014-07-21T12:15:28.269+0000 [initandlisten] OpenSSL version: OpenSSL 1.0.1h-dev xx XXX xxxx
2014-07-21T12:15:28.269+0000 [initandlisten] build info: Linux 3c2933af3ca7 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:22:58 UTC 2013 x86_64 BOOST_LIB_VERSION=1_55
2014-07-21T12:15:28.269+0000 [initandlisten] allocator: tcmalloc
2014-07-21T12:15:28.269+0000 [initandlisten] options: {}
2014-07-21T12:15:28.276+0000 [initandlisten] WARNING: This file system is not supported. For further information see:
2014-07-21T12:15:28.277+0000 [initandlisten] http://dochub.mongodb.org/core/unsupported-filesystems
2014-07-21T12:15:28.277+0000 [initandlisten] Please notify MongoDB, Inc. if an unlisted filesystem generated this warning.
2014-07-21T12:15:28.280+0000 [initandlisten] journal dir=/data/db/journal
2014-07-21T12:15:28.282+0000 [initandlisten] recover begin
2014-07-21T12:15:28.282+0000 [initandlisten] info no lsn file in journal/ directory
2014-07-21T12:15:28.283+0000 [initandlisten] recover lsn: 0
2014-07-21T12:15:28.283+0000 [initandlisten] recover /data/db/journal/j._0
2014-07-21T12:15:28.283+0000 [initandlisten] recover info /data/db/journal/j._0 has zero length
2014-07-21T12:15:28.284+0000 [initandlisten] recover cleaning up
2014-07-21T12:15:28.284+0000 [initandlisten] removeJournalFiles
2014-07-21T12:15:28.286+0000 [initandlisten] warning exception removing /data/db/journal/j._0: boost::filesystem::remove: Text file busy: "/data/db/journal/j._0"
2014-07-21T12:15:28.289+0000 [initandlisten] Assertion failure !haveJournalFiles() src/mongo/db/dur_journal.cpp 258
2014-07-21T12:15:28.292+0000 [initandlisten] 0xbff226 0xbb69b8 0xb9c11f 0x7c889b 0x7ce312 0x7cedc7 0x7cf27d 0x7c04db 0x622575 0x62457b 0x5f1085 0x7fc97a26cb45 0x61f977
mongod(_ZN5mongo15printStackTraceERSo+0x26) [0xbff226]
mongod(_ZN5mongo10logContextEPKc+0x188) [0xbb69b8]
mongod(_ZN5mongo12verifyFailedEPKcS1_j+0xef) [0xb9c11f]
mongod(_ZN5mongo3dur18removeJournalFilesEv+0x51b) [0x7c889b]
mongod(_ZN5mongo3dur11RecoveryJob2goERSt6vectorIN5boost10filesystem4pathESaIS5_EE+0x222) [0x7ce312]
mongod(_ZN5mongo3dur8_recoverEv+0x847) [0x7cedc7]
mongod(_ZN5mongo3dur7recoverEv+0x1d) [0x7cf27d]
mongod(_ZN5mongo3dur7startupEv+0x2b) [0x7c04db]
mongod(_ZN5mongo14_initAndListenEi+0x6b5) [0x622575]
mongod(_ZN5mongo13initAndListenEi+0xb) [0x62457b]
mongod(main+0x2b5) [0x5f1085]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fc97a26cb45]
mongod() [0x61f977]
2014-07-21T12:15:28.293+0000 [initandlisten] dbexception during recovery: 0 assertion src/mongo/db/dur_journal.cpp:258
2014-07-21T12:15:28.293+0000 [initandlisten] exception in initAndListen: 0 assertion src/mongo/db/dur_journal.cpp:258, terminating
2014-07-21T12:15:28.293+0000 [initandlisten] dbexit:
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: going to close listening sockets...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: going to flush diaglog...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: going to close sockets...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: waiting for fs preallocator...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: lock for final commit...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: final commit...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: closing all files...
2014-07-21T12:15:28.293+0000 [initandlisten] closeAllFiles() finished
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: removing fs lock...
2014-07-21T12:15:28.295+0000 [initandlisten] dbexit: really exiting now
root@ubuntu-14:/vagrant/mongo#
root@ubuntu-14:/vagrant/mongo#
root@ubuntu-14:/vagrant/mongo#
root@ubuntu-14:/vagrant/mongo# clear
root@ubuntu-14:/vagrant/mongo# docker logs 13601a07c67cafe96c3b96df350e68fd8b086144a06f0bc045b1782ea0cc9924
mongod --help for help and startup options
2014-07-21T12:15:28.268+0000 [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=13601a07c67c
2014-07-21T12:15:28.269+0000 [initandlisten] db version v2.6.1
2014-07-21T12:15:28.269+0000 [initandlisten] git version: e887f95
2014-07-21T12:15:28.269+0000 [initandlisten] OpenSSL version: OpenSSL 1.0.1h-dev xx XXX xxxx
2014-07-21T12:15:28.269+0000 [initandlisten] build info: Linux 3c2933af3ca7 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:22:58 UTC 2013 x86_64 BOOST_LIB_VERSION=1_55
2014-07-21T12:15:28.269+0000 [initandlisten] allocator: tcmalloc
2014-07-21T12:15:28.269+0000 [initandlisten] options: {}
2014-07-21T12:15:28.276+0000 [initandlisten] WARNING: This file system is not supported. For further information see:
2014-07-21T12:15:28.277+0000 [initandlisten] http://dochub.mongodb.org/core/unsupported-filesystems
2014-07-21T12:15:28.277+0000 [initandlisten] Please notify MongoDB, Inc. if an unlisted filesystem generated this warning.
2014-07-21T12:15:28.280+0000 [initandlisten] journal dir=/data/db/journal
2014-07-21T12:15:28.282+0000 [initandlisten] recover begin
2014-07-21T12:15:28.282+0000 [initandlisten] info no lsn file in journal/ directory
2014-07-21T12:15:28.283+0000 [initandlisten] recover lsn: 0
2014-07-21T12:15:28.283+0000 [initandlisten] recover /data/db/journal/j._0
2014-07-21T12:15:28.283+0000 [initandlisten] recover info /data/db/journal/j._0 has zero length
2014-07-21T12:15:28.284+0000 [initandlisten] recover cleaning up
2014-07-21T12:15:28.284+0000 [initandlisten] removeJournalFiles
2014-07-21T12:15:28.286+0000 [initandlisten] warning exception removing /data/db/journal/j._0: boost::filesystem::remove: Text file busy: "/data/db/journal/j._0"
2014-07-21T12:15:28.289+0000 [initandlisten] Assertion failure !haveJournalFiles() src/mongo/db/dur_journal.cpp 258
2014-07-21T12:15:28.292+0000 [initandlisten] 0xbff226 0xbb69b8 0xb9c11f 0x7c889b 0x7ce312 0x7cedc7 0x7cf27d 0x7c04db 0x622575 0x62457b 0x5f1085 0x7fc97a26cb45 0x61f977
mongod(_ZN5mongo15printStackTraceERSo+0x26) [0xbff226]
mongod(_ZN5mongo10logContextEPKc+0x188) [0xbb69b8]
mongod(_ZN5mongo12verifyFailedEPKcS1_j+0xef) [0xb9c11f]
mongod(_ZN5mongo3dur18removeJournalFilesEv+0x51b) [0x7c889b]
mongod(_ZN5mongo3dur11RecoveryJob2goERSt6vectorIN5boost10filesystem4pathESaIS5_EE+0x222) [0x7ce312]
mongod(_ZN5mongo3dur8_recoverEv+0x847) [0x7cedc7]
mongod(_ZN5mongo3dur7recoverEv+0x1d) [0x7cf27d]
mongod(_ZN5mongo3dur7startupEv+0x2b) [0x7c04db]
mongod(_ZN5mongo14_initAndListenEi+0x6b5) [0x622575]
mongod(_ZN5mongo13initAndListenEi+0xb) [0x62457b]
mongod(main+0x2b5) [0x5f1085]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fc97a26cb45]
mongod() [0x61f977]
2014-07-21T12:15:28.293+0000 [initandlisten] dbexception during recovery: 0 assertion src/mongo/db/dur_journal.cpp:258
2014-07-21T12:15:28.293+0000 [initandlisten] exception in initAndListen: 0 assertion src/mongo/db/dur_journal.cpp:258, terminating
2014-07-21T12:15:28.293+0000 [initandlisten] dbexit:
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: going to close listening sockets...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: going to flush diaglog...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: going to close sockets...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: waiting for fs preallocator...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: lock for final commit...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: final commit...
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: closing all files...
2014-07-21T12:15:28.293+0000 [initandlisten] closeAllFiles() finished
2014-07-21T12:15:28.293+0000 [initandlisten] shutdown: removing fs lock...
2014-07-21T12:15:28.295+0000 [initandlisten] dbexit: really exiting now
The text was updated successfully, but these errors were encountered: