I work on a Mac with Aptana. Sometimes Aptana crashes and then, after restarting it, it shows this error when I try to access my application:
Errno::EPIPE in Site#home
Showing layouts/_banner_headers.html.erb where line #11 raised:
Broken pipe
The line doesn’t matter. The problem is that Webrick continues to run even after restarting Aptana. So, when you go to http://localhost:3038/ it is actually accessing a ‘zombie‘ Webrick. Not the one you last launched.
Here is the solution:
1. Fire up a Terminal
2. [etagwerker@gesell trunk]$ ps aux | grep ruby
etagwerker 22930 0.2 2.0 165156 84312 ?? S 2:53PM 0:48.88 /usr/local/bin/ruby -e p(Process.pid.to_s) -e load(ARGV.shift) -I … etc…
The first number is the PID
[etagwerker@gesell trunk]$ kill -9 22930
4. Restart your Aptana.
