TFS checkout issue with checkout rule pointing to individual files

Hi,

We recently upgraded our TeamCity to the latest version TeamCity Enterprise 2024.12 (build 174331). 

But after the upgrade, the existing TFS VCS checkout rules which were pointing to individual files no longer work with agent side checkout and we have this error

 “Failed to perform checkout on agent: Failed to checkout repository version 45632: java.io.FileNotFoundException: C:\BuildAgent\work\a9b886f020f95ec9\Script.bat\$tf\1\e7e87131-d94d-415f-afb9-47e0fad91d54.gz (The system cannot find the path specified)”
It worked previously and we cannot switch to server side checkout as we have few build steps which rely on the agent side checkout.

Any help in this regard would be appreciated.

Thanks,

Paul

 

0
7 comments
Hi,

Please provide the following information:
1. From which version did you update where it was working?
2. Is it working correctly when there are no checkout rules pointing to files, only to directories?
2. Please provide teamcity-agent.log from the build agent covering the time the issue was reproduced.
3. The screenshots of checkout rules and VCS root settings. 
You can upload the requested materials to https://uploads.jetbrains.com/ and share the upload ID.

Best regards,
Anton
0

Hi Anton,

Thanks for getting back regarding this.

The previous version we had was 2023.11.4 and the checkout rule was defined as follows with 2 files and it worked without issues.

Script.bat

Install.bat

Now, after the upgrade to 2024.12, the checkout works if there are no checkout rules or rules pointing to directories. But not with individual files.

This issue is not limited to a particular agent but multiple agents. Haven't checked all the agents though.

Will check the possibility of sharing the details requested.

Thanks,

Paul

 

 

 

0
Hi Paul,

Thank you for the details.
I think the teamcity-agent.log from the build agent could provide some details on what is happening, so please share it.
Regarding the screenshots requested earlier, I think I got the general picture.

Best regards,
Anton
0

Hi Anton,

I created a test build to reproduce this issue and I have uploaded the teamcity-agent.log.

Upload id: 2025_01_06_fhzDszDMMQo8nrLLRXDY3B (file: teamcity-agent.log)

Please check and let me know.

Thanks,

Paul

0
Hi Paul,

Thank you for the logs. I will look for possible causes and get back to you as soon as possible.

Best regards,
Anton
0
Hi Paul,

Sorry for the wait.
We've confirmed this behavior and created the issue in our issue tracker: https://youtrack.jetbrains.com/issue/TW-91796
Please vote for it and subscribe to receive updates.

However, during the testing, we noticed that it failed the same way on 2024.12, 2024.07, 2023.11, and 2023.05.
Could you tell me the settings you used to get it to work on 2023.11? Was there any chance you were using the server-side checkout in the previous version?

Best regards,
Anton
0

Hi Anton,

Thanks for getting back regarding this. But for us, the checkout rules worked fine on version 2023.11.4 with agent side checkout.

Anyway, for now, we managed to fix it by moving the individual files to a subfolder and updating the checkout rules as there weren't many builds impacted.

Will vote and subscribe to the related issue created.

Thanks for your support.

Regards,

Paul

 

0

Please sign in to leave a comment.