Skip to content

trac error – Unable to get database connection within 0 seconds

Spent the better part of today fighting to get trac installed on my server so I can keep track of development tasks.

Finally gave up trying to get the RVSkin version installed as it seemed to be a mess and was having issues with not finding Python bindings that had been installed. I figured I’d rather have the control of manually installing.

Got it up and the an error “Unable to get database connection within 0 seconds” following a trace of how it got there.

After much Googling and trying dozens of different things it hit me. It’s a permissions issue. So I made /db/trac.db 0666 so that everybody could read and write it. Not enough. Took 0777 on the /db/ folder to get it working, and now it’s done.

Hopefully somebody else will find this without spending the hours I have digging and the fix will work.

Published inProgramming

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *