vietnam-devs / coolstore-microservices

A full-stack .NET microservices build on Dapr and Tye
https://vietnam-devs.github.io/coolstore-microservices
MIT License
2.48k stars 580 forks source link

Windows net5 tye run throws system cannot be found exception (fine on mac) #55

Closed mdg215199 closed 3 years ago

mdg215199 commented 3 years ago

Having errors when trying to run "tye run" with net5. Exception:

01:13:22 INF] Launching service inventoryapp-dapr_7e8e0a8a-e: daprd -app-id inventoryapp -app-port 5002 -dapr-grpc-port 54291 --dapr-http-port 54292 --metrics-port 54293 --placement-address localhost:50005 -config "D:\research\daprs\test\coolstore-microservices\components\appconfig.yaml" -log-level debug -components-path ./components/local/ [01:13:22 ERR] Failed to launch process for service shoppingcartapp-dapra9076c7a-8 System.ComponentModel.Win32Exception (2): The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at Microsoft.Tye.ProcessUtil.RunAsync(String filename, String arguments, String workingDirectory, Boolean throwOnError, IDictionary2 environmentVariables, Action1 outputDataReceived, Action1 errorDataReceived, Action1 onStart, Action`1 onStop, CancellationToken cancellationToken) in //src/Microsoft.Tye.Core/ProcessUtil.cs:line 113 at Microsoft.Tye.Hosting.ProcessRunner.<>cDisplayClass8_0.<g_RunApplicationAsync|0>d.MoveNext() in //src/Microsoft.Tye.Hosting/ProcessRunner.cs:line 402 [01:13:22 ERR] Failed to launch process for service identityapp-daprc1321c2e-6 System.ComponentModel.Win32Exception (2): The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at Microsoft.Tye.ProcessUtil.RunAsync(String filename, String arguments, String workingDirectory, Boolean throwOnError, IDictionary2 environmentVariables, Action1 outputDataReceived, Action1 errorDataReceived, Action1 onStart, Action`1 onStop, CancellationToken cancellationToken) in //src/Microsoft.Tye.Core/ProcessUtil.cs:line 113 at Microsoft.Tye.Hosting.ProcessRunner.<>cDisplayClass8_0.<gRunApplicationAsync|0>d.MoveNext() in /_/src/Microsoft.Tye.Hosting/ProcessRunner.cs:line 402 [01:13:22 ERR] Failed to launch process for service inventoryapp-dapr7e8e0a8a-e System.ComponentModel.Win32Exception (2): The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at Microsoft.Tye.ProcessUtil.RunAsync(String filename, String arguments, String workingDirectory, Boolean throwOnError, IDictionary2 environmentVariables, Action1 outputDataReceived, Action1 errorDataReceived, Action1 onStart, Action`1 onStop, CancellationToken cancellationToken) in //src/Microsoft.Tye.Core/ProcessUtil.cs:line 113 at Microsoft.Tye.Hosting.ProcessRunner.<>c__DisplayClass8_0.<gRunApplicationAsync|0>d.MoveNext() in /_/src/Microsoft.Tye.Hosting/ProcessRunner.cs:line 402

Also, I'm able to run the dotnet-sdk dapr sample with tye with no issue.

I also tried to run it in wsl2 and wsl in docker (both set to run as linux, haven't tried to run docker in windows containers as I assumed it dapr wouldnt work).

mdg215199 commented 3 years ago

This might be my stupidity. I should have waited to post this until the morning, when I wasn't trying to test at 1am. When trying to run dapr by itself, I get the following: CreateFile C:\Users\mdgar.dapr\components: The system cannot find the path specified.