Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MeteredTriggerJob is failing during upgrade- : error MSB6006: "/home/.nuget/packages/microsoft.netcore.app.crossgen2.linux-x64/8.0.8/tools/crossgen2" exited with code 137 #773

Open
deepakharsha720720 opened this issue Oct 9, 2024 · 0 comments

Comments

@deepakharsha720720
Copy link

deepakharsha720720 commented Oct 9, 2024

Describe the bug
When we try to upgrade the SAAS accelerator using below command , we are ending in to error MeteredTriggerJob is failing. when we use ./dotnet-install.sh -version 6.0.417; `it is working fine.

Command:
wget https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh; chmod +x dotnet-install.sh;
./dotnet-install.sh -version 8.0.303; $ENV:PATH="$HOME/.dotnet:$ENV:PATH";
dotnet tool install --global dotnet-ef --version 8.0.0; git clone XXX -b main;
cd ./Commercial-Marketplace-SaaS-Accelerator/deployment; .\Upgrade.ps1
-WebAppNamePrefix "XXX" -ResourceGroupForDeployment "XXX"

Error:
/usr/share/dotnet/sdk/8.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(470,5): error MSB6006: "/home/sri/.nuget/packages/microsoft.netcore.app.crossgen2.linux-x64/8.0.8/tools/crossgen2" exited with code 137. [/home/sri/saas_deploy/Commercial-Marketplace-SaaS-Accelerator-us-uk/src/MeteredTriggerJob/MeteredTriggerJob.csproj]
/usr/share/dotnet/sdk/8.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(358,5): error NETSDK1096: Optimizing assemblies for performance failed. You can either exclude the failing assemblies from being optimized, or set the PublishReadyToRun property to false. [/home/sri/saas_deploy/Commercial-Marketplace-SaaS-Accelerator-us-uk/src/MeteredTriggerJob/MeteredTriggerJob.csproj]

To Reproduce
Steps to reproduce the behavior:
Upgrade using dotnet 8.0.303 version

Expected behavior
MeteredTriggerJob should run with out any exceptions even when we use 8.0.303 version of dotnet

Tasks

Preview Give feedback
No tasks being tracked yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant