Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBrian Patterson
19,588 PointsNot sure if Mongo is running?
Not sure if Mongo is running or not.
mongod
2018-03-16T10:50:32.855+0000 I CONTROL [initandlisten] MongoDB starting : pid=3883 port=27017 dbpath=/data/db 64-bit host=Brian-Pattersons-iMac.local
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] db version v3.6.3
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2n 7 Dec 2017
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] allocator: system
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] modules: none
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] build environment:
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] distarch: x86_64
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] target_arch: x86_64
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] options: {}
2018-03-16T10:50:32.856+0000 I STORAGE [initandlisten] exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory: /data/db, terminating
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] now exiting
2018-03-16T10:50:32.856+0000 I CONTROL [initandlisten] shutting down with code:100
1 Answer
Ken Alger
Treehouse TeacherBrian;
It looks like you need to change permissions on the /data/db
directory to allow write access.
Ken