dotnet / tye

Tye is a tool that makes developing, testing, and deploying microservices and distributed applications easier. Project Tye includes a local orchestrator to make developing microservices easier and the ability to deploy microservices to Kubernetes with minimal configuration.
MIT License
5.28k stars 520 forks source link

Intermittent failure for "tye run" #1202

Open oising opened 3 years ago

oising commented 3 years ago

Tye: 0.10.0-alpha.21420.1+7cec0655cc474aee8d3c3a3d180678985209d439 Docker Desktop: 4.1.1 (69879) Win11: 22000.258 Dotnet Runtime: 5.0.402

When trying to execute tye run, it takes a couple of attempts for it to work. The first couple usually fail with: "Evaluated project metadata file could not be found for service X"

example:

image

These three attempts were only a few seconds apart.

oising commented 3 years ago

Having gone through this a few dozen times now, every time -- without fail -- it takes three attempts. Same issue with --docker mode.

philliphoff commented 3 years ago

@oising Do you see this every time, even with new applications, or only with certain applications? I've run into this on occasion (but not in a while); it typically had to do with Tye not shutting down properly which left some cruft in the .tye folder that eventually gets cleaned on subsequent runs.

oising commented 3 years ago

I only have one application that I'm building, based on MSFT Orleans. It happens every time, and for the last 30+ attempts, it always takes three attempts to execute correctly. Very bizarre!

padamshrestha commented 2 years ago

Anyone found the solution for the issue. I just started to get the error and couldn't figure out the way to resolve it. I tried reinstalled tye but didn't help.

oising commented 2 years ago

No, I just stopped using Tye.

padamshrestha commented 2 years ago

Looks like it's due failure to build dependency Db Project I just scaffolded.

ahmad-bs commented 2 years ago

I face the same issue. Any updates ?

marinasundstrom commented 2 years ago

The .NET CLI tools seems to get stuck and fail to build with no errors. My solution builds fine in VS.

<User> <Dir> % tye run --watch
Loading Application Details...
Evaluating project failed with exit code 1
Drats! 'run' failed:
<User> <Dir> % dotnet build
MSBuild version 17.4.0-preview-22428-01+14c24b2d3 for .NET

Build FAILED.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.00
damiangreen commented 1 year ago

I'm also facing this. Tried running multiple times, in different terminals, restarting. I dont see .tye folder.. any other suggestions?

damiangreen commented 1 year ago

We faced this problem after installing Visual Studio with the latest version of .net (7). We deleted any folders in the C:\Program Files\dotnet\sdk that were greater than version 6.