at this point I am thinking the scripts are wrong which would not surprise me since it is not the first time it happens. mongod is running under mongodb user and I suppose the script expects it to run under vagrant user which is not possible.
vagrant@m103:/var$ validate_lab_change_dbpath
Mongod was not started by the correct user - remember NOT to run mongod as root.
vagrant@m103:/var$ ps -aux | grep mongodb
mongodb 6294 1.1 2.4 1103240 51128 ? Sl 20:40 0:02 /usr/bin/mongod --config /etc/mongod.conf
vagrant 6339 0.0 0.0 8868 648 pts/0 S+ 20:44 0:00 grep --color=auto mongodb
vagrant@m103:/var$ mongo --port 27000
MongoDB shell version v3.6.8
connecting to: mongodb://127.0.0.1:27000/
MongoDB server version: 3.6.8
Welcome to the MongoDB shell.
For interactive help, type “help”.
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
MongoDB Enterprise >
However, mongodb is started (see above) but it is reported as stopped:
vagrant@m103:/etc/init.d$ sudo service mongod status
mongod stop/waiting
vagrant@m103:/etc/init.d$
vagrant@m103:/etc/init.d$ sudo service mongod start
mongod start/running, process 6560
vagrant@m103:/etc/init.d$ sudo service mongod status
mongod stop/waiting
vagrant@m103:/etc/init.d$
At this point I am thinking that the provisioning of the VM is also wrong which would again not surprise me.