Activities

August 2010
M T W T F S S
« Jul   Sep »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Trac Error : timestamp out of range for platform time_t

Recently I had an issue with trac installation. Initially I uses rmpforge repository to install trac on Centos5. Installation was easy and I could able to create trac instance. But I got the error on trac wiki area/ IT’s throws ” timestamp out of range for platform time_t” when I diply it over the Apache. Sucks !!!

Google shows lots of tickets opened for this error which I can’t understand 🙁 I tried many ways and I installed trac using easy_install package again. Whenever I ran the trac using tacd daemon it’s working perfectly but not through the same instance over the mod_python in Apache. One of my friends discovered that ‘web” and “tracd daemon” are showing different version even though it is sharing same trac folder.

I found there is an old version trac egg placed under “/usr/lib/python2.4/site-packages” which is mod_python being used. It’s yum trac installation issue and finally I did remove the yum trac installation. But the “easy_install” option has a problem with python setting on Centos/RH distribution.

Mod_python will not extract/use the.egg files placed under " site-packages" folder

. My option is, download the trac source code in zipped format and install it.

How do I install “easy_install” package,

[root@rc-040 installation]# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e
[root@rc-040 installation]# tar -zxvf setuptools-0.6c11.tar.gz
[root@rc-040 installation]# cd setuptools-0.6c11
[root@rc-040 installation]# python ./setup.py install

[root@rc-13 trac]# wget ftp://ftp.edgewall.com/pub/trac/Trac-0.12.zip

[root@rc-13 trac]# easy_install --always-unzip Trac-0.12.zip

After restating the apache everything working like charm. My Apache configuration is,

<VirtualHost *:80>
ServerName trac.domain.com
ServerAdmin admin@domain.com
DocumentRoot /backup/trac/marketing
DirectoryIndex index.html
 <Location />
        SetHandler mod_python
        PythonInterpreter main_interpreter
        PythonOption TracLocale en_GB.UTF8
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /backup/trac/marketing
        PythonOption TracUriRoot /
    </Location>
    <Location /login>
        AuthType Basic
        AuthName "MyCompany Trac Server"
        AuthUserFile /backup/trac/auth
        Require valid-user
    </Location>

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>