can not open on port 3000 from docker running container #186

Closed
opened 2025-11-11 14:10:29 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @hemangjoshi37a on GitHub (Jan 15, 2024).

I can not open website on localhost:3007

getting this error logs in the docker container console :

OpenBLAS blas_thread_init: pthread_create failed for thread 7 of 8: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
Failed to send telemetry event ClientStartEvent: can't start new thread
INFO:     Started server process [9]
INFO:     Waiting for application startup.
ERROR:    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 78, in serve
    await self.startup(sockets=sockets)
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 89, 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 747, 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!
OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 8: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 8: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 8: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 4 of 8: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 5 of 8: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 6 of 8: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 7 of 8: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
Failed to send telemetry event ClientStartEvent: can't start new thread
INFO:     Started server process [7]
INFO:     Waiting for application startup.
ERROR:    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 78, in serve
    await self.startup(sockets=sockets)
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 89, 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 747, 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!
Originally created by @hemangjoshi37a on GitHub (Jan 15, 2024). I can not open website on `localhost:3007` getting this error logs in the docker container console : ```bash OpenBLAS blas_thread_init: pthread_create failed for thread 7 of 8: Operation not permitted OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max Failed to send telemetry event ClientStartEvent: can't start new thread INFO: Started server process [9] INFO: Waiting for application startup. ERROR: 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 78, in serve await self.startup(sockets=sockets) File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 89, 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 747, 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! OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 8: Operation not permitted OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 8: Operation not permitted OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 8: Operation not permitted OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max OpenBLAS blas_thread_init: pthread_create failed for thread 4 of 8: Operation not permitted OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max OpenBLAS blas_thread_init: pthread_create failed for thread 5 of 8: Operation not permitted OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max OpenBLAS blas_thread_init: pthread_create failed for thread 6 of 8: Operation not permitted OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max OpenBLAS blas_thread_init: pthread_create failed for thread 7 of 8: Operation not permitted OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max Failed to send telemetry event ClientStartEvent: can't start new thread INFO: Started server process [7] INFO: Waiting for application startup. ERROR: 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 78, in serve await self.startup(sockets=sockets) File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 89, 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 747, 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! ```
Author
Owner

@tjbck commented on GitHub (Jan 15, 2024):

https://github.com/abetlen/llama-cpp-python/issues/450#issuecomment-1883092670

You might want to update your docker, Let us know if the issue persists after updating.

@tjbck commented on GitHub (Jan 15, 2024): https://github.com/abetlen/llama-cpp-python/issues/450#issuecomment-1883092670 You might want to update your docker, Let us know if the issue persists after updating.
Author
Owner

@hemangjoshi37a commented on GitHub (Jan 15, 2024):

@tjbck I am already running latest version of docker-ce :

(base) hemang@hemang-levono-15arr:~/Documents/GitHub/ollama-ui$ sudo apt-get upgrade docker-ce
[sudo] password for hemang: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
docker-ce is already the newest version (5:20.10.8~3-0~ubuntu-groovy).
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
@hemangjoshi37a commented on GitHub (Jan 15, 2024): @tjbck I am already running latest version of docker-ce : ```bash (base) hemang@hemang-levono-15arr:~/Documents/GitHub/ollama-ui$ sudo apt-get upgrade docker-ce [sudo] password for hemang: Reading package lists... Done Building dependency tree... Done Reading state information... Done docker-ce is already the newest version (5:20.10.8~3-0~ubuntu-groovy). Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ```
Author
Owner

@tjbck commented on GitHub (Jan 15, 2024):

(5:20.10.8~3-0~ubuntu-groovy).

Current latest version is v24.0.7, you might want to set up your Docker apt repository.

@tjbck commented on GitHub (Jan 15, 2024): > ```shell > (5:20.10.8~3-0~ubuntu-groovy). > ``` Current latest version is v24.0.7, you might want to set up your Docker apt repository.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#186