• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

Not able to start mongoDB

 
Greenhorn
Posts: 26
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends,
I want to create replica set and for that I had to configure mongodb for internal authentication. I did as per the mongodb documentation. I created key file and gave "600" access to file. I am using root user to start the server but getting following error.

2019-03-17T10:40:28.195+0300 I ACCESS   [main] error opening file: /etc/key: Permission denied



I don't understand why for opening file user root is getting permission denied error though I've give read and write access to this file for user root.

Need urgent help to sort this issue.

Regards,
Vikas
 
VikasKumar Gupta
Greenhorn
Posts: 26
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am able to solve this issue.
Normally mongodb gets installed with user "mongod", so ownership has to be changed to mongod by using following command.

"sudo chown mongod:mongod /etc/key". then I was able to start the mongodb.

Regards,
Vikas
 
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic