Railpack silently excludes large committed directory from build artifact (~204MB, ~1224 files)
oyeanuj
PROOP

24 days ago

Issue

A committed directory at bop-backend/swipe_images/ (~204MB, ~1224 WebP image files) is not appearing in the deployed container, despite:

  • Being present in the git repository
  • Being whitelisted in .gitignore with !bop-backend/swipe_images/**
  • The build completing successfully with no warnings or errors
  • The COPY . /app step executing without issues

A sibling directory bop-backend/magazine_images/ (~16MB, ~96 files) in the same parent, committed in the same commits, with identical .gitignore patterns and StaticFiles mount configuration, deploys and serves correctly.

Evidence

Deployment logs show:

  • GET /swipe_images/rugs/rugs_000ebf4955cf.webp HTTP/1.1" 404 Not Found
  • GET /swipe_images/furniture_sofa/furniture_sofa_3d61175473f3.webp HTTP/1.1" 404 Not Found
  • GET /swipe_images/_debug_rugs.json HTTP/1.1" 404 Not Found

But:

  • GET /magazine_images/rooms/japandi_minimalist__rugs/0.webp HTTP/1.1" 200 OK

Build logs show:

  • Snapshot received and analyzed successfully
  • [stage-0 8/8] COPY . /app completed without warnings
  • No file exclusion or size limit warnings

Service Details

  • Project: passionate-truth
  • Service: bop-poc
  • Deployment ID: d817d287-104b-41be-9e38-7fff40796741
  • Commit: 405465c3f882fe1dfbcbd7740e5e2855a1bdb887
  • Branch: main
  • Source Root: bop-backend/
  • Builder: Railpack (railway.toml specifies nixpacks, but deployment used Railpack)

Questions

  1. Does Railpack have a per-directory or per-deploy size cap that would silently exclude swipe_images/ (~204MB) but allow magazine_images/ (~16MB)?
  2. Are there file-count limits at the directory level?
  3. Could there be a stale build cache or layer missing this directory?
  4. Is there a known issue with large directories in the snapshot upload/serialization phase?
$20 Bounty

2 Replies

Railway
BOT

24 days ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 24 days ago


I would recommend switching to Railpack or Dockerfile as Nixpacks is deprecated.


22 days ago

@oyeanuj can you share any part of your build log?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...