[Trac] Newbie setup: tracback errors: Where do I find or turn on debugging?

2010-05-07 Thread ScottGutman
Hello all and thanks for your help in advance,

I am trying to setup Trac on our inhouse server.  I started the server
with the line below:
tracd -s --port 8000 /usr/share/trac/projects/core

Then I used another computer to load --  http://192.168.12.3:8000/

The result is listed below. I did a chmod 777 on the entire /usr/share/
trac directory, but that did not fix it.

Can you direct me to some logging or debugging so I find out what is
happening?  Thanks


---result---
Traceback (most recent call last):
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
web/api.py, line 376, in send_error
'text/html')
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
web/chrome.py, line 739, in render_template
data = self.populate_data(req, data)
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
web/chrome.py, line 639, in populate_data
d['chrome'].update(req.chrome)
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
web/api.py, line 195, in __getattr__
value = self.callbacks[name](self)
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
util/compat.py, line 135, in newfunc
return func_(*(args + fargs), **dict(kwargs, **fkwargs))
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
web/chrome.py, line 494, in prepare_request
for category, name, text in contributor.get_navigation_items(req):
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
ticket/web_ui.py, line 163, in get_navigation_items
if 'TICKET_CREATE' in req.perm:
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
perm.py, line 549, in has_permission
return self._has_permission(action, resource)
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
perm.py, line 562, in _has_permission
decision = PermissionSystem(self.env). \
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
perm.py, line 450, in check_permission
perm)
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
perm.py, line 284, in check_permission
permissions = PermissionSystem(self.env). \
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
perm.py, line 369, in get_user_permissions
for perm in self.store.get_user_permissions(username):
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
perm.py, line 184, in get_user_permissions
if user in subjects:
TypeError: unhashable type

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Newbie setup: tracback errors: Where do I find or turn on debugging?

2010-05-07 Thread Noah Kantrowitz
Sounds like you got some bad data in your permissions table. Can you do a 
DELETE FROM permission?

--Noah

On May 6, 2010, at 5:33 PM, ScottGutman wrote:

 Hello all and thanks for your help in advance,
 
 I am trying to setup Trac on our inhouse server.  I started the server
 with the line below:
 tracd -s --port 8000 /usr/share/trac/projects/core
 
 Then I used another computer to load --  http://192.168.12.3:8000/
 
 The result is listed below. I did a chmod 777 on the entire /usr/share/
 trac directory, but that did not fix it.
 
 Can you direct me to some logging or debugging so I find out what is
 happening?  Thanks
 
 
 ---result---
 Traceback (most recent call last):
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 web/api.py, line 376, in send_error
'text/html')
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 web/chrome.py, line 739, in render_template
data = self.populate_data(req, data)
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 web/chrome.py, line 639, in populate_data
d['chrome'].update(req.chrome)
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 web/api.py, line 195, in __getattr__
value = self.callbacks[name](self)
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 util/compat.py, line 135, in newfunc
return func_(*(args + fargs), **dict(kwargs, **fkwargs))
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 web/chrome.py, line 494, in prepare_request
for category, name, text in contributor.get_navigation_items(req):
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 ticket/web_ui.py, line 163, in get_navigation_items
if 'TICKET_CREATE' in req.perm:
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 perm.py, line 549, in has_permission
return self._has_permission(action, resource)
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 perm.py, line 562, in _has_permission
decision = PermissionSystem(self.env). \
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 perm.py, line 450, in check_permission
perm)
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 perm.py, line 284, in check_permission
permissions = PermissionSystem(self.env). \
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 perm.py, line 369, in get_user_permissions
for perm in self.store.get_user_permissions(username):
  File /usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
 perm.py, line 184, in get_user_permissions
if user in subjects:
 TypeError: unhashable type
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Trac Users group.
 To post to this group, send email to trac-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 trac-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/trac-users?hl=en.
 

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Re: Trac post-commit hook does not seem to close tickets.

2010-05-07 Thread Freek Wielstra


On May 6, 8:31 pm, Remy Blank remy.bl...@pobox.com wrote:
 Freek Wielstra wrote:
  Is there a setting I'm missing, or something I'm doing wrong? Below is
  the log and some screens. Note that this is for Trac 0.12b1.

 Funny, there was a new ticket today with the same issue. Could you
 please have a look at the following ticket, and let us know if the cause
 is the same (changeset author vs. Trac username)?

  http://trac.edgewall.org/ticket/9306#comment:1

 -- Remy

  signature.asc
  1KViewDownload

Hello all,

I checked the Trac ticket, and checked to make sure the users were the
same. Well, they are, to a degree - the SVN and the Trac user both
share the exact same name. However, Trac and SVN do not share the same
htpasswd file - does this make any difference?

As for permissions, my user is TRAC_ADMIN, so that should be alright.

I also just updated from a dev release (installed last monday) to
0.12b1, to rule out any last differences, but that didn't work.

Finally, I updated to the last dev release (r9630) to look for that
setting... and only now see that the CommitTicketUpdater is not
enabled --. Is this off by default? Because I can't recall turning
it off (or, in fact, ever noticing that there's settings in there
too).

I just enabled CommitTicketUpdater and CommitTicketReferenceMacro, and
now it works. I'm going to check those other settings now too, ;D.

Still, thanks for the help!

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Re: Trac post-commit hook does not seem to close tickets.

2010-05-07 Thread Remy Blank
Freek Wielstra wrote:
 Finally, I updated to the last dev release (r9630) to look for that
 setting... and only now see that the CommitTicketUpdater is not
 enabled --. Is this off by default? Because I can't recall turning
 it off (or, in fact, ever noticing that there's settings in there
 too).

Yes, components in tracopt.* are disabled by default.

-- Remy



signature.asc
Description: OpenPGP digital signature


[Trac] Re: Trac post-commit hook does not seem to close tickets.

2010-05-07 Thread Freek Wielstra


On May 7, 10:47 am, Remy Blank remy.bl...@pobox.com wrote:
 Freek Wielstra wrote:
  Finally, I updated to the last dev release (r9630) to look for that
  setting... and only now see that the CommitTicketUpdater is not
  enabled --. Is this off by default? Because I can't recall turning
  it off (or, in fact, ever noticing that there's settings in there
  too).

 Yes, components in tracopt.* are disabled by default.

 -- Remy

  signature.asc
  1KViewDownload

doh. I was going to place a remark about adding it to the docs, but
it's there already. I guess I just didn't understand it properly when
I read it. Maybe link to a page that refers to the plugins panel and
the fact there's settings you can enable there?

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Trac 0.12b1 ready for testing!

2010-05-07 Thread Roger Oberholtzer
On Sat, 2010-05-01 at 13:08 +0200, Christian Boos wrote:

I have updated to Trac 0.12b1 and I think everything is still working.
All my svn repos show up as the did before. I do not see any
regressions. But I have a question about two points:

1. If I set another language in my preferences, I do not see a change
(even quiting the browser makes no difference). What languages are
available? I tried Swedish, German and French. But it made no
difference.

2. My Trac docs were not updated. I recall I had this before, and there
was a trac-admin command to get the docs updated. I looked at the
options, and I did not see anything obvious. Age is taking it's toll.

-- 
Roger Oberholtzer

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Trac 0.12b1 ready for testing!

2010-05-07 Thread Chris Mulligan
2. I believe it's something like trac-admin env wiki update or wiki
upgrade or something like that.

On Fri, May 7, 2010 at 9:20 AM, Roger Oberholtzer
roger.oberholt...@gmail.com wrote:
 On Sat, 2010-05-01 at 13:08 +0200, Christian Boos wrote:

 I have updated to Trac 0.12b1 and I think everything is still working.
 All my svn repos show up as the did before. I do not see any
 regressions. But I have a question about two points:

 1. If I set another language in my preferences, I do not see a change
 (even quiting the browser makes no difference). What languages are
 available? I tried Swedish, German and French. But it made no
 difference.

 2. My Trac docs were not updated. I recall I had this before, and there
 was a trac-admin command to get the docs updated. I looked at the
 options, and I did not see anything obvious. Age is taking it's toll.

 --
 Roger Oberholtzer

 --
 You received this message because you are subscribed to the Google Groups 
 Trac Users group.
 To post to this group, send email to trac-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 trac-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/trac-users?hl=en.



-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Trac 0.12b1 ready for testing!

2010-05-07 Thread Christian Boos

On 5/7/2010 3:20 PM, Roger Oberholtzer wrote:

On Sat, 2010-05-01 at 13:08 +0200, Christian Boos wrote:

I have updated to Trac 0.12b1 and I think everything is still working.
All my svn repos show up as the did before. I do not see any
regressions.


Great! Sorry for not answering earlier, sometimes upgrading from an 
intermediate state of a branch to the final *could* be problematic... 
the easier way to find out is to make a backup and try out, as you did ;-)



But I have a question about two points:

1. If I set another language in my preferences, I do not see a change
(even quiting the browser makes no difference). What languages are
available? I tried Swedish, German and French. But it made no
difference.
   


We just fixed that (#9291). In the next releases, the translations will 
be made available automatically upon install, provided you already have 
Babel installed beforehand (as it's an optional dependency, installing 
Trac alone will not trigger an automatic installation of Babel).


In the meantime, you can reinstall by using `easy_install Trac==dev` or 
install from a trunk checkout.




2. My Trac docs were not updated. I recall I had this before, and there
was a trac-admin command to get the docs updated. I looked at the
options, and I did not see anything obvious. Age is taking it's toll.

   


trac-admin yourenv wiki upgrade

We could add a hind about this after a successful trac-admin tracenv 
upgrade...


-- 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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] How to upgrade an existing 0.11 to use Genshi 0.5.1?

2010-05-07 Thread ivar
I currently have trac 0.11 and wanted to install Agilo on it.
However it requires Genshi 0.5.1 and I have 0.5 .
So I downloaded 0.5.1 and all looked fine, even ran trac-admin upgrade
on the project
restarted apache

BUT
It only ended in an internal server error message.
So must be something wrong.
I then used easy_install again to revert back to the previous 0.5 and
all works fine (except for the test project that i used the upgrade
command on.).

Is there anybody that can give me clear instructions on what I have to
do in this situation?
How do I upgrade to Genshi 0.5.1 from 0.5 without breaking the
existing installation?

Thanx for any pointers (:=
Ivar

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Trac 0.12b1 ready for testing!

2010-05-07 Thread Remy Blank
Christian Boos wrote:
 We could add a hind about this after a successful trac-admin tracenv 
 upgrade...

http://trac.edgewall.org/changeset/9641

:)

-- Remy



signature.asc
Description: OpenPGP digital signature


[Trac] Automatic return to query after ticket edit

2010-05-07 Thread David.Frahm
Is there any way to configure Trac to automatically redirect users
back to their query after editing a ticket?

Having to scroll up to the top and click the 'Back to query' is
getting old really quickly.

(BTW, I tried to search for an answer to this... Surely its been asked
before but I couldn't find anything.  Its hard to get the right
specific search words sometimes.)

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Determine version of trac installed

2010-05-07 Thread Ivar Klung
Hi,
Another question
Probably very simple but

The problem is that when I try to load itteco it fails with this output in the 
log:
Skipping itteco 0.2.6: (version conflict (Trac 0.11 
(/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg), 
Requirement.parse('trac=0.11.3')))




-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Determine version of trac installed

2010-05-07 Thread Ivar Klung
Hi,

The first one went off by accident...

Another question
Probably very simple but

The problem is that when I try to load itteco it fails with this output in the 
log:
Skipping itteco 0.2.6: (version conflict (Trac 0.11 
(/usr/lib/python2.4/site-packages/Trac-0.11-py2.4.egg), 
Requirement.parse('trac=0.11.3')))

In trac admin it says version of trac 0.11 and nothing more.

I though I had a later version than 3 installed (but I may be wrong).

From the db output it says:
database_version|21
initial_database_version|21
youngest_rev|227
repository_dir|svn:702489ad-30b2-4b53-b1e6-790190c31edc:/var/www/svn/mod251

what can I do to solve this problem?
Is it 100% safe to upgrade to the latest 0.11?

Thanx for any input! (:=

Best ivar


-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] RE: How to upgrade an existing 0.11 to use Genshi 0.5.1?

2010-05-07 Thread Ivar Klung
ok,
so I resolved it by compiling the tag 0.5.1 from source and then installing the 
created egg using easy_install
So the precompiled version did not work.
also failed trying to do 
easy_install http://svn.edgewall.org/repos/genshi/tags/0.5.1 did not work as it 
had some html docs in it... (:=

So, it now works, but a bit unclear on how one does it (:=

Anyhow, thanx for a superb product (that was to the trac team... =:)

Best
Ivar

-Original Message-
From: ivar [mailto:ivarkl...@gmail.com] 
Sent: Friday, May 07, 2010 4:00 PM
To: Trac Users
Subject: How to upgrade an existing 0.11 to use Genshi 0.5.1?

I currently have trac 0.11 and wanted to install Agilo on it.
However it requires Genshi 0.5.1 and I have 0.5 .
So I downloaded 0.5.1 and all looked fine, even ran trac-admin upgrade
on the project
restarted apache

BUT
It only ended in an internal server error message.
So must be something wrong.
I then used easy_install again to revert back to the previous 0.5 and
all works fine (except for the test project that i used the upgrade
command on.).

Is there anybody that can give me clear instructions on what I have to
do in this situation?
How do I upgrade to Genshi 0.5.1 from 0.5 without breaking the
existing installation?

Thanx for any pointers (:=
Ivar

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.