Timeout error when doing railway up

pyetjrstije
TRIAL

a year 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?

5 Replies

a year 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
TRIAL

a year ago

The deployment folder contains a Dockerfile and the executable file.


a year ago

what is the executable file for


pyetjrstije
TRIAL

a year ago

It's a native image of a java Spring app


a year 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
TRIAL

a year ago

ok, ill look into that, thx


neel36
TRIAL

a year ago

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


a year ago

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


neel36
TRIAL

a year ago

how do i know that please


neel36
TRIAL

a year ago

how to reduce size


neel36
TRIAL

a year ago

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


a year ago

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


bmuzuraimov
PRO

10 months 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.


10 months ago

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