Watch keynotes and sessions from MongoDB.live, our virtual developer conference.

Mongod command is aborting after fassert() failure

Whenever I run the command mongod, I am getting this output.

2020-06-22T10:18:36.490+0530 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2020-06-22T10:18:36.708+0530 W  ASIO     [main] No TransportLayer configured during NetworkInterface startup
2020-06-22T10:18:36.714+0530 I  CONTROL  [initandlisten] MongoDB starting : pid=12739 port=27017 dbpath=/data/db 64-bit host=mikhil-HP-Laptop-15-bs0xx
2020-06-22T10:18:36.714+0530 I  CONTROL  [initandlisten] db version v4.2.8
2020-06-22T10:18:36.714+0530 I  CONTROL  [initandlisten] git version: 43d25964249164d76d5e04dd6cf38f6111e21f5f
2020-06-22T10:18:36.714+0530 I  CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
2020-06-22T10:18:36.714+0530 I  CONTROL  [initandlisten] allocator: tcmalloc
2020-06-22T10:18:36.714+0530 I  CONTROL  [initandlisten] modules: none
2020-06-22T10:18:36.714+0530 I  CONTROL  [initandlisten] build environment:
2020-06-22T10:18:36.714+0530 I  CONTROL  [initandlisten]     distmod: ubuntu1804
2020-06-22T10:18:36.714+0530 I  CONTROL  [initandlisten]     distarch: x86_64
2020-06-22T10:18:36.714+0530 I  CONTROL  [initandlisten]     target_arch: x86_64
2020-06-22T10:18:36.715+0530 I  CONTROL  [initandlisten] options: {}
2020-06-22T10:18:36.715+0530 E  NETWORK  [initandlisten] Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted
2020-06-22T10:18:36.715+0530 F  -        [initandlisten] Fatal Assertion 40486 at src/mongo/transport/transport_layer_asio.cpp 684
2020-06-22T10:18:36.715+0530 F  -        [initandlisten] 

***aborting after fassert() failure

I tried deleting the file /tmp/mongodb-27017.sock and after restarting the mongod by sudo systemctl start mongod several times. However it is happening again and again. What should I do?

I suspect that a previous instance of mongod was started with the root user. As a result the file is now owned by root and cannot be deleted by your current user or the mongod user.

1 Like