-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
SingleFile app fails after failed extraction #1255
Comments
Attaching the trace logs to help debug the issue. One is the output of the first run and the next one is the output after deleting some of the assemblies. |
Part (2) of the problem is a dup of https://github.com/dotnet/core-setup/issues/8314. Part(1) of the problem is interesting -- rename happening before all files are extracted. We may need to add a check/wait before the rename step to make sure that all files are actually in place. |
We also received these error messages (2) from beta users, which means that we will postpone our release. |
Thanks @swaroop-sridhar for linking the duplicate ticket for issue #2. I agree this is a duplicate of that issue and work the issue there. Sorry to mislead everyone but upon further testing I was able to reproduce the issue with a single executor per build node (corehost trace log attached here, failed_single_executor_corehost_trace.txt) Moving to a single executor just increased the time to failure. The core host trace log looks identical to just removing a file from the extracted directory. So this does not look to be a concurrency issue. Some additional data points:
Are there any other logs that I can capture to help root cause the issue? Unfortunately, I will have to revert back to a normal dotnet published application until this issue is resolved. |
Thanks for confirming @jls5177 |
Problem: I have a dotnet core 3 app that is published as a SingleFile which is run concurrently as part of our continuous build/test platform. About once a day one of the build nodes fails to find one of the assemblies. At this point all successive runs of the app fail with the same error.
There are 2 issues here:
Concurrent extracts cause some files to be missing from the extraction directory. Possible due to the directory rename step?
Subsequent runs after a failed extraction do not correct the missing assemblies.
The first issue might be harder to chase down as this is a race condition. In addition, fixing the second issue would at least minimize the exposure to a single run. I provide reproduction steps for the second issue below.
Expected Results: The app should recover from a failed extraction on the next run. Re-extracting any missing assemblies from the binary.
Workaround: I can recover the build node by deleting the extraction directory which forces the app to extract again on the next run.
Reproduction Steps: I am able to recreate the failure by performing the following steps:
Comments
The text was updated successfully, but these errors were encountered: