-
-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Discussed in #152
Originally posted by blankenshipz May 20, 2025
I recently have gotten into a state where the chromadb doesn't seem to start, any ideas what I might be doing wrong? Here's a debug log from vectorcode ls
DEBUG:asyncio:Using selector: KqueueSelector
INFO:vectorcode.main:Collected CLI arguments: Config(no_stderr=False, recursive=False, include_hidden=False, to_be_deleted=[], pipe=False, action=<CliAction.ls: 'ls'>, files=[], project_root=None, query=None, db_url='http://127.0.0.1:8000', embedding_function='SentenceTransformerEmbeddingFunction', embedding_params={}, n_result=1, force=False, db_path='~/.local/share/vectorcode/chromadb/', db_log_path='~/.local/share/vectorcode/', db_settings=None, chunk_size=2500, overlap_ratio=0.2, query_multiplier=-1, query_exclude=[], reranker='CrossEncoderReranker', reranker_params={}, check_item=None, use_absolute_path=False, include=[<QueryInclude.path: 'path'>, <QueryInclude.document: 'document'>], hnsw={}, chunk_filters={}, encoding='utf8', hooks=False)
INFO:vectorcode.main:Project root is set to /Users/redacted/Code/project
WARNING:vectorcode.cli_utils:Loading default config.
INFO:vectorcode.main:Final configuration has been built: Config(no_stderr=False, recursive=False, include_hidden=False, to_be_deleted=[], pipe=False, action=<CliAction.ls: 'ls'>, files=[], project_root='/Users/redacted/Code/project', query=None, db_url='http://127.0.0.1:8000', embedding_function='SentenceTransformerEmbeddingFunction', embedding_params={}, n_result=1, force=False, db_path='~/.local/share/vectorcode/chromadb/', db_log_path='~/.local/share/vectorcode/', db_settings=None, chunk_size=2500, overlap_ratio=0.2, query_multiplier=-1, query_exclude=[], reranker='CrossEncoderReranker', reranker_params={}, check_item=None, use_absolute_path=False, include=[<QueryInclude.path: 'path'>, <QueryInclude.document: 'document'>], hnsw={}, chunk_filters={}, encoding='utf8', hooks=False)
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=8000 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=8000 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
WARNING:vectorcode.common:Starting bundled ChromaDB server at http://127.0.0.1:51666.
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=51666 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x10411f4d0>
DEBUG:httpcore.http11:send_request_headers.started request=<Request [b'GET']>
DEBUG:httpcore.http11:send_request_headers.complete
DEBUG:httpcore.http11:send_request_body.started request=<Request [b'GET']>
DEBUG:httpcore.http11:send_request_body.complete
DEBUG:httpcore.http11:receive_response_headers.started request=<Request [b'GET']>
DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'date', b'Tue, 20 May 2025 16:29:01 GMT'), (b'server', b'uvicorn'), (b'content-length', b'44'), (b'content-type', b'application/json'), (b'chroma-trace-id', b'0')])
INFO:httpx:HTTP Request: GET http://127.0.0.1:51666/api/v1/heartbeat "HTTP/1.1 200 OK"
DEBUG:httpcore.http11:receive_response_body.started request=<Request [b'GET']>
DEBUG:httpcore.http11:receive_response_body.complete
DEBUG:httpcore.http11:response_closed.started
DEBUG:httpcore.http11:response_closed.complete
DEBUG:vectorcode.common:Heartbeat http://127.0.0.1:51666/api/v1/heartbeat returned response=<Response [200 OK]>
DEBUG:httpcore.connection:close.started
DEBUG:httpcore.connection:close.complete
DEBUG:chromadb.config:Starting component System
DEBUG:chromadb.config:Starting component Posthog
DEBUG:chromadb.config:Starting component OpenTelemetryClient
DEBUG:chromadb.config:Starting component AsyncFastAPI
DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=8000 local_address=None timeout=None socket_options=None
DEBUG:httpcore.connection:connect_tcp.failed exception=ConnectError(OSError('All connection attempts failed'))
ERROR:vectorcode.main:Traceback (most recent call last):
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
yield
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpx/_transports/default.py", line 394, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request
raise exc from None
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pool_request.request
^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
raise exc
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request
stream = await self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpcore/_async/connection.py", line 124, in _connect
stream = await self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp
return await self._backend.connect_tcp(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp
with map_exceptions(exc_map):
~~~~~~~~~~~~~~^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/contextlib.py", line 162, in __exit__
self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: All connection attempts failed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/vectorcode/main.py", line 103, in async_main
return_val = await ls(final_configs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/vectorcode/subcommands/ls.py", line 39, in ls
client = await get_client(configs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/vectorcode/common.py", line 129, in get_client
__CLIENT_CACHE[client_entry] = await chromadb.AsyncHttpClient(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/chromadb/__init__.py", line 254, in AsyncHttpClient
return await AsyncClientCreator.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tenant=tenant, database=database, settings=settings
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/chromadb/api/async_client.py", line 69, in create
user_identity = await self.get_user_identity()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/chromadb/api/async_client.py", line 113, in get_user_identity
return await self._server.get_user_identity()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 134, in async_wrapper
return await f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/chromadb/api/async_fastapi.py", line 229, in get_user_identity
return UserIdentity(**(await self._make_request("get", "/auth/identity")))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/chromadb/api/async_fastapi.py", line 131, in _make_request
response = await self._get_client().request(method, url, **cast(Any, kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpx/_client.py", line 1540, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpx/_client.py", line 1629, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
)
^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpx/_client.py", line 1657, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpx/_client.py", line 1730, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpx/_transports/default.py", line 393, in handle_async_request
with map_httpcore_exceptions():
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/python@3.13/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/contextlib.py", line 162, in __exit__
self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/Users/redacted/.local/pipx/venvs/vectorcode/lib/python3.13/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: All connection attempts failed
INFO:vectorcode.main:Shutting down the bundled Chromadb instance.
```</div>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working