# CruiseControl problem. Broken Pipe?

**URL:** <https://www.ruby-forum.com/t/cruisecontrol-problem-broken-pipe/126398>\
**Category:** Rails\
**Created:** [January 17, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/cruisecontrol-problem-broken-pipe/126398 "2008-01-17T23:51:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 17, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/cruisecontrol-problem-broken-pipe/126398/1 "2008-01-17T23:51:28Z")

</div>

Hi Friends,

Just happened to catch this err in the CC log:

Build loop failed  
BuilderError: Write failed: Broken pipe  
./script/…/config/…/app/models/subversion.rb:98:in  
`execute_in_local_copy' ./script/../config/../lib/command_line.rb:86:in`call’  
./script/…/config/…/lib/command\_line.rb:86:in `e' ./script/../config/../lib/command_line.rb:84:in`popen’  
./script/…/config/…/lib/command\_line.rb:84:in `e' ./script/../config/../lib/command_line.rb:71:in`execute’  
./script/…/config/…/lib/command\_line.rb:70:in `chdir' ./script/../config/../lib/command_line.rb:70:in`execute’  
./script/…/config/…/app/models/subversion.rb:89:in  
`execute_in_local_copy' ./script/../config/../app/models/subversion.rb:85:in`chdir’  
./script/…/config/…/app/models/subversion.rb:85:in  
`execute_in_local_copy' ./script/../config/../app/models/subversion.rb:57:in`update’  
./script/…/config/…/app/models/project.rb:277:in  
`update_project_to_revision' ./script/../config/../app/models/project.rb:293:in`build’  
./script/…/config/…/app/models/project.rb:209:in  
`build_if_necessary' ./script/../config/../app/models/polling_scheduler.rb:13:in`run’  
./script/builder:79  
./script/builder:78:in `catch' ./script/builder:78 script/../config/../cruise:14:in`load’  
script/…/config/…/cruise:14:in `builder' script/../config/../cruise:68:in`send’  
script/…/config/…/cruise:68  
/usr/lib/ruby/1.8/fileutils.rb:121:in `chdir' /usr/lib/ruby/1.8/fileutils.rb:121:in`cd’  
script/…/config/…/cruise:67  
[error] Write failed: Broken pipe

Any ideas as to what a broken pipe is referring to? Any help is  
appreciated.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 17, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/cruisecontrol-problem-broken-pipe/126398/2 "2008-01-17T23:59:12Z")

</div>

It means it’s writing to a file and then for some reason it was  
interrupted.  
Or it couldn’t write to the file in the first place. Check the  
permissions.

On Jan 18, 2008 9:20 AM, mj [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ./script/…/config/…/lib/command\_line.rb:86:in `e' ./script/../config/../app/models/subversion.rb:57:in `update’  
> script/…/config/…/cruise:14:in `builder’
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

Feel free to add me to MSN and/or GTalk as this email.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 18, 2008, 12:07am UTC](https://www.ruby-forum.com/t/cruisecontrol-problem-broken-pipe/126398/3 "2008-01-18T00:07:24Z")

</div>

On Jan 17, 2008 3:58 PM, Ryan B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> It means it’s writing to a file and then for some reason it was interrupted.

This coming from Subversion#update (which basically performs ‘svn up’  
in work directory), it’s about socket connection from svn (Subversion  
client) to the Subversion server.

Can you manually do ‘svn up’ in the work directory, using the same  
user:group that the builder process runs under?

–  
Alexey V.  
CruiseControl.rb [[http://cruisecontrolrb.thoughtworks.com](http://cruisecontrolrb.thoughtworks.com)]  
RubyWorks [[http://rubyworks.thoughtworks.com](http://rubyworks.thoughtworks.com)]

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 21, 2008, 12:31am UTC](https://www.ruby-forum.com/t/cruisecontrol-problem-broken-pipe/126398/4 "2008-01-21T00:31:56Z")

</div>

Not sure why this fixed it, but it turns out the svn URL had an IP  
number in it. Once mj and I changed it to a normal domain name (using  
“svn switch --relocate”) everything’s been working fine since (knock  
knock). Thanks for the all helpful replies.

-Jason

On Jan 17, 3:06 pm, “Alexey V.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
