This morning we run into an issue while trying to download pc-kernel snap. It seems the snap file was downloaded 100% but returned an 404 error. Please let me know if any logs are required for troubleshooting. Thanks.
Fetching snapd
Fetching pc-kernel 100% 4.31MB/s 0.0ns
error: received an unexpected http response code (404) when trying to download https://api.snapcraft.io/api/v1/snaps/download/pYVQrBcKmBa0mZ4CCN7ExT6jH8rY1hza_726.snap
COMMAND FAILED: snap prepare-image --channel=beta --snap=xxxxx=latest/beta --snap=docker=latest/stable xxxxx.assert /tmp/tmpelipao2v/unpack
It seems ubuntu-image runs snap prepare-image x.assert /tmp/xxx and failed with 404. I also gave the command snap download a try and it can download the pc-kernel snap file.
@ogra, thanks for the updates. After snapcraft login, the snap pc-kernel can be built in the image, but still not sure why it required login first for the public snap pc-kernel.
export UBUNTU_STORE_AUTH_DATA_FILENAME=xxx helps. I took a look into the codes, and seems “newToolingStore” function may need more logs. Will follow up in launchpad Thanks.