Mongrel stops to loading the page in browser

Hi all,

I have a problem with mongrel-1.1.2 running with Apache Apache/2.0.61
and MySQL 5.0.45 on FreeBSD 6.1.

I’m developing my application with InstantRails that uses Mongrel and
everything is working great. I have about 30 shops in a table. I also
store the logo images (png files) in the table for each shop. Under
Windows/InstantRails everything is working correct.

When i however copy the application to the Unix Box, start Mongrel and
load the page i get an error in the mongrel.log file with following

** Changing group to “www”.
** Changing user to “www”.
** Installing debugging prefixed filters. Look in log/mongrel_debug for
the files.
** Starting Rails with development environment…
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no
** Rails signals registered. HUP => reload (without restart). It might
not work well.
** Mongrel 1.1.2 available at
** Writing PID file to tmp/pids/ - [Thu, 03 Jan 2008 10:22:49 GMT] “GET /de/page HTTP/1.1”
Thu Jan 03 11:22:51 +0100 2008: Read error: #<Errno::EPERM: Operation
not permitted>
write' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/http_response.rb:137:inwrite’
send_body' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/http_response.rb:147:infinished’
process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb:285:inrun’
initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb:285:innew’
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb:268:ininitialize’
new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb:268:inrun’
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/configurator.rb:281:ineach’
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/mongrel_rails:128:inrun’
run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/mongrel_rails:281 /usr/local/bin/mongrel_rails:16:inload’

This error message tells me that there is an error in the
http_response.rb file happening at the method send_data. But i could not
determine what the problem is exactly. As everything is working with
InstantRails i really don’t know where to start searching the problem as
the code in my eyes should be working.

When i remove the “image_tag” line from the rhtml file so that the
images are not loading, then the browser is loading everything. If the
“image_tag” line is present, then the browser will stop after 2 thirds
of displaying the html.

So it seems an image can not be loaded or displayed.

<% @topshops.each do |shop| %>

:alt => %>
<%= %>

<%= shop.shop_description %>
<%= link_to “Registrieren”, :controller => ‘page’,
:action => ‘register’ %>
<%= shop.points_text %> <%= link_to “Details”, :action => shop.symbol %>

<% end %>

def show_picture_of_partner
partner = Partner.find(params[:id])
send_data(partner.picture_data, :type =>
partner.picture_content_type, :filename => partner.picture_name,
:dispositon => ‘inline’)

Can anybody tell me what the problem could be? Or what to do better to
get around this problem?