【MongoDB】Failed to unlink socket file xxx.sock errno:1
今天用自動化工具啟動mongos失敗,檢視日誌,出現
[mongosMain] Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted
在/tmp目錄下,發現有用root跑的socket檔案,而實際上我是用apps跑得:
srwx------. 1 root root 0 Jan 8 11:21 mongodb-26000.sock
srwx------ 1 root root 0 Apr 28 11:12 mongodb-26679.sock
srwx------ 1 root root 0 Jan 5 2008 mongodb-27017.sock
刪除這些檔案,問題解決。
[mongosMain] Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted
在/tmp目錄下,發現有用root跑的socket檔案,而實際上我是用apps跑得:
srwx------. 1 root root 0 Jan 8 11:21 mongodb-26000.sock
srwx------ 1 root root 0 Apr 28 11:12 mongodb-26679.sock
srwx------ 1 root root 0 Jan 5 2008 mongodb-27017.sock
刪除這些檔案,問題解決。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30221425/viewspace-2106095/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Errno 9: Bad file descriptor in python socket錯誤處理薦Python
- Unlink of file '.git/objects/pack/pack-***.pack' failed. Should I try again? (y/n) (轉)GitObjectAI
- GPG key retrieval failed: [Errno 14] HTTP Error 404: Not FoundAIHTTPError
- Python BUG FileExistsError: [Errno 17] File exists: xxxPythonError
- ftp 報錯 550 Failed to open fileFTPAI
- The server quit without updating PID file (/var/mysqltest1.pid).[FAILEDServerUIMySqlAI
- 解決sphinx connection to 127.0.0.1:9312 failed (errno=0, msg=)127.0.0.1AI
- yum-GPG key retrieval failed: No such file or directoryAI
- VMware vmdk錯誤: Failed to lock the file.AI
- java.lang.Exception: Socket bind failed: [730048]JavaExceptionAI
- Oracle - ORA-09817: Write to audit file failedOracleAI
- Ioctl ASYNC_CONFIG error, errno = 1Error
- ORA-00245:control file backup failed;targetis likely on local file systemAI
- ORA-00245: control file backup failed; target is likely on a local file systemAI
- socket write failed(24) _Netbackup的問題解決AI
- Load of cache file failed. rc=1301AI
- ORA-19504: failed to create file "" 一則案例AI
- Mongodb安裝坑 - Service 'MongoDB Server' (MongDB) failed to start. Verify that you have...MongoDBServerAI
- socket程式設計(1)程式設計
- mongodb命令(1)MongoDB
- mysql啟動報錯Manager of pid-file quit without updating file.[FAILED]MySqlUIAI
- ORA-00245: control file backup operation failedAI
- ORA-09817: Write to audit file failed 的解決AI
- OPatch failed with error code 135, Given 'ocmrf' file does not existsAIError
- MongoDB報錯:"assertion" : "can't map file memory"MongoDB
- php-unlink()函式PHP函式
- VMware 啟動報錯 "Failed to lock the file"解決辦法AI
- 【ORACLE】ORA-00245: control file backup operation failedOracleAI
- remount of /system failed: Read-only file system原因及解決REMAI
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directoryAIErrorObject
- Opiino: Attach Failed! Error=-1 Ifvp=0AIError
- "log file sync"等待事件-1事件
- Linux errno 列表Linux
- LINUX errno大全Linux
- Unlink原理和一些手法
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- VMware虛擬機器Reason: Failed to lock the file問題處理虛擬機AI
- PROT-1 Failed to initialize ocrconfigAI