1

I am getting the following rsync errors randomly from my capistrano scripts.

rsync: stat "/app/test-0.1-SNAPSHOT.jar.SB4uq7" failed: No such file or directory (2)
rsync: rename "/app/test-0.1-SNAPSHOT.jar.SB4uq7" -> "target/test-0.1-SNAPSHOT.jar": No such file or directory (2)
rsync: mkstemp "/app/.run-test-reports.sh.dY7r8H" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]

I am using the following rsync command:

rsync -Oarvzp --progress "#{source}" "#{user}@#{destination_host}:#{destination}/"

Can someone help me in solving it ?

2

depquid is very likely correct.

I suggest you add this:

--exclude='test.*.jar.?????' --exclude='.run-text.*.sh.?????'

to the rsync command, maybe more; --exclude=app may also work as an alternative, depending on what you are doing.

Btw, I think your implied -r and -p are redundant with -a.

2

This is just a hunch, but are you running tests at the same time that you are deploying? The filenames look like temporary files that are being created and deleted while rsync is running.

  • No i first copy the artifacts, and then i run the tests. I am often getting these errors in different pipelines. – pradeepchhetri Jul 10 '14 at 17:25
1

It's possible that you ran multiple rsync in parallel. If so, then I think what might be happening is that a concurrent rsync (or some other process) deletes temporary files of your rsync.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.