Our "cpa buildbundle" command is failing since June 10th. We think issue is related to the Debian 12 release. Following is the complete output to reproduce the error.
Similar impact is observed in other project https://github.com/Azure/azure-functions-docker/issues/905 which may give some more idea on the issue.
We "think" fix may be to use specific version tag for debian image for the dockerfile created in .cnab folder.
Let us know if this is not the right forum to post the issue and it should be discussed somewhere else.
C:\Users\rpalejiya>docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /c/source/repos/myproject/Azure-cnab:/data --entrypoint "/bin/bash" mcr.microsoft.com/container-package-app:latest
root@9976b64824dc:/#
root@9976b64824dc:/# cd data
root@9976b64824dc:/data# az login --service-principal -u .....
root@9976b64824dc:/data# az acr login ......
Login Succeeded
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
root@9976b64824dc:/data#
root@9976b64824dc:/data# cpa buildbundle
By using the Azure Kubernetes CNAB Packaging Application, you agree to the License contained in the application. You can view the License at ~/LICENSE. We collect telemetry data, if you would like to opt out of data collection please use the --telemetryOptOut flag
Manifest file validated, 0 total failure(s)
Helm chart validated, 0 total failure(s)
an error occurred while trying to execute the PowerShell arm-ttk module exited.
A newer version of the ARM-TTK is available at: https://github.com/Azure/arm-ttk/releases
Installed Version: 0.22
Latest Version: 0.23
{
"Items": [
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "JSONFiles Should Be Valid",
"Name": "JSONFiles Should Be Valid",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Allowed Values Should Actually Be Allowed",
"Name": "Allowed Values Should Actually Be Allowed",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Controls In Outputs Must Exist",
"Name": "Controls In Outputs Must Exist",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "CreateUIDefinition Should Have Schema",
"Name": "CreateUIDefinition Should Have Schema",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Credential Confirmation Should Not Be Hidden",
"Name": "Credential Confirmation Should Not Be Hidden",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Handler Must Be Correct",
"Name": "Handler Must Be Correct",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "HideExisting Must Be Correctly Handled",
"Name": "HideExisting Must Be Correctly Handled",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Outputs Must Be Present In Template Parameters",
"Name": "Outputs Must Be Present In Template Parameters",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Parameters Without Default Must Exist In CreateUIDefinition",
"Name": "Parameters Without Default Must Exist In CreateUIDefinition",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Password Textboxes Must Be Used For Password Parameters",
"Name": "Password Textboxes Must Be Used For Password Parameters",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "PasswordBoxes Must Have Min Length",
"Name": "PasswordBoxes Must Have Min Length",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [
"TextBox 'FrontAppReplica' regex does not have a length constraint.",
"TextBox 'BrokerUrl' regex does not have a length constraint.",
"TextBox 'SchemaRegistryUrl' regex does not have a length constraint.",
"TextBox 'RestApiUrl' regex does not have a length constraint.",
"TextBox 'ConnectApiUrl' regex does not have a length constraint.",
"TextBox 'KeystorePath' regex does not have a length constraint.",
"TextBox 'TruststorePath' regex does not have a length constraint."
],
"Output": [],
"Passed": true,
"Group": "Textboxes Are Well Formed",
"Name": "Textboxes Are Well Formed",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Tooltips Should Be Present",
"Name": "Tooltips Should Be Present",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Usernames Should Not Have A Default",
"Name": "Usernames Should Not Have A Default",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Validations Must Have Message",
"Name": "Validations Must Have Message",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "VMSizes Must Match Template",
"Name": "VMSizes Must Match Template",
"File": "createUIDefinition.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "adminUsername Should Not Be A Literal",
"Name": "adminUsername Should Not Be A Literal",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "apiVersions Should Be Recent In Reference Functions",
"Name": "apiVersions Should Be Recent In Reference Functions",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "apiVersions Should Be Recent",
"Name": "apiVersions Should Be Recent",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "artifacts parameter",
"Name": "artifacts parameter",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "CommandToExecute Must Use ProtectedSettings For Secrets",
"Name": "CommandToExecute Must Use ProtectedSettings For Secrets",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "DependsOn Best Practices",
"Name": "DependsOn Best Practices",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Deployment Resources Must Not Be Debug",
"Name": "Deployment Resources Must Not Be Debug",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "DeploymentTemplate Must Not Contain Hardcoded Uri",
"Name": "DeploymentTemplate Must Not Contain Hardcoded Uri",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "DeploymentTemplate Schema Is Correct",
"Name": "DeploymentTemplate Schema Is Correct",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Dynamic Variable References Should Not Use Concat",
"Name": "Dynamic Variable References Should Not Use Concat",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "IDs Should Be Derived From ResourceIDs",
"Name": "IDs Should Be Derived From ResourceIDs",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Location Should Not Be Hardcoded",
"Name": "Location Should Not Be Hardcoded",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "ManagedIdentityExtension must not be used",
"Name": "ManagedIdentityExtension must not be used",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Min And Max Value Are Numbers",
"Name": "Min And Max Value Are Numbers",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Outputs Must Not Contain Secrets",
"Name": "Outputs Must Not Contain Secrets",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Parameter Types Should Be Consistent",
"Name": "Parameter Types Should Be Consistent",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Parameters Must Be Referenced",
"Name": "Parameters Must Be Referenced",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "providers apiVersions Is Not Permitted",
"Name": "providers apiVersions Is Not Permitted",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Resources Should Have Location",
"Name": "Resources Should Have Location",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Resources Should Not Be Ambiguous",
"Name": "Resources Should Not Be Ambiguous",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Secure Params In Nested Deployments",
"Name": "Secure Params In Nested Deployments",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Secure String Parameters Cannot Have Default",
"Name": "Secure String Parameters Cannot Have Default",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "URIs Should Be Properly Constructed",
"Name": "URIs Should Be Properly Constructed",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Variables Must Be Referenced",
"Name": "Variables Must Be Referenced",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "Virtual Machines Should Not Be Preview",
"Name": "Virtual Machines Should Not Be Preview",
"File": "mainTemplate.json"
},
{
"Errors": [],
"Warnings": [],
"Output": [],
"Passed": true,
"Group": "VM Images Should Use Latest Version",
"Name": "VM Images Should Use Latest Version",
"File": "mainTemplate.json"
}
]
}
Marketplace package validated, 0 total failures(s)
operation VerifySuccessful
db
map[digest:sha256:603a19e6c5be21ca615de325a2fb758827558de0a8c4a9925256a4329b4e41be image:mssql/server registry:mcr.microsoft.com]
...........
map[digest:sha256:ff129a58a1b8b6722d2370903a103b6f239476598a2094ad5d3986bd528c480b image:auraserver registry:aurainnovations.azurecr.io]
Successfully packaged chart and saved it to: /data/Aura-Helm-Chart-0.0.1.tgz
Copying porter runtime ===>
Copying mixins ===>
Copying mixin exec ===>
Copying mixin helm3 ===>
[+] Building 16.2s (10/21)
=> [internal] load .dockerignore 0.2s
=> => transferring context: 2B 0.1s
=> [internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 1.26kB 0.1s
=> resolve image config for docker.io/docker/dockerfile-upstream:1.4.0 2.5s
=> CACHED docker-image://docker.io/docker/dockerfile-upstream:1.4.0@sha256:178c4e4a93795b9365dbf6cf10da8fcf517fcb4a17f1943a775c0f548e9fc2ff 0.0s
=> [internal] load metadata for docker.io/library/debian:stable-slim 3.2s
=> [internal] load build context 7.3s
=> => transferring context: 204.04MB 7.3s
=> [stage-0 1/15] FROM docker.io/library/debian:stable-slim@sha256:b09f68bffcf9c14f3105f262e92321d05abaf48460d1f43f884325bcd4395b95 0.1s
=> => resolve docker.io/library/debian:stable-slim@sha256:b09f68bffcf9c14f3105f262e92321d05abaf48460d1f43f884325bcd4395b95 0.1s
=> CACHED [stage-0 2/15] RUN useradd nonroot -m -u 65532 -g 0 -o 0.0s
=> CACHED [stage-0 3/15] RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache 0.0s
=> ERROR [stage-0 4/15] RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt apt-get update && apt-get install -y ca-certificate 9.7s
------
> [stage-0 4/15] RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt apt-get update && apt-get install -y ca-certificates:
#0 2.094 Get:1 http://deb.debian.org/debian stable InRelease [147 kB]
#0 2.789 Get:2 http://deb.debian.org/debian stable-updates InRelease [52.1 kB]
#0 3.223 Get:3 http://deb.debian.org/debian-security stable-security InRelease [48.0 kB]
#0 3.522 Reading package lists...
#0 8.898 E: Repository 'http://deb.debian.org/debian stable InRelease' changed its 'Codename' value from 'bullseye' to 'bookworm'
#0 8.898 E: Repository 'http://deb.debian.org/debian stable-updates InRelease' changed its 'Codename' value from 'bullseye-updates' to 'bookworm-updates'
#0 8.898 E: Repository 'http://deb.debian.org/debian-security stable-security InRelease' changed its 'Codename' value from 'bullseye-security' to 'bookworm-security'
------
ERR - Failed to publish bundle, retrying 3 more times
Our "cpa buildbundle" command is failing since June 10th. We think issue is related to the Debian 12 release. Following is the complete output to reproduce the error.
Similar impact is observed in other project https://github.com/Azure/azure-functions-docker/issues/905 which may give some more idea on the issue. We "think" fix may be to use specific version tag for debian image for the dockerfile created in .cnab folder. Let us know if this is not the right forum to post the issue and it should be discussed somewhere else.