Timeout error when doing railway up
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?
13 Replies
Project ID:
c4f2671e-035f-4b49-94f0-dd4aa3e09c33
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
The deployment folder contains a Dockerfile and the executable file.
what is the executable file for
It's a native image of a java Spring app
railway up can only upload 45mb, but regardless, you would want to have the dockerfile build the spring app, not pre include the file
ok, ill look into that, thx
New reply sent from Help Station thread:
i am also getting same problem, Please someone tell me what i should do nowYou're seeing this because this thread has been automatically linked to the Help Station thread.
Make sure your project files (excluding node_modules) total less than 45MB
New reply sent from Help Station thread:
how do i know that pleaseYou're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
how to reduce sizeYou're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
my project file size is 43 mb but still getting timeout error please helpYou're seeing this because this thread has been automatically linked to the Help Station thread.
you would want to upload your project to GitHub and deploy from your repo instead
New reply sent from Help Station thread:
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.You're seeing this because this thread has been automatically linked to the Help Station thread.
Deploying Manually | Wasp
This document explains how to build and prepare your Wasp app for deployment.
If you are trying to upload more than 45MB via the CLI you will need to use GitHub instead