User problem accessing tickets.

21 views
Skip to first unread message

Roger Oberholtzer

unread,
Jan 13, 2016, 10:28:36 AM1/13/16
to trac-...@googlegroups.com
I have a single Trac user who cannot access tickets. I do not think it
is their local computer or browser that is the problem: It does not
make any difference what browser/system they try from. Other users can
use this user's browser to log in to their own accounts okay. This
user also cannot access Tickets from another computer's browser. It
seems to be user-specific.

In the Admin->permissions tab, this user looks the same as all other users.

What happens is that when they log in (apache authorization), they get
a box in the initial wiki page that says:

Warning: Error with navigation contributor "TicketModule"

Trac is there with all menus and such, and they can do everything
except access tickets. If they try to do so, they get this error (in
an Oops... page):

UnidecodeDecodeError: 'utf8' codec can't decode byte 0xd2 in position
152: invalid continuation byte.


This is only for this user.

I am running Trac 1.0.2. There have been no changes to any part of the
system. And it is only for one user.

I am not certain where to continue. If it was for everyone or all at a
specific browser, I might have a clue. But only one user no matter
where he logs in from.

Any ideas?



--
Roger Oberholtzer

Ryan Ollos

unread,
Jan 13, 2016, 11:03:35 AM1/13/16
to Trac Users
I had a similar problem, only experienced by a single user, due to BookmarksPlugin. The user had bookmarked a resource that was causing a traceback, but no other users had bookmarked the resource.

Which plugins do you have installed? Are you running AgiloForTrac?

Can you find a full traceback in the logs?

- Ryan 

Roger Oberholtzer

unread,
Jan 13, 2016, 12:44:56 PM1/13/16
to trac-...@googlegroups.com
No Bookmarks or Agilo plugins. But the user may be watching a ticket.

As to the log, it is kind of hard to tell, but I think this looks like
it could be from when this happens:

2015-12-29 08:56:53,388 Trac[chrome] ERROR: Error with navigation
contributor TicketModule: UnicodeDecodeError: 'utf8' codec can't
decode byte 0xd2 in position 152: invalid continuation byte
2015-12-29 08:56:53,509 Trac[chrome] ERROR: Error with navigation
contributor TicketModule: UnicodeDecodeError: 'utf8' codec can't
decode byte 0xd2 in position 152: invalid continuation byte
2015-12-29 08:56:56,390 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 512,
in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 221,
in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.7/site-packages/trac/timeline/web_ui.py",
line 155, in process_request
available_filters += event_provider.get_timeline_filters(req) or []
File "/usr/lib/python2.7/site-packages/trac/ticket/web_ui.py", line
242, in get_timeline_filters
yield ('ticket', _("Tickets opened and closed"))
File "/usr/lib/python2.7/site-packages/trac/util/translation.py",
line 202, in gettext
if not self.isactive:
File "/usr/lib/python2.7/site-packages/trac/util/translation.py",
line 182, in isactive
self.activate(get_locale(), env_path)
File "/usr/lib/python2.7/site-packages/trac/util/translation.py",
line 153, in activate
'tracini'))
File "/usr/lib/python2.7/site-packages/babel/support.py", line 546, in load
return cls(fp=fp, domain=domain)
File "/usr/lib/python2.7/site-packages/babel/support.py", line 519,
in __init__
super(Translations, self).__init__(fp=fp)
File "/usr/lib/python2.7/site-packages/babel/support.py", line 283,
in __init__
super(NullTranslations, self).__init__(fp=fp)
File "/usr/lib/python2.7/gettext.py", line 181, in __init__
self._parse(fp)
File "/usr/lib/python2.7/gettext.py", line 339, in _parse
tmsg = unicode(tmsg, self._charset)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd2 in position
152: invalid continuation byte
2015-12-29 08:56:56,611 Trac[ppenv] WARNING: determine the suggested
configuration: mastertickets compatibility vs. legacy ticket
dependencies
2015-12-29 08:56:56,615 Trac[ppenv] WARNING: determine the suggested
configuration: mastertickets compatibility vs. legacy ticket
dependencies --> enabled
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to trac-users+...@googlegroups.com.
> To post to this group, send email to trac-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/trac-users.
> For more options, visit https://groups.google.com/d/optout.



--
Roger Oberholtzer

rjo...@gmail.com

unread,
Jan 13, 2016, 3:42:38 PM1/13/16
to trac-...@googlegroups.com




From: Roger Oberholtzer
Sent: Wednesday, January 13, 09:44
Subject: Re: [Trac] User problem accessing tickets.
To: Trac Users

No Bookmarks or Agilo plugins. But the user may be watching a ticket. As to the log, it is kind of hard to tell, but I think this looks like it could be from when this happens: 2015-12-29 08:56:53,388 Trac[chrome] ERROR: Error with navigation contributor TicketModule: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd2 in position 152: invalid continuation byte 2015-12-29 08:56:53,509 Trac[chrome] ERROR: Error with navigation contributor TicketModule: UnicodeDecodeError: 'utf8' codec can't decode byte 0xd2 in position 152: invalid continuation byte 2015-12-29 08:56:56,390 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 512, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 221, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.7/site-packages/trac/timeline/web_ui.py", line 155, in process_request available_filters += event_provider.get_timeline_filters(req) or [] File "/usr/lib/python2.7/site-packages/trac/ticket/web_ui.py", line 242, in get_timeline_filters yield ('ticket', _("Tickets opened and closed")) File "/usr/lib/python2.7/site-packages/trac/util/translation.py", line 202, in gettext if not self.isactive: File "/usr/lib/python2.7/site-packages/trac/util/translation.py", line 182, in isactive self.activate(get_locale(), env_path) File "/usr/lib/python2.7/site-packages/trac/util/translation.py", line 153, in activate 'tracini')) File "/usr/lib/python2.7/site-packages/babel/support.py", line 546, in load return cls(fp=fp, domain=domain) File "/usr/lib/python2.7/site-packages/babel/support.py", line 519, in __init__ super(Translations, self).__init__(fp=fp) File "/usr/lib/python2.7/site-packages/babel/support.py", line 283, in __init__ super(NullTranslations, self).__init__(fp=fp) File "/usr/lib/python2.7/gettext.py", line 181, in __init__ self._parse(fp) File "/usr/lib/python2.7/gettext.py", line 339, in _parse tmsg = unicode(tmsg, self._charset) UnicodeDecodeError: 'utf8' codec can't decode byte 0xd2 in position 152: invalid continuation byte 2015-12-29 08:56:56,611 Trac[ppenv] WARNING: determine the suggested configuration: mastertickets compatibility vs. legacy ticket dependencies 2015-12-29 08:56:56,615 Trac[ppenv] WARNING: determine the suggested configuration: mastertickets compatibility vs. legacy ticket dependencies --> enabled On


Which language has the user chosen?  What is your babel version?

Roger Oberholtzer

unread,
Jan 14, 2016, 1:51:19 AM1/14/16
to trac-...@googlegroups.com
On Wed, Jan 13, 2016 at 9:42 PM, <rjo...@gmail.com> wrote:

> Which language has the user chosen? What is your babel version?

All the menus and such are shown in English. Same for all the users
for which this seems to be working. O part of Trac or any installed
software has been modified from when this worked.



--
Roger Oberholtzer

Roger Oberholtzer

unread,
Jan 14, 2016, 1:51:54 AM1/14/16
to trac-...@googlegroups.com
... No part of Trac...



--
Roger Oberholtzer

Ryan Ollos

unread,
Jan 14, 2016, 2:04:02 AM1/14/16
to Trac Users
The traceback shows Babel is installed. Which version of Babel? 

Roger Oberholtzer

unread,
Jan 14, 2016, 3:52:33 AM1/14/16
to trac-...@googlegroups.com
Trac 1.0.2
Babel 1.3
FullBlog 0.1.1.post0
Genshi 0.7 (with speedups)
mod_python 3.3.1
Pygments 1.6
pysqlite 2.6.0
Python 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]
pytz 2014.9
RPC 1.1.2.post0
setuptools 15.1
SQLite 3.7.14.1
Subversion 1.7.18 (r1615261)
jQuery1.7.2
jQuery UI1.8.21
jQuery Timepicker1.0.1


--
Roger Oberholtzer

Ryan Ollos

unread,
Jan 14, 2016, 12:58:29 PM1/14/16
to Trac Users
I'm unsure if Babel 1.3 works well with Trac 1.0.2. You could try upgrading Trac, downgrading Babel to 0.9.6, or removing Babel if you don't need internationalization.

- Ryan 

Roger Oberholtzer

unread,
Jan 15, 2016, 1:48:13 AM1/15/16
to trac-...@googlegroups.com
On Thu, Jan 14, 2016 at 6:58 PM, Ryan Ollos <rjo...@gmail.com> wrote:

> I'm unsure if Babel 1.3 works well with Trac 1.0.2. You could try upgrading
> Trac, downgrading Babel to 0.9.6, or removing Babel if you don't need
> internationalization.

I can try that. But I am unsure why this effects one user who is not
using localized messages.

In fact, I want to upgrade Trac and all components to a newer version.
On this machine I have been using packages from openSUSE. They are no
longer making packages for this version of openSUSE. So I will have to
upgrade by hand. That is no problem as that is how I originally did
this. It has been on my to-do list...

--
Roger Oberholtzer

Ryan Ollos

unread,
Jan 15, 2016, 12:55:43 PM1/15/16
to Trac Users
I don't have an explanation, but I would check the user's language preference setting. Is it set explicitly to //English (United States)// or //Default language//? Could it possibly be set to //English (United Kingdom)//?



Roger Oberholtzer

unread,
Jan 29, 2016, 2:44:33 AM1/29/16
to trac-...@googlegroups.com
Follow up: problem 'solved'.

I looked through the Trac database for anything that looked different for what turned out to be two users. I could find nothing.

So, ooc, I logged in as these users from my browser. All worked for me. Here is the mysterious part: after that all works for them as well.

So logging in from a different computer seems to have cleared something. Note that using a different browser on the same computer did not help.


--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To post to this group, send email to trac-...@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.



--
Roger Oberholtzer

Olemis Lang

unread,
Jan 29, 2016, 3:16:22 PM1/29/16
to trac-...@googlegroups.com
On 1/29/16, Roger Oberholtzer <roger.ob...@gmail.com> wrote:
> Follow up: problem 'solved'.
>
> I looked through the Trac database for anything that looked different for
> what turned out to be two users. I could find nothing.
>
> So, ooc, I logged in as these users from my browser. All worked for me.
> Here is the mysterious part: after that all works for them as well.
>
> So logging in from a different computer seems to have cleared something.
> Note that using a different browser on the same computer did not help.
>

Maybe it is related to the browser language setting and the
Accept-Language HTTP header [1]_ [3]_ . If you could inspect requests
, e.g. with a tool like Fiddler [1]_ , you could see the data the
browser is sending on the wire (though I guess there should be
something in the logs with the appropriate log/level set ... DEBUG? )

.. [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4

.. [2] http://www.telerik.com/fiddler

.. [3] http://stackoverflow.com/questions/1043339/javascript-for-detecting-browser-language-preference

[...]

--
Regards,

Olemis - @olemislc

Apache™ Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Brython committer
http://brython.info
http://github.com/brython-dev/brython

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Reply all
Reply to author
Forward
0 new messages