Have just build an ec2 server with ror+mongrel+nginx - deployed the rails app using capistrano and your deploy.rb but when I try to access the page on port 9000 I got:
/!\ FAILSAFE /!\ Sat Oct 25 22:07:29 +0000 2008
Status: 500 Internal Server Error
file /tmp/ruby_sess.d621d64e8b2f655e not readable
No idea on how to solve this issue.
Help get this topic noticed by sharing it on Twitter, Facebook, or email.
EMPLOYEE0To narrow this down can you check out a couple things.
SSH into your server using the password for cftuser that you were emailed about your server assembly. Use sudo to become superuser (sudo su)
1) Then, could you check that there is space left in your filesystem.
2) Check to see if that file is in tmp and what its permissions are
3) And then - depending on those answers it might be worth wacking the contents of /tmp and try again.
Then we will take it from there.
Try chown mongrel /tmp/ruby_sess.* and retry.
In Elastic Server out of the box, both nginx and mongrels are configured to run as user mongrel (uid=200).
This may not be the root cause of the problem however, because I can't explain how the files are created with root ownership. How do you start the rails app? You could use Elastic Server Manager to start and stop services (it's a web admin console running on port 2999), or /etc/init.d/cft-rails-nginx [start|stop].
Could you please show output of ps auxww | egrep 'nginx|mongrel' ?