Checking out from UCM ClearCase - Cannot build patch: java.io.IOException: Low-level patch stream is closed

Just set up a new TeamCioty server 8.0.3 and tryin to get it to check out from UCM ClearCase.  Unfortunately, I'm getting the following error, which I don't understand:
---



[13:15:35]Updating sources: server side checkout (34s)
[13:15:35][Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[13:15:35][Updating sources] Building and caching clean patch for VCS root: clearcase: /buildstore/teamcity/views/tc_git_Galaxy_EA_Comp_POC_dev/usr/clearcase/dev/j2ee/Galaxy_EA/POC
[13:16:09][Updating sources] Failed to build patch for build #1 {build id=1}, VCS root: "clearcase: /buildstore/teamcity/views/tc_git_Galaxy_EA_Comp_POC_dev/usr/clearcase/dev/j2ee/Galaxy_EA/POC" {instance id=1, parent internal id=1, parent id=EaBr1307_ClearcaseBuildstoreTeamcityViewsTcGitGalaxyEaCompPocDevUsrClearcaseDevJ, description: "clearcase: /buildstore/teamcity/views/tc_git_Galaxy_EA_Comp_POC_dev/usr/clearcase/dev/j2ee/Galaxy_EA/POC"}, due to error: Cannot build patch: java.io.IOException: Low-level patch stream is closed
[13:16:09][Updating sources] Repository sources transferred
---




Can anyone tell me what causes "Low-level patch stream is closed"?  My VCS Root seems to be configured correctly, in that the connection test passes.

UPDATE:  That was for a server-side checkout.  I then tried an agent side checkout and got the following error
---
Failed to perform checkout on agent: java.io.IOException: cleartool: Error: Unable to find stream "stream:git_Galaxy_EA_Comp_POC_dev@/internet_pvob".
---
It seems that TeamCity is failing to detect the correct stream name, which should be git_Galaxy_EA_Comp_POC_dev@/usr/clearcase/ucm/internet_pvob


I'm struggling to understand why getting this working is so difficult in TeamCity, yet so trivial in Jenkins (where you simply supply the stream name and the load rules).


Struggling to edit this message in a readable format, as all line breaks are deleted whenever I save.

4 comments
Comment actions Permalink

I am getting the same exception, but with git.  Did you ever solve this?

Failed to build patch for build #4 {build id=9975}, VCS root: "GitHub" {instance id=136, parent internal id=136, parent id=GitHub, description: "git@github.com:tablexi/repo-name.git#refs/heads/master"}, due to error: Cannot build patch: java.io.IOException: Low-level patch stream is closed

0
Comment actions Permalink

I am also running into this issue. I use TFS. During the wexecution of the build, i notice the temp folder being populated, so it seems that there's no problem with the connection to TFS, but the workspace never gets copied over to the work directory.

0
Comment actions Permalink

I haven't found a solution to this problem.  Any luck on your end?

0
Comment actions Permalink

I deleted it and tried again. This time, instead of using one VCS Root rooted near the root of my source control and controlling what gets checked-out by using check-out rules, I used multiple simple VCS roots with simpler checkout rules. I'm not sure if i was missing an issue somewhere in my implementation or if the VCS Root I was using might have gotten somehow "broken" (perhaps the TFS workspace associated with it got corrupted somehow, and simply creating a new VCS root with the same settings might have fixed it just as well.  

0

Please sign in to leave a comment.