[Trac] Problem with setting up Trac 1.0.1 with Git 1.8.3.1 on CentOS 7
Hi there, i installed Trac according to the instructions on http://trac.edgewall.org/wiki/TracInstall and http://trac.edgewall.org/wiki/TracModWSGI . So far, Trac works just fine. Now i am trying to get Git working with Trac, but i just wont work and i dont know why. I hop you can help me! The System informations: PackageVersionTrac1.0.1Genshi0.7 (with speedups)mod_wsgi3.4 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})MySQLserver: 5.5.37-MariaDB, client: 5.5.37-MariaDB, thread-safe: 1MySQLdb1.2.5Python2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] setuptools0.9.8jQuery1.7.2 What i've done or tried so far: 1. yum install git 2. vim /usr/share/trac/projects/mytrac/conf/trac.ini 1. repository_type = git 2. [components] tracopt.versioncontrol.git.* = enabled 3. adduser git 4. mkdir -p /srv/git/myrepo cd /srv/git/myrepo 5. git --bare init --shared=true 6. chown -R git:git -R /srv/git/myrepo At this point i can check out and check in changes from anywhere. Now to the step where i need to connect trac with my repository: In the admin-panel Manage Repositories i add the repository (/srv/git/myrepo) and resync it with trac-admin /usr/share/trac/projects/mytrac/ repository resync * After this, there should be a Browse button in menu. But there isn. No errors are displayed but in the logfile i found this: 2014-08-21 19:29:00,106 Trac[git_fs] INFO: detected GIT version 1.8.3.1 2014-08-21 19:29:00,107 Trac[PyGIT] ERROR: GIT control files missing in '/srv/git/myrepo' According to http://trac.edgewall.org/wiki/TracGit i need to set the repository to /srv/git/myrepo/.git. But i dont get a .git directory if i init it with the --bare flag. Also, i cant push changes to the repository if i dont use the --bare flag. If i try, i get the following error: remote: error: refusing to update checked out branch: refs/heads/master remote: error: By default, updating the current branch in a non-bare repository remote: error: is denied, because it will make the index and work tree inconsistent remote: error: with what you pushed, and will require 'git reset --hard' to match remote: error: the work tree to HEAD. remote: error: remote: error: You can set 'receive.denyCurrentBranch' configuration variable to remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into remote: error: its current branch; however, this is not recommended unless you remote: error: arranged to update its work tree to match what you pushed in some remote: error: other way. remote: error: remote: error: To squelch this message and still keep the default behaviour, set remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'. To root@192.168.1.5:/srv/git/myrepo And even if i create a repository without the --bare flag, i am getting the same error (GIT control files missing in '/srv/git/myrepo'). Can you please help me out... i dont know what else i can try... Regards, Pascal -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Problem with setting up Trac 1.0.1 with Git 1.8.3.1 on CentOS 7
On Thu, Aug 21, 2014 at 10:37 AM, Pascal Dauer dauer.pas...@gmail.com wrote: Hi there, i installed Trac according to the instructions on http://trac.edgewall.org/wiki/TracInstall and http://trac.edgewall.org/wiki/TracModWSGI . So far, Trac works just fine. Now i am trying to get Git working with Trac, but i just wont work and i dont know why. I hop you can help me! The System informations: PackageVersionTrac1.0.1Genshi0.7 (with speedups)mod_wsgi3.4 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})MySQLserver: 5.5.37-MariaDB, client: 5.5.37-MariaDB, thread-safe: 1MySQLdb1.2.5 Python2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)]setuptools0.9.8jQuery1.7.2 What i've done or tried so far: 1. yum install git 2. vim /usr/share/trac/projects/mytrac/conf/trac.ini 1. repository_type = git 2. [components] tracopt.versioncontrol.git.* = enabled 3. adduser git 4. mkdir -p /srv/git/myrepo cd /srv/git/myrepo 5. git --bare init --shared=true 6. chown -R git:git -R /srv/git/myrepo At this point i can check out and check in changes from anywhere. Now to the step where i need to connect trac with my repository: In the admin-panel Manage Repositories i add the repository (/srv/git/myrepo) and resync it with trac-admin /usr/share/trac/projects/mytrac/ repository resync * After this, there should be a Browse button in menu. But there isn. No errors are displayed but in the logfile i found this: 2014-08-21 19:29:00,106 Trac[git_fs] INFO: detected GIT version 1.8.3.1 2014-08-21 19:29:00,107 Trac[PyGIT] ERROR: GIT control files missing in '/srv/git/myrepo' According to http://trac.edgewall.org/wiki/TracGit i need to set the repository to /srv/git/myrepo/.git. But i dont get a .git directory if i init it with the --bare flag. The path /srv/git/myrepo appears to be correct. I gave you some bad advice in (1) by not taking note that you were creating a bare repository. There have been some strange issue reported when invisible whitespace is appended to the path (2). I suggest deleting the repository and recreating it by typing in the full path rather than copying and pasting it. What is the output of?: $ ls /srv/git/myrepo (1) http://stackoverflow.com/a/25432261/121694 (2) http://trac.edgewall.org/ticket/11351#comment:2 -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
[Trac] Re: Problem with setting up Trac 1.0.1 with Git 1.8.3.1 on CentOS 7
The output of ls /srv/git/myrepo branches config description HEAD hooks info objects refs a bit more information: ls -a -Z /srv/git/myrepo drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 . drwxr-xr-x. root root unconfined_u:object_r:var_t:s0 .. drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 branches -rw-rw-r--. git git unconfined_u:object_r:var_t:s0 config -rw-rw-r--. git git unconfined_u:object_r:var_t:s0 description -rw-rw-r--. git git unconfined_u:object_r:var_t:s0 HEAD drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 hooks drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 info drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 objects drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 refs maybe SELinux is making some trouble? Like you asked on SO, here my logging section from the trac.ini [logging] log_file = trac.log log_level = DEBUG log_type = file --- Deleting and typing the repo path didnt work. I also tried to config the repository in the trac.ini in the repositories section like this: [repositories] project.dir = /srv/git/myrepo project.description = This should be my repo. project.type = git I get the same error... 2014-08-21 23:37:34,623 Trac[PyGIT] ERROR: GIT control files missing in '/srv/git/myrepo' -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Re: Trac Layout Recipe - Help
On Wed, Aug 20, 2014 at 10:04 AM, Jared Bownds jared.bow...@gmail.com wrote: Hi, Yes, I am referring to the Wiki / Timeline / Roadmap links. In comparing the instance where the active class is working, I can see it being called when using the inspector. On the other hand, I am unable to see the active class being called for the instance where the active behavior is not present (go figure). When you mention the CSS rules, what is the best way to dissect them? Also, what in your mind could potentially cause this class to be omitted? I should mention, this instance utilized the a plugin called ContextChrome, with the following components enabled: InterTracTicketLinkDecorator = enabled TicketLinkDecorator = enabled TypeClassToTicket = enabled Hint: make sure to do a reply-all so the message goes to the mailing list. Maybe someone else will have better insight than I do. First I would try disabling all those plugins through Plugin Admin page, restart the server and see if the issue goes away. If it does, enable them one-by-one until the culprit is found. We have seen an issue in which the activate item won't be highlighted if there is a warning displayed on the page, such as //unsupported version control system//. Do you have any warnings displayed? http://trac.edgewall.org/ticket/10953#comment:5 -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Setuptools 5.4 performance
On Monday, August 11, 2014 10:48:19 AM UTC-7, Jun Omae wrote: On Mon, Aug 11, 2014 at 3:02 PM, Peter Suter pets...@gmail.com javascript: wrote: On 09.08.2014 15:23, Jun Omae wrote: I think that is a setuptools issue in 5.4. It seems the issue has been introduced in [10cc90d9b828] and [2d13c675f84c] of setuptools. After setuptools 5.4, the zipinfo property of ZipProvider class reads egg file each time. Before 5.3, __init__ method of ZipProvider class reads egg file and the result will be stored in its zipinfo instance variable. The following patch would fix it. --- pkg_resources.py.orig 2014-08-09 22:06:34.877375000 +0900 +++ pkg_resources.py 2014-08-09 22:06:37.533625000 +0900 @@ -1636,7 +1636,11 @@ @property def zipinfo(self): -return self._zip_manifests.load(self.loader.archive) +try: +return self._zipinfo +except AttributeError: +self._zipinfo = self._zip_manifests.load(self.loader.archive) +return self._zipinfo def get_resource_filename(self, manager, resource_name): if not self.egg_name: Thank you for investigating! Have you sent the patch to setuptools developers? I just posted a new issue with the patch at https://bitbucket.org/pypa/setuptools/issue/240. -- Jun Omae jun...@gmail.com javascript: (大前 潤) In http://trac.edgewall.org/ticket/11694#comment:13 we are discussing how to document the defect and solution for setuptools 5.4 - 5.6. -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Re: Problem with setting up Trac 1.0.1 with Git 1.8.3.1 on CentOS 7
On Thu, Aug 21, 2014 at 3:40 PM, Pascal Dauer dauer.pas...@gmail.com wrote: The output of ls /srv/git/myrepo branches config description HEAD hooks info objects refs a bit more information: ls -a -Z /srv/git/myrepo drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 . drwxr-xr-x. root root unconfined_u:object_r:var_t:s0 .. drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 branches -rw-rw-r--. git git unconfined_u:object_r:var_t:s0 config -rw-rw-r--. git git unconfined_u:object_r:var_t:s0 description -rw-rw-r--. git git unconfined_u:object_r:var_t:s0 HEAD drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 hooks drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 info drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 objects drwxrwsr-x. git git unconfined_u:object_r:var_t:s0 refs maybe SELinux is making some trouble? A permissions issue is suggested by, http://trac.edgewall.org/wiki/TracGit#Troubleshooting Wrong permissions may also be the cause of the error GitError: GIT control files not found, maybe wrong directory?. Make sure the repository path is accessible via git by the tracd process. -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.