build fails
hacikho
HOBBYOP

a month ago

my build constantly fails today, it seems a railway issue.

"stage-0

RUN python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

10m 13s

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5e6fa53d10>, 'Connection to 142.111.48.253 timed out. (connect timeout=100.0)')': /simple/fastapi/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5e714d4bd0>, 'Connection to 142.111.48.253 timed out. (connect timeout=100.0)')': /simple/fastapi/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5e6fa59ad0>, 'Connection to 142.111.48.253 timed out. (connect timeout=100.0)')': /simple/fastapi/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5e6fa5a150>, 'Connection to 142.111.48.253 timed out. (connect timeout=100.0)')': /simple/fastapi/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5e6fa5a790>, 'Connection to 142.111.48.253 timed out. (connect timeout=100.0)')': /simple/fastapi/

ERROR: Could not find a version that satisfies the requirement fastapi>=0.115.0 (from versions: none)

ERROR: No matching distribution found for fastapi>=0.115.0

Build Failed: build daemon returned an 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"

$10 Bounty

2 Replies

ayitsomar
PRO

a month ago

Your build step itself is correct.

Change this line:

pip install -r requirements.txt

to:

pip install --index-url https://pypi.org/simple --default-timeout=120 -r requirements.txt

That alone resolves ~80% of these Railway failures.


ayitsomar

Your build step itself is correct.Change this line:pip install -r requirements.txtto:pip install --index-url https://pypi.org/simple --default-timeout=120 -r requirements.txtThat alone resolves ~80% of these Railway failures.

hacikho
HOBBYOP

a month ago

unfraternally it didn't work out, I am sick of these issue in last two days, I never had this problem before


Loading...