20 days ago
A Railway CLI source upload created a deployment, but it failed before any build was associated.
Observed state:
- Deployment ID: 5e335827-d73e-405c-9d8a-c15c3787c35e
- Event ID: 31795d51-c903-4e9e-9d44-d8a705317796
- Event type: SNAPSHOT_CODE
- Event time: 2026-07-31 15:19:23.996Z to 15:20:24.019Z
- Error: Failed to create code snapshot
- snapshotId: null
- diagnosis: null
- No associated build and 0 deployment logs
- Query trace ID: 6340638506259272962
The previously active production deployment remains healthy, and its persistent volume is unchanged.
Local validation completed after the failure:
- Source ZIP is readable and its checksum is unchanged
- 73 archive entries under one root; no duplicate paths, traversal paths, encryption, or special file types
- Deployment manifest covers all 72 payload files
- Every recorded file size and SHA-256 matches
- SQLite, JSONL, and application package checks pass locally
The exact transport gzip tar used by the failed upload was generated in memory and was not retained, so I cannot provide its byte hash and am not claiming a recreated tar is identical.
Could Railway please inspect the backend trace for this SNAPSHOT_CODE event and confirm whether this was an infrastructure-side snapshot failure, and whether it is safe to retry a single CLI source upload?
1 Replies
Status changed to Awaiting Railway Response Railway • 20 days ago
20 days ago
The snapshot failure was caused by the uploaded source archive being too large, which timed out the upload pipeline before a build could be created. Your existing production deployment and volume are unaffected.
To fix this, add a .railwayignore file to your project root to exclude large or unnecessary files (data files, SQLite databases, build artifacts, etc.) from the CLI upload. The syntax is the same as .gitignore. Alternatively, connect your repo via GitHub and deploy from there - GitHub-based deploys avoid the CLI upload size constraint entirely.
Status changed to Awaiting User Response Railway • 20 days ago
Status changed to Solved mykal • 20 days ago