Error Chapter 1 - Lab - Creating First Application User

I’m getting an error when executing validate_lab_first_application_user:

Client experienced a timeout when connecting to the database - check that mongod
is running on the correct port, and that the ‘m103-application-user’ user
authenticates against the admin database.

Hi Luciano_77636,

Please make sure mongod is:

  • running on port 27000
  • data files are stored in /data/db/
  • listens to connections from the IP address and localhost
  • m103-admin user also exists on the same configuration
  • Authentication is enabled while running mongod
  • m103-application-user is created on admin database

If it still does not solve the issue, please share your configuration files and output of:

    mongo --port 27000 --username m103-application-user --password m103-application-pass --authenticationDatabase admin