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 NIXPACKS_PATH /opt/venv/bin:$NIXPACKS_PATH

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": "ON_FAILURE",

"restartPolicyMaxRetries": 20

},

"network": {

"session_affinity": true }

}

View Deploy details

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

1 Replies


Welcome!

Sign in to your Railway account to join the conversation.

Loading...