#5708 Error 500 when accessing tickets (after moving private tickets?) [ss2598]

v1.0.0
closed
nobody
General
2015-08-20
2013-01-29
Chris Tsai
No

[forge:site-support:#2598]

Hi,

I've been using the new "move ticket" feature (which is great BTW) and now I'm seeing Error 500 when trying to access any of my bug or feature request tickets:

E.g.
https://sourceforge.net/p/freefilesync/bugs/241/
https://sourceforge.net/p/freefilesync/feature-requests/326/

Curiously I'm only getting this error when I'm logged in as my main user "Zenju". If I log out or log in as another user, I can correctly view these tickets.

I'm not sure if this is really caused by the "move" I did before, but with this issue I'm right now effectively unable to maintain the bug and feature-request trackers! The support-request tracker on the other hand works fine.

Regards, Zenju


Some additional hint: I moved away tickets from both the bugs and feature-request trackers that had been marked "private". These tickets are only shown to my main user: Do I get Error 500 because Allura is trying to show me these tickets and fails? This would explain why only I see this error when logged in as my main user.

For what it's worth, I get 500 errors there too. I wasn't able to reproduce this by moving private tickets however.

Related

Tickets: #5691
Tickets: #5708
Tickets: #5727
Tickets: #5730

Discussion

  • Dave Brondsema

    Dave Brondsema - 2013-01-29
    • labels: support, p3 --> support, p3, 42cc
    • milestone: limbo --> forge-backlog
     
  • Dave Brondsema

    Dave Brondsema - 2013-01-29

    error from logs is:

    File '/var/local/allura/ForgeTracker/forgetracker/templates/tracker/ticket.html', line 149 in block "after_content"
      {{c.thread.display(value=thread,new_post_text="New Comment",page=page,limit=limit,count=count)}}
    File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130116-py2.7.egg/ew/widget.py', line 45 in display
      return self.template(context)
    File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130116-py2.7.egg/ew/render.py', line 32 in __call__
      return self.engine.render(self.template, context)
    File '/var/local/allura/Allura/allura/config/app_cfg.py', line 109 in render
      text = template.render(**context)
    File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4-py2.7.egg/timermiddleware/__init__.py', line 105 in wrapper
      return self.run_and_log(func, inst, *args, **kwargs)
    File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4-py2.7.egg/timermiddleware/__init__.py', line 114 in run_and_log
      return func(*args, **kwargs)
    File '/usr/lib64/python2.7/site-packages/newrelic/newrelic/api/object_wrapper.py', line 220 in __call__
      self._nr_instance, args, kwargs)
    File '/usr/lib64/python2.7/site-packages/newrelic/newrelic/api/function_trace.py', line 70 in dynamic_wrapper
      return wrapped(*args, **kwargs)
    File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py', line 894 in render
      return self.environment.handle_exception(exc_info, True)
    File '/var/local/allura/Allura/allura/templates/widgets/thread_widget.html', line 14 in top-level template code
      {{widgets.post_thread.display(value=t['post'], children=t['children'],
    File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130116-py2.7.egg/ew/widget.py', line 45 in display
      return self.template(context)
    File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130116-py2.7.egg/ew/render.py', line 32 in __call__
      return self.engine.render(self.template, context)
    File '/var/local/allura/Allura/allura/config/app_cfg.py', line 109 in render
      text = template.render(**context)
    File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4-py2.7.egg/timermiddleware/__init__.py', line 105 in wrapper
      return self.run_and_log(func, inst, *args, **kwargs)
    File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4-py2.7.egg/timermiddleware/__init__.py', line 114 in run_and_log
      return func(*args, **kwargs)
    File '/usr/lib64/python2.7/site-packages/newrelic/newrelic/api/object_wrapper.py', line 220 in __call__
      self._nr_instance, args, kwargs)
    File '/usr/lib64/python2.7/site-packages/newrelic/newrelic/api/function_trace.py', line 70 in dynamic_wrapper
      return wrapped(*args, **kwargs)
    File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py', line 894 in render
      return self.environment.handle_exception(exc_info, True)
    File '/var/local/allura/Allura/allura/templates/widgets/post_thread.html', line 3 in top-level template code
      {{widget.parent_widget.widgets.post.display(
    File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130116-py2.7.egg/ew/widget.py', line 45 in display
      return self.template(context)
    File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130116-py2.7.egg/ew/render.py', line 32 in __call__
      return self.engine.render(self.template, context)
    File '/var/local/allura/Allura/allura/config/app_cfg.py', line 109 in render
      text = template.render(**context)
    File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4-py2.7.egg/timermiddleware/__init__.py', line 105 in wrapper
      return self.run_and_log(func, inst, *args, **kwargs)
    File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4-py2.7.egg/timermiddleware/__init__.py', line 114 in run_and_log
      return func(*args, **kwargs)
    File '/usr/lib64/python2.7/site-packages/newrelic/newrelic/api/object_wrapper.py', line 220 in __call__
      self._nr_instance, args, kwargs)
    File '/usr/lib64/python2.7/site-packages/newrelic/newrelic/api/function_trace.py', line 70 in dynamic_wrapper
      return wrapped(*args, **kwargs)
    File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py', line 894 in render
      return self.environment.handle_exception(exc_info, True)
    File '/var/local/allura/Allura/allura/templates/widgets/post_widget.html', line 41 in top-level template code
      {{widgets.edit_post.display(value=value, submit_text='Post', action=value.url())}}
    File '/var/local/allura/Allura/allura/model/discuss.py', line 507 in url
      return self.thread.url() + h.urlquote(self.slug) + '/'
    File '/var/local/allura/Allura/allura/model/discuss.py', line 334 in url
      return discussion.url() + 'thread/' + str(self._id) + '/'
    File '/var/local/allura/Allura/allura/model/discuss.py', line 85 in url
      return self.app.url + '_discuss/'
    AttributeError: 'NoneType' object has no attribute 'url'
    
     
  • Igor Bondarenko - 2013-01-30

    Created #262: [#5708] Error 500 when accessing tickets (after moving private tickets?) (2cp)

     

    Related

    Tickets: #5708

  • Igor Bondarenko - 2013-01-30
    • status: open --> in-progress
     
  • Igor Bondarenko - 2013-01-31

    Ok, I was able to reproduce the error by moving tickets to the tracker, and then deleting tracker as described here: https://sourceforge.net/p/forge/site-support/2598/#d8e4.

    Fixed in allura:je/42cc_5708. Closed #261.

     
  • Igor Bondarenko - 2013-01-31
    • status: in-progress --> code-review
     
  • Igor Bondarenko - 2013-01-31

    Oh, and one more thing. I've fixed the code, so the bug won't occur anymore, but it won't fix trackers which already has the bug. To fix them we need to set app_config_id for Discussion instance for the tracker back to tracker's app_config_id.

     
  • Dave Brondsema

    Dave Brondsema - 2013-01-31
    • status: code-review --> closed
    • qa: Dave Brondsema
    • milestone: forge-backlog --> forge-feb-08
     

Log in to post a comment.