TurboGears dies a few seconds after startup

software development

#1

I am new to web development using frameworks, and decided to start experimenting with TurboGears. I got it installed and running with very little effort, but unfortunately it won’t stay running longer than a few seconds. Dreamhost raised Apache2 Softlimit for my domain, but that does not seem to make a difference.

I read the following before I got started, but I think I found a simpler way to make this work (apart from that dying, so maybe I did something wrong):

http://trac.turbogears.org/wiki/TurboGearsOnDreamHost
http://wiki.dreamhost.com/index.php/Turbogears
http://docs.turbogears.org/1.0/Wiki20/Page1

Here’s how I installed and started it:

[code]mkdir -p ~/bin
mkdir -p ~/python2.4/site-packages

cat >>.bash_profile
alias python=python2.4
export PYTHONPATH=/home//python2.4/site-packages
export PATH=/home//bin

source .bash_profile

wget http://www.turbogears.org/download/tgsetup.py
python tgsetup.py --install-dir=/home//python2.4/site-packages --script-dir=/home//bin

cd my.domain.name
tg-admin quickstart

mv Wiki-20/* .

edit .htaccess

edit dev.cfg

python start-wiki20.py

#at this point I run into the following error:
You are required to install SQLObject but appear not to have done so.
Please run your projects setup.py or run easy_install SQLObject.
#end error

easy_install –install-dir=/home//python2.4/site-packages –script-dir=/home//bin “SQLObject>=0.7.1dev-r1860,<=0.7.99"

python start-wiki20.py

#at this point it complained the port was taken, so I experimented until it found an unused port
[/code]So then it was running, and I was able to browse to the page, but in any case, after maybe 5 seconds of running TG dies. Here’s the log:

/home/username/python2.4/site-packages/CherryPy-2.3.0-py2.4.egg/cherrypy/lib/profiler.py:54: UserWarning: Your installation of Python doesn't have a profile module. If you're on Debian, you can apt-get python2.4-profiler from non-free in a separate step. See http://www.cherrypy.org/wiki/ProfilingOnDebian for details. warnings.warn(msg) /home/username/python2.4/site-packages/CherryPy-2.3.0-py2.4.egg/cherrypy/lib/profiler.py:54: UserWarning: Your installation of Python doesn't have a profile module. If you're on Debian, you can apt-get python2.4-profiler from non-free in a separate step. See http://www.cherrypy.org/wiki/ProfilingOnDebian for details. warnings.warn(msg) 2008-02-01 10:40:51,558 cherrypy.msg INFO CONFIG: Server parameters: 2008-02-01 10:40:51,559 cherrypy.msg INFO CONFIG: server.environment: development 2008-02-01 10:40:51,560 cherrypy.msg INFO CONFIG: server.log_to_screen: True 2008-02-01 10:40:51,560 cherrypy.msg INFO CONFIG: server.log_file: 2008-02-01 10:40:51,561 cherrypy.msg INFO CONFIG: server.log_tracebacks: True 2008-02-01 10:40:51,562 cherrypy.msg INFO CONFIG: server.log_request_headers: True 2008-02-01 10:40:51,564 cherrypy.msg INFO CONFIG: server.protocol_version: HTTP/1.0 2008-02-01 10:40:51,565 cherrypy.msg INFO CONFIG: server.socket_host: 2008-02-01 10:40:51,565 cherrypy.msg INFO CONFIG: server.socket_port: 18889 2008-02-01 10:40:51,566 cherrypy.msg INFO CONFIG: server.socket_file: 2008-02-01 10:40:51,567 cherrypy.msg INFO CONFIG: server.reverse_dns: False 2008-02-01 10:40:51,568 cherrypy.msg INFO CONFIG: server.socket_queue_size: 5 2008-02-01 10:40:51,569 cherrypy.msg INFO CONFIG: server.thread_pool: 10 2008-02-01 10:40:52,692 cherrypy.msg INFO HTTP: Serving HTTP on http://0.0.0.0:18889/ 2008-02-01 10:41:10,932 cherrypy.msg INFO ENGINE: SystemExit raised: shutting down autoreloader 2008-02-01 10:41:10,933 cherrypy.msg INFO HTTP: HTTP Server shut down 2008-02-01 10:41:10,938 cherrypy.msg INFO ENGINE: CherryPy shut down I have not enabled FastCGI.

Any ideas what is wrong, or what I should try?