[Trac] mod_cgi problems , random 500 internal server error shows with perl
Dear all, Firstly , sorry for my poor english. I found a bug with mod_cgi, my server is CentOS 4.4 I have compiled lighttpd with the basic installation, ./configure && make && make install . and my config options at lighttpd.conf as follow, server.event-handler = "linux-sysepoll" server.network-backend = "linux-sendfile" server.stat-cache-engine = "fam" cgi.assign = ( ".pl" => "/usr/bin/suidperl", ".cgi" => "/usr/bin/suidperl" ,".sh" => "") I have create a file named test.pl #!/usr/bin/suidperl print "Hello"; I have tried to run the file on server with command perl test.pl It gives me the right result, but I tried to run the file using lighttpd, sometimes it will show 500 Internal Server Error. Another test, I tried to create another file named test.sh #!/bin/sh echo Hello; At the browser, it sometimes give me the right result , "Hello", and sometimes give me an intersting result, "6 Hello 0", I think , 500 Internal Server Error of running perl , the reason is ,sometimes lighttpd read the file with error. And I have tried both files on apache with no error. I have read the bug 756, I have tried to edit the src/mod_cgi.c and recompile the lighttpd gives no help. Do anyone have an idea to fix this problem? Best wishes to all. ps: php-fastcgi server won't have this problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~--- <>
[Trac] Re: Trac and remote repository
I get around this issue by using SVK to create a local mirror of a couple of our subversion repositories and then point trac at the local SVK mirror. Doing this allows us to keep a single set of documentation across a number of related projects. The only real downside for us is that the SVK repo (which trac uses) is up to an hour behind because that's how often we sync with the masters. Ed On 10/27/06, Sell, Christian (external) <[EMAIL PROTECTED]> wrote: > > > > Hello, > > I just spent a day installing trac with all prereqs, only to find out in the > end that I could not access my subversion repository because trac doesnt > support remote access. Who would have expected that! This makes trac a > non-option for our (large) organization, which is a pity. > > There is a ticket for this (#493), but I couldnt post there so I am using > this ML to voice my frustration (yes, ist open source and ist free). Can > anybody comment on the state of that issue? Can we help to get this fixed? > > Thanks, > Christian > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Spam filtering
Hey everyone, as anyone trying to report a ticket or edit a wiki page recently has probably noticed, Akismet is currently acting overly restrictive and flagging all kinds of legitimate submissions as spam. I hope this is a temporary problem with Akismet, as the service is otherwise extremely helpful in keeping the bad guys out. Anyway, the problem has prompted me to completely overhaul the SpamFilter plugin, introducing a karma/score system where the likelihood of a submission being spam is impacted by a larger number of factors. Edgewall.org is currently running that new SpamFilter, and I'm monitoring what's happening in that direction, and reporting false positives back to Akismet. I'm hoping the situation will improve soon. Anyway, if your submissions are getting rejected, try putting some info on the settings screen. That should currently go a long way towards your submissions being accepted. Until the spammers find out, that is. Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Error with new trac and webadmin : float and 'astimezone' (11dev)
I am getting an error when *editing* milestones in the webadmin. The latest build of trac broke it somehow, and after updating everything I still have the issue. This is the only place that I have found so far that is broken, but since this is a call to the base formatting function (?) I am not sure who's issue it is : AttributeError: 'float' object has no attribute 'astimezone' While doing a GET operation on `/admin/ticket/milestones/1.0 - To QA`, Trac issued an internal error. || '''Python''' || `2.4.3 (#69, Mar 29 2006, 17:35:34) || || '''SQLite''' || `3.3.6` || || '''pysqlite''' || `2.3.2` || Python Traceback Traceback (most recent call last): File "[trac-sitepkg]\web\main.py", line 379, in dispatch_request dispatcher.dispatch(req) File "[trac-sitepkg]\web\main.py", line 251, in dispatch content_type) File "[trac-sitepkg]\web\chrome.py", line 476, in render_template return stream.render(method, doctype=doctype) ... File "build\bdist.win32\egg\genshi\eval.py", line 95, in evaluate File "admin_milestone.html", line 27, in File "[trac-sitepkg]\util\compat.py", line 113, in newfunc return func_(*(args + fargs), **dict(kwargs, **fkwargs)) File "[trac-sitepkg]\util\datefmt.py", line 60, in format_datetime t = t.astimezone(tzinfo) AttributeError: 'float' object has no attribute 'astimezone' - Any help would be appreciated. This isn't a show stopper, since I can still use the cli version fine. Thanks, Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Announce new version of email2trac (version 0.8.2)
Bas van der Vlies wrote: > Yes there is a convention. When i ticket is inserted it gets a > tickets id, eg #4 > This number is inserted in the description field of ticket. This is > the same as the subject line > for emails (notifications). If you hit reply and update_ticket is set > and #4 is not removed from the subject line it will > try to update the ticket. Thanks, I see. It must have a regex matching the subject against something like '\b#[0-9]+\b'. That makes sense. And then how does it actually update the ticket (change status, etc.)? Is that done by similar special regexes in the body, kind of like how the trac post-commit hook works? thanks! -- Gary --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Trac 0.10 gets stuck after an hour or so
Hello Christian, I did the patch, reinstalled...but the problem persists and we have apache2 spiking again, I did an update of all the packages on ubuntu but still that didn't do it. It really only started with 0.10, you mentioned a thread dump, how do we go about doing that? C --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Announce new version of email2trac (version 0.8.2)
On Oct 27, 2006, at 5:04 PM, Gary Oberbrunner wrote: > > Bas van der Vlies wrote: >>- Fixed an error in Ticket Update. When ticket >>does not exists, proceed as if it is a new ticket > > I may be interested in this plugin, but I don't see in the > documentation how > emails are mapped to existing tickets, and what fields in the email > are used > to update the ticket (change status, take, etc.). There must be > certain > conventions used, yes? > Gary, Yes there is a convention. When i ticket is inserted it gets a tickets id, eg #4 This number is inserted in the description field of ticket. This is the same as the subject line for emails (notifications). If you hit reply and update_ticket is set and #4 is not removed from the subject line it will try to update the ticket. Regards > -- Gary Oberbrunner > > > -- Bas van der Vlies [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Integration of trac with SubVersion / TortoiseSVN
Rob Wilkerson kirjoitti: > I'm not sure whether I'll be able to help, but I'm also not sure I > understand your question. What, exactly, are you trying to do? Are > you trying to create a post-commit hook to mark tickets fixed, closed, > etc.? Or something else? > > On 10/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Hi Folks, >> >> Trying to get the BugTracker (trac) setup with TSVN. I am trying to get it >> very simply set up to see the methodology but am not sure on the syntax or >> the steps and order of those steps. Anyone have a crib available that >> describes ? Would appreciate very much any info. Thanks! (I'm not big fan of topposting, makes hard to read and specially reply) Basically it is all about this. 5.24. Integration with Bugtracking Systems / Issue trackers It is very common in Software Development for changes to be related to a specific bug or issue ID. Users of bug tracking systems (issue trackers) would like to associate the changes they make in Subversion with a specific ID in their issue tracker. Most issue trackers therefore provide a pre-commit hook script which parses the log message to find the bug ID with which the commit is associated. This is somewhat error prone since it relies on the user to write the log message properly so that the pre-commit hook script can parse it correctly. TortoiseSVN can help the user in two ways: 1. When the user enters a log message, a well defined line including the issue number associated with the commit can be added automatically. This reduces the risk that the user enters the issue number in a way the bug tracking tools can't parse correctly. Or TortoiseSVN can highlight the part of the entered log message which is recognized by the issue tracker. That way the user knows that the log message can be parsed correctly. 2. When the user browses the log messages, TortoiseSVN creates a link out of each bug ID in the log message which fires up the browser to the issue mentioned. ... So, first one is just to matter have correct regular expressions and probably post commit hook that can automatically mark bug solved. Second one is a bit more trickier. I would be happy if someone can provide samples to do that. -- Jani Tiainen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Trac and remote repository
This is a twofold issue. One, the Subversion API does not offer a unified way to talk to local and remote repos. Two, even if it did, the speed would be awful. As of Subvesion 1.4, svnsync allows easy repository mirroring, so why not just use that? --Noah On Oct 27, 2006, at 11:19 AM, Sell, Christian (external) wrote: > Hello, > > I just spent a day installing trac with all prereqs, only to find > out in the end that I could not access my subversion repository > because trac doesnt support remote access. Who would have expected > that! This makes trac a non-option for our (large) organization, > which is a pity. > > There is a ticket for this (#493), but I couldnt post there so I am > using this ML to voice my frustration (yes, ist open source and ist > free). Can anybody comment on the state of that issue? Can we help > to get this fixed? > > Thanks, > Christian > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Trac 0.10 gets stuck after an hour or so
Christian wrote: > Hi Christian, I tried to patch using the diff files you presented but I > get the following errors during the patching: > ... > Perhaps i'm lacking patching skills? :) > Well, I don't know, perhaps end-of-line issues. Anyway, I've collected the changes previously mentioned and I attached them to this mail as a single diff on 0.10. -- Christian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~--- Index: trac/db/sqlite_backend.py === --- trac/db/sqlite_backend.py (revision 4065) +++ trac/db/sqlite_backend.py (working copy) @@ -134,28 +134,29 @@ """Connection wrapper for SQLite.""" __slots__ = ['_active_cursors'] -poolable = False +poolable = have_pysqlite and sqlite_version >= 30301 def __init__(self, path, params={}): assert have_pysqlite > 0 self.cnx = None if path != ':memory:': if not os.access(path, os.F_OK): -raise TracError, 'Database "%s" not found.' % path +raise TracError('Database "%s" not found.' % path) dbdir = os.path.dirname(path) if not os.access(path, os.R_OK + os.W_OK) or \ not os.access(dbdir, os.R_OK + os.W_OK): from getpass import getuser -raise TracError, 'The user %s requires read _and_ write ' \ - 'permission to the database file %s and the ' \ - 'directory it is located in.' \ - % (getuser(), path) +raise TracError('The user %s requires read _and_ write ' \ +'permission to the database file %s and the ' \ +'directory it is located in.' \ +% (getuser(), path)) if have_pysqlite == 2: self._active_cursors = weakref.WeakKeyDictionary() timeout = int(params.get('timeout', 10.0)) cnx = sqlite.connect(path, detect_types=sqlite.PARSE_DECLTYPES, + check_same_thread=sqlite_version < 30301, timeout=timeout) else: timeout = int(params.get('timeout', 1)) Index: trac/db/api.py === --- trac/db/api.py (revision 4065) +++ trac/db/api.py (working copy) @@ -17,7 +17,7 @@ import os import urllib -from trac.config import Option +from trac.config import Option, IntOption from trac.core import * from trac.db.pool import ConnectionPool @@ -57,6 +57,10 @@ [wiki:TracEnvironment#DatabaseConnectionStrings string] for this project""") +timeout = IntOption('trac', 'timeout', '20', +"""Timeout value for database connection, in seconds. +Use '0' to specify ''no timeout''. ''(Since 0.11)''""") + def __init__(self): self._cnx_pool = None @@ -68,7 +72,7 @@ if not self._cnx_pool: connector, args = self._get_connector() self._cnx_pool = ConnectionPool(5, connector, **args) -return self._cnx_pool.get_cnx() +return self._cnx_pool.get_cnx(self.timeout or None) def shutdown(self, tid=None): if self._cnx_pool: Index: trac/db/pool.py === --- trac/db/pool.py (revision 4065) +++ trac/db/pool.py (working copy) @@ -48,13 +48,26 @@ self.close() +def try_rollback(cnx): +"""Resets the Connection in a safe way, returning True when it succeeds. + +The rollback we do for safety on a Connection can fail at +critical times because of a timeout on the Connection. +""" +try: +cnx.rollback() # resets the connection +return True +except Exception: +cnx.close() +return False + class ConnectionPool(object): """A very simple connection pool implementation.""" def __init__(self, maxsize, connector, **kwargs): -self._dormant = [] # inactive connections in pool +self._dormant = {} # inactive connections in pool self._active = {} # active connections by thread ID -self._available = threading.Condition(threading.Lock()) +self._available = threading.Condition(threading.RLock()) self._maxsize = maxsize # maximum pool size self._cursize = 0 # current pool size, includes active connections self._connector = connector @@ -68,29 +81,34 @@ if tid in self._active:
[Trac] Re: Trac and remote repository
Hey Christian, I'm sorry you didn't see any documentation about that from the getgo. I've updated the main TracInstall page with a note about that requirement. Also, that ticket lists some possible workarounds you can try.. Sid Sell, Christian (external) wrote: > Hello, > > I just spent a day installing trac with all prereqs, only to find out in > the end that I could not access my subversion repository because trac > doesnt support remote access. Who would have expected that! This makes > trac a non-option for our (large) organization, which is a pity. > > There is a ticket for this (#493), but I couldnt post there so I am > using this ML to voice my frustration (yes, ist open source and ist > free). Can anybody comment on the state of that issue? Can we help to > get this fixed? > > Thanks, > Christian > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Trac 0.10 gets stuck after an hour or so
Hi Christian, I tried to patch using the diff files you presented but I get the following errors during the patching: File to patch: trac/db/pool.py patching file trac/db/pool.py Hunk #1 FAILED at 18. Hunk #2 FAILED at 40. Hunk #3 FAILED at 95. Hunk #4 FAILED at 102. Hunk #5 succeeded at 108 with fuzz 2. 4 out of 5 hunks FAILED -- saving rejects to file trac/db/pool.py.rej I downloaded the current trac 0.10 and from the root of the directory did patch -p0 < pool.py.diff Perhaps i'm lacking patching skills? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Trac and remote repository
On Fri, Oct 27, 2006 at 05:19:34PM +0200, Sell, Christian (external) wrote: Hi, > I just spent a day installing trac with all prereqs, only to find out in the > end that I could not access my subversion repository because trac doesnt > support remote access. Who would have expected that! Everyone who would have read the FAQ: http://trac.edgewall.org/wiki/TracFaq#can-i-use-trac-with-a-remote-subversion-repository Rainer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Trac and remote repository
Title: Trac and remote repository Hello, I just spent a day installing trac with all prereqs, only to find out in the end that I could not access my subversion repository because trac doesnt support remote access. Who would have expected that! This makes trac a non-option for our (large) organization, which is a pity. There is a ticket for this (#493), but I couldnt post there so I am using this ML to voice my frustration (yes, ist open source and ist free). Can anybody comment on the state of that issue? Can we help to get this fixed? Thanks, Christian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Announce new version of email2trac (version 0.8.2)
On Fri, Oct 27, 2006 at 11:04:24AM -0400, Gary Oberbrunner wrote: > > Bas van der Vlies wrote: > >- Fixed an error in Ticket Update. When ticket > >does not exists, proceed as if it is a new ticket > > I may be interested in this plugin, but I don't see in the documentation how > emails are mapped to existing tickets, and what fields in the email are used > to update the ticket (change status, take, etc.). Documentation is in email2trac itself: 8<--- The scripts reads emails from stdin and inserts directly into a Trac database. MIME headers are mapped as follows: * From: => Reporter => CC (Optional via reply_address option) * Subject: => Summary * Body => Description * Component => Can be set to SPAM via spam_level option 8<--- Rainer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Announce new version of email2trac (version 0.8.2)
Bas van der Vlies wrote: >- Fixed an error in Ticket Update. When ticket >does not exists, proceed as if it is a new ticket I may be interested in this plugin, but I don't see in the documentation how emails are mapped to existing tickets, and what fields in the email are used to update the ticket (change status, take, etc.). There must be certain conventions used, yes? -- Gary Oberbrunner --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Integration of trac with SubVersion / TortoiseSVN
I'm not sure whether I'll be able to help, but I'm also not sure I understand your question. What, exactly, are you trying to do? Are you trying to create a post-commit hook to mark tickets fixed, closed, etc.? Or something else? On 10/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi Folks, > > Trying to get the BugTracker (trac) setup with TSVN. I am trying to get it > very simply set up to see the methodology but am not sure on the syntax or > the steps and order of those steps. Anyone have a crib available that > describes ? Would appreciate very much any info. Thanks! > > > Best Regards, > > Joe > > Joseph H. Dayney > Contract Software Engineer > Excel Resources > BCS Inter-Facility Support Team > MooreWallace (An RR Donnelley Company) > com: 435-755-4278 > cell:801-608-1052 > SL Home: 801-272-6615 > vcom: 9-682-4278 > fax: 435-753-8673 > email: [EMAIL PROTECTED] > > CONFIDENTIALITY NOTICE: The information contained in this email message is > confidential and may be protected from disclosure. Please be aware that any > unauthorized use, printing, copying, disclosure or dissemination of this > communication may be subject to legal restriction or sanction. If you think > you have received this email message in error, please reply to sender. > > > -- Rob Wilkerson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Integration of trac with SubVersion / TortoiseSVN
Hi Folks, Trying to get the BugTracker (trac) setup with TSVN. I am trying to get it very simply set up to see the methodology but am not sure on the syntax or the steps and order of those steps. Anyone have a crib available that describes ? Would appreciate very much any info. Thanks! Best Regards, Joe Joseph H. Dayney Contract Software Engineer Excel Resources BCS Inter-Facility Support Team MooreWallace (An RR Donnelley Company) com: 435-755-4278 cell: 801-608-1052 SL Home: 801-272-6615 vcom: 9-682-4278 fax: 435-753-8673 email: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: The information contained in this email message is confidential and may be protected from disclosure. Please be aware that any unauthorized use, printing, copying, disclosure or dissemination of this communication may be subject to legal restriction or sanction. If you think you have received this email message in error, please reply to sender. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Announce new version of email2trac (version 0.8.2)
2006-10-27 * run_email2trac.c. - Setgid() must be called before setuid(). Reported by: Anonymous Fixedby: Bas van der Vlies * email2trac.py, - Fixed an error in Ticket Update. When ticket does not exists, proceed as if it is a new ticket Fixedby: Bas van der Vlies - Fixed a strang bug in 0.9 version, if ticket update is enabled and email has attachment(s). We are not allowed to set the description and author field of the attachment else the comment text is lost ;-( Fixedby: Bas van der Vlies - Fixed an error if enable_syslog and drop_spam is set. We get an exception in the syslog if we use sys.exit(0), replaced by return. Fixedby: Bas van der Vlies * delete_spam.py. - Trac version 0.10 made it easier to delete tickets. Fixedby: Bas van der Vlies = Info about the package http://www.trac-hacks.org/wiki/EmailtoTracScript the latest stable email2trac package is available from: ftp://ftp.sara.nl/pub/outgoing/email2trac.tar.gz email2trac - utilities -- This is a release of the SARA package email2trac that contains utilities that we use to convert emails to trac tickets. The initial setup was made by Daniel Lundin from Edgewall Software. SARA has extend the initial setup, with the following extensions: - HTML messages - Attachments - Use commandline options - Use config file to change the behaviour of the email2trac.py program - Some unicode support for special characters in the headers of an email message - Update Tickets See INSTALL or Wiki page to setup the utilities Comments or Suggestions mail them to: Bas van der Vlies <[EMAIL PROTECTED]> Walter de Jong <[EMAIL PROTECTED]> http://www.sara.nl for more info about SARA. -- Bas van der Vlies [EMAIL PROTECTED] -- * * * Bas van der Vlies e-mail: [EMAIL PROTECTED] * * SARA - Academic Computing Servicesphone: +31 20 592 8012 * * Kruislaan 415 fax:+31 20 6683167* * 1098 SJ Amsterdam * * * ___ Trac mailing list Trac@lists.edgewall.com http://lists.edgewall.com/mailman/listinfo/trac -- -- * * * Bas van der Vlies e-mail: [EMAIL PROTECTED] * * SARA - Academic Computing Servicesphone: +31 20 592 8012 * * Kruislaan 415 fax:+31 20 6683167* * 1098 SJ Amsterdam * * * ___ Trac mailing list Trac@lists.edgewall.com http://lists.edgewall.com/mailman/listinfo/trac -- -- * * * Bas van der Vlies e-mail: [EMAIL PROTECTED] * * SARA - Academic Computing Servicesphone: +31 20 592 8012 * * Kruislaan 415 fax:+31 20 6683167* * 1098 SJ Amsterdam * * * ___ Trac mailing list Trac@lists.edgewall.com http://lists.edgewall.com/mailman/listinfo/trac -- -- * * * Bas van der Vlies e-mail: [EMAIL PROTECTED] * * SARA - Academic Computing Servicesphone: +31 20 592 8012 * * Kruislaan 415 fax:+31 20 6683167* * 1098 SJ Amsterdam * * * ___ Trac mailing list Trac@lists.edgewall.com http://lists.edgewall.com/mailman/listinfo/trac -- -- * * * Bas van der V
[Trac] Re: notification issues in 0.10
On Fri, Oct 27, 2006 at 10:36:51AM +0200, Rainer Sokoll wrote: Me again :-| > This seems to be ticket #3654. Will apply the provided patch and see then. Ok, the first problem gets solved, but the second remains. I will try to be as clear as possible. Three users, lets name them [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] trac.ini has: always_notify_owner = true always_notify_reporter = true always_notify_updater = false default_component = New There are 2 components: "New" and "Assigned", "New" has user2 as owner, "Assigned" has no owner. user1 creates a new ticket. Notification is sent to user2 (owner), but not to user1 (reporter). user2 changes the component from "New" to "Assigned" and reassigns the ticket to user3. Notifications are sent to user1 (reporter) and user3 (new owner) When user3 (the new owner) clicks on "View Tickets", I see in the log (sorry for the formatting): DEBUG: Query SQL: SELECT t.id AS id,t.summary AS summary,t.status AS status,t.type AS type,t.priority AS priority,t.component AS component,t.reporter AS reporter,t.time AS time,t.changetime AS changetime,t.owner AS owner,priority.value AS priority_value FROM ticket AS t LEFT OUTER JOIN enum AS priority ON (priority.type='priority' AND priority.name=priority) WHERE COALESCE(t.status,'') IN ('new','assigned','reopened') AND COALESCE(t.owner,'')='user3' ORDER BY COALESCE(t.priority,'')='',priority.value,t.id user3 opens the ticket, it has "Reported by:" user1, "Assigned to:" user3, "Component:" Assigned. All this is OK. user3 accept the ticket. Notifications are sent to user1 (reporter) and user2 (This is wrong) All I see in the log is now: Trac[notification] DEBUG: Sending SMTP notification to localhost on port 25 to [u'[EMAIL PROTECTED]', u'[EMAIL PROTECTED]'] I do not understand where user2 comes from :-( Trac 0.10, with notification.py from http://trac.edgewall.org/browser/trunk/trac/ticket/notification.py?rev=3808, used plugins: Webadmin, Ticketdelete, Simpleticket. Any idea where user2 comes from? Thanks, Rainer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Subversion commit message integration
2006/10/24, Sid Wiesner <[EMAIL PROTECTED]>: > > Norbert Unterberg wrote: > > some time ago I was trying a script that could be called from a > > subversion "post-commit"-hook. It would automatically add the commit > > message to a ticket as comment. > > > > Does this script still exist, where can I find it? I can't remember > > where I got it from. > > Can I run this script on a windows machine? > > Yep, it should work on Windows (I have it running on a Win2k3 server), > although you'll probably need Cygwin installed so that shell scripts > or perl scripts work. Ok, I found it and now remember why I did not manage to make it work. I can not install cygwin or pearl on the server (since it is not my server), and I did not manage to extract the log message from the output of svnadmin. Has anyone a script in Windows NT CMD shell or in python to pass the log message to the trac-post-commit hook? Otherwise, I would need to learn python... Norbert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: what about "Authorization Required" error?
You need to provide more information to get some help: Which web server you're using, which authentication module if any, the configuration files, etc. What do you mean with "register a new user"? From the trac-admin tool? The web server (apache, tracd, ...) manages the authentication (who's the remote user); Trac manages the *permissions* (i.e. which user can browse/do what), based on user name provided by the web server If you have not set up *authentication* on your server, you can't use the *permissions* in Trac In other words, adding a permission to a user in trac-admin is not sufficient: you also need to tell the web server how to authenticate the user. HTH, Manu On 10/27/06, Garfield <[EMAIL PROTECTED]> wrote: > > Hi everyone,Ihope you can help me ! I register a new user, and > then when logining interface "Authorization Required" > > > > > -- Manu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: notification issues in 0.10
On Thu, Oct 26, 2006 at 07:51:45PM +0200, Emmanuel Blot wrote: > > > I'm pulling my hair out :-( > > Any help is appreciated, > > Can you look at your Trac log file, there should be some lines about > the notification recipients. Should have done this before :-( Here is an error if a ticket is created: -8<- 2006-10-27 10:28:15,182 Trac[web_ui] ERROR: Failure sending notification on creation of ticket #1: unpack non-sequence Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line 196, in _do_create tn.notify(ticket, newticket=True) File "/usr/lib/python2.4/site-packages/trac/ticket/notification.py", line 127, in notify NotifyEmail.notify(self, ticket.id, subject) File "/usr/lib/python2.4/site-packages/trac/notification.py", line 208, in notify Notify.notify(self, resid) File "/usr/lib/python2.4/site-packages/trac/notification.py", line 105, in notify (torcpts, ccrcpts) = self.get_recipients(resid) File "/usr/lib/python2.4/site-packages/trac/ticket/notification.py", line 225, in get_recipients (updater, ) = cursor.fetchone() TypeError: unpack non-sequence -8<- This seems to be ticket #3654. Will apply the provided patch and see then. Rainer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Re: Local trac environment and synchronisation
insitu wrote: > Hi to all, > In some settings eg. when working at a location without > internet link or during meetings, it may be useful to have a local copy > of Trac that > will be later on synchronized with the central repository. > > Is this possible ? Did someone already though about this and cme up > with a solution ? Obvious idea would be to have the trac data on > svk/arch/darcs repository. > ... and obviously people have thought about this before: see http://trac.edgewall.org/ticket/1465 I see this as a 2.0 feature, though, given all the work that has to be done before we can reach that. In particular, my current idea about this would be that once we have a more "uniform" data model (e.g. see http://trac.edgewall.org/wiki/TracDev/Proposals/DataModel), it might be possible to convert that to some form of neutral format suitable for being packed in a repository. Then we rely on the distributed vcs for moving the changes around and merging them (with the merge being the toughest point, proabably requiring some kind of "Trac merge" tool). Finally, a "resync" operation should be done, recreating the Trac DB (and parts of the environment like the attachment area) from the updated repository. -- Christian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] Trac crashes with MemoyError
I'm running trac under fastcgi (but the same problem occured when using tracd). This problem is intermittent and occurs a day to a week after I start trac. I get the following error. I realise this probably isn't enough information to diagnose the problem, so please let me know what extra I need. Thanks, Hadley Oops... Trac detected an internal error: Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/trac/web/fcgi_frontend.py", line 40, in _handler dispatch_request(req.path_info, req, env) File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 135, in dispatch_request db = env.get_db_cnx() File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 137, in get_db_cnx return self.__cnx_pool.get_cnx() File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 157, in get_cnx cnx = self._cnx_class(**self._args) File "/usr/local/lib/python2.4/site-packages/trac/db.py", line 280, in __init__ timeout=timeout) MemoryError --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---
[Trac] what about "Authorization Required" error?
Hi everyone,Ihope you can help me ! I register a new user, and then when logining interface "Authorization Required" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~--~~~~--~~--~--~---