python - Can't connect mongodb after ubuntu-precise server restart -
i developing web scraping project on ubuntu server of 25gb hard disk space. using python scrapy , mongodb
last night harddisk full because of scraping 60,000 web pages. mongodb has put lock , unable access database shows error
function (){ return db.getcollectionnames(); } execute failed:exception: can't take write lock while out of disk space
so removed data stored in /var/lib/mongodb , run "rebbot" command shell restart server
when try run mongo on command line, error:
mongodb shell version: 2.4.5 connecting to: test thu jul 25 15:06:29.323 javascript execution failed: error: couldn't connect server 127.0.0.1:27017 @ src/mongo/shell/mongo.js:l112 exception: connect failed
guys please me can connect mongodb
the first thing find out whether mongodb running. can running following commands on shell:
ps aux | grep mongo
and:
netstat -an | grep ':27017'
if neither of has output, mongodb not running.
the best way find out why doesn't start in log file mongodb creates. located @ /var/log/mongodb/mongodb.log , should tell why mongodb refuses start.
Comments
Post a Comment