Django App / Docker Error)?
renzocm
TRIALOP

2 years ago

this is the error that i get:

12 [stage-0 8/13] RUN --mount=type=cache,id=s/bea669b9-eea4-4ee4-91b1-f53251e0daec-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

12 0.367 Error: [Errno 26] Text file busy: '/opt/venv/bin/python'

12 ERROR: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1

[stage-0 8/13] RUN --mount=type=cache,id=s/bea669b9-eea4-4ee4-91b1-f53251e0daec-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:

0.367 Error: [Errno 26] Text file busy: '/opt/venv/bin/python'

Dockerfile:28

26 | ENV NIXPACKSPATH /opt/venv/bin:$NIXPACKSPATH

27 | COPY . /app/.

28 | >>> RUN --mount=type=cache,id=s/bea669b9-eea4-4ee4-91b1-f53251e0daec-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

29 |

30 | # build phase

ERROR: failed to solve: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1

Error: Docker build failed

I didn't move anything on my railway.json or init commands

railway.json: {
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "python -m pip install --upgrade pip && pip install -r requirements.txt && python manage.py collectstatic --no-input"
},
"deploy": {
"numReplicas": 1,
"startCommand": "python manage.py migrate && gunicorn Certax.wsgi:application",
"healthcheckPath": "/extranet/login",
"sleepApplication": false,
"restartPolicyType": "ONFAILURE", "restartPolicyMaxRetries": 20 }, "network": { "sessionaffinity": true }
}

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

1 Replies


Loading...