swabra unable to save state causing full checkout

I upgraded from TC 6.0.2 to TC 7.0.4. I immediately noticed my build times went up. Looking at the build log, I see messages like this,

Unable to save /usr/ci/TeamCity/buildAgent/work/c028e5573caa5356 directory state to snapshot file 38da7933.snapshot: Failed to read /usr/ci/TeamCity/buildAgent/work/c028e5573caa5356/apps/listings/vendor/bundle/ruby/1.8/gems/ffi-1.0.11/ext/ffi_c/libffi/.libs/libffi.la

which, on the next build on the same agent, cause a clean check-out since the state is not found.

One of these "failed to read" messages was for a symlink that was pointing to a non-existing directory.

These errors are occurring on agents running on cent os 5.6.

Any ideas how to avoid this problem?

1 comment
Comment actions Permalink

Hello, Paul,

Currently Swabra works incorrectly with symlinks (the issue is covered by http://youtrack.jetbrains.com/issue/TW-18526) - please vote/watch the issue
As a workaround you may try excluding paths that correspond symlinks from swabra monitoring scope (use +:/-: rules as described http://confluence.jetbrains.net/display/TCD7/Build+Files+Cleaner+%28Swabra%29)

0

Please sign in to leave a comment.