Failed to set up listener, error code 100, WiredTiger error

mtee

Margaret W.N

Posted on July 18, 2020

Failed to set up listener, error code 100, WiredTiger error

SocketException: Address already in use

The error:

2020-07-18T05:35:32.189+0300 E STORAGE [initandlisten] Failed to set up listener: SocketException: Address already in use 2020-07-18T05:35:32.189+0300 I CONTROL [initandlisten] now exiting 2020-07-18T05:35:32.189+0300 I CONTROL [initandlisten]....

Running mongod --port 27030 (a different port) fixes it.

Error code: 100

Alt Text
Quick fix run as a super user.It should work but its not recommended - i don't know why.
Can be fixed by changing the user permissions on the data/db directory. Its currently read only run sudo chmod -R 600 data/db.

WiredTiger error

Alt Text

Fixed it by changing the wireTiger user group permissions on the db directory.
sudo chown mt:mt data/db/WiredTiger* mt:mt in this case should be your primary user group.
You'll probably to run into another error relating to user group permissions, so it's safer to use sudo chown -R mt:mt data/db to change the user group permissions for all directories.

Run mongod --port 27030 again.

And you should get this

Alt Text
Alt Text

End of day 2!

💖 💪 🙅 🚩
mtee
Margaret W.N

Posted on July 18, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related