Deployment fails at sidecar step "Build archive was not created at /mnt/code/code.tar.gz" (Node 18)
- 0
- 8
- Functions
- Web
- Cloud
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
<@&634618551491100692>
Guys, please.. All of my clients have pending changes that are causing issues, and I can't push a deployment
This is not a premium support, but a community support ran mainly by volunteers, so needing to wait is expected
cc <@235411231190679552>
Ok, thanks to advice
I'm just desperate because my clients are unhappy with the delays I'm experiencing due to this problem :/
✅ SOLVED, THANKS GUYS!
What was the solution?
Recommended threads
- Build succeeds but deployment fails — si...
My Next.js 15.5.20 site (standalone output mode) builds successfully on Appwrite Sites, but the deployment fails at the final packaging step with: [sidecar:bui...
- Issue Related to Presence
```PresenceService: upsert error – AppwriteException: user_unauthorized, The current user is not authorized to perform the requested action. (401) ...
- Can't create or update functions via CLI...
Self-hosted 1.9.5 — all function create/update return 500: Unknown attribute: "providerBranches" (metadata ↔ physical-column desync after upgrade) Env: Appwrit...