[BUG] fiftyone.core.service.DatabaseService failed to bind to port
See original GitHub issueSystem information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04.6 LTS
- FiftyOne installed from (pip or source): pip
- FiftyOne version (run
fiftyone --version):fiftyone 0.14.2 fiftyone-brain 0.7.2 fiftyone-db 0.3.0(Frompip list,fiftyone --versiongives the same error mentioned below) - Python version: 3.7.11
Commands to reproduce
As thoroughly as possible, please provide the Python and/or shell commands used to encounter the issue.
pip install --upgrade pip setuptools wheel
pip install fiftyone
import fiftyone
Describe the problem
Its getting following error whenever I try to import fiftyone.core.service.ServiceListenTimeout: fiftyone.core.service.DatabaseService failed to bind to port
Other info / logs
I went through the log file of mongo.log. This is the cause of the error I guess.
{"t":{"$date":"2022-01-02T18:27:15.553+05:30"},"s":"E", "c":"STORAGE", "id":22435, "ctx":"initandlisten","msg":"WiredTiger error","attr":{"error":17,"message":"[1641128235:553406][19468:0x7fd5375b8ac0], connection: __posix_open_file, 808: /mnt/nfshome2/FRACTAL/souvik.mandal/.fiftyone/var/lib/mongo/WiredTiger.wt: handle-open: open: File exists"}} {"t":{"$date":"2022-01-02T18:27:15.553+05:30"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.8"}} {"t":{"$date":"2022-01-02T18:27:15.554+05:30"},"s":"E", "c":"STORAGE", "id":22435, "ctx":"initandlisten","msg":"WiredTiger error","attr":{"error":1,"message":"[1641128235:554332][19468:0x7fd5375b8ac0], connection: __posix_open_file, 808: /mnt/nfshome2/FRACTAL/souvik.mandal/.fiftyone/var/lib/mongo/WiredTiger.wt: handle-open: open: Operation not permitted"}} {"t":{"$date":"2022-01-02T18:27:15.555+05:30"},"s":"W", "c":"STORAGE", "id":22347, "ctx":"initandlisten","msg":"Failed to start up WiredTiger under any compatibility version. This may be due to an unsupported upgrade or downgrade."}
Seems like it cannot open the WiredTiger.wt file. I checked the permission of the files. They are getting the following permission -rw-------. Any suggestions would be appreciated.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (3 by maintainers)
Top Related StackOverflow Question
@benjaminpkane It’s on a VM. I think I have figured the issue. The files(
WiredTiger.wt) are created for a different user than my user id. Is there a way I can create thoseWiredTiger.wtfiles with group read-write permission? Else I will try with docker.@kuntiik Yes, You might have to install libcurl4 (
sudo apt-get install libcurl4-openssl-dev) from the issue. I got a similar issue before.seeing this issue very frequenly happen in windows WSL2 + Vscode