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 trial

Databases

mongo error when I try mongod

What can I do to fix this error. By the way i used brew to install it

2016-08-18T23:08:17.556-0400 I CONTROL [initandlisten] MongoDB starting : pid=52136 port=27017 dbpath=/data/db 64-bit host=temos-MacBook-Pro.local 2016-08-18T23:08:17.556-0400 I CONTROL [initandlisten] db version v3.2.8 2016-08-18T23:08:17.556-0400 I CONTROL [initandlisten] git version: ed70e33130c977bda0024c125b56d159573dbaf0 2016-08-18T23:08:17.556-0400 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2h 3 May 2016 2016-08-18T23:08:17.556-0400 I CONTROL [initandlisten] allocator: system 2016-08-18T23:08:17.556-0400 I CONTROL [initandlisten] modules: none 2016-08-18T23:08:17.556-0400 I CONTROL [initandlisten] build environment: 2016-08-18T23:08:17.556-0400 I CONTROL [initandlisten] distarch: x86_64 2016-08-18T23:08:17.556-0400 I CONTROL [initandlisten] target_arch: x86_64 2016-08-18T23:08:17.556-0400 I CONTROL [initandlisten] options: {} 2016-08-18T23:08:17.557-0400 E NETWORK [initandlisten] Failed to unlink socket file /tmp/mongodb-27017.sock errno:13 Permission denied 2016-08-18T23:08:17.557-0400 I - [initandlisten] Fatal Assertion 28578 2016-08-18T23:08:17.557-0400 I - [initandlisten]

***aborting after fassert() failure

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi! I don't know that this will help, but what happens if you type sudo mongod? Note: you may be required to enter your password by the system.

Wow ok all i had to do was use sudo lol Thanks for the help jennifer:)

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

As a side note anytime you see anything with "Permission denied" and you haven't run the command using sudo, that should probably be the first thing you try. At the bottom of the error message we see this:

Permission denied 2016-08-18T23:08:17.557-0400 I -

Glad you got it working! Good luck! :sparkles: