Modify ↓
Opened 7 years ago
Closed 7 years ago
#13423 closed defect (fixed)
error: redefinition of group name u'it_ticket' as group 34; was group 22
Reported by: | Massimo | Owned by: | Cauly |
---|---|---|---|
Priority: | normal | Component: | TracUserSelectFieldPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.2 |
Description
I installed this plugin on Trac-1.2, but loading the start page fails with this:
Trac detected an internal error: error: redefinition of group name u'it_ticket' as group 34; was group 22
Attachments (0)
Change History (6)
comment:1 Changed 7 years ago by
comment:2 follow-up: 4 Changed 7 years ago by
By the way, do you have your PatchedTicketSystem disabled? see TracUserSelectFieldPlugin
tracuserselectfield.userselectfield.patchedticketsystem = disabled
comment:3 Changed 7 years ago by
As for the permissions, this is a minimal test environment with quite default permissions. My user has TRAC_ADMIN permission.
Some parts are working such as /admin or /timeline, but /wiki and /newticket are failing.
Log from /wiki:
2018-04-27 09:59:13,065 Trac[main] DEBUG: Rendering response from handler 2018-04-27 09:59:13,066 Trac[perm] DEBUG: No policy allowed anonymous performing EMAIL_VIEW on None 2018-04-27 09:59:13,087 Trac[perm] DEBUG: No policy allowed anonymous performing WIKI_CREATE on <Resource u'wiki:WikiStart'> 2018-04-27 09:59:13,087 Trac[perm] DEBUG: No policy allowed anonymous performing WIKI_ADMIN on <Resource u'wiki:WikiStart'> 2018-04-27 09:59:13,136 Trac[main] ERROR: Internal Server Error: <RequestWithSession "GET ''">, referrer 'http://project/' Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 613, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 273, in dispatch iterable=chrome.use_chunked_encoding) File "/usr/lib64/python2.7/site-packages/trac/web/chrome.py", line 1159, in render_template encoding='utf-8') File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 184, in render return encode(generator, method=method, encoding=encoding, out=out) File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 58, in encode for chunk in iterator: File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 350, in __call__ for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 829, in __call__ for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 669, in __call__ for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 774, in __call__ for kind, data, pos in chain(stream, [(None, None, None)]): File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 594, in __call__ for ev in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/trac/web/chrome.py", line 1426, in _strip_accesskeys for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/trac/web/chrome.py", line 1415, in _generate for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/template/base.py", line 618, in _include for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/template/markup.py", line 378, in _match ctxt, start=idx + 1, **vars): File "/usr/lib64/python2.7/site-packages/genshi/template/markup.py", line 378, in _match ctxt, start=idx + 1, **vars): File "/usr/lib64/python2.7/site-packages/genshi/template/markup.py", line 326, in _match for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/template/base.py", line 558, in _flatten for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/path.py", line 588, in _generate subevent = next() File "/usr/lib64/python2.7/site-packages/genshi/template/base.py", line 618, in _include for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/template/markup.py", line 315, in _strip event = next() File "/usr/lib64/python2.7/site-packages/genshi/template/base.py", line 558, in _flatten for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/path.py", line 588, in _generate subevent = next() File "/usr/lib64/python2.7/site-packages/genshi/template/base.py", line 618, in _include for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/template/markup.py", line 315, in _strip event = next() File "/usr/lib64/python2.7/site-packages/genshi/template/base.py", line 578, in _flatten result = _eval_expr(data, ctxt, vars) File "/usr/lib64/python2.7/site-packages/genshi/template/base.py", line 289, in _eval_expr retval = expr.evaluate(ctxt) File "/usr/lib64/python2.7/site-packages/genshi/template/eval.py", line 177, in evaluate return eval(self.code, _globals, {'__data__': data}) File "/usr/lib64/python2.7/site-packages/trac/wiki/templates/wiki_view.html", line 58, in <Expression u'wiki_to_html(context, text)'> <div id="wikipage" class="trac-content" py:content="wiki_to_html(context, text)" /> File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1590, in format_to_html return HtmlFormatter(env, context, wikidom).generate(escape_newlines) File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1545, in generate escape_newlines) File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1327, in format result = re.sub(self.wikiparser.rules, self.replace, line) File "/usr/lib64/python2.7/site-packages/trac/wiki/parser.py", line 178, in rules self._prepare_rules() File "/usr/lib64/python2.7/site-packages/trac/wiki/parser.py", line 207, in _prepare_rules rules = re.compile('(?:' + '|'.join(syntax) + ')', re.UNICODE) File "/usr/lib64/python2.7/re.py", line 194, in compile return _compile(pattern, flags) File "/usr/lib64/python2.7/re.py", line 251, in _compile raise error, v # invalid expression error: redefinition of group name u'it_ticket' as group 34; was group 22
Log from /newticket:
2018-04-27 10:03:29,762 Trac[main] DEBUG: Rendering response from handler 2018-04-27 10:03:29,866 Trac[main] ERROR: Internal Server Error: <RequestWithSession "GET '/newticket'">, referrer 'http://project/trac-test/newticket' Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 613, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 273, in dispatch iterable=chrome.use_chunked_encoding) File "/usr/lib64/python2.7/site-packages/trac/web/chrome.py", line 1159, in render_template encoding='utf-8') File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 184, in render return encode(generator, method=method, encoding=encoding, out=out) File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 58, in encode for chunk in iterator: File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 350, in __call__ for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 829, in __call__ for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 669, in __call__ for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 774, in __call__ for kind, data, pos in chain(stream, [(None, None, None)]): File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 594, in __call__ for ev in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/trac/web/chrome.py", line 1426, in _strip_accesskeys for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/trac/web/chrome.py", line 1415, in _generate for kind, data, pos in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "build/bdist.linux-x86_64/egg/tracticketfieldslayout/web_ui.py", line 135, in __call__ for event in self.transform_form(stream): File "build/bdist.linux-x86_64/egg/tracticketfieldslayout/web_ui.py", line 194, in transform_form for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/filters/transform.py", line 706, in _unmark for mark, event in stream: File "/usr/lib64/python2.7/site-packages/genshi/filters/transform.py", line 1076, in __call__ for mark, event in stream: File "/usr/lib64/python2.7/site-packages/genshi/filters/transform.py", line 118, in __iter__ event = self.stream.next() File "/usr/lib64/python2.7/site-packages/genshi/filters/transform.py", line 734, in __call__ for mark, event in stream: File "/usr/lib64/python2.7/site-packages/genshi/filters/transform.py", line 702, in _mark for event in stream: File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 289, in _ensure for event in stream: File "build/bdist.linux-x86_64/egg/fieldtooltip/fieldtooltip.py", line 193, in __call__ data = self._add_title(data, 'label', 'for', 'field-', after_stream, depth) File "build/bdist.linux-x86_64/egg/fieldtooltip/fieldtooltip.py", line 244, in _add_title format_to_html(self.parent.env, self.context, text, False), File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1590, in format_to_html return HtmlFormatter(env, context, wikidom).generate(escape_newlines) File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1545, in generate escape_newlines) File "/usr/lib64/python2.7/site-packages/trac/wiki/formatter.py", line 1327, in format result = re.sub(self.wikiparser.rules, self.replace, line) File "/usr/lib64/python2.7/site-packages/trac/wiki/parser.py", line 178, in rules self._prepare_rules() File "/usr/lib64/python2.7/site-packages/trac/wiki/parser.py", line 207, in _prepare_rules rules = re.compile('(?:' + '|'.join(syntax) + ')', re.UNICODE) File "/usr/lib64/python2.7/re.py", line 194, in compile return _compile(pattern, flags) File "/usr/lib64/python2.7/re.py", line 251, in _compile raise error, v # invalid expression error: redefinition of group name u'it_ticket' as group 34; was group 22 2018-04-27 10:03:30,825 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/wikiextras/dynamicboxes.css'"> 2018-04-27 10:03:30,825 Trac[main] DEBUG: Chosen handler is <Component tracwikiextras.boxes.Boxes> 2018-04-27 10:03:30,827 Trac[session] DEBUG: Retrieving session for ID u'MB' 2018-04-27 10:03:30,874 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/dynfields/dynfields.html'"> 2018-04-27 10:03:30,874 Trac[main] DEBUG: Chosen handler is <Component dynfields.web_ui.DynamicFieldsModule> 2018-04-27 10:03:30,900 Trac[chrome] DEBUG: Prepare chrome data for request 2018-04-27 10:03:30,901 Trac[session] DEBUG: Retrieving session for ID u'MB' 2018-04-27 10:03:30,902 Trac[PyGIT] ERROR: GIT control files missing in '/mnt/data/userspace/project/test/' 2018-04-27 10:03:30,902 Trac[git_fs] ERROR: GitError: GIT control files not found, maybe wrong directory? 2018-04-27 10:03:30,906 Trac[main] DEBUG: Rendering response from handler
comment:4 Changed 7 years ago by
Replying to Cauly:
By the way, do you have your PatchedTicketSystem disabled? see TracUserSelectFieldPlugin
tracuserselectfield.userselectfield.patchedticketsystem = disabled
Right, now it works. You just added this line to the wiki now :)
comment:6 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Would you please provide more information on this, such as your group & privilege settings, error log, related trac.ini settings, or how to reproduce this error on a fresh-installed trac?
Thank you