Edgewall Software

Ticket #6515 (new defect)

Opened 11 months ago

Last modified 4 weeks ago

Trac detected an internal error

Reported by: franz.x.maier@… Owned by: rblank
Priority: normal Milestone: 0.13
Component: general Version:
Severity: normal Keywords:
Cc: alexandre.rossi@…

Description (last modified by rblank) (diff)

Oops… Trac detected an internal error:

If you think this really should work and you can reproduce it, you should consider reporting this problem to the Trac team.

Go to http://trac.edgewall.org/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the Python traceback found below.

TracGuide — The Trac User and Administration Guide Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 184, in dispatch
    req.session = Session(self.env, req)
  File "/usr/local/lib/python2.5/site-packages/trac/web/session.py", line 48, in __init__
    self.get_session(sid)
  File "/usr/local/lib/python2.5/site-packages/trac/web/session.py", line 90, in get_session
    self.bake_cookie()
  File "/usr/local/lib/python2.5/site-packages/trac/web/session.py", line 56, in bake_cookie
    assert self.sid, 'Session ID not set'
AssertionError: Session ID not set

Attachments

Change History

  Changed 11 months ago by athomas

  • description modified (diff)

  Changed 11 months ago by ThurnerRupert

  • keywords needinfo added

could you pls shed some light on:

  • your client pc:
    • what did you try to do
    • what operating system did you use
    • what browser with what cookie settings?
  • the server:
    • which url
    • which trac version

  Changed 11 months ago by franz.x.maier@…

I tried to retrieve the following url:

http://www.boxbackup.org/trac/wiki

I use Windows XP with all actual fixes and used Firefox and IE - same results! I even couldn't go to your homepage as indicated in the description (using the link) and report the error - also got this error! Strange thing: it now works in Linux (Suse 10.3) with Firefox - everything ok there! Cookie settings: defaults in all systems and browsers.

  Changed 11 months ago by sid

Above URL works fine for me on Mac with Firefox. Sounds like a browser configuration problem to me.

  Changed 10 months ago by apalero@…

  • owner changed from jonas to anonymous
  • priority changed from normal to highest
  • status changed from new to assigned
  • component changed from general to trac-admin

Templates directory /usr/local/share/trac/templates>

Creating and Initializing Project Failed to create environment. You can only execute one statement at a time. Traceback (most recent call last):

File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 613, in do_initenv

options=options)

File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 145, in init

self.create(options)

File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 250, in create

DatabaseManager?(self).init_db()

File "/usr/local/lib/python2.4/site-packages/trac/db/api.py", line 70, in init_db

connector.init_db(**args)

File "/usr/local/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line 126, in init_db

cursor.execute(stmt)

Warning: You can only execute one statement at a time. Failed to initialize environment. 1 Traceback (most recent call last):

File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 617, in do_initenv

sys.exit(1)

SystemExit?: 1

  Changed 10 months ago by hyuga <hyugaricdeau@…>

  • owner changed from anonymous to jonas
  • priority changed from highest to normal
  • status changed from assigned to new
  • component changed from trac-admin to general

What does this traceback have to do with this ticket? Also, please don't mess with assignments, etc.

  Changed 10 months ago by apalero@…

im using Centos 4.1,after execute this command (trac-admin /home/user/trac-env/ initenv) and set the right path for svn and repositories then set the Templates directory /usr/local/share/trac/templates> after i set this error appear in my terminal.. please help me..

..

File "/usr/local/lib/python2.4/site-packages/trac/scripts/admin.py", line 613, in do_initenv

options=options)

File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 145, in init

self.create(options)

File "/usr/local/lib/python2.4/site-packages/trac/env.py", line 250, in create

DatabaseManager??(self).init_db()

File "/usr/local/lib/python2.4/site-packages/trac/db/api.py", line 70, in init_db

connector.init_db(**args)

File "/usr/local/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line 126, in init_db

cursor.execute(stmt)

follow-up: ↓ 12   Changed 7 months ago by alexandre.rossi@…

This (the "Session ID is not set" error, I do not know about the rest) triggered exactly when work admins installed a crappy anti spyware thingy on the WinXP box. Seems that the thing regularly cleans out cookies in some way. I think this is related to this error.

Please note that I'm anonymous, req.incookie.has_key(COOKIE_KEY) seems True.

The trac cookie is empty (empty string contents) and if I delete it, the error does not trigger anymore for one day.

  Changed 7 months ago by alexandre.rossi@…

  • cc alexandre.rossi@… added

  Changed 4 months ago by anonymous

  • status changed from new to closed
  • resolution set to fixed

  Changed 4 months ago by anonymous

  • status changed from closed to reopened
  • resolution fixed deleted

in reply to: ↑ 8   Changed 4 weeks ago by rblank

  • keywords needinfo removed
  • status changed from reopened to closed
  • resolution set to wontfix
  • description modified (diff)

Replying to alexandre.rossi@…:

This (the "Session ID is not set" error, I do not know about the rest) triggered exactly when work admins installed a crappy anti spyware thingy on the WinXP box. Seems that the thing regularly cleans out cookies in some way. I think this is related to this error.

This sounds very likely indeed. Not an InstallationIssue, but same conclusion. Please fix your client environment.

follow-up: ↓ 14   Changed 4 weeks ago by alexandre.rossi@…

My opinion is that Trac should not fail for anonymous users if : - they come back to the website after more than one day - something's messing up cookies on the client side.

I think that when users are anonymous and cookie information is not good, it should simply be discarded.

in reply to: ↑ 13   Changed 4 weeks ago by rblank

  • status changed from closed to reopened
  • resolution wontfix deleted

Replying to alexandre.rossi@…:

I think that when users are anonymous and cookie information is not good, it should simply be discarded.

Yes, that does make sense. It will "hide" the real problem from the user, though, so their settings will get lost every time, but maybe that's acceptable.

  Changed 4 weeks ago by rblank

  • owner changed from jonas to rblank
  • status changed from reopened to new
  • milestone set to 0.13

Add/Change #6515 (Trac detected an internal error)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from rblank. Next status will be 'new'
The owner will change from rblank to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.