Dear Trac folk,
This issue came up a long time ago on this mailing list [0], I just ran
into it tonight, and I've just figured it out. If you see a banner on
your repository webpages or a message from trac-admin telling you:
Warning: Can't synchronize with the repository (.../ does not appear
to contain a Mercurial repository.)
This is actually a file permission issue. My repository was set up as:
| directory | owner | perms |
|-------------+-------+-------|
| repository/ | me:me | 0600 |
| .hg/ | me:me | 0700 |
| afile | me:me | 0600 |
| asubdir/ | me:me | 0700 |
| otherfile | me:me | 0600 |
For some unknown, inexplicable reason, my project had 600 (unreadable)
permissions. So, the www-data user (the Apache user) was unable to read
and thus unable to serve the directory.
Fixing this was relatively simple. I just had to:
- Give everything in the directory all the read permissions.
- Give all the subdirectories executable permisisons (maybe not strictly
necessary, but can't hurt).
Afterwards, it looked more like:
| directory | owner | perms |
|-------------+-------+-------|
| repository/ | me:me | 0755 |
| .hg/ | me:me | 0755 |
| afile | me:me | 0644 |
| asubdir/ | me:me | 0755 |
| otherfile | me:me | 0644 |
Hope this helps somebody in the future, maybe even openhex [1],
Nick
0: http://osdir.com/ml/trac-users/2010-03/msg00041.html
1: http://ohxplib.openhex.org/wiki/TracBackup
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.