abpframework / eShopOnAbp

Reference microservice solution built with the ABP Framework and .NET, runs on Kubernetes with Helm configuration, includes API Gateways, Angular and ASP.NET Core MVC applications, PostgreSQL and MongoDB databases
https://www.eShopOnAbp.com/
MIT License
664 stars 259 forks source link

Paypal credentials issue while running the application with tye #166

Closed odidev closed 10 months ago

odidev commented 1 year ago

I am working with eShopOnAbp on the Ubuntu AWS instance.

I am following the instructions here: < https://github.com/abpframework/eShopOnAbp#instructions > to run eShopOnAbp.

As per the instructions, we need to have a Paypal clientID and secret, which will be hardcoded in the .env file before executing tye run to run the project.

And if I try running tye run without adding Paypal clientID and secret in the .env file, I get the below error:

Evaluated project metadata file could not be found for service identity-service 

May I know, is it mandatory to add PayPal credentials in the environment file before running tye, or is there a workaround?

gterdem commented 1 year ago

When running on tye, payment service uses this environment variable. It doesn't have to be a valid information, just the key in enough.

Or you can simply remove it from tye.yaml file:

https://github.com/abpframework/eShopOnAbp/blob/f1c51a2a2777d8784868f13fb0d0646a0f52b42f/tye.yaml#L65-L66

odidev commented 1 year ago

Thank you for the response.

I removed the environment file from tye.yaml but still getting the same error.

Error comes from the identity service in tye.yaml here: < https://github.com/abpframework/eShopOnAbp/blob/main/tye.yaml#L12 >.

There is some project metadata file that could not be found for the identity service.

Is there some command we need to execute prior to tye run to generate the metadata files?

gterdem commented 1 year ago

You can try deleting obj folders. https://github.com/dotnet/tye/issues/766#issuecomment-730285006

odidev commented 1 year ago

The issue is resolved after updating dotnet to version 7 on my x86 AWS instance.

However, on the Linux/ARM64 Ubuntu AWS instance, I successfully installed dotnet 7 following this document, installed tye and then executed tye run. I am getting the below error:

$ tye run

You must install or update .NET to run this application. 

App: /home/ubuntu/.dotnet/tools/tye 
Architecture: arm64 
Framework: 'Microsoft.NETCore.App', version '6.0.0' (arm64) 
.NET location: /home/ubuntu/odidev/.dotnet 

The following frameworks were found: 
  7.0.4 at [/home/ubuntu/odidev/.dotnet/shared/Microsoft.NETCore.App] 

Learn about framework resolution: 
https://aka.ms/dotnet/app-launch-failed 

To install missing framework, download: 

https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=arm64&rid=ubuntu.22.04-arm64 

I already exported DOTNET to PATH, but that hasn’t helped.

Do you have any suggestions on the same for Linux/ARM64 platform?

gterdem commented 1 year ago

dotnet/tye still requires .NET6 SDK.

They'll probably update it for .Net7 or .Net8 hopefully soon.