36 minutes ago
Multiple CLI deployments fail consistently during Initialization → Snapshot code after approximately 67–101 seconds. Build and deploy never start, and build/deploy logs are empty.
We tested the original workspace, explicitly linked the correct production service, and uploaded a clean Git-only archive. We also reduced the tracked package from 43 MB to 37 MB and confirmed the service has 0 deployment variables. Every attempt returns ‘Failed to create code snapshot,’ while the previous deployment remains healthy and serves HTTP 200.
The dashboard diagnosis could not identify a cause. This is not the large-variable issue described in a recent similar thread because this service has zero deployment variables and uses a normal Nixpacks Node.js build with npm start.
Can Railway inspect the internal snapshot events and advise what is preventing a new code snapshot? I can provide the project, service, and deployment IDs privately to Railway staff.
1 Reply
35 minutes ago
When railway up fails at Snapshot code with "Failed to create code snapshot", the most common cause is the archive upload itself: the request is subject to Cloudflare's 125-second request timeout, so your connection has to upload the complete compressed project archive within that window. Because this happens before a snapshot exists, the build never starts and the build and deploy logs stay empty, and the healthy previous deployment and zero variables don't change that.
Increasing RAILWAY_HTTP_TIMEOUT only changes how long the CLI waits and does not extend Cloudflare's limit. The fix is on the upload side: run it from a machine or CI runner with faster upload throughput, or shrink the archive further with a .railwayignore that excludes anything not needed to build or run the app (local caches, logs, datasets, generated output the build recreates), keeping your source, package.json and lockfile.
Your failures land at 67 to 101 seconds rather than 125, so please share the full CLI output from a failed attempt, including any HTTP status code it prints (for example 524 or 413), with tokens redacted.
Status changed to Awaiting User Response Railway • 35 minutes ago