Failed to set up listener, error code 100, WiredTiger error
Margaret W.N
Posted on July 18, 2020
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
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
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
End of day 2!
Posted on July 18, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.