MongoDB報錯:"assertion" : "can't map file memory"
PRIMARY> use identify;
switched to db identify
PRIMARY> db.dropDatabase();
{
"assertion" : "Can't take a write lock while out of disk space",
"assertionCode" : 14031,
"errmsg" : "db assertion failure",
"ok" : 0
}
PRIMARY>
-- 磁碟滿了
-- 清空磁碟之後,空餘2G空間之後,重啟mongodb,結果報錯如下:
PRIMARY> show dbs';
Thu Mar 21 23:32:34 uncaught exception: don't know how to show [dbs']
PRIMARY> show dbs;
Thu Mar 21 23:32:37 uncaught exception: listDatabases failed:{
"assertion" : "can't map file memory",
"assertionCode" : 10085,
"errmsg" : "db assertion failure",
"ok" : 0
}
PRIMARY>
網上找來很多資料,都搞不定,先記下來吧,空了繼續去研究。
繼續研究,網上很多資料,都說是磁碟空間不足,所以準備把剛匯入的3G的collection刪除掉,現在在mongo操作介面執行不了,直接進到linux目錄刪除檔案試試看
1 service mongo stop
2 rm -rf identifed.* --磁碟剩餘為6G。
3 service mongo start
4 mongo admin 登陸
5 show dbs;
PRIMARY> show dbs;
admin 0.203125GB
apollo 0.203125GB
apollodev 0.203125GB
ok,可以了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26230597/viewspace-1098509/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- eslint --fix 報錯 can't not find modulesEsLint
- redis : Can't save in background: fork: Cannot allocate memoryRedis
- Mysql報錯Fatal error:Can't open and lock privilege tablesMySqlError
- can't create PID file問題處理
- 【crontab】“bad minute”及“errors in crontab file, can't install”錯誤處理Error
- MySQL 建立外來鍵報錯Can't write; duplicate key in tableMySql
- MySQL 5.5 原始碼安裝報錯"[ERROR] Can't start server"MySql原始碼ErrorServer
- mha_replication_check Can't exec "mysqlbinlog": No such file or directoryMySql
- errors in crontab file, can't install. - linux crontabErrorLinux
- MYSQL報1022錯誤:Can't write;duplicate key in table '.....'MySql
- Can't use function return value in write context 使用empty遇到報錯FunctionContext
- mysql匯入報錯Variable 'sql_notes' can't be set to the value of 'NULL'MySqlNull
- RMAN的"rman: can't open target"錯誤
- Assertion failure 錯誤AI
- python報錯問題解決:'ascii' codec can't encode characterPythonASCII
- CentOS 6.5安裝perl模組報錯'Can't locate ExtUtils/Manifest.pm'CentOS
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- iOS小記--libtool: can't locate file for: -lPods-xxxiOS
- GTID複製報錯處理:Last_Error: Error 'Can't drop database 'test';ASTErrorDatabase
- MySQL報錯Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table.MySqlPluginError
- Python報錯:UnicodeDecodeError: 'gbk' codec can't decode byte ...PythonUnicodeError
- pip install 報錯UnicodeDecodeError: 'ascii' codec can't decode byteUnicodeErrorASCII
- 使用monaco編輯器 報錯Can only have one anonymous define call per script file
- MySQL 5.5 關閉資料庫報錯"Can't connect to local MySQL server through socket"MySql資料庫Server
- 小程式真機報錯errMsg: “hideLoading:fail:toast can‘t be found“ ?IDEAIAST
- Docker安裝 elasticsearch 報錯max virtual memory areas vm.max_map_count [65530] is too lowDockerElasticsearch
- can't assign requested address 錯誤解決
- rman: can't open target
- mongodb 啟動報錯MongoDB
- mongodb 報錯記錄MongoDB
- Dubbo廣播模式下報錯:Can't assign requested address解決辦法模式
- MySQL報錯'ERROR 2002 (HY000): Can't connect to local MySQL server through'MySqlErrorServer
- oracle logmnr 報錯"In Memory Undo is unsupported"Oracle
- 啟動infobright的時候遇見Can't find file: './mysql/host.frm'MySql
- mail can't send title on SolarisAI
- mongodb叢集報錯(mongos)MongoDB
- Android開發:Android虛擬機器啟動錯誤Can't find 'Linux version ' string in kernel image fileAndroid虛擬機Linux
- Docker 掛載許可權 chcon: can't apply partial context to unlabeled fileDockerAPPContext