chroma
                                
                                 chroma copied to clipboard
                                
                                    chroma copied to clipboard
                            
                            
                            
                        [Bug]: Unable to create docker container
What happened?
Unable to create container. Below is the error.
$ docker pull chromadb/chroma
$ docker run -p 7000:7000 -e CHROMA_HOST_PORT=7000 chromadb/chroma
Starting 'uvicorn chromadb.app:app' with args: --workers 1 --host 0.0.0.0 --port 7000 --proxy-headers --log-config chromadb/log_config.yml --timeout-keep-alive 30
OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 4 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 5 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 6 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 7 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 8 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 9 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 10 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 11 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 12 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 13 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 14 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 15 of 16: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
DEBUG:    [12-04-2024 09:38:39] Registering provider: token_config
DEBUG:    [12-04-2024 09:38:39] Registering provider: user_token_config
DEBUG:    [12-04-2024 09:38:39] Registering provider: token
DEBUG:    [12-04-2024 09:38:39] Registering provider: token
WARNING:  [12-04-2024 09:38:40] chroma_server_nofile is set to 65535, but this is less than current soft limit of 1048576. chroma_server_nofile will not be set.
INFO:     [12-04-2024 09:38:40] Anonymized telemetry enabled. See                     https://docs.trychroma.com/telemetry for more information.
DEBUG:    [12-04-2024 09:38:40] Starting component System
DEBUG:    [12-04-2024 09:38:40] Starting component OpenTelemetryClient
DEBUG:    [12-04-2024 09:38:40] Starting component SimpleAssignmentPolicy
DEBUG:    [12-04-2024 09:38:40] Starting component SqliteDB
DEBUG:    [12-04-2024 09:38:40] Starting component QuotaEnforcer
DEBUG:    [12-04-2024 09:38:40] Starting component Posthog
DEBUG:    [12-04-2024 09:38:40] Starting component LocalSegmentManager
DEBUG:    [12-04-2024 09:38:40] Starting component SegmentAPI
INFO:     [12-04-2024 09:38:40] Started server process [1]
INFO:     [12-04-2024 09:38:40] Waiting for application startup.
DEBUG:    [12-04-2024 09:38:40] Stopping component System
DEBUG:    [12-04-2024 09:38:40] Stopping component SegmentAPI
DEBUG:    [12-04-2024 09:38:40] Stopping component LocalSegmentManager
DEBUG:    [12-04-2024 09:38:40] Stopping component Posthog
DEBUG:    [12-04-2024 09:38:40] Stopping component QuotaEnforcer
DEBUG:    [12-04-2024 09:38:40] Stopping component SqliteDB
DEBUG:    [12-04-2024 09:38:40] Stopping component SimpleAssignmentPolicy
DEBUG:    [12-04-2024 09:38:40] Stopping component OpenTelemetryClient
ERROR:    [12-04-2024 09:38:40] Traceback (most recent call last):
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 79, in serve
    await self.startup(sockets=sockets)
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 90, in startup
    await self.lifespan.startup()
  File "/usr/local/lib/python3.11/site-packages/uvicorn/lifespan/on.py", line 54, in startup
    await self.startup_event.wait()
  File "/usr/local/lib/python3.11/asyncio/locks.py", line 213, in wait
    await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 123, in run
    raise KeyboardInterrupt()
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 743, in lifespan
    await receive()
  File "/usr/local/lib/python3.11/site-packages/uvicorn/lifespan/on.py", line 137, in receive
    return await self.receive_queue.get()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/queues.py", line 158, in get
    await getter
asyncio.exceptions.CancelledError
Aborted!
Versions
Chroma v0.4.24
Relevant log output
No response
@Prazzy, in what environment are you executing this? Can this be a docker daemon restriction?
try:
docker run --ulimit nproc=65535:65535  -p 7000:7000 -e CHROMA_HOST_PORT=7000 chromadb/chroma
Does your user have privileged access (e.g. sudo)?