WebFaction
Community site: login faq
1
2

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
5115
accept rate: 0%

edited 12 Aug '12, 12:28


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/

permanent link

answered 12 Aug '12, 12:32

telugubasha
5115
accept rate: 0%

edited 12 Aug '12, 12:35

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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×186
×108
×25

question asked: 12 Aug '12, 12:26

question was seen: 6,144 times

last updated: 03 Apr '14, 13:57

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM