microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
372 stars 29 forks source link

Java Buildpack sample fails when deploying #1321

Closed graemefoster closed 2 weeks ago

graemefoster commented 1 month ago

Please provide us with the following information:

This issue is a: (mark with an x)

Issue description

Following the instructions here: https://learn.microsoft.com/en-us/azure/container-apps/quickstart-code-to-cloud?tabs=bash%2Cjava&pivots=without-dockerfile Results in: ERROR: failed to build: failed to write image to the following tags: [pack.local/builder/717471786c7870686765:latest: saving image "pack.local/builder/717471786c7870686765:latest": Error response from daemon: No such image: sha256:0e671222ca6fe5965ec5a37c92545434b3652ef09be0b4c390a4e5c49023bb46 Unable to run 'pack build' command to produce runnable application image: Non-zero exit code returned from 'pack build'; please check the above output for more details. No supported builder could be used to build an image from the provided application source.

Steps to reproduce

  1. Follow instructions here: https://learn.microsoft.com/en-us/azure/container-apps/quickstart-code-to-cloud?tabs=bash%2Cjava&pivots=without-dockerfile

Expected behavior [What you expected to happen.] Application should deploy as expected

Actual behavior [What actually happened.] Deployment fails with above error

Additional context

Occurred using Azure CLI

v-vish commented 1 month ago

@graemefoster I successfully deployed the container app following the steps outlined in the URL "https://learn.microsoft.com/en-us/azure/container-apps/quickstart-code-to-cloud?tabs=bash%2Cjava&pivots=without-dockerfile" without encountering any errors.

Image

Please ensure that you execute the "az containerapp" up command from the correct directory where the code is located. For example, I am running the command from the following path: PS C:\Users\v-vishnuu\Desktop\containerapps-albumapi-java-buildpack>.

Image

graemefoster commented 1 month ago

Hi @v-vish,

Unsure what's going wrong on my side. I'm running from an Apple Silicon macbook-pro but that shouldn't make a difference in this case. I made sure it was a fresh unzip of the sample code.

Image

Image

Thanks, Graeme

graemefoster commented 1 month ago

@v-vish I'm also getting errors when I try and upload a jar file using the --artifact switch:

Image

Just to confirm my az cli setup:

Image

v-vish commented 4 weeks ago

@graemefoster Could you please open a support ticket with Microsoft regarding the issue outlined above? You can use the following URL for reference: https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request.

If you need any further assistance, feel free to reach out to me.

microsoft-github-policy-service[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.