我已经成功加密了mongoDB中的通信,但是当我尝试启用数据加密时,我遇到了错误。我正在使用版本为3.2.4的mongoDB企业版。我在控制台中收到以下消息:
ERROR: child process failed, exited with error number 14
但是当我查看日志时,我看到如下详细错误:
Unable to retrieve key .system, error: there are existing data files, but no valid keystore could be located.
Fatal Assertion 28561
以下是我的配置文件的片段:
# enable authentication
security:
authorization: enabled
enableEncryption: true
encryptionKeyFile: /home/test/mongodb-keyfile
没有enableEncryption
和encryptionKeyFile
参数,它可以正常工作。谁能解释一下我在这里失踪了什么?谢谢!