question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ubuntu_22_04 Build_Release CI build fails to copy asset file intermittently

See original GitHub issue

Describe the bug

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=3171&view=results

Output:

##[error].dotnet/sdk/7.0.100-preview.7.22377.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(248,5): 
error MSB3030: (NETCORE_ENGINEERING_TELEMETRY=Build) Could not copy the file 
"/home/vsts/work/1/s/src/Assets/TestPackages/dotnet-outputsframeworkversion/dotnet-outputsframeworkversion-netcoreapp1.0/obj/0f271755-2e7a-40ea-aea3-7b25896734fe.tmp" because it was not found.

To Reproduce

Exceptions (if any)

Further technical details

  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you’re running on, and its version

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marcpopMSFTcommented, Sep 15, 2022

@nagilson , can you download the binlog from the failed build so we have that saved for an investigation?

Builds get deleted if someone force pushes an update to a branch. Not sure if there are other situations.

0reactions
marcpopMSFTcommented, Sep 15, 2022

I’d check with Daniel but I wonder if one potential fix for this is to add the following to the blazorwebassembly.aot test <DefaultItemExcludes>$(DefaultItemExcludes);**/*.tmp</DefaultItemExcludes>

I’m not sure who is generating the .tmp file but it gets generated and then deleted. We pick it up as part of the default behavior to include all files in the obj directory (except for those with certain extensions…see DefaultItems.targets). Daniel probably has a better history to know how DefaultItems work as well as the best way to exclude this file from being included.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copy content of assets folder to target dist · Issue #320
Files unknown for typescript compiler, assets file should be copied during build. My custom middleware is processing files, which are not .
Read more >
COPY failed: file not found in build context (Dockerfile) - ...
I'd like to instruct Docker to COPY my certificates from the local /etc/ folder on my Ubuntu machine. I get the error: COPY...
Read more >
Can I copy file from assets to static on conditional build?
I tried using resources.Copy but that gave me an error and anyway, for the resource function to happen, you have to use it...
Read more >
Copying file failed (2) error Please help me.....
Hi all, I am trying to buid and run the 2D unity project sample for Windows Store and I am the following error....
Read more >
Copying media within your account
This method, by default, will not copy the comments from these assets. The copied files will also inherit a new file ID to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found