
Hi, Thanks for the report. On Mon, 4 Oct 2021 at 09:30, Chris Withers <chris@withers.org> wrote:
Trying to create a new issue gave:
==== How to Reproduce ====
While doing a POST operation on `/newticket`, Trac issued an internal error.
''(please provide additional details here)''
Request parameters: {{{ {u'__FORM_TOKEN': u'06615ae4525d84b22e503ba8', u'action': u'create', u'field_branch': u'', u'field_branch_author': u'', u'field_cc': u'', u'field_component': u'trial', u'field_description': u"Reproducer:\r\n\r\n\r\n{{{\r\nfrom twisted.trial.unittest import TestCase\r\n\r\n\r\nclass StatefulCleanup:\r\n\r\n called = False\r\n\r\n def __call__(self):\r\n if self.called:\r\n raise AssertionError('Called more than once')\r\n self.called = True\r\n\r\n\r\nclass TestAddCleanup(TestCase):\r\n\r\n def setUp(self):\r\n self.addCleanup(StatefulCleanup())\r\n\r\n def testIt(self):\r\n pass\r\n}}}\r\n\r\n\r\nIf run with trial -u, the AssertionError will be issued.", u'field_keywords': u'', u'field_milestone': u'', u'field_priority': u'normal', u'field_summary': u'Cleanups added with addCleanup incorrectly called on subsequent runs when using `trial -u`', u'field_type': u'defect', u'sfp_email': u'', u'sfph_mail': u'', u'submit': u'Create ticket'} }}}
User agent: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36`
==== System Information ==== ''System information not available''
==== Enabled Plugins ==== ''Plugin information not available''
==== Interface Customization ==== ''Interface customization information not available''
==== Python Traceback ==== {{{ Traceback (most recent call last): File "/srv/trac/virtualenv/lib/python2.7/site-packages/trac/web/main.py", line 623, in _dispatch_request dispatcher.dispatch(req) File "/srv/trac/virtualenv/lib/python2.7/site-packages/trac/web/main.py", line 239, in dispatch resp = chosen_handler.process_request(req) File "/srv/trac/virtualenv/lib/python2.7/site-packages/trac/ticket/web_ui.py", line 175, in process_request return self._process_newticket_request(req) File "/srv/trac/virtualenv/lib/python2.7/site-packages/trac/ticket/web_ui.py", line 523, in _process_newticket_request self._do_create(req, ticket, action) File "/srv/trac/virtualenv/lib/python2.7/site-packages/trac/ticket/web_ui.py", line 1382, in _do_create ticket.insert() File "/srv/trac/virtualenv/lib/python2.7/site-packages/trac/ticket/model.py", line 293, in insert listener.ticket_created(self) File "/srv/trac/virtualenv/lib/python2.7/site-packages/twisted_trac_plugins/ticket_reporter.py", line 20, in ticket_created ticket.values['summary']]) File "/usr/lib/python2.7/subprocess.py", line 172, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 394, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory }}}
Guessing this is related to the hosting provider move?
Chris
This was failing due to Twisted Trac customization . I have disabled the plugin. I think Trac was trying to talk with the IRC integration, but the IRC integration was not migrated to the new server. If you want to help with the migration, let me know. For me, the Trac migration was Plan B, and I would like to spend the available time looking at migrating Trac Tickets to GitHub Issues Regards -- Adi Roiban