WebFaction
Community site: login faq

Hi everyone. I am trying to migrate my django app to a new server using the "Advanced Migration Guide" here:

http://docs.webfaction.com/user-guide/moving.html?highlight=migration#migrating-servers

I didn't seem to run into any problems, and made it to the part about "Testing your migrated applications." However, I cannot figure out how to successfully test them. I have edited my home computer's /etc/hosts file by specifying my destination server's IP address and my website domain name. When I then go to that URL, I get a "502 Bad Gateway".

I'm sure I messed something up during the migration process, but I cannot figure out what it is because I can't seem to get a helpful error log for my requests. In ~/logs/user the error log only tells me the following:

[Sun Mar 13 18:33:25 2011] [warn] mod_wsgi: Compiled for Python/2.6.
[Sun Mar 13 18:33:25 2011] [warn] mod_wsgi: Runtime using Python/2.6.5.
[Sun Mar 13 18:33:25 2011] [notice] Apache/2.2.15 (Unix) mod_wsgi/3.2 Python/2.6.5 configured -- resuming normal operations

Is there a way I can configure my app so I see the error after serving up that 502 Bad Gateway request?

Thanks in advance.

asked 13 Mar '11, 18:59

Spike
3335
accept rate: 0%

Hi,

Since you are getting a 502 error the most likely cause is that your application isn't running on the port that you were assigned in the control panel. Can you verify that and let me know?

(13 Mar '11, 19:13) klynton

Yep, that was it! I changed the port in my httpd.conf file and now my requests give me the regular useful error messages in my log files. Thanks!

(13 Mar '11, 19:47) Spike

You're very welcome! Glad I could help. :)

(13 Mar '11, 19:48) klynton
Be the first one to answer this question!
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:

×909
×108
×44
×28
×21

question asked: 13 Mar '11, 18:59

question was seen: 2,857 times

last updated: 13 Mar '11, 19:48

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