Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

340
Views
Unable to start mongodb servise in ubantu failed to connect on Ubantu 20.04

I have tried all previous commands like sudo chmod -R 0777 /var/lib/mongodb

sudo rm /var/lib/mongodb/mongod.lock
sudo mongod --repair
sudo service mongod start
sudo service mongod status

first command saying that file not availableand not removed i also gave the all priveleges to it

sudo chown -R mongodb:mongodb /var/lib/mongodb

but its not showing any thing also repairing commands not working also restart ubantu but still not working

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

When debugging any problems with a service on Ubuntu try this:

# cat /var/log/messages

There you may find out more information about the problem.

Also, in your case mongod should be logging to a folder like

/var/log/mongod 

Or something similar, and for that to happen the mongo user must have permissions to write there.

Allways look for the log, every service will log something either to their own file or to a system log. And hopefully, inside that log you’ll find the concrete problem that’s preventing your service from starting.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!