【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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Can't open file: (errno: 24)
- Python BUG FileExistsError: [Errno 17] File exists: xxxPythonError
- openGauss lo_unlink
- Mongodb安裝坑 - Service 'MongoDB Server' (MongDB) failed to start. Verify that you have...MongoDBServerAI
- 上傳報錯:Upload Failed: Your upload has failed a virus scan. Please choose another file.AI
- socket程式設計(1)程式設計
- remount of /system failed: Read-only file system原因及解決REMAI
- nginx: [error] open() “/var/run/nginx/nginx.pid“ failed (2: No such file or directory)NginxErrorAI
- [20200416]ORA-01187 cannot read from file because it failed verification tests.AI
- Linux errno 列表Linux
- errno的用法
- Android Bugs——Error:java.lang.RuntimeException: Some file crunching failed, see logs for detailsAndroidErrorJavaExceptionAI
- Unlink原理和一些手法
- 堆溢位的unlink利用方法
- python 讀取 csv 檔案報錯:file = builtins.open (filename, mode, buffering),OSError: [Errno 22] Invalid argumentPythonUIError
- Linux堆溢位漏洞利用之unlinkLinux
- ctf pwn中的unlink exploit(堆利用)
- 【python socket程式設計】—— 1.初探Python程式設計
- 字串函式 sha1_file ()字串函式
- 【故障處理】Linux下匯入匯出“IMP-00030: failed to create file ... for write”LinuxAI
- Laravel5.6安裝:Warning: require(../vendor/autoload.php): failed to open stream: No such file or directoryLaravelUIPHPAI
- Node.js+express+MongoDB+socket.io做的一個即時聊天案例Node.jsExpressMongoDB
- Node.js+express+MongoDB+socket.io 做的一個即時聊天案例Node.jsExpressMongoDB
- OSError: [Errno 22] Invalid argumentError
- Shell重定向&>file、2>&1、1>&2的區別
- 《Google File System》讀書筆記(1)Go筆記
- flutter packages get - pub get failed (1)解決方案FlutterPackageAI
- 一、errno perror strerror的使用Error
- [極客大挑戰 2019]Secret File 1
- mongodb錯誤解決辦法-bash: ./mongod: cannot execute binary file: Exec format errorMongoDBORMError
- imagick使用readImage報錯 Failed to read the file 或者沒有報錯內容的解決方法AI
- MongoDB基本介紹與安裝(1)MongoDB
- windows10下的堆結構及unlink分析Windows
- error: install: %pre scriptlet failed (2), skipping cvuqdisk-1.0.9-1ErrorAI
- django中出現 錯誤 Errno 10053Django
- [Design Pattern] Upload big file - 1. Background & Solution overviewView
- mac scrcpy 報錯 does not exist or is not a regular file,ERROR: Server connection failed(scrcpy mac與極空間衝突)MacErrorServerAI
- 第一次開啟Android Studio建立專案執行報錯Failed to open zip fileAndroidAI
- socket