Closed markj0hnst0n closed 2 years ago
Issue was not with displayed error. One of the project files was had a designated output as and exe file and this could not run on the linux stack the virtual machine had specified. Check all csproj files to see if there are exe files specified as output and remove or make sure your stack matches your output. I removed exe file tag and the build succeeded.
There was another similar issue to this posted before but the solution seemed to be included in the next version of the buildpack. This error is on a later buildpack version.
What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running
cf curl /v2/info && cf version
?{"name":"","build":"","support":"https://docs.cloud.service.gov.uk","version":0,"description":"","authorization_endpoint":"https://login.london.cloud.service.gov.uk","token_endpoint":"https://uaa.london.cloud.service.gov.uk","min_cli_version":null,"min_recommended_cli_version":null,"app_ssh_endpoint":"ssh.london.cloud.service.gov.uk:2222","app_ssh_host_key_fingerprint":"2ZZlTNpKIRped1Fc1ZiSp1kBixoF0szohYfiR0qPLnU","app_ssh_oauth_client":"ssh-proxy","doppler_logging_endpoint":"wss://doppler.london.cloud.service.gov.uk:443","api_version":"2.182.0","osbapi_version":"2.15","user":"ba4c2785-22df-4c03-9d86-76ef4bc83fe7"} cf version 8.4.0+b4c083e.2022-06-02
What version of the buildpack you are using?
dotnet-core-buildpack-cflinuxfs3-v2.3.43
If you were attempting to accomplish a task, what was it you were attempting to do?
Using cloudfoundry cli to deploy multiple apps in my solution to gov paas. App was previously deployed (by someone else more than a year ago) but now error is happening. The first app in the solution deploys correctly and the second deploys but does not stage/start correctly.
cf push a dotnet core application
Is your dotnet app unpublished, platform-dependant, or self-contained?
published and platform dependent but I have tried it as self-contained.
What did you expect to happen?
applications all deployed and staged/started on gov paas
What was the actual behavior?
Staging app and tracing logs... Downloaded app package (4.7M) -----> Dotnet-Core Buildpack version 2.3.43 -----> Supplying Dotnet Core -----> Installing libunwind 1.6.2 Download [https://buildpacks.cloudfoundry.org/dependencies/libunwind/libunwind_1.6.2_linux_noarch_cflinuxfs3_02d17047.tgz] ERROR Error searching project for library "System.Drawing.Common": multiple *.runtimeconfig.json files present Failed to compile droplet: Failed to run all supply scripts: exit status 15 Exit status 223 Cell 309db153-2738-4a4a-9634-b5f47e68b8b4 stopping instance d396dd91-a2f2-4fd9-a5d1-9700d0fd6dc3 Cell 309db153-2738-4a4a-9634-b5f47e68b8b4 destroying container for instance d396dd91-a2f2-4fd9-a5d1-9700d0fd6dc3 Cell 309db153-2738-4a4a-9634-b5f47e68b8b4 successfully destroyed container for instance d396dd91-a2f2-4fd9-a5d1-9700d0fd6dc3 Downloading dotnet_core_buildpack... Downloaded dotnet_core_buildpack Cell 922a4825-eb2b-4b4d-8442-d1fb1beafd62 creating container for instance eddebc58-9ba6-4454-9ccd-1ca4789c0622 Cell 922a4825-eb2b-4b4d-8442-d1fb1beafd62 successfully created container for instance eddebc58-9ba6-4454-9ccd-1ca4789c0622 Downloading app package... Error staging application: BuildpackCompileFailed - App staging failed in the buildpack compile phase FAILED
Please confirm where necessary: