Me again,

I finally find the source of the issue. It seems that one of our users
created a curstom report in which he includes the a custom field;

 strftime('%d/%m/%Y', changetime, 'unixepoch') AS changetime

The report was running fine but when choosing RSS, it gives a
"valueError" message and a trace was recorded in the logs.

2008-09-08 12:00:43,000 Trac[main] ERROR: invalid literal for int()
with base 10: '17/07/2008'
Traceback (most recent call last):
  File "c:\Python25\lib\site-packages\trac\web\main.py", line 398, in
_dispatch_request
    dispatcher.dispatch(req)
  File "c:\Python25\lib\site-packages\trac\web\main.py", line 217, in
dispatch
    data, content_type)
  File "c:\Python25\lib\site-packages\trac\web\chrome.py", line 683,
in render_template
    return stream.render(method, doctype=doctype)
  File "c:\Python25\lib\site-packages\genshi\core.py", line 154, in
render
    return encode(generator, method=method, encoding=encoding)
  File "c:\Python25\lib\site-packages\genshi\output.py", line 45, in
encode
    output = u''.join(list(iterator))
  File "c:\Python25\lib\site-packages\genshi\output.py", line 176, in
__call__
    for kind, data, pos in stream:
  File "c:\Python25\lib\site-packages\genshi\output.py", line 519, in
__call__
    for kind, data, pos in stream:
  File "c:\Python25\lib\site-packages\genshi\output.py", line 679, in
__call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "c:\Python25\lib\site-packages\genshi\output.py", line 459, in
__call__
    for ev in stream:
  File "c:\Python25\lib\site-packages\genshi\core.py", line 212, in
_ensure
    for event in stream:
  File "c:\Python25\lib\site-packages\genshi\template\markup.py", line
252, in _include
    for event in stream:
  File "c:\Python25\lib\site-packages\genshi\template\markup.py", line
297, in _match
    for event in stream:
  File "c:\Python25\lib\site-packages\genshi\template\markup.py", line
242, in _exec
    for event in stream:
  File "c:\Python25\lib\site-packages\genshi\template\base.py", line
421, in _eval
    result = data.evaluate(ctxt)
  File "c:\Python25\lib\site-packages\genshi\template\eval.py", line
136, in evaluate
    return eval(self.code, _globals, {'data': data})
  File "c:\Python25\lib\site-packages\trac\ticket\templates
\report.rss", line 27, in <Expression
u'http_date(fromtimestamp(int(cell.value)))'>
    <pubDate py:if="cell.value != 'None'">$
{http_date(fromtimestamp(int(cell.value)))}</pubDate>
ValueError: invalid literal for int() with base 10: '17/07/2008'

The user add registered that report in an RSS reader.

It seems that Trac didn't like using as alias "changetime", after
several run, the server simply leaves with no error message.

I changed the alias name by "LastUpdate" and now the report is running
fine in RSS. OUr server is now running since more than a day and no
crash anymore.

Just wondering why having a mistake like that make the all server to
stop.

Bye.
On Sep 8, 10:32 am, jeboss <[EMAIL PROTECTED]> wrote:
> Dear all,
>
> We have a Trac 0.11b1 setup on a Win 2000 Pro, running fine since
> several weeks. Since 2 days I've noticed that the daemon suddenly
> leaves and no server anymore.
>
> I run the server manually (without NT service) and noticed the same
> behavior, what is strange is that no error message is being noticed
> before quitting.
>
> The command I run is the following;
>
> c:\Python25\python.exe c:\Python25\Scripts\tracd-script.py -a *,c:
> \projects\trac\users.dat,trac -p 8000 -e c:\projects\trac
>
> I do not succeed to generate the bug, it is unpredictable.
>
> I've checked the Win event log and sees that following warning in
> application log;
>
> Event ID 4097
> The application generated an application error, the exception
> generated was c0000005 at address (PyToken_ThreeChars)
>
> Could somebody have an idea how I could start checking what's wrong
> with my setup. Is there any log level I could place on the trac
> daemon?
>
> Thanks for your support.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to