Setting up a new Rails 3.2.x application with Passenger and Nginx. Followed the documentation. But am getting a 403 error when visiting the website. Looking at the webapps/app_name/nginx/logs/error.log, I'm getting Cannot create Unix socket '/home/user/webapps/app_name/tmp/passenger.1.0.13275/generation-0/spawn-server/socket.13279.22502832': filename is too long. Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Unable to start the Phusion Passenger helper agent: it seems to have crashed during startup for an unknown reason, with exit code 1 (-1: Unknown error) asked 12 Aug '12, 12:26 telugubasha |
It turns out that the length of any temporary filename that passenger creates must be less than 108 chars. Mine turned out to be 110. http://code.google.com/p/phusion-passenger/issues/detail?id=674 There is a env variable PASSENGER_TMPDIR set in the start script for nginx. I edited /home/user/webapps/app_name/bin/start and changed PASSENGER_TMPDIR to point to a tmp directory i created in my home directory. Restart nginx and it worked. Don't think most people will have this problem, but thought I would be good to document here. This post also pointed in the same direction (end of post): http://royal-paw.com/2012/06/installing-sinatra-on-webfaction/ answered 12 Aug '12, 12:32 telugubasha I actually had the same problem and this helped me out. Thanks a lot!
(09 Mar '13, 11:09)
yoschi
Me too. This can't be that uncommon, actually. Solved the problem over here: http://community.webfaction.com/questions/11959/redmine-app-install-is-broken
(26 Apr '13, 12:46)
maz
Thanks for this post! I've had the same issue...
(14 Aug '13, 15:30)
ddrake
Thank you. Your solution worked for me. @Webfaction people: This happened to me with an app name of just 10 letters. I think the passenger installer should be tweaked to stop this.
(03 Apr '14, 13:57)
Crantok
|