Timeout error when doing railway up
pyetjrstije
TRIALOP

2 years ago

I have a Docker image with a single executable of size 90MB.

When trying to deploy with 'railway up' it compresses successfully to 100% and starts to upload.

After about 15 seconds it stops with the following error:

error sending request for url (https://backboard.railway.app/project/c4f2671e-035f-4b49-94f0-dd4aa3e09c33/environ...: operation timed out

Caused by:

operation timed out

I tried with a smaller executable(32kB) and it deploys and runs fine.

When uploading the network upload rate goes up to 1.5~2 MB/s...so that means after the 15 second timeout it managed to upload just about 30MB of the file, not enough time.

What can be done? Is there a way to change the timeout, or other ways to deploy the app without size/time restrictions?

14 Replies

2 years ago

I have a Docker image with a single executable of size 90MB.

please explain what you mean, because railway up can not deploy docker images


pyetjrstije
TRIALOP

2 years ago

The deployment folder contains a Dockerfile and the executable file.


2 years ago

what is the executable file for


pyetjrstije
TRIALOP

2 years ago

It's a native image of a java Spring app


2 years ago

railway up can only upload 45mb, but regardless, you would want to have the dockerfile build the spring app, not pre include the file


pyetjrstije
TRIALOP

2 years ago

ok, ill look into that, thx


neel36
TRIAL

2 years ago

i am also getting same problem, Please someone tell me what i should do now


2 years ago

Make sure your project files (excluding node_modules) total less than 45MB


neel36
TRIAL

2 years ago

how do i know that please


neel36
TRIAL

2 years ago

how to reduce size


neel36
TRIAL

2 years ago

my project file size is 43 mb but still getting timeout error please help


2 years ago

you would want to upload your project to GitHub and deploy from your repo instead


bmuzuraimov
PRO

2 years ago

I am facing the same issue when following the guide to deploy the server part for Wasp-lang. The issue occurs when executing the 'railway up' command. For reference, here is the instruction link: https://wasp-lang.dev/docs/advanced/deployment/manually#railway-server-client-and-database.


2 years ago

If you are trying to upload more than 45MB via the CLI you will need to use GitHub instead


Welcome!

Sign in to your Railway account to join the conversation.

Loading...