[BUG] fiftyone.core.service.DatabaseService failed to bind to port

See original GitHub issue

System 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 (From pip list, fiftyone --version gives 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:closed
  • Created 2 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
souvik3333commented, Jan 4, 2022

@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 those WiredTiger.wt files 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.

1reaction
shaojuncommented, Jun 21, 2022

seeing this issue very frequenly happen in windows WSL2 + Vscode

Read more comments on GitHub >

github_iconTop Results From Across the Web

fiftyone.core.service - Voxel51
Exception raised when a network-bound service fails to bind to a port. args. with_traceback (). Exception.with_traceback(tb) – set self.
Read more >
How can I resolve a "FAILED TO BIND TO PORT" error ...
I've noticed the following messages when trying to start Minecraft: ``` [08:03:26] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
Read more >
Installation & Troubleshooting - Lightning Flash - Read the Docs
... you may get the following error when importing FiftyOne: ServiceListenTimeout: fiftyone.core.service.DatabaseService failed to bind to port.
Read more >
Resolving the Server Error "Failed to bind to port" or "Address ...
xml (located in the configuration directory) and tries to bind to all the TCP/UDP ports specified in that file. These are typically chosen...
Read more >
fiftyone-brain - PyPI
The Software may not be resold as a service in any capacity. 2.4. The Software can be copied and distributed under the condition...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found