Opened 18 years ago
Last modified 10 years ago
#6515 new defect
Trac detected an internal error: Session ID not set
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | next-major-releases |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | alexandre.rossi@…, Thijs Triemstra | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
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 (0)
Change History (17)
comment:1 by , 18 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 18 years ago
| Keywords: | needinfo added |
|---|
comment:3 by , 18 years ago
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.
comment:4 by , 18 years ago
Above URL works fine for me on Mac with Firefox. Sounds like a browser configuration problem to me.
comment:5 by , 18 years ago
| Component: | general → trac-admin |
|---|---|
| Owner: | changed from to |
| Priority: | normal → highest |
| Status: | new → assigned |
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
comment:6 by , 18 years ago
| Component: | trac-admin → general |
|---|---|
| Owner: | changed from to |
| Priority: | highest → normal |
| Status: | assigned → new |
What does this traceback have to do with this ticket? Also, please don't mess with assignments, etc.
comment:7 by , 18 years ago
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 comment:8 by , 18 years ago
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.
comment:9 by , 18 years ago
| Cc: | added |
|---|
comment:10 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:11 by , 17 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:12 by , 17 years ago
| Description: | modified (diff) |
|---|---|
| Keywords: | needinfo removed |
| Resolution: | → wontfix |
| Status: | reopened → closed |
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 comment:13 by , 17 years ago
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.
comment:14 by , 17 years ago
| Resolution: | wontfix |
|---|---|
| Status: | closed → reopened |
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.
comment:15 by , 17 years ago
| Milestone: | → 0.13 |
|---|---|
| Owner: | changed from to |
| Status: | reopened → new |
comment:16 by , 15 years ago
| Cc: | added |
|---|---|
| Summary: | Trac detected an internal error → Trac detected an internal error: Session ID not set |



could you pls shed some light on: