Error on push to GHC git repo due to Trac?

Erik de Castro Lopo mle+hs at
Tue Aug 6 05:27:47 CEST 2013

Hi all,

Got the error below.


bash: warning: setlocale: LC_ALL: cannot change locale (en_AU.UTF-8)
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 412 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_AU.UTF-8)
remote: To git at
remote:    9082111..0daee29  master -> master
remote: Traceback (most recent call last):
remote:   File "./hooks/post-receive-trac", line 202, in <module>
remote:     handle_ref(env=env, *line.split())
remote:   File "./hooks/post-receive-trac", line 163, in handle_ref
remote:     db = env.get_db_cnx()
remote:   File "/usr/lib/python2.7/dist-packages/trac/", line 329, in get_db_cnx
remote:     return get_read_db(self)
remote:   File "/usr/lib/python2.7/dist-packages/trac/db/", line 90, in get_read_db
remote:     return _transaction_local.db or DatabaseManager(env).get_connection()
remote:   File "/usr/lib/python2.7/dist-packages/trac/db/", line 152, in get_connection
remote:     return self._cnx_pool.get_cnx(self.timeout or None)
remote:   File "/usr/lib/python2.7/dist-packages/trac/db/", line 227, in get_cnx
remote:     return _backend.get_cnx(self._connector, self._kwargs, timeout)
remote:   File "/usr/lib/python2.7/dist-packages/trac/db/", line 147, in get_cnx
remote:     raise TimeoutError(errmsg)
remote: trac.db.pool.TimeoutError: Unable to get database connection within 0 seconds. (TracError: The user erikd requires read _and_ write permissions to the database file /home/trac/ghc/db/trac.db and the directory it is located in.)
   9082111..0daee29  master -> master

Erik de Castro Lopo

More information about the ghc-devs mailing list