Re: [Apache Bloodhound] #508: Trac plugin does not working in the Bloodhound Theme
#508: Trac plugin does not working in the Bloodhound Theme + Reporter: goody80| Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: dashboard |Version: 0.5.3 Resolution: | Keywords: + Comment (by goody80): * Please find attach with below error message * [[Image(https://issues.apache.org/bloodhound/raw- attachment/ticket/508/TicketCreateError.jpg)]] {{{ 2013-04-25 18:07:18,858 Trac[theme] ERROR: BH: Quick create ticket failed PRIMARY KEY must be unique Traceback (most recent call last): File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/bhtheme/theme.py, line 424, in process_request ticket_id = self.create(req, summary, desc, attrs, True) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/bhtheme/theme.py, line 460, in create listener.ticket_created(t) File /usr/lib/python2.6/site-packages/TracBacklog-0.4.0_dev- py2.6.egg/backlog/web_ui.py, line 180, in ticket_created (ticket.id, rank)) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/db/util.py, line 65, in execute return self.cursor.execute(sql_escape_percent(sql), args) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/db/sqlite_backend.py, line 78, in execute result = PyFormatCursor.execute(self, *args) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/db/sqlite_backend.py, line 56, in execute args or []) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/db/sqlite_backend.py, line 48, in _rollback_on_error return function(self, *args, **kwargs) IntegrityError: PRIMARY KEY must be unique }}} Thanks :) Ralf. -- Ticket URL: https://issues.apache.org/bloodhound/ticket/508#comment:9 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #508: Trac plugin does not working in the Bloodhound Theme
#508: Trac plugin does not working in the Bloodhound Theme + Reporter: goody80| Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: dashboard |Version: 0.5.3 Resolution: | Keywords: + Comment (by olemis): Thanks for providing further details . Please see inline comments . Replying to [comment:9 goody80]: [...] {{{ 2013-04-25 18:07:18,858 Trac[theme] ERROR: BH: Quick create ticket failed PRIMARY KEY must be unique Traceback (most recent call last): File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/bhtheme/theme.py, line 424, in process_request ticket_id = self.create(req, summary, desc, attrs, True) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/bhtheme/theme.py, line 460, in create listener.ticket_created(t) }}} Up to this point this only means that ticket was successfully created and thereby ticket listeners will be notified of the fact ... {{{ File /usr/lib/python2.6/site-packages/TracBacklog-0.4.0_dev- py2.6.egg/backlog/web_ui.py, line 180, in ticket_created (ticket.id, rank)) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/db/util.py, line 65, in execute return self.cursor.execute(sql_escape_percent(sql), args) }}} trachacks:BacklogPlugin being one such listener subsequently executing an (undisclosed) SQL query ... {{{ File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/db/sqlite_backend.py, line 78, in execute result = PyFormatCursor.execute(self, *args) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/db/sqlite_backend.py, line 56, in execute args or []) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/db/sqlite_backend.py, line 48, in _rollback_on_error return function(self, *args, **kwargs) IntegrityError: PRIMARY KEY must be unique }}} ... that fails when being processed by Trac DB API modules . So this may be one of four options 1. An error in trachacks:BacklogPlugin 2. An error in Trac DB API 3. An error caused by a modification we made in Trac DB API 4. Interactions between activated components thus causing this error Could you please mention if you get the same error using /newticket form ? -- Ticket URL: https://issues.apache.org/bloodhound/ticket/508#comment:10 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #508: Trac plugin does not working in the Bloodhound Theme
#508: Trac plugin does not working in the Bloodhound Theme + Reporter: goody80| Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: dashboard |Version: 0.5.3 Resolution: | Keywords: + Comment (by olemis): Hi ! Replying to [comment:7 goody80]: [...] But, in Bloodhound normal status(I mean, I don't change any theme), I can see a some defect of functions. For example, When I use a Create ticket button in the top menu for New ticket create instantly, some error message has been occurred as they couldn't make that.. But it works normal. It's strange happening. I do not get it . Target ticket was created or not ? I'm trying to understand what's happening your side in order to determine first whether this is a misconfiguration or a bug . In the later case I'll write some test cases and try to fix the problem , but I honestly do not understand what's happening . Maybe there's not enough information ... Did / Could you enable TracLogging ? Anything reported in the logs ? I would like to say those 3 plugins is normal and okay. I just worried about of this BloodhoundTheme 0.5.3 is unstable in some system environment(I using at RedHat 6.4). Due to I use those 3 plugins at my system environment well without BloodhoundTheme 0.5.3 Please check this issue :) I look forward to know of more details . Thanks for your interest in Bloodhound . :) -- Ticket URL: https://issues.apache.org/bloodhound/ticket/508#comment:8 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #508: Trac plugin does not working in the Bloodhound Theme
#508: Trac plugin does not working in the Bloodhound Theme + Reporter: goody80| Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: dashboard |Version: 0.5.3 Resolution: | Keywords: + Comment (by goody80): * Let me attach a trac.log for this issue clear {{{ 2013-04-23 15:17:21,088 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last): File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/web/main.py, line 497, in _dispatch_request dispatcher.dispatch(req) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/web/main.py, line 214, in dispatch resp = chosen_handler.process_request(req) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/themeengine/admin.py, line 88, in process_request return self._send_screenshot(req, data, path_info[11:]) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/themeengine/admin.py, line 100, in _send_screenshot img = resource_string(theme['module'], theme['screenshot']) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py, line 894, in resource_string self, resource_name File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py, line 1167, in get_resource_string return self._get(self._fn(self.module_path, resource_name)) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py, line 1288, in _get stream = open(path, 'rb') IOError: [Errno 2] No such file or directory: '/data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/themeengine/htdocs/default_screenshot.png' 2013-04-23 15:17:21,151 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last): File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/web/main.py, line 497, in _dispatch_request dispatcher.dispatch(req) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/trac/web/main.py, line 214, in dispatch resp = chosen_handler.process_request(req) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/themeengine/admin.py, line 88, in process_request return self._send_screenshot(req, data, path_info[11:]) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/themeengine/admin.py, line 100, in _send_screenshot img = resource_string(theme['module'], theme['screenshot']) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py, line 894, in resource_string self, resource_name File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py, line 1167, in get_resource_string return self._get(self._fn(self.module_path, resource_name)) File /data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py, line 1288, in _get stream = open(path, 'rb') IOError: [Errno 2] No such file or directory: '/data/bloodhound/installer/bloodhound/lib/python2.6/site- packages/bhtheme/htdocs/screenshot.png' }}} -- Ticket URL: https://issues.apache.org/bloodhound/ticket/508#comment:4 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #508: Trac plugin does not working in the Bloodhound Theme
#508: Trac plugin does not working in the Bloodhound Theme + Reporter: goody80| Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: dashboard |Version: 0.5.3 Resolution: | Keywords: + Comment (by rjollos): I'm having a hard time figuring out what problem to look for. since you first say there are issues with 3 plugins, and then show a traceback that seems to be associated with accessing `/admin/theme/theme`, which is disabled by default. Let's start with the traceback in comment:4: What action where you performing when you encountered that traceback? I can reproduce the traceback if I navigate directly to `/themeengine/screenshot/bloodhound`, but I'm not sure how you'd encounter it through normal interaction with Bloodhound. Did you enable `themeengine.admin.*` in the `components` section of trac.ini or through the web admin ? -- Ticket URL: https://issues.apache.org/bloodhound/ticket/508#comment:5 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #508: Trac plugin does not working in the Bloodhound Theme
#508: Trac plugin does not working in the Bloodhound Theme + Reporter: goody80| Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: dashboard |Version: 0.5.3 Resolution: | Keywords: + Comment (by rjollos): I see the traceback from comment:4 in the logs if I enable `themeengine.admin.*`, but it doesn't result in an `TracError` page. It appears to be unrelated to the primary issue you are reporting here and we don't enable those admin panels by default, but we should fix the issues anyway. The issues are: 1. `default_screenshot` and `no_screenshot` don't seem to be installed: {{{ #!sh ls installer/bloodhound/lib/python2.7/site-packages/themeengine/htdocs/ admin.css farbtastic img jcarousellite_1.0.1.js jquery.rule.js jquery.rule-min.js }}} 1. Since we don't have a screenshot in the !BloodhoundTheme` package, the following patch should be applied: {{{ #!patch Index: bloodhound_theme/bhtheme/theme.py === --- bloodhound_theme/bhtheme/theme.py (revision 1470981) +++ bloodhound_theme/bhtheme/theme.py (working copy) @@ -62,7 +62,8 @@ class BloodhoundTheme(ThemeBase): Look and feel of Bloodhound issue tracker. -template = htdocs = css = screenshot = disable_trac_css = True +template = htdocs = css = disable_trac_css = True +screenshot = False disable_all_trac_css = True BLOODHOUND_KEEP_CSS = set( ( }}} -- Ticket URL: https://issues.apache.org/bloodhound/ticket/508#comment:6 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #508: Trac plugin does not working in the Bloodhound Theme
#508: Trac plugin does not working in the Bloodhound Theme + Reporter: goody80| Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: dashboard |Version: 0.5.3 Resolution: | Keywords: + Comment (by rjollos): Just to be sure, are you referring to th:BacklogPlugin? If so, that's one that i maintain and i can take a quick look in the morning. -- Ticket URL: https://issues.apache.org/bloodhound/ticket/508#comment:2 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker