[SOLVED] HW -1.4 script fails and no user is created

about to fork child process, waiting until server is ready for connections.
forked process: 2246
ERROR: child process failed, exited with error number 100
MongoDB shell version: 3.2.22
connecting to: test
2019-02-18T08:02:13.037+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: errno:111 Connection refused
2019-02-18T08:02:13.038+0000 E QUERY [thread1] Error: couldn’t connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:229:14
@(connect):1:6

exception: connect failed
mongod: no process found
about to fork child process, waiting until server is ready for connections.
forked process: 2257
child process started successfully, parent exiting
vagrant@database:~/shared$ mongo
MongoDB shell version: 3.2.22
connecting to: test
Server has startup warnings:
2019-02-18T08:02:13.378+0000 I CONTROL [initandlisten]
2019-02-18T08:02:13.378+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.
2019-02-18T08:02:13.378+0000 I CONTROL [initandlisten] ** We suggest setting it to ‘never’
2019-02-18T08:02:13.378+0000 I CONTROL [initandlisten]
2019-02-18T08:02:13.378+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always’.
2019-02-18T08:02:13.378+0000 I CONTROL [initandlisten] ** We suggest setting it to ‘never’
2019-02-18T08:02:13.378+0000 I CONTROL [initandlisten]
MongoDB Enterprise > db.system.find().pretty()
MongoDB Enterprise > db.system.users.find().pretty()
MongoDB Enterprise > show dbs
local 0.000GB
MongoDB Enterprise > use admin
switched to db admin
MongoDB Enterprise > db.system.users.find().pretty()
MongoDB Enterprise >

Hi,

sorry about missing question but clicked before finished.

In the HW 1.4 i ran the setup scrip but it throws error, a mongo d seems to be started but nothing done
ther is no user alice in this mongod. Please help.

Regards Ralf

Did setup script complete successfully?
I don’t see admin DB in your snapshot
When you say use admin it just creates blank DB
Thats why db.system.users.find() not showing any results
For me
vagrant@database:~/shared$ mongo
MongoDB shell version: 3.2.22
connecting to: test
MongoDB Enterprise > db
test
MongoDB Enterprise > show dbs
admin 0.078GB
local 0.078GB
MongoDB Enterprise > use admin
switched to db admin

the problem is the script fails:
ERROR: child process failed, exited with error number 100
MongoDB shell version: 3.2.22
connecting to: test
2019-02-18T08:02:13.037+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: errno:111 Connection refused
2019-02-18T08:02:13.038+0000 E QUERY [thread1] Error: couldn’t connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:229:14
@(connect):1:clock6:

The rest of the output is showind that nothing was created!!

@Ralf_09970, what are the error messages you got when you tried to start mongod?

mongod is running at the end

as you can see i connect!

Sorry @Ralf_09970, what I see is:

This means mongod is not running at the given host and port. So one of the following is going on:
1.you stopped mongod OR
2.you started mongod on another host or port OR
3.you did not start mongod OR
4.mongod failed to start and produced an error message

Hi Steve,
this was a bit tricky.

because the first try to install was in a network with proxy authentication the first download from vagrant failed. but as the script starts the mongod of VErsion 3.2 automatically this creates datafiles build with wiredTiger.
every further try to create 2.6 Db through the skript seems to fail to start the mongod 2.6 and user creation, but started the 3.2 mongod successfull.

so i had to delete the datafile in datadir, repeat everything.
user alice was created.
Thank