login community 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:

1
2
3
[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 Mar 13 '11 at 18:59

Spike's gravatar image

Spike
134

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?

(Mar 13 '11 at 19:13) klynton ♦♦ klynton's gravatar image

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!

(Mar 13 '11 at 19:47) Spike Spike's gravatar image

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

(Mar 13 '11 at 19:48) klynton ♦♦ klynton's gravatar image
Be the first one to answer this question!
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×641
×72
×23
×15
×12

Asked: Mar 13 '11 at 18:59

Seen: 674 times

Last updated: Mar 13 '11 at 19:48

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited