[Trac] Attachment Links broken after upgrade
Hello, I performed an upgrade (I think from .11 to 1.01) and my attachment links don't seem to work. I tried moving the files to a few different locations but no luck. Any advice? Thanks!!! THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] Re: Trac + Git performance issue
On 01.06.2013 19:05, W. Martin Borgert wrote: I'm trying to integrate a Git repository into Trac. For testing I chose the Linux kernel (~375000 commits, ~1.3 GB). I first tried without any special settings in trac.conf. Unfortunately the Browse Source view was unusable slow. Than I tried the setting with: Is your real repository the same size? Have you tried testing it with a repository size more similar to your real needs? If your repository is of a more typical size it will work okish. [git] cached_repository = true persistent_cache = true It will display wrong results (unless it was fixed, but I don't think so). On 2013-06-01 09:29, RjOllos wrote: I just started working with the Git connector component as well, and noticed on the Git documentation page [1]: Please note that we're still considering the level of performance to be sub-optimal, so it might not work for you. Small to medium sized repositories should be handled reasonably well, however. OK. I see, that there are some open tickets and ideas on improvements, e.g. #10606. Is there any reason (not) to use libgit2/pygit2? Would this improve performance anyway? From what I remember reading the code some time ago - it won't. Performance problems (and wrong data with cache) are a result of Trac version control system being tightly dependant on the SVN model. GitCachedRepository is using an SVN cache, and its representation assumes linear (:D) order of commits. IMO without huge rewrite of GitCachedRepository and probably some parts of the not-cached version no gains can be achieved. -- silk -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Trac] Git Unsupported version control system - Setting up post-receive hooks
Hello, When you do a push to a repository bare installed on the same server where the Trac. Returns the message: remote: TracError: Unsupported version control system git: Can't find an appropriate component, maybe the corresponding plugin was not enabled? 1. I rename this script [1] to /my_repo/hooks/post-receive. 2. My version is Trac1.0. I need to install any package? Still need to install the trac-git? 3. In Trac browser code I can see perfectly my repository. The problem is only integrate commits(comments) with Trac. I am also using the correct syntax for commit: $ git commit-m Refs #TicketNumber - foobar [1] http://trac-hacks.org/attachment/wiki/GitPlugin/trac-post-receive-hook-0.12-new-commits-from-all-branches-with-logfile.py My Enviroment: git version 1.7.10.4 Trac1.0 Ubuntu 12.10 (I am ashamed!) trac.ini: [components] repository_type = git repository_dir = repository_sync_per_request = ticket_changesets.* = enabled ticketchangesets.* = enabled tracext.git.* = enabled tracopt.versioncontrol.git.* = enabled ticketchangesets.commit_updater.committicketupdater = enabled ticketchangesets.web_ui.commitmessagemacro = enabled tracopt.ticket.commit_updater.committicketreferencemacro = enabled tracopt.ticket.commit_updater.committicketupdater = enabled [git] cached_repository = false git_bin = /usr/bin/git git_fs_encoding = utf-8 persistent_cache = false shortrev_len = 6 trac_user_rlookup = true use_committer_id = true use_committer_time = false wiki_shortrev_len = 7 [repositories] .alias = dbatez dbatez.description = This is the ''main'' project dbatez. dbatez.dir = /var/trac/projects/repo/zap.git dbatez.hidden = true dbatez.type = git dbatez.url = zimora.description = This is the secondary library code ''Zim Oracle''. zimora.dir = /opt/git/zimora.git zimora.type = git zimora.url = [ticket] commit_ticket_update_check_perms = false commit_ticket_update_commands.close = close closed closes fix fixed fixes commit_ticket_update_commands.refs = ALL commit_ticket_update_envelope = [] commit_ticket_update_notify = true @ivanelson []s -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] Re: Trac + Git performance issue
On 2013-06-04 15:58, Grzegorz Sobański wrote: Is your real repository the same size? Have you tried testing it with a repository size more similar to your real needs? If your repository is of a more typical size it will work okish. In fact, one of the repositories I have to support, will be the Linux kernel (for working on some special drivers). For my setup it would be possible to work in a different way, i.e. use the Linux kernel as a tar.gz and the drivers as patches in git, while other smaller software components could live naturally in git. Not elegant, but possible. From what I remember reading the code some time ago - it won't. Performance problems (and wrong data with cache) are a result of Trac version control system being tightly dependant on the SVN model. GitCachedRepository is using an SVN cache, and its representation assumes linear (:D) order of commits. IMO without huge rewrite of GitCachedRepository and probably some parts of the not-cached version no gains can be achieved. I see. So there are three options: - bribe Trac developers to solve the problem (my boss will kill me for the spendings) - avoid Git for now (my colleagues will kill me for having to stay with SVN) - find an alternative to Trac (I will kill myself for not being able to work with it) Yesterday, I tried option 3 with Redmine, but at least in my adhoc setup Git performance was much worse than Tracs. I have no experience with Redmine, so maybe it was all my fault. Anyway, from my perspective, Git has a huge momentum and - if I like it or not - most developers I know, are already using it or have plans to migrate. If Tracs support for Git does not improve significantly in the short term, I fear, that people will move to Gitorious or Gitlab. Both are based on Ruby - no hacking fun for me :~( Cheers -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Trac] Re: Attachment Links broken after upgrade
On Tuesday, June 4, 2013 6:02:27 AM UTC-7, Tim Colletto wrote: Hello, I performed an upgrade (I think from .11 to 1.01) and my attachment links don’t seem to work. I tried moving the files to a few different locations but no luck. Any advice? Thanks!!! This seems to be coming up a fair bit. I haven't seen a definite solution, but you might find suggestions in recent threads: - https://groups.google.com/d/msg/trac-users/BCDShlhvm6M/dHDYiGR_jw4J - https://groups.google.com/d/msg/trac-users/zdfMPkRLwrE/T_jNu4rzUWsJ` - https://groups.google.com/d/msg/trac-users/e0-vR7Y0Og8/UhoiS1UW-i4J - https://groups.google.com/d/msg/trac-users/1Ssmo4OZl60/tQ7z2aOdlr0J -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Trac] Re: Git Unsupported version control system - Setting up post-receive hooks
Another detail! Always after the command: $ git push origin develop An exception is raised by WikiExtrasPlugin[1]. [1] http://trac-hacks.org/wiki/WikiExtrasPlugin see: 2013-06-05 00:08:21,025 Trac[loader] DEBUG: Loading tracwikiextras from /usr/local/lib/python2.7/dist-packages/TracWikiExtras-0.13.2dev_r0-py2.7.egg 2013-06-05 00:08:21,028 Trac[loader] ERROR: Skipping tracwikiextras = tracwikiextras: Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/trac/loader.py, line 68, in _load_eggs entry.load(require=True) File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 1989, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File /usr/local/lib/python2.7/dist-packages/TracWikiExtras-0.13.2dev_r0-py2.7.egg/tracwikiextras/__init__.py, line 1, in module from boxes import AboutWikiBoxes, Boxes File /usr/local/lib/python2.7/dist-packages/TracWikiExtras-0.13.2dev_r0-py2.7.egg/tracwikiextras/boxes.py, line 28, in module from tracwikiextras.icons import Icons File /usr/local/lib/python2.7/dist-packages/TracWikiExtras-0.13.2dev_r0-py2.7.egg/tracwikiextras/icons.py, line 55, in module from trac.config import BoolOption, ConfigSection, IntOption, ListOption ImportError: cannot import name ConfigSection 2013-06-05 00:08:21,028 Trac[loader] DEBUG: Loading tracwysiwyg from /usr/lib/python2.7/dist-packages 2013-06-05 00:08:21,028 Trac[loader] DEBUG: Loading userpictures from /usr/local/lib/python2.7/dist-packages/trac_UserPicturesPlugin-0.1.1-py2.7.egg 2013-06-05 00:08:21,030 Trac[loader] DEBUG: Loading wikitable.scalar from /usr/local/lib/python2.7/dist-packages/WikiTableMacro-0.2dev-py2.7.egg 2013-06-05 00:08:21,030 Trac[loader] DEBUG: Loading wikitable.table from /usr/local/lib/python2.7/dist-packages/WikiTableMacro-0.2dev-py2.7.egg 2013-06-05 00:08:21,031 Trac[loader] DEBUG: Loading file plugin __init__ from /var/trac/projects/claudino/plugins/__init__.py 2013-06-05 00:08:21,031 Trac[api] DEBUG: Event changeset_added on for changesets (u'0e7b53935e49d50eef3e9d6945543a19dd510d8c',) 2013-06-05 00:08:21,069 Trac[svn_fs] DEBUG: Subversion bindings imported @ivanelson []s 2013/6/4 Ivanelson Nunes ivanelsonnu...@gmail.com Hello, When you do a push to a repository bare installed on the same server where the Trac. Returns the message: remote: TracError: Unsupported version control system git: Can't find an appropriate component, maybe the corresponding plugin was not enabled? 1. I rename this script [1] to /my_repo/hooks/post-receive. 2. My version is Trac1.0. I need to install any package? Still need to install the trac-git? 3. In Trac browser code I can see perfectly my repository. The problem is only integrate commits(comments) with Trac. I am also using the correct syntax for commit: $ git commit-m Refs #TicketNumber - foobar [1] http://trac-hacks.org/attachment/wiki/GitPlugin/trac-post-receive-hook-0.12-new-commits-from-all-branches-with-logfile.py My Enviroment: git version 1.7.10.4 Trac1.0 Ubuntu 12.10 (I am ashamed!) trac.ini: [components] repository_type = git repository_dir = repository_sync_per_request = ticket_changesets.* = enabled ticketchangesets.* = enabled tracext.git.* = enabled tracopt.versioncontrol.git.* = enabled ticketchangesets.commit_updater.committicketupdater = enabled ticketchangesets.web_ui.commitmessagemacro = enabled tracopt.ticket.commit_updater.committicketreferencemacro = enabled tracopt.ticket.commit_updater.committicketupdater = enabled [git] cached_repository = false git_bin = /usr/bin/git git_fs_encoding = utf-8 persistent_cache = false shortrev_len = 6 trac_user_rlookup = true use_committer_id = true use_committer_time = false wiki_shortrev_len = 7 [repositories] .alias = dbatez dbatez.description = This is the ''main'' project dbatez. dbatez.dir = /var/trac/projects/repo/zap.git dbatez.hidden = true dbatez.type = git dbatez.url = zimora.description = This is the secondary library code ''Zim Oracle''. zimora.dir = /opt/git/zimora.git zimora.type = git zimora.url = [ticket] commit_ticket_update_check_perms = false commit_ticket_update_commands.close = close closed closes fix fixed fixes commit_ticket_update_commands.refs = ALL commit_ticket_update_envelope = [] commit_ticket_update_notify = true @ivanelson []s -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] Re: Git Unsupported version control system - Setting up post-receive hooks
2013/6/4 Ivanelson Nunes ivanelsonnu...@gmail.com My Enviroment: git version 1.7.10.4 Trac1.0 Ubuntu 12.10 (I am ashamed!) On Wed, Jun 5, 2013 at 12:15 PM, Ivanelson Nunes ivanelsonnu...@gmail.com wrote: Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/trac/loader.py, line 68, in _load_eggs entry.load(require=True) It seems that your hook script is using trac 0.12.3-1 deb package. I think the deb should be removed. -- Jun Omae jun6...@gmail.com (大前 潤) -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] Re: Git Unsupported version control system - Setting up post-receive hooks
Jun Omae, Fact!! It seems the problem with git will be solved. However after removal: $ sudo apt-get purge trac I'm getting: No handler matched request to /login I use PermRedirectPlugin. I'll try reinstalling. Ideas?! Thanks @ivanelson []s 2013/6/5 Jun Omae jun6...@gmail.com 2013/6/4 Ivanelson Nunes ivanelsonnu...@gmail.com My Enviroment: git version 1.7.10.4 Trac1.0 Ubuntu 12.10 (I am ashamed!) On Wed, Jun 5, 2013 at 12:15 PM, Ivanelson Nunes ivanelsonnu...@gmail.com wrote: Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/trac/loader.py, line 68, in _load_eggs entry.load(require=True) It seems that your hook script is using trac 0.12.3-1 deb package. I think the deb should be removed. -- Jun Omae jun6...@gmail.com (大前 潤) -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] Re: Git Unsupported version control system - Setting up post-receive hooks
On Wed, Jun 5, 2013 at 1:04 PM, Ivanelson Nunes ivanelsonnu...@gmail.com wrote: I'm getting: No handler matched request to /login I use PermRedirectPlugin. I'll try reinstalling. On Wed, Jun 5, 2013 at 4:52 AM, Ivanelson Nunes ivanelsonnu...@gmail.com wrote: trac.ini: [components] repository_type = git repository_dir = repository_sync_per_request = ticket_changesets.* = enabled ticketchangesets.* = enabled tracext.git.* = enabled tracopt.versioncontrol.git.* = enabled ticketchangesets.commit_updater.committicketupdater = enabled ticketchangesets.web_ui.commitmessagemacro = enabled tracopt.ticket.commit_updater.committicketreferencemacro = enabled tracopt.ticket.commit_updater.committicketupdater = enabled It doesn't seem to enable PermRedirectPlugin. See http://trac-hacks.org/wiki/PermRedirectPlugin#Usage. Also, if any problems, please first check trac.log that gives hints how to solve the problems. -- Jun Omae jun6...@gmail.com (大前 潤) -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.