Chapter one lab

When doing the lab I’m using this command

Mongod —port 27000 —dbpath /data/dB —bind_ip “127.0.0.1,192.168.1.100” —fork —auth AND I’m getting this error cannot assign requested address

If you are doing the lab in vagrant, which I think you should, I do not think that 192.168.1.100 is the correct IP address. It looks more like 192.168.103.100.

Indeed I thought I had deleted this thread. Thanks gain

When I run my aggregation pipeline on the terminal I am getting 24 documents instead of 23

Hi @shantanumadane,

Can you please share a screenshot of what command exactly you are running so that we can understand better and help resolve the issue?

Thanks,
Muskan
Curriculum Support Engineer

I have used the below query

db.movies.aggregate([
{
$match:{“imdb.rating”:{$gte:7},genres:{$nin:[“Crime”,“Horror”]},rated:{$in:[“PG”,“G”]},languages:{$all:[“English”,“Japanese”]}}
}
])

I was getting 24 yesterday now I am getting 23

1 Like

Just the alignment was different yesterday

Hi @shantanumadane,

There might have been some mess up with the query parameter. However, 23 is the correct count.

If you have any further questions regarding the course, please create a topic in the discussion forum for M121: The MongoDB Aggregation Framework :

Thanks,
Sonali