WebFaction
Community site: login faq

I originally installed Rails 2.3.5/Passenger 2.2.8 app. I am trying to move to Rails 2.3.11/Passenger 2.2.15. I upgraded Rails without problems. For Passenger I installed the 2.2.15 gem and updated the nginx.conf file to point to 2.2.15, but these steps aren't sufficient as I get a 502 error.

I am moving from a Mongrel setup on another host so I am not familiar with Passenger and am still learning how Webfaction works.

asked 14 May '11, 15:08

Bc25
537
accept rate: 0%


A 502 error means the front-end nginx proxy server can not hear your back-end HTTP server. Check the port for the app assigned in the control panel in the 'apps' section and than look to see if that port is listening on the server (replace 12345 with the port #),

$ netstat -antuw | egrep "(^[^t])|(^tcp.*LISTEN)" | grep 12345

If it is running it will show you the PID and other process info, if not check the apps logs(replace appname with the name of the app),

$ tail -f ~/logs/user/error_appname*
permanent link

answered 14 May '11, 17:55

johns
5.3k312
accept rate: 23%

I get a result for the port search.

In the logs I get 2011/05/14 18:53:47 [crit] 4467#0: *1 connect() to unix:/home/USER/webapps/APP/tmp/passenger.4461/master/helper_server.sock failed (2: No such file or directory) while connecting to upstream (the rest deleted)

I checked tmp directory and there are 2 passenger.X directories. Was the second one was created by the updated version? What needs to be changed to use it? Thanks.

(14 May '11, 19:08) Bc25

You would have to submit a support ticket within the control panel for us to look directly.

(14 May '11, 19:18) johns
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
×25

question asked: 14 May '11, 15:08

question was seen: 2,516 times

last updated: 14 May '11, 19:18

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