Passenger Standalone Start Issues

90 views
Skip to first unread message

Varun Jain

unread,
Apr 15, 2013, 8:38:05 AM4/15/13
to phusion-...@googlegroups.com
Hi ,

I am trying to get Passenger up and running on my local machine for dev purposes . However , I keep getting the following error :

ID file: /home/superq/blog/tmp/pids/passenger.3000.pid
Log file: /home/superq/blog/log/passenger.3000.log
Environment: development
Accessible via: http://0.0.0.0:3000/

You can stop Phusion Passenger Standalone by pressing Ctrl-C.
===============================================================================
terminate called after throwing an instance of 'Passenger::FileSystemException'
  what():  Cannot stat '/home/superq/blog/config.ru': Permission denied (errno=13)
2013/04/15 18:01:14 [alert] 1993#0: worker process 1994 exited on signal 6 (core dumped)

All flies , from the path to config.ru are owned by root . I even set the permission as 0777 on config.ru for it to work but it still did not work . To confirm that passenger was running under root user I used the following command : ps u 1993 and it showed the user as root . I tried with : rails server on the same application and the server started with no issues . What can be the issue here ?

Amin Yazdani

unread,
May 8, 2013, 8:43:12 PM5/8/13
to phusion-...@googlegroups.com
I have the same problem. Any luck fixing this?

Tinco Andringa

unread,
May 10, 2013, 4:59:38 AM5/10/13
to phusion-...@googlegroups.com
Hi,

I am not sure why this exception happens, but you really shouldn't run applications as root. Passenger when run on port 3000 doesn't require root at all, and when run on port 80 is designed to run its workers as the owner of the web application, which typically should be a less privileged user.

Could you try chown -R'ing the webapplication to a less privileged user and then running passenger on it as that user or as root?

Kind regards,
Tinco Andirnga


--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages