Error code 137 - cache error

build error
Job failed with exit code: 137
the docker image is FROM ghcr.io/open-webui/open-webui:latest.

my cpu is of Upgrade, persistent storage = small.

This was working perfectly and stopped i think since 10 days ago

1 Like

The latest version of the Docker image may be causing problems, but if it is affected by the following bug, the fix is as follows.

pydantic==2.10.6

i have tried what was suggested, set various variables like HF_HOME, TRANSFORMERS_CACHE but still encounter the error. here is the log of the build:

build error

Job failed with exit code: 137

Build logs:

===== Build Queued at 2025-04-25 06:54:21 / Commit SHA: 7885211 =====

--> FROM ghcr.io/snekkenull/open-webui:latest@sha256:9e04d510fde7a38d54aa02603266998eec19104188424027cbaa0392d5a9add4
DONE 6.6s

DONE 22.9s

DONE 23.3s

--> WORKDIR /app/backend
DONE 0.0s

--> RUN mkdir -p /app/backend/open_webui/static
DONE 0.0s

--> RUN mkdir -p /app/backend/data
DONE 0.0s

--> RUN mkdir -p /data/cache
DONE 0.0s

--> RUN apt-get update && apt-get install -y apache2-utils sqlite3
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8792 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [512 B]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [260 kB]
Fetched 9307 kB in 1s (10.0 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libapr1 libaprutil1
Suggested packages:
  sqlite3-doc
The following NEW packages will be installed:
  apache2-utils libapr1 libaprutil1 sqlite3
0 upgraded, 4 newly installed, 0 to remove and 20 not upgraded.
Need to get 753 kB of archives.
After this operation, 1576 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 libapr1 amd64 1.7.2-3+deb12u1 [102 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 libaprutil1 amd64 1.6.3-1 [87.8 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 apache2-utils amd64 2.4.62-1~deb12u2 [210 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 sqlite3 amd64 3.40.1-2+deb12u1 [353 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 753 kB in 0s (23.3 MB/s)
Selecting previously unselected package libapr1:amd64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 17968 files and directories currently installed.)
Preparing to unpack .../libapr1_1.7.2-3+deb12u1_amd64.deb ...
Unpacking libapr1:amd64 (1.7.2-3+deb12u1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../libaprutil1_1.6.3-1_amd64.deb ...
Unpacking libaprutil1:amd64 (1.6.3-1) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../apache2-utils_2.4.62-1~deb12u2_amd64.deb ...
Unpacking apache2-utils (2.4.62-1~deb12u2) ...
Selecting previously unselected package sqlite3.
Preparing to unpack .../sqlite3_3.40.1-2+deb12u1_amd64.deb ...
Unpacking sqlite3 (3.40.1-2+deb12u1) ...
Setting up libapr1:amd64 (1.7.2-3+deb12u1) ...
Setting up sqlite3 (3.40.1-2+deb12u1) ...
Setting up libaprutil1:amd64 (1.6.3-1) ...
Setting up apache2-utils (2.4.62-1~deb12u2) ...
Processing triggers for libc-bin (2.36-9+deb12u9) ...
DONE 2.5s

--> RUN pip install -U pip wheel cmake
Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (24.0)
Collecting pip
  Downloading pip-25.0.1-py3-none-any.whl.metadata (3.7 kB)
Requirement already satisfied: wheel in /usr/local/lib/python3.11/site-packages (0.45.1)
Collecting cmake
  Downloading cmake-4.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.3 kB)
Downloading pip-25.0.1-py3-none-any.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 42.2 MB/s eta 0:00:00
Downloading cmake-4.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 27.9/27.9 MB 159.1 MB/s eta 0:00:00
Installing collected packages: pip, cmake
  Attempting uninstall: pip
    Found existing installation: pip 24.0
    Uninstalling pip-24.0:
      Successfully uninstalled pip-24.0
Successfully installed cmake-4.0.0 pip-25.0.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
DONE 5.2s

--> COPY webui3.db /webui.db
DONE 0.1s

--> RUN --mount=type=secret,id=ORIN_PASSWORD,mode=0444,required=true     htpasswd -bnBC 10 "" "$(cat /run/secrets/ORIN_PASSWORD)" | tr -d ':\n' > /tmp/password_hash &&     sqlite3 /webui.db "UPDATE auth SET password='$(cat /tmp/password_hash)' WHERE email='vilarin@huggingface.co';" &&     rm /tmp/password_hash
DONE 0.5s

--> RUN cp /webui.db /app/backend/data/webui.db
DONE 0.1s

--> RUN chmod -R 777 /app/backend/open_webui/static
DONE 0.1s

--> RUN chmod -R 777 /app/backend/data
DONE 0.1s

--> RUN chmod -R 777 /data
DONE 0.0s

--> Pushing image
DONE 20.6s

--> Exporting cache
1 Like

I wonder if the effects of this server error are still ongoing…

If I knew which space it was, I could give you more details. The original copy is fine…

here is the space where error occurs. i tried everything as people suggested, so environment variable may appear convoluted
https://huggingface.co/spaces/papaduvalier/webui5?logs=build

1 Like

It seems private… 404.

Sorry, I have made it public. I desperately need this OpenWebui running.

1 Like

I now got code 1 (could avoid 137?).

#FROM ghcr.io/snekkenull/open-webui:latest
FROM ghcr.io/snekkenull/open-webui:v0.5.18-ollama
--> COPY webui3.db /webui.db
DONE 0.0s

--> RUN --mount=type=secret,id=ORIN_PASSWORD,mode=0444,required=true     htpasswd -bnBC 10 "" "$(cat /run/secrets/ORIN_PASSWORD)" | tr -d ':\n' > /tmp/password_hash &&     sqlite3 /webui.db "UPDATE auth SET password='$(cat /tmp/password_hash)' WHERE email='vilarin@huggingface.co';" &&     rm /tmp/password_hash

--> ERROR: secret ORIN_PASSWORD: not found

you can put anything in ORIN_PASSWORD under settings secret. what is the code btw?

1 Like

Sorry I got 137 now, too…

and from your experience what do you think the cause of the error is? thanks very much for helping me. i am a novice on Huggingface Space

1 Like

what do you think the cause of the error is?

OOM. Out of memory… The simplest solution may be to upgrade the hardware, but it’s frustrating to have problems booting up.

i am already upgraded; it used to work on the free standard. current configuration is
CPU upgrade * 8 vCPU * 32 GB RAM, with 20GB persistent storage

1 Like

Even this results in a 137 error…

Is the container too large, or is the container configuration conflicting with something prohibited by Hugging Face? I’m not sure…

FROM ghcr.io/snekkenull/open-webui:latest

WORKDIR /app/backend

RUN mkdir -p /app/backend/open_webui/static
RUN mkdir -p /app/backend/data
RUN mkdir -p /data/cache

# Install necessary dependencies
#RUN apt-get update && apt-get install -y apache2-utils sqlite3
#RUN pip install -U pip wheel cmake
#RUN pip install -U open-webui

# Update the admin password in webui.db by setting secret ORIN_PASSWORD, admin account is vilarin@huggingface.co
COPY webui3.db /webui.db
#RUN --mount=type=secret,id=ORIN_PASSWORD,mode=0444,required=true \
#    htpasswd -bnBC 10 "" "$(cat /run/secrets/ORIN_PASSWORD)" | tr -d ':\n' > /tmp/password_hash && \
#    sqlite3 /webui.db "UPDATE auth SET password='$(cat /tmp/password_hash)' WHERE email='vilarin@huggingface.co';" && \
#    rm /tmp/password_hash

# Copy the updated webui.db to the desired location
RUN cp /webui.db /app/backend/data/webui.db
# Modify and Copy config.json to set the default lang and preset prompts.
# COPY config.json /app/backend/data/config.json

RUN chmod -R 777 /app/backend/open_webui/static
RUN chmod -R 777 /app/backend/data
RUN chmod -R 777 /data

EXPOSE 7860

#CMD ["bash", "start.sh"]

Thanks for your help; it’s really much appreciated. I will try and find a way.

1 Like