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 188.8.131.52] 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.
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.
django-admin.py also responds with a list of commands.
Im a bit lost on what to do next?
Answer by joe_schmoe · Mar 17, 2012 at 09:59 AM
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.
Answer by andrew_s · Mar 19, 2012 at 06:53 AM
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
Answer by simon · Mar 21, 2012 at 06:21 AM
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.
The last remaining problem I had, was to update the osqa.fcgi file to point to the new location of 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.
Error 500 after installation 0 Answers