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

Puti Larasati
Puti Larasati
12,367 Points

No system.indexes in collections and sizes is 0.000GB in MongoDB

Is that okay, or am i missing some steps in installations?

2 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Puti;

Are you able to run/start your mongod instance and Mongo Shell?

What response to you get when you run the command show dbs from the Mongo Shell? If you are using the mongoBasics collection, what response do you get when you run a show collections in the Mongo Shell?

Post back when you get a chance.

Ken

Puti Larasati
Puti Larasati
12,367 Points

Yes i believe i can run mongod,

the result of show dbs in Mongo shell is

local 0.000GB 
mongoBasics 0.000GB

and result of show collection in mongoBasics collection is post -> no system.indexes

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Great! If you are able to access that information inside the Mongo Shell and switch to the mongoBasics collection everything seems to be running okay.

Have you loaded any data into the database? I believe the method the course uses is to use the load() method from inside the Mongo Shell. If you haven't done that it would make sense that your collection sizes are 0 and that you don't have any indexes.

If you post what you have tried to add to your database, or the steps you have taken in the course, it will help a bit to diagnose any issues.

Thanks,
Ken

Ken Alger
Ken Alger
Treehouse Teacher

Puti;

Were you able to get this resolved?

Ken