fiftyone
fiftyone copied to clipboard
[BUG] Restart in debug mode in vscode raised an error 100 in Ubuntu
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 20.04 amd64
- FiftyOne installed from (pip or source): pip
-
FiftyOne version (run
fiftyone --version
): 0.13.3 - Python version: 3.7.11 Anaconda
Commands to reproduce
When I debug this code.
import fiftyone as fo
if __name__ == '__main__':
dataset = fo.zoo.load_zoo_dataset('open-images-v6',
split='train',
label_types=['detections'],
classes=['Bicycle', 'Motorcycle'],
max_samples=500)
session = fo.launch_app(dataset=dataset, port=5151)
while True:
try:
pass
except KeyboardInterrupt as e:
print("KeyboardInterrupt exception, closing...")
session.close()
break
Using launch.json
file for vscode.
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
Describe the problem
I was testing the code above using the launch.json
file in vscode.
The first run was successful. But still gave something.
Exception in thread Thread-7:
Traceback (most recent call last):
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/fiftyone/core/uid.py", line 86, in send_import_event
with ua.HTTPRequest() as http:
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/universal_analytics/requests.py", line 27, in __init__
self.session = session or self.http_client_cls(headers=self.headers)
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/httpx/_client.py", line 646, in __init__
proxy_map = self._get_proxy_map(proxies, allow_env_proxies)
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/httpx/_client.py", line 216, in _get_proxy_map
for key, url in get_environment_proxies().items()
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/httpx/_client.py", line 216, in <dictcomp>
for key, url in get_environment_proxies().items()
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/httpx/_config.py", line 324, in __init__
raise ValueError(f"Unknown scheme for proxy URL {url!r}")
ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:7891/')
Downloading split 'train' to '/home/dennis/fiftyone/open-images-v6/train' if necessary
Necessary images already downloaded
Existing download of split 'train' is sufficient
Loading 'open-images-v6' split 'train'
100% |███████████████████████████████████████████████████████████████████████████████████| 500/500 [18.3s elapsed, 0s remaining, 51.1 samples/s]
Dataset 'open-images-v6-train-500' created
App launched. Point your web browser to http://localhost:5151
When the session was running, I changed the value of max_samples
to 50000
.
And I hit the restart button on the debug bar.
Then the program gave this.
{"t":{"$date":"2021-10-13T07:37:01.435Z"},"s":"I", "c":"CONTROL", "id":20697, "ctx":"main","msg":"Renamed existing log file","attr":{"oldLogPath":"/home/dennis/.fiftyone/var/lib/mongo/log/mongo.log","newLogPath":"/home/dennis/.fiftyone/var/lib/mongo/log/mongo.log.2021-10-13T07-37-01"}}
Subprocess ['/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/fiftyone/db/bin/mongod', '--dbpath', '/home/dennis/.fiftyone/var/lib/mongo', '--logpath', '/home/dennis/.fiftyone/var/lib/mongo/log/mongo.log', '--port', '0', '--nounixsocket'] exited with error 100:
Uncaught exception
Traceback (most recent call last):
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/dennis/.vscode/extensions/ms-python.python-2021.10.1317843341/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module>
cli.main()
File "/home/dennis/.vscode/extensions/ms-python.python-2021.10.1317843341/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 444, in main
run()
File "/home/dennis/.vscode/extensions/ms-python.python-2021.10.1317843341/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 285, in run_file
runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/dennis/Program/Yolo-FastestV2/fiftyone_dataset.py", line 1, in <module>
import fiftyone as fo
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/fiftyone/__init__.py", line 25, in <module>
from fiftyone.__public__ import *
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/fiftyone/__public__.py", line 14, in <module>
foo.establish_db_conn(config)
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/fiftyone/core/odm/database.py", line 77, in establish_db_conn
port = _db_service.port
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/fiftyone/core/service.py", line 295, in port
return self._wait_for_child_port()
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/fiftyone/core/service.py", line 179, in _wait_for_child_port
return find_port()
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/retrying.py", line 49, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/retrying.py", line 212, in call
raise attempt.get()
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/retrying.py", line 247, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/six.py", line 719, in reraise
raise value
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/retrying.py", line 200, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "/home/dennis/anaconda3/envs/fiftyone/lib/python3.7/site-packages/fiftyone/core/service.py", line 177, in find_port
raise ServiceListenTimeout(etau.get_class_name(self), port)
fiftyone.core.service.ServiceListenTimeout: fiftyone.core.service.DatabaseService failed to bind to port
After this, every import fiftyone
would give a error 100.
Code to reproduce issue
See above.
Other info / logs
log file /home/dennis/.fiftyone/var/lib/mongo/log/mongo.log.2021-10-13T07-37-01
{"t":{"$date":"2021-10-13T15:33:44.138+08:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2021-10-13T15:33:44.141+08:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-10-13T15:33:44.141+08:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2021-10-13T15:33:44.142+08:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":402787,"port":0,"dbPath":"/home/dennis/.fiftyone/var/lib/mongo","architecture":"64-bit","host":"dennis-x1-carbon"}}
{"t":{"$date":"2021-10-13T15:33:44.142+08:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.2","gitVersion":"15e73dc5738d2278b688f8929aee605fe4279b0e","openSSLVersion":"OpenSSL 1.1.1f 31 Mar 2020","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu1804","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2021-10-13T15:33:44.142+08:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"20.04"}}}
{"t":{"$date":"2021-10-13T15:33:44.142+08:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"port":0,"unixDomainSocket":{"enabled":false}},"storage":{"dbPath":"/home/dennis/.fiftyone/var/lib/mongo"},"systemLog":{"destination":"file","path":"/home/dennis/.fiftyone/var/lib/mongo/log/mongo.log"}}}}
{"t":{"$date":"2021-10-13T15:33:44.144+08:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/home/dennis/.fiftyone/var/lib/mongo","storageEngine":"wiredTiger"}}
{"t":{"$date":"2021-10-13T15:33:44.144+08:00"},"s":"I", "c":"STORAGE", "id":22297, "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]}
{"t":{"$date":"2021-10-13T15:33:44.144+08:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=7321M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
{"t":{"$date":"2021-10-13T15:33:44.573+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1634110424:573657][402787:0x7f3d3a98dcc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 4 through 5"}}
{"t":{"$date":"2021-10-13T15:33:44.615+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1634110424:615856][402787:0x7f3d3a98dcc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 5 through 5"}}
{"t":{"$date":"2021-10-13T15:33:44.668+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1634110424:668004][402787:0x7f3d3a98dcc0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 4/754688 to 5/256"}}
{"t":{"$date":"2021-10-13T15:33:44.736+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1634110424:736571][402787:0x7f3d3a98dcc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 4 through 5"}}
{"t":{"$date":"2021-10-13T15:33:44.776+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1634110424:776425][402787:0x7f3d3a98dcc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 5 through 5"}}
{"t":{"$date":"2021-10-13T15:33:44.804+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1634110424:804537][402787:0x7f3d3a98dcc0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}}
{"t":{"$date":"2021-10-13T15:33:44.804+08:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1634110424:804596][402787:0x7f3d3a98dcc0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}}
{"t":{"$date":"2021-10-13T15:33:44.900+08:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":756}}
{"t":{"$date":"2021-10-13T15:33:44.900+08:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-10-13T15:33:44.903+08:00"},"s":"I", "c":"STORAGE", "id":4366408, "ctx":"initandlisten","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}}
{"t":{"$date":"2021-10-13T15:33:44.907+08:00"},"s":"I", "c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp monitor starting"}
{"t":{"$date":"2021-10-13T15:33:44.915+08:00"},"s":"W", "c":"CONTROL", "id":22120, "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
{"t":{"$date":"2021-10-13T15:33:44.915+08:00"},"s":"W", "c":"CONTROL", "id":22140, "ctx":"initandlisten","msg":"This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning","tags":["startupWarnings"]}
{"t":{"$date":"2021-10-13T15:33:44.915+08:00"},"s":"W", "c":"CONTROL", "id":22184, "ctx":"initandlisten","msg":"Soft rlimits too low","attr":{"currentValue":8192,"recommendedMinimum":64000},"tags":["startupWarnings"]}
{"t":{"$date":"2021-10-13T15:33:44.924+08:00"},"s":"I", "c":"STORAGE", "id":20536, "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
{"t":{"$date":"2021-10-13T15:33:44.928+08:00"},"s":"I", "c":"FTDC", "id":20625, "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/home/dennis/.fiftyone/var/lib/mongo/diagnostic.data"}}
{"t":{"$date":"2021-10-13T15:33:44.933+08:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"127.0.0.1"}}
{"t":{"$date":"2021-10-13T15:33:44.933+08:00"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":46279,"ssl":"off"}}
{"t":{"$date":"2021-10-13T15:33:45.032+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47592","connectionId":1,"connectionCount":1}}
{"t":{"$date":"2021-10-13T15:33:45.033+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn1","msg":"client metadata","attr":{"remote":"127.0.0.1:47592","client":"conn1","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:33:45.054+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47594","connectionId":2,"connectionCount":2}}
{"t":{"$date":"2021-10-13T15:33:45.055+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47596","connectionId":3,"connectionCount":3}}
{"t":{"$date":"2021-10-13T15:33:45.055+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn2","msg":"client metadata","attr":{"remote":"127.0.0.1:47594","client":"conn2","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:33:45.056+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn3","msg":"client metadata","attr":{"remote":"127.0.0.1:47596","client":"conn3","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:33:45.074+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47598","connectionId":4,"connectionCount":4}}
{"t":{"$date":"2021-10-13T15:33:45.076+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn4","msg":"client metadata","attr":{"remote":"127.0.0.1:47598","client":"conn4","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:33:45.088+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47600","connectionId":5,"connectionCount":5}}
{"t":{"$date":"2021-10-13T15:33:45.094+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn5","msg":"client metadata","attr":{"remote":"127.0.0.1:47600","client":"conn5","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:35:14.959+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47668","connectionId":6,"connectionCount":6}}
{"t":{"$date":"2021-10-13T15:35:14.967+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn6","msg":"client metadata","attr":{"remote":"127.0.0.1:47668","client":"conn6","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:35:14.993+08:00"},"s":"I", "c":"STORAGE", "id":20320, "ctx":"conn2","msg":"createCollection","attr":{"namespace":"fiftyone.samples.2021.10.13.15.35.14","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"5e70281b-82b8-42e1-a175-ebd367f95813"}},"options":{}}}
{"t":{"$date":"2021-10-13T15:35:15.023+08:00"},"s":"I", "c":"INDEX", "id":20345, "ctx":"conn2","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"fiftyone.samples.2021.10.13.15.35.14","index":"_id_","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-10-13T15:35:15.023+08:00"},"s":"I", "c":"INDEX", "id":20345, "ctx":"conn2","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"fiftyone.samples.2021.10.13.15.35.14","index":"filepath_1","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-10-13T15:35:15.026+08:00"},"s":"I", "c":"STORAGE", "id":20320, "ctx":"conn2","msg":"createCollection","attr":{"namespace":"fiftyone.frames.samples.2021.10.13.15.35.14","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"dffd75e8-f877-44f6-b7a3-8c12ee9502c5"}},"options":{}}}
{"t":{"$date":"2021-10-13T15:35:15.061+08:00"},"s":"I", "c":"INDEX", "id":20345, "ctx":"conn2","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"fiftyone.frames.samples.2021.10.13.15.35.14","index":"_id_","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-10-13T15:35:15.062+08:00"},"s":"I", "c":"INDEX", "id":20345, "ctx":"conn2","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"fiftyone.frames.samples.2021.10.13.15.35.14","index":"_sample_id_1_frame_number_1","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-10-13T15:36:13.637+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47688","connectionId":7,"connectionCount":7}}
{"t":{"$date":"2021-10-13T15:36:13.637+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn7","msg":"client metadata","attr":{"remote":"127.0.0.1:47688","client":"conn7","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:36:13.639+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47690","connectionId":8,"connectionCount":8}}
{"t":{"$date":"2021-10-13T15:36:13.639+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn8","msg":"client metadata","attr":{"remote":"127.0.0.1:47690","client":"conn8","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:36:13.643+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47692","connectionId":9,"connectionCount":9}}
{"t":{"$date":"2021-10-13T15:36:13.644+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn9","msg":"client metadata","attr":{"remote":"127.0.0.1:47692","client":"conn9","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:36:13.646+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47694","connectionId":10,"connectionCount":10}}
{"t":{"$date":"2021-10-13T15:36:13.647+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn10","msg":"client metadata","attr":{"remote":"127.0.0.1:47694","client":"conn10","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:36:13.652+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47696","connectionId":11,"connectionCount":11}}
{"t":{"$date":"2021-10-13T15:36:13.653+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn11","msg":"client metadata","attr":{"remote":"127.0.0.1:47696","client":"conn11","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:36:14.896+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47698","connectionId":12,"connectionCount":12}}
{"t":{"$date":"2021-10-13T15:36:14.896+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn12","msg":"client metadata","attr":{"remote":"127.0.0.1:47698","client":"conn12","doc":{"driver":{"name":"PyMongo","version":"3.12.0"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0"}}}
{"t":{"$date":"2021-10-13T15:36:15.860+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47702","connectionId":13,"connectionCount":13}}
{"t":{"$date":"2021-10-13T15:36:15.860+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn13","msg":"client metadata","attr":{"remote":"127.0.0.1:47702","client":"conn13","doc":{"driver":{"name":"PyMongo|Motor","version":"3.12.0|2.5.1"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0|Tornado 6.1"}}}
{"t":{"$date":"2021-10-13T15:36:15.866+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47704","connectionId":14,"connectionCount":14}}
{"t":{"$date":"2021-10-13T15:36:15.867+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn14","msg":"client metadata","attr":{"remote":"127.0.0.1:47704","client":"conn14","doc":{"driver":{"name":"PyMongo|Motor","version":"3.12.0|2.5.1"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0|Tornado 6.1"}}}
{"t":{"$date":"2021-10-13T15:36:15.868+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47706","connectionId":15,"connectionCount":15}}
{"t":{"$date":"2021-10-13T15:36:15.868+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47708","connectionId":16,"connectionCount":16}}
{"t":{"$date":"2021-10-13T15:36:15.870+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn16","msg":"client metadata","attr":{"remote":"127.0.0.1:47708","client":"conn16","doc":{"driver":{"name":"PyMongo|Motor","version":"3.12.0|2.5.1"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0|Tornado 6.1"}}}
{"t":{"$date":"2021-10-13T15:36:15.871+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn15","msg":"client metadata","attr":{"remote":"127.0.0.1:47706","client":"conn15","doc":{"driver":{"name":"PyMongo|Motor","version":"3.12.0|2.5.1"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0|Tornado 6.1"}}}
{"t":{"$date":"2021-10-13T15:36:15.872+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47710","connectionId":17,"connectionCount":17}}
{"t":{"$date":"2021-10-13T15:36:15.873+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47712","connectionId":18,"connectionCount":18}}
{"t":{"$date":"2021-10-13T15:36:15.875+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn17","msg":"client metadata","attr":{"remote":"127.0.0.1:47710","client":"conn17","doc":{"driver":{"name":"PyMongo|Motor","version":"3.12.0|2.5.1"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0|Tornado 6.1"}}}
{"t":{"$date":"2021-10-13T15:36:15.875+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn18","msg":"client metadata","attr":{"remote":"127.0.0.1:47712","client":"conn18","doc":{"driver":{"name":"PyMongo|Motor","version":"3.12.0|2.5.1"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0|Tornado 6.1"}}}
{"t":{"$date":"2021-10-13T15:36:15.891+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47714","connectionId":19,"connectionCount":19}}
{"t":{"$date":"2021-10-13T15:36:15.893+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47716","connectionId":20,"connectionCount":20}}
{"t":{"$date":"2021-10-13T15:36:15.893+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn19","msg":"client metadata","attr":{"remote":"127.0.0.1:47714","client":"conn19","doc":{"driver":{"name":"PyMongo|Motor","version":"3.12.0|2.5.1"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0|Tornado 6.1"}}}
{"t":{"$date":"2021-10-13T15:36:15.894+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn20","msg":"client metadata","attr":{"remote":"127.0.0.1:47716","client":"conn20","doc":{"driver":{"name":"PyMongo|Motor","version":"3.12.0|2.5.1"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0|Tornado 6.1"}}}
{"t":{"$date":"2021-10-13T15:36:15.901+08:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:47718","connectionId":21,"connectionCount":21}}
{"t":{"$date":"2021-10-13T15:36:15.902+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn21","msg":"client metadata","attr":{"remote":"127.0.0.1:47718","client":"conn21","doc":{"driver":{"name":"PyMongo|Motor","version":"3.12.0|2.5.1"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.11.0-37-generic"},"platform":"CPython 3.7.11.final.0|Tornado 6.1"}}}
{"t":{"$date":"2021-10-13T15:36:51.750+08:00"},"s":"I", "c":"-", "id":20883, "ctx":"conn4","msg":"Interrupted operation as its client disconnected","attr":{"opId":2610}}
{"t":{"$date":"2021-10-13T15:36:51.750+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn5","msg":"Connection ended","attr":{"remote":"127.0.0.1:47600","connectionId":5,"connectionCount":20}}
{"t":{"$date":"2021-10-13T15:36:51.750+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn3","msg":"Connection ended","attr":{"remote":"127.0.0.1:47596","connectionId":3,"connectionCount":19}}
{"t":{"$date":"2021-10-13T15:36:51.750+08:00"},"s":"I", "c":"-", "id":20883, "ctx":"conn1","msg":"Interrupted operation as its client disconnected","attr":{"opId":2608}}
{"t":{"$date":"2021-10-13T15:36:51.750+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn6","msg":"Connection ended","attr":{"remote":"127.0.0.1:47668","connectionId":6,"connectionCount":18}}
{"t":{"$date":"2021-10-13T15:36:51.750+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn2","msg":"Connection ended","attr":{"remote":"127.0.0.1:47594","connectionId":2,"connectionCount":17}}
{"t":{"$date":"2021-10-13T15:36:51.756+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn4","msg":"Connection ended","attr":{"remote":"127.0.0.1:47598","connectionId":4,"connectionCount":15}}
{"t":{"$date":"2021-10-13T15:36:51.756+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1","msg":"Connection ended","attr":{"remote":"127.0.0.1:47592","connectionId":1,"connectionCount":16}}
{"t":{"$date":"2021-10-13T15:36:51.786+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn21","msg":"Connection ended","attr":{"remote":"127.0.0.1:47718","connectionId":21,"connectionCount":14}}
{"t":{"$date":"2021-10-13T15:36:51.786+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn19","msg":"Connection ended","attr":{"remote":"127.0.0.1:47714","connectionId":19,"connectionCount":11}}
{"t":{"$date":"2021-10-13T15:36:51.786+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn16","msg":"Connection ended","attr":{"remote":"127.0.0.1:47708","connectionId":16,"connectionCount":9}}
{"t":{"$date":"2021-10-13T15:36:51.786+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn15","msg":"Connection ended","attr":{"remote":"127.0.0.1:47706","connectionId":15,"connectionCount":8}}
{"t":{"$date":"2021-10-13T15:36:51.786+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn14","msg":"Connection ended","attr":{"remote":"127.0.0.1:47704","connectionId":14,"connectionCount":7}}
{"t":{"$date":"2021-10-13T15:36:51.786+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn12","msg":"Connection ended","attr":{"remote":"127.0.0.1:47698","connectionId":12,"connectionCount":6}}
{"t":{"$date":"2021-10-13T15:36:51.787+08:00"},"s":"I", "c":"-", "id":20883, "ctx":"conn10","msg":"Interrupted operation as its client disconnected","attr":{"opId":2580}}
{"t":{"$date":"2021-10-13T15:36:51.786+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn20","msg":"Connection ended","attr":{"remote":"127.0.0.1:47716","connectionId":20,"connectionCount":12}}
{"t":{"$date":"2021-10-13T15:36:51.786+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn17","msg":"Connection ended","attr":{"remote":"127.0.0.1:47710","connectionId":17,"connectionCount":13}}
{"t":{"$date":"2021-10-13T15:36:51.786+08:00"},"s":"I", "c":"-", "id":20883, "ctx":"conn13","msg":"Interrupted operation as its client disconnected","attr":{"opId":2617}}
{"t":{"$date":"2021-10-13T15:36:51.787+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn10","msg":"Connection ended","attr":{"remote":"127.0.0.1:47694","connectionId":10,"connectionCount":5}}
{"t":{"$date":"2021-10-13T15:36:51.787+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn13","msg":"Connection ended","attr":{"remote":"127.0.0.1:47702","connectionId":13,"connectionCount":4}}
{"t":{"$date":"2021-10-13T15:36:51.787+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn9","msg":"Connection ended","attr":{"remote":"127.0.0.1:47692","connectionId":9,"connectionCount":3}}
{"t":{"$date":"2021-10-13T15:36:51.787+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn8","msg":"Connection ended","attr":{"remote":"127.0.0.1:47690","connectionId":8,"connectionCount":1}}
{"t":{"$date":"2021-10-13T15:36:51.786+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn18","msg":"Connection ended","attr":{"remote":"127.0.0.1:47712","connectionId":18,"connectionCount":10}}
{"t":{"$date":"2021-10-13T15:36:51.787+08:00"},"s":"I", "c":"-", "id":20883, "ctx":"conn7","msg":"Interrupted operation as its client disconnected","attr":{"opId":2579}}
{"t":{"$date":"2021-10-13T15:36:51.787+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn11","msg":"Connection ended","attr":{"remote":"127.0.0.1:47696","connectionId":11,"connectionCount":2}}
{"t":{"$date":"2021-10-13T15:36:51.788+08:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn7","msg":"Connection ended","attr":{"remote":"127.0.0.1:47688","connectionId":7,"connectionCount":0}}
What areas of FiftyOne does this bug affect?
- [x]
App
: FiftyOne application issue - [ ]
Core
: Corefiftyone
Python library issue - [ ]
Server
: Fiftyone server issue
Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the FiftyOne codebase?
- [ ] Yes. I can contribute a fix for this bug independently.
- [ ] Yes. I would be willing to contribute a fix for this bug with guidance from the FiftyOne community.
- [x] No. I cannot contribute a bug fix at this time.
I first report this issue in #1303
Thanks @yuxiaoyuan0406. I can reproduce, and am looking into it. I'll give an update today or tomorrow.
It seems to work if I remove ~/.fiftyone/
. But this is an ugly solution.
Yes, I believe. ~/.fiftyone/var/lib/mongo/mongod.lock
is the exact file that needs to be removed. But it is an ugly solution. Need a little more time with this.
A restart like this is a bit of a race condition because the database service is shutting down and starting up at almost the same time.
removing ~/.fiftyone/ worked for me, Hope this issue will be fixed.
how do u remove this file if you're working with a sagemaker notebook?
removing ~/.fiftyone/var/lib/mongo/mongod.lock did not work for me but removing the ~/.fiftyone/ solved the problem.
seeing this issue very frequenly happen in windows WSL2 + Vscode
seeing this issue very frequenly happen in windows WSL2 + Vscode
Me too :(
This issue can be circumvented if you configure your own MongoDB connection. Documentation can be found here.
We would like resolve this at some point, but it is hard to say how much effort it will take to debug the exact cause and provide a robust fix.
@benjaminpkane any updates on this issue? seems like it frequently happens with VSCode, any ways to prevent it?
run ps -eaf | grep mongod
then kill the process (sudo kill
run ps -eaf | grep mongod then kill the process (sudo kill )
Spot on! That solved the problem for me
Remove ~/.fiftyone/ will result in error 14, kill mongod process works for me.
any update?