Permissions problems on Trac

Philippe Brochard <[email protected]>
Newsgroups gmane.lisp.common-lisp-net.devel
Organization None
Message-ID <[email protected]>
Hi again,

It seems that the trac db has not the right permissions / group owner.

I get this for the clfswm project:

$ git push
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 691 bytes | 0 bytes/s, done.
Total 6 (delta 5), reused 0 (delta 0)
remote: Traceback (most recent call last):        
remote:   File "/project/clfswm/public_html/git/trac-post-receive-hook.3.py", line 196, in <module>        
remote:     handle_ref(env=env, *line.split())        
remote:   File "/project/clfswm/public_html/git/trac-post-receive-hook.3.py", line 157, in handle_ref        
remote:     db = env.get_db_cnx()        
remote:   File "build/bdist.linux-x86_64/egg/trac/env.py", line 418, in get_db_cnx        
remote:   File "build/bdist.linux-x86_64/egg/trac/db/api.py", line 288, in get_connection        
remote:   File "build/bdist.linux-x86_64/egg/trac/db/pool.py", line 213, in get_cnx        
remote:   File "build/bdist.linux-x86_64/egg/trac/db/pool.py", line 134, in get_cnx        
remote: trac.db.pool.TimeoutError: Unable to get database connection
within 0 seconds. (TracError: The user pbrochard requires read_and_write permissions to the database file /project/clfswm/trac/db/trac.db
and the directory it is located in.)



On the clfswm project directory:

pbrochard@lisp:~$ ls -l /project/clfswm/trac/db/trac.db
-rw-rw-r-- 1 www-data www-data 4542464 Nov  5 23:44 /project/clfswm/trac/db/trac.db

pbrochard@lisp:~$ touch /project/clfswm/trac/db/trac.db
touch: cannot touch `/project/clfswm/trac/db/trac.db': Permission denied

pbrochard@lisp:~$ id
uid=1182(pbrochard) gid=100(users) groups=100(users),32799(cl-wav-synth),32875(clfswm)

Sorry to bother you again,

Best regards,

Philippe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.