I have had 500 errors in the past, and got around them by doing an upgrade.

The site has been down a week, and gets 500 error everytime you hit it.

So - I had a dive into the Error logs from Bluehost end. The only error I keep seeing pop up is:

[Mon Mar 12 23:37:37 2012] [error] [client 66.249.68.37] 451-SPEED LIMIT: Account has exceeded the max emails per hour allowed

Let me know via comments if you need additional info, and ill get it.
Previous install notes from Andrew here.

UPDATE Bluehost have pulled Python2.6 from their users - more info.
(Once solved, Id like to tidy up a good answer on how to recitfy this for any other Bluehost users in same strife).

So, I have installed a local copy of 2.6 under the Bluehost home directory (instructions here).
I also updated my .bashrc file:

export PATH=$HOME/python/bin:$PATH
export PYTHONPATH=$HOME/.local/lib/python2.6:$PYTHONPATH

Python -v reports its using 2.6.

>>> import sys; sys.path
['', '/home6/dekhofor/.local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/home6/dekhofor/.local/lib/python2.6/site-packages/flup-1.0.3.dev_20110405-py2.6.egg', '/home6/dekhofor/.local/lib/python2.6/site-packages/MySQL_python-1.2.3-py2.6-linux-x86_64.egg', '/home6/dekhofor/.local/lib/python2.6/site-packages/html5lib-0.90-py2.6.egg', '/home6/dekhofor/.local/lib/python2.6/site-packages/Markdown-2.0.3-py2.6.egg', '/home6/dekhofor/.local/lib/python2.6/site-packages/South-0.7.3-py2.6.egg', '/home6/dekhofor/.local/lib/python2.6/site-packages/python_openid-2.2.5-py2.6.egg', '/home6/dekhofor/.local/lib/python2.6', '/home6/dekhofor', '/home6/dekhofor/python/lib/python26.zip', '/home6/dekhofor/python/lib/python2.6', '/home6/dekhofor/python/lib/python2.6/plat-linux2', '/home6/dekhofor/python/lib/python2.6/lib-tk', '/home6/dekhofor/python/lib/python2.6/lib-old', '/home6/dekhofor/python/lib/python2.6/lib-dynload', '/home6/dekhofor/.local/lib/python2.6/site-packages', '/home6/dekhofor/python/lib/python2.6/site-packages']
>>>

I have not reinstalled Django, but does the above not indicate its ok?
I can run an import django ok in Python.

Running django-admin.py also responds with a list of commands.

Im a bit lost on what to do next?

This question is marked "community wiki".

asked 13 Mar '12, 01:39

Simon's gravatar image

Simon
301203532
accept rate: 0%

edited 20 Mar '12, 02:21


Account has exceeded the max emails per hour allowed

I'm hosting on WebFaction and there is a maximum limit imposed by them on the number of emails that can be sent out in a 24 hour period.

Because I have a fairly high-traffic site, I emailed them and had the limit raised significantly beforehand before it could affect OSQA's email notifications.

You might have hit some kind of similar emailing limit from Bluehost. It might be worth contacting them to check.

link

answered 17 Mar '12, 09:59

Joe_Schmoe's gravatar image

Joe_Schmoe
43981421
accept rate: 30%

Hi Joe I think the email errors are a red herring (my fault), as I have now found out that the built in python2.6 version was stripped out and left only v2.4 there. However, ive +1 you as once things are ironed out, I will get in touch with Bluehost to discuss the email errors.

(20 Mar '12, 01:35) Simon

check my.webfaction.com to see if you've exceeded serving bandwidth allowance.

There are several different server logs on webfaction - check all of them (they're probably in /home6/dekhofor/logs/*).

I don't remember where we put python2.6 - it might be somewhere under /home6/dekhofor, or it might be outside that tree. There should be something like a .bashrc file somewhere, maybe in /home6/dekhofor itself, that points to the python2.6 path

link

answered 19 Mar '12, 06:53

Andrew_S's gravatar image

Andrew_S ♦
5.7k176178
accept rate: 22%

At the time of writing, Bluehost have Python 2.4 installed, but there is an optional 2.6 also available for use.

However, bluehost have now stripped this out: source

Python 2.6 support was removed as it was only 'in-part' installed for one of the tools used for administering your server. It was unintentionally provided as a 'feature' to many customers, but was never intended to be, hence we have removed the ability to access it. If you have a need to utilize python 2.6+, you will need to install it under your own hosting account and maintain it. Although we have no ETA at present, when we do happen to upgrade our servers to CentOS 6, we will be offering python 2.6+ at that time (whichever the latest distro release happens to be).

I followed the instructions outlined here to install another version of 2.6 underneath my home folder of Bluehost. I should have rolled to 2.7, but wanted to keep things as they were to avoid any potential problems in getting things up and running.

I followed both instructions at this link and from Andrew_S previous install notes for me, and I have documented some of the problems I had at the footer of my Q.

The last remaining problem I had, was to update the osqa.fcgi file to point to the new location of Python:

#!/home6/dekhofor/python/bin/python

I then touched the osqa.fcgi file, and my site is back up and running.

I hope this helps anyone running OSQA on Bluehost who may experience similar issues.
Let me know if you need more info.

link

answered 21 Mar '12, 06:21

Simon's gravatar image

Simon
301203532
accept rate: 0%

This is the final answer, but cannot mark it as resolved. Can a mod do this?

(21 Mar '12, 06:25) Simon
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

Tags:

×41

Asked: 13 Mar '12, 01:39

Seen: 1,342 times

Last updated: 21 Mar '12, 06:25

powered by OSQA