Skip to content

fastly compute deploy failing with "Failed to extract metadata from package" #1573

@RafaelSkyMonde

Description

@RafaelSkyMonde

Version

Fastly CLI version v13.0.0 (a52d1a7)
Built with go version go1.24.7 linux/amd64 (2025-10-30)
Viceroy version: viceroy 0.15.0

What happened

I run the following command:

fastly compute deploy --package=../../bin/wasi/release/destiny-stage.tar.gz --dir=scripts/build --env=stage --verbose

Up until today all my projects were deploying successfully. But starting today I get:

Service version 70 is not editable, so it was automatically cloned. Now operating on version 75.

| Uploading package...
/ Uploading package...
✗ Uploading package

ERROR: the Fastly API returned 400 Bad Request: Bad request (Failed to extract metadata from package).

If you believe this error is the result of a bug, please file an issue: https://github.com/fastly/cli/issues/new?labels=bug&template=bug_report.md
../../scripts/jambase.fastly.edge(73) : Command "fastly" returned error 1

I confirmed the validity of my package:

fastly compute validate -p bin/wasi/release/destiny-stage.tar.gz
SUCCESS: Validated package /home/rafael/milk/apps/destiny/bin/wasi/release/destiny-stage.tar.gz

My build system before was building packages this way:

tar -czvf bin/wasi/release/destiny-stage.tar.gz -C bin/wasi/release/destiny-stage .

That produces packages that look like:

tar -tzf bin/wasi/release/destiny-stage.tar.gz
./
./bin/
./bin/main.wasm
./fastly.toml

But I also tried using compute pack, like this:

fastly compute pack -w bin/main.wasm

Which produces packages with a slightly different structure:

tar -tzf bin/wasi/release/destiny-stage.tar.gz
skymonde-destiny-stage/
skymonde-destiny-stage/bin/
skymonde-destiny-stage/bin/main.wasm
skymonde-destiny-stage/fastly.toml

But all packages seem to validate on the command line. But none can deploy. The embedded .toml looks like this:

# This file describes a Fastly Compute package. To learn more visit:
# https://www.fastly.com/documentation/reference/compute/fastly-toml
manifest_version = 3
name = "skymonde-destiny-stage"
description = "Destiny - the SkyMonde Destination Selection API (stage)"
authors = ["*****@******.com"]
language = "other"
service_id = "************"

[scripts]

[setup]

[deploy]

[[backend]]
name = "SkyMonde"
url = "https://www.skymonde.com"

# FASTLY_API_TOKEN=********************

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions