I have created a few custom Roles, but am experiencing erratic behavior. Sometimes tickets are not created as creating the role groups fails, but it’s not clear what causes it. I disabled roles - it works, i enable them all, works again, then later tickets fail to create again. I found a role to disable to make it work (Drivers), changed it’s name to “fred” - works, change to “funker” doesn’t work. I swapped the names of some roles - works. now 2 sites stopped working, but work again after disabling “booking agent”. It’s voodoo. I’m baffled. Any suggestions to other tests i can perform?
error from rt-4.4.0 (i know i should upgrade, but it’s a massive job)
7933] [Sat Nov 16 06:11:58 2019] [critical]: Couldn’t create ticket groups for ticket 18381. aborting Ticket creation. (/var/www/rtl/lib/RT/Ticket.pm:397)
[7933] [Sat Nov 16 06:11:58 2019] [crit]: Ticket creation failed: test: Ticket could not be created due to an internal error (/var/www/rtl/lib/RT/Interface/Email.pm:771)
I think it’s related to
my $create_groups_ret = $self->_CreateRoleGroups();
in Ticket.pm and from line 645 in /var/www/rt/lib/RT/Record/Role/Roles.pm
return (0) if $role->{CreateGroupPredicate}
&& !$role->{CreateGroupPredicate}->(%create);
if i hash out the offending abort lines, the ticket creates, with without requestor
[29827] [Thu Nov 14 20:08:14 2019] [critical]: Attempting to add a member to a group which wasn’t loaded. ‘oops’ (/var/www/sm-rt/wt/sbin/…/lib/RT/Group.pm:928)
thanks in advance.
w.