Permissions problem on upload

I’ve got a permissions problem that is only happening on my production
server. It coincides with making an upload with attachment_fu. It
looks
like it is preventing attachment_fu from making a tmp folder which
attachment_fu wants to send the file to. Anyone ever run into something
like this. I’m running this app on an Ubuntu server with Apache in
front of
Mongrels

Here is part of the exception notification:

A Errno::EACCES occurred in prints#create:

Permission denied - /var/www/apps/ballantynearts
/current/config/…/public/prints/52
/usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir’


Request:

  • URL: http://127.0.0.1:8051/prints
  • Parameters: {“commit”=>“Create”, “action”=>“create”,
    “print”=>{“uploaded_data”=>#<File:/tmp/CGI26751.7>, “title”=>“Mea
    Culpa”,
    “technique”=>“”, “description”=>“”}, “controller”=>“prints”}
  • Rails root: /var/www/apps/ballantynearts/current

I’d venture to say that the user that mongrel is running as doesn’t
have the necessary permissions to run this command.

-Robby

Sent from my iPhone

On Oct 6, 2007, at 11:56 AM, “Scott Ballantyne”