Lab Configure a Sharded Cluster

when I launch csrs_1.conf get error like this image
And here content of this file:
image
the same as requirement

Please run without fork option as indicated in your error message or check mongod.log
It will give additional details on why it is failing

@Ramachandra_37567 here is new announcement
2020-04-08T04:01:15.048+0000 F CONTROL [main] Failed global initialization: FileNotOpen: Failed to open “/var/mongodb/db/csrs1/mongod.log”

When you use fork creation of logfile is a must
So it is unable to create the logfile and failing to bring up mongod
Did you create the necessary directories with required permissions?

@Ramachandra_37567 What do I need more ?

Please check dbpath,logpath,keyfile paths in your config file
They start with /

The listing you did was in a different directory path
Please be clear about absolute and relative paths in Unix/Linux
Always run pwd command to know where you are
~ indicates your home dir
~/…/ means your homedir followed by other dirs

@Ramachandra_37567 you mean that right ?

Yes
I think your mongod is up and running as i see datafiles,logfiles
Make sure dirs,keyfiles all have proper permissions as per your lab requirements

@Ramachandra_37567 that means I need to create folders csrs1,2,3 and copy mongod.log into them ?

Yes dirs need to be created for csrs
No need to copy mongod.log
It gets created automatically provided logpath dir exists

Hi @Dinh_67963,

Please let us know if you are still stuck with this issue.

~ Shubham

I got it , fixed it and passed the lab already :slight_smile:

Thanks a lot

Vào Th 4, 8 thg 4, 2020 lúc 23:59 Shubham_Ranjan via MongoDB University Discussion Forum mongodb_university@discoursemail.com đã viết: