Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Not able to start mongoDB  RSS feed

 
Greenhorn
Posts: 26
1
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
ice is for people that are not already cool. Chill with this tiny ad:
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!