MongoDB - 无法取消套接字致命断言

MongoDB - 无法取消套接字致命断言

2020-02-20T18:39:33.644+0530 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none' 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] MongoDB starting : pid=5391 port=27017 dbpath=/data/db 64-bit host=himanshu-pc 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] db version v4.2.3 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] git version: 6874650b362138df74be53d366bbefc321ea32d4 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1 11 Sep 2018 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] allocator: tcmalloc 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] modules: none 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] build environment: 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] distmod: ubuntu1804 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] distarch: x86_64 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] target_arch: x86_64 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] options: {} 2020-02-20T18:39:33.651+0530 E NETWORK [initandlisten] Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted 2020-02-20T18:39:33.651+0530 F - [initandlisten] Fatal Assertion 40486 at src/mongo/transport/transport_layer_asio.cpp 683 2020-02-20T18:39:33.651+0530 F - [initandlisten] ***fassert() 失败后中止

答案1

这很可能是你的问题:

NonExistentPath: Data directory /data/db not found., terminating

您的配置指向一个/data/db不存在的数据目录 ( )。请创建此目录或将您的配置编辑为有效的数据目录。

相关内容