Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
development
*Location*: https://docs.mongodb.org/v2.6/tutorial/deploy-replica-set-with-auth/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0
*Referrer*: https://docs.mongodb.org/v2.6/tutorial/deploy-replica-set/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: tutorial/deploy-replica-set-with-auth
development *Location*: https://docs.mongodb.org/v2.6/tutorial/deploy-replica-set-with-auth/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0 *Referrer*: https://docs.mongodb.org/v2.6/tutorial/deploy-replica-set/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: tutorial/deploy-replica-set-with-auth
-
0.25
Description
I tried to generate the Auth key and i keep getting this error,
error getting file /home/ec2-user/mongodb-keyfile: Permission denied
The file has all the right permissions
$ ls -lrt
rw------. 1 mongod mongod 1004 Nov 5 21:23 mongodb-keyfile
$ ls -lZart mongodb-keyfile
rw------. mongod mongod system_u:object_r:mongod_var_lib_t:s0 mongodb-keyfile
in my /etc/mongo.conf i have this variable set as
keyFile=/home/ec2-user/mongodb-keyfile