Skip to content
Back

Deployment fails at sidecar step "Build archive was not created at /mnt/code/code.tar.gz" (Node 18)

  • 0
  • 8
  • Functions
  • Web
  • Cloud
8 Jul, 2026, 19:10

Hi Appwrite team,

I'm getting a consistent deployment failure on Appwrite Cloud. The build itself completes successfully, but a post-build sidecar step then fails.

What the logs show:

  • npm install runs fine ("added 2 packages … found 0 vulnerabilities")
  • Packaging completes the log prints "Auto compression: squashfs", the squashfs filesystem is created at /mnt/code/code.sqfs, and "[open-runtimes] Build finished" is logged
  • ~5 seconds later the deployment fails with: [sidecar:build] Build archive was not created at /mnt/code/code.tar.gz

So the runtime produces code.sqfs, but the sidecar appears to be looking for code.tar.gz and doesn't find it.

Why this looks like a platform-side issue, not my code:

  • It reproduces from a second, independent machine.
  • It also fails when I redeploy an OLDER deployment that previously built and ran fine — with zero code changes.

Environment / details:

  • Runtime: Node 18+
  • Entrypoint: src/main.js | Build command: npm install
  • Project ID: [FILL IN]
  • Function ID: [FILL IN]
  • Region: [FILL IN]
  • Failed build timestamp: 2026-07-08, ~18:40 UTC

Several other users report the same "Build archive was not created at /mnt/code/code.tar.gz" error in the community threads, so this may be a known platform regression. Could you confirm whether there's an ongoing incident, and share a fix or workaround? I'm happy to provide the full build logs and the deployment ID.

Thanks, Strixmosh

TL;DR
Deployment fails at sidecar step due to missing code archive creation. Solution: Check code archive creation path and ensure it is created at /mnt/code/code.tar.gz.
8 Jul, 2026, 19:20

<@&634618551491100692>

8 Jul, 2026, 19:21

Guys, please.. All of my clients have pending changes that are causing issues, and I can't push a deployment

8 Jul, 2026, 19:21

This is not a premium support, but a community support ran mainly by volunteers, so needing to wait is expected

8 Jul, 2026, 19:24

cc <@235411231190679552>

8 Jul, 2026, 19:29

Ok, thanks to advice

8 Jul, 2026, 19:30

I'm just desperate because my clients are unhappy with the delays I'm experiencing due to this problem :/

8 Jul, 2026, 21:14

✅ SOLVED, THANKS GUYS!

8 Jul, 2026, 22:06

What was the solution?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more