Failed to start Verba on Docker in Windows

Description

The build was complete… but when try to start the error happens.

Using the docker compose only with the OpenAI env.

Server Setup Information

  • Verba Version: 2.1.0
  • Deployment Method: docker
  • Multi Node? Number of Running Nodes: no
  • Client Language and Version: Docker
  • Multitenancy?: no

Any additional Information

/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:112: UserWarning: Protobuf gencode version 5.27.2 is older than the runtime version 5.28.2 at grpc_health/v1/health.proto. Please avoid checked-in Protobuf gencode that can be obsolete.
warnings.warn(
OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 2: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
Traceback (most recent call last):
File “/usr/local/bin/verba”, line 33, in
sys.exit(load_entry_point(‘goldenverba’, ‘console_scripts’, ‘verba’)())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/bin/verba”, line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/importlib/metadata/init.py”, line 202, in load
module = import_module(match.group(‘module’))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1147, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/Verba/goldenverba/server/cli.py”, line 6, in
from goldenverba import verba_manager
File “/Verba/goldenverba/verba_manager.py”, line 16, in
from goldenverba.components.document import Document
File “/Verba/goldenverba/components/document.py”, line 2, in
from goldenverba.components.chunk import Chunk
File “/Verba/goldenverba/components/chunk.py”, line 1, in
from spacy.tokens import Doc, Span
File “/usr/local/lib/python3.11/site-packages/spacy/init.py”, line 6, in
from .errors import setup_default_warnings
File “/usr/local/lib/python3.11/site-packages/spacy/errors.py”, line 3, in
from .compat import Literal
File “/usr/local/lib/python3.11/site-packages/spacy/compat.py”, line 4, in
from thinc.util import copy_array
File “/usr/local/lib/python3.11/site-packages/thinc/init.py”, line 2, in
import numpy
File “/usr/local/lib/python3.11/site-packages/numpy/init.py”, line 130, in
from numpy.config import show as show_config
File “/usr/local/lib/python3.11/site-packages/numpy/config.py”, line 4, in
from numpy.core._multiarray_umath import (
File “/usr/local/lib/python3.11/site-packages/numpy/core/init.py”, line 24, in
from . import multiarray
File “/usr/local/lib/python3.11/site-packages/numpy/core/multiarray.py”, line 10, in
from . import overrides
File “/usr/local/lib/python3.11/site-packages/numpy/core/overrides.py”, line 8, in
from numpy.core._multiarray_umath import (
File “”, line 216, in _lock_unlock_module
KeyboardInterrupt

hi!

I have seen some issues from users while running Verba on Window :thinking:

Are you running on WSL?

No… is a docker for Windows 10.

I’m setting the docker with 3 CPUS now. Was 2.

Did not worked!

/usr/local/lib/python3.11/site-packages/google/protobuf/runtime_version.py:112: UserWarning: Protobuf gencode version 5.27.2 is older than the runtime version 5.28.2 at grpc_health/v1/health.proto. Please avoid checked-in Protobuf gencode that can be obsolete.
warnings.warn(
OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 2: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
Traceback (most recent call last):
File “/usr/local/bin/verba”, line 33, in
sys.exit(load_entry_point(‘goldenverba’, ‘console_scripts’, ‘verba’)())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/bin/verba”, line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/importlib/metadata/init.py”, line 202, in load
module = import_module(match.group(‘module’))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1147, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/Verba/goldenverba/server/cli.py”, line 6, in
from goldenverba import verba_manager
File “/Verba/goldenverba/verba_manager.py”, line 16, in
from goldenverba.components.document import Document
File “/Verba/goldenverba/components/document.py”, line 2, in
from goldenverba.components.chunk import Chunk
File “/Verba/goldenverba/components/chunk.py”, line 1, in
from spacy.tokens import Doc, Span
File “/usr/local/lib/python3.11/site-packages/spacy/init.py”, line 6, in
from .errors import setup_default_warnings
File “/usr/local/lib/python3.11/site-packages/spacy/errors.py”, line 3, in
from .compat import Literal
File “/usr/local/lib/python3.11/site-packages/spacy/compat.py”, line 4, in
from thinc.util import copy_array
File “/usr/local/lib/python3.11/site-packages/thinc/init.py”, line 2, in
import numpy
File “/usr/local/lib/python3.11/site-packages/numpy/init.py”, line 130, in
from numpy.config import show as show_config
File “/usr/local/lib/python3.11/site-packages/numpy/config.py”, line 4, in
from numpy.core._multiarray_umath import (
File “/usr/local/lib/python3.11/site-packages/numpy/core/init.py”, line 24, in
from . import multiarray
File “/usr/local/lib/python3.11/site-packages/numpy/core/multiarray.py”, line 10, in
from . import overrides
File “/usr/local/lib/python3.11/site-packages/numpy/core/overrides.py”, line 8, in
from numpy.core._multiarray_umath import (
File “”, line 216, in _lock_unlock_module
KeyboardInterrupt

I managed to fix. Changed the dockerfile. I’m going to send here for your information.

I’ll try to configure the service now.

Here goes de Dockerfile:

# Usando uma imagem Python baseada no Debian Bullseye
FROM python:3.12-bullseye

# Instalar dependências do sistema necessárias
RUN apt-get update \
    && apt-get install -y \
    libopenblas-dev \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENV UWSGI_CHEAPER 2
ENV UWSGI_PROCESSES 4

WORKDIR /Verba
COPY . /Verba

# Instalar dependências Python
RUN pip install -e '.'

EXPOSE 8000
CMD ["verba", "start", "--port", "8000", "--host", "0.0.0.0"]
1 Like

Opa! Muito bom!!!

Obrigado :slight_smile:

1 Like

Imagina! Sigo testando e vou trazendo novidades pra vocês!

At the end the CPUs was not the issue. Change the base imagem solved.
Try the Dockerfile that I sent.