From robert.wysocki at unity.pl Thu Aug 1 05:18:18 2013 From: robert.wysocki at unity.pl (Robert Wysocki) Date: Thu, 1 Aug 2013 11:18:18 +0200 Subject: [rt-users] Differentiating while sending notifictions In-Reply-To: <20130731161047.GF22003@jibsheet.com> References: <1375272237.4545.162.camel@s-rwysocki> <20130731161047.GF22003@jibsheet.com> Message-ID: <1375348698.4545.175.camel@s-rwysocki> Dnia 2013-07-31, ?ro o godzinie 12:10 -0400, Kevin Falcone pisze: > On Wed, Jul 31, 2013 at 02:03:57PM +0200, Robert Wysocki wrote: > > I'm looking for a way to differentiate between external (mainly > > customers) and internal users (emplyees) while sending notifications. > > > > From what I figured out this cannot be done within the template itself. > > Should I write custom code and plug it in with some callback or is there > > any other way? > > Often people do this by having AdminCcs be internal and Requestors/Ccs > be external. This way they naturally use two separate Templates. This would be a nice solutions except not everybody likes to receive tons of comments as AdminCc. > If you tell us more specifically what you're trying to accomplish, > someone might be able to suggest a solution. Our RT web interface is used mainly locally. We have links included in templates, but external users usually don't have credentials to log in into web interface, so links just confuse them. We'd like to split templates so that only those with access get links and others don't. Regards, -- Robert Wysocki administrator system?w linuksowych administrator baz danych Grupa Unity | ul. Przedmiejska 6-10, 54-201 Wroc?aw ul. Conrada 55B, 31-357 Krak?w | ul. Z?ota 59, 00-120 Warszawa From sszretter at hotmail.com Thu Aug 1 07:52:25 2013 From: sszretter at hotmail.com (SSzretter) Date: Thu, 1 Aug 2013 07:52:25 -0400 Subject: [rt-users] how to search for tickets resolved 'yesterday' ? Message-ID: I want to show a list of tickets resolved yesterday only, so that I can create a dashboard that will email daily AM a list of tickets that were finished the day before...? Thanks! From sszretter at hotmail.com Thu Aug 1 08:26:38 2013 From: sszretter at hotmail.com (SSzretter) Date: Thu, 1 Aug 2013 08:26:38 -0400 Subject: [rt-users] dashboard reminders in RT4? Message-ID: I have set up a couple dashboards, which look good and also set a m-f 8am reminder with an email address in each. The email did not go out this morning, so I am trying to figure out why. Generally, emails go out for tickets and the system checks mail and pulls it in regularly, so I am assuming there is some kind of rt-crontool going on (or similar). I did not specifically set that up, but it's working. SO, there must be something additional that I have to do to actually have my dashboard reminders go out every day, what should I look at? Thanks! From presnypreklad at gmail.com Thu Aug 1 08:29:08 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Thu, 1 Aug 2013 14:29:08 +0200 Subject: [rt-users] Postfix sendmail returning status code 75 In-Reply-To: <51F97541.607@bestpractical.com> References: <20130731161000.GE22003@jibsheet.com> <51F97541.607@bestpractical.com> Message-ID: > My guess is that you're running RT 4 under mod_perl with the wrong > SetHandler value. Read > http://bestpractical.com/docs/rt/latest/web_deployment.html#mod_perl-2.xx and > compare your config. No, mine seems to check out. Here it is: AddDefaultCharset UTF-8 PerlSetEnv RT_SITE_CONFIG /etc/request-tracker/RT_SiteConfig.pm # You might need to alter references to /rt in this file (there are # three) to match whatever base URL you are using for your RT site Alias / /usr/share/request-tracker/html SetHandler modperl PerlResponseHandler Plack::Handler::Apache2 PerlSetVar psgi_app /usr/sbin/rt-server # Options None # Order allow,deny # Allow from all # Limit mail gateway access to localhost by default Order Allow,Deny Allow from 127.0.0.1 use Plack::Handler::Apache2; Plack::Handler::Apache2->preload("/usr/sbin/rt-server"); Today I have been keeping a close watch on the server's memory. So far I haven't seen any less than 80% free, and no error so far, either. Nathan From alex.kucheryuk at eltoma-offshore.com Thu Aug 1 09:59:19 2013 From: alex.kucheryuk at eltoma-offshore.com (Alexander Kucheryuk) Date: Thu, 01 Aug 2013 16:59:19 +0300 Subject: [rt-users] Functions Message-ID: <51FA69B7.40803@eltoma-offshore.com> Hi! I am running RT 4.0.16 on Centos 6.4. How can I know methods and functions of variables ? For example, $Ticket->Status which gets the status of the ticket. How can I find out other functions like "status"? I checked wiki but its really limited. I would imagine I'd need to manually debug to find it all out but I was hoping there would be something available ready-made since I am not proficient in perl. From brian.s.haupt at ama-inc.com Thu Aug 1 10:32:08 2013 From: brian.s.haupt at ama-inc.com (Brian Haupt) Date: Thu, 1 Aug 2013 14:32:08 +0000 Subject: [rt-users] ExternalAuth problems Message-ID: I am setting up a new Request Tracker 4.0.16 installation on CentOS 6.4. I am able to log into RT using the RT root password but I receive the following error when trying to login using my AD account [Thu Aug 1 14:37:33 2013] [error]: FAILED LOGIN for $UserName from $IP_Address (/usr/local/rt/sbin/../lib/RT/Interface/Web.pm:753) Below is the relavent part of my RT_SiteConfig Set($WebPort, 443); Set($WebPath, "/rt"); Set($WebDomain, '$hostname.$PublicDomain'); Set($rtname, '$hostname'); Set($ExternalSettings, { # AN EXAMPLE LDAP SERVICE 'My_LDAP' => { 'type' => 'ldap', 'server' => '$DC.$InternalNetwork', 'user' => '$AD_User@$InternalNetwork ', 'pass' => '$Password', 'base' => 'dc=$InternalNetwork', 'filter' => '(objectClass=*)', 'attr_map' => { 'Name' => 'displayName', 'EmailAddress' => 'mail', 'RealName' => 'cn', 'ExternalAuthId' => 'sAMAccountName', 'Gecos' => 'sAMAccountName', }, }, }); # You must install Plugins on your own, this is only an example # of the correct syntax to use when activating them. # There should only be one @Plugins declaration in your config file. Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction)); Set(@Plugins,(qw(RT::Extension::CommandByMail RT::Authen::ExternalAuth))); 1; -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsolberg at intrepidls.com Thu Aug 1 11:22:32 2013 From: jsolberg at intrepidls.com (Jeff Solberg) Date: Thu, 1 Aug 2013 15:22:32 +0000 Subject: [rt-users] ExternalAuth problems Message-ID: Try removing the extra '(' you have in front of qw in your set at plugin declaration. Jeff From my Android phone on T-Mobile. The first nationwide 4G network. -------- Original message -------- From: Brian Haupt Date: 08/01/2013 7:48 AM (GMT-08:00) To: rt-users at lists.bestpractical.com Subject: [rt-users] ExternalAuth problems I am setting up a new Request Tracker 4.0.16 installation on CentOS 6.4. I am able to log into RT using the RT root password but I receive the following error when trying to login using my AD account [Thu Aug 1 14:37:33 2013] [error]: FAILED LOGIN for $UserName from $IP_Address (/usr/local/rt/sbin/../lib/RT/Interface/Web.pm:753) Below is the relavent part of my RT_SiteConfig Set($WebPort, 443); Set($WebPath, "/rt"); Set($WebDomain, '$hostname.$PublicDomain'); Set($rtname, '$hostname'); Set($ExternalSettings, { # AN EXAMPLE LDAP SERVICE 'My_LDAP' => { 'type' => 'ldap', 'server' => '$DC.$InternalNetwork', 'user' => '$AD_User@$InternalNetwork ', 'pass' => '$Password', 'base' => 'dc=$InternalNetwork', 'filter' => '(objectClass=*)', 'attr_map' => { 'Name' => 'displayName', 'EmailAddress' => 'mail', 'RealName' => 'cn', 'ExternalAuthId' => 'sAMAccountName', 'Gecos' => 'sAMAccountName', }, }, }); # You must install Plugins on your own, this is only an example # of the correct syntax to use when activating them. # There should only be one @Plugins declaration in your config file. Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction)); Set(@Plugins,(qw(RT::Extension::CommandByMail RT::Authen::ExternalAuth))); 1; From bbaker at copesan.com Thu Aug 1 12:03:37 2013 From: bbaker at copesan.com (Bryon Baker) Date: Thu, 1 Aug 2013 16:03:37 +0000 Subject: [rt-users] Developer Mode Message-ID: <8861feb749cb4a2fa112207552451525@BLUPR05MB103.namprd05.prod.outlook.com> I am using RT 4.0.13 On OpenSuse I am going to make a lot of changes to RT and was attempting to switch to Developer mode by adding Set($DevelMode, '1'); To the SiteConfig file when I do this I get the following error Aug 01 10:52:04 linux-jrlt.site start_apache2[2937]: [Thu Aug 01 10:52:04 2013] [warn] module actions_module is already loaded, skipping Aug 01 10:52:04 linux-jrlt.site start_apache2[2937]: Syntax error on line 32 of /etc/apache2/conf.d/apache2-modperl2.conf: Aug 01 10:52:04 linux-jrlt.site start_apache2[2937]: Can't locate Module/Refresh.pm in @INC (@INC contains: /usr/share/request-tracker...e 97.\n Aug 01 10:52:04 linux-jrlt.site systemd[1]: Failed to start apache. Aug 01 10:52:04 linux-jrlt.site systemd[1]: Unit apache2.service entered failed state I can find the file in the following locations [cid:image001.png at 01CE8EA6.C541C420] Does anyone know what I need to do the fix this issue? Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3315 bytes Desc: image001.png URL: From brian.s.haupt at ama-inc.com Thu Aug 1 12:06:07 2013 From: brian.s.haupt at ama-inc.com (Brian Haupt) Date: Thu, 1 Aug 2013 16:06:07 +0000 Subject: [rt-users] ExternalAuth problems In-Reply-To: References: Message-ID: <8e800ab362724d8982a8786ef1216adb@BL2PR04MB050.namprd04.prod.outlook.com> I have tried removing the extra '(' as recommended but with no success. I have also tried using changing 'user' => $AD_User@$InternalNetwork ', to 'user' => 'cn=$Username,cn=Users,dc=internal,dc=$DomainName,dc=com', I also tried adding Set($LdapServer, 'ldaps://myDomainController.xxxxxxx.com'); Set($LdapTLS, 1); Set($LdapSSLVersion, 3); But none of these have yielded any better results. -----Original Message----- From: Jeff Solberg [mailto:jsolberg at intrepidls.com] Sent: Thursday, August 01, 2013 11:23 AM To: Brian Haupt; rt-users at lists.bestpractical.com Subject: RE: [rt-users] ExternalAuth problems Try removing the extra '(' you have in front of qw in your set at plugin declaration. Jeff From my Android phone on T-Mobile. The first nationwide 4G network. -------- Original message -------- From: Brian Haupt Date: 08/01/2013 7:48 AM (GMT-08:00) To: rt-users at lists.bestpractical.com Subject: [rt-users] ExternalAuth problems I am setting up a new Request Tracker 4.0.16 installation on CentOS 6.4. I am able to log into RT using the RT root password but I receive the following error when trying to login using my AD account [Thu Aug 1 14:37:33 2013] [error]: FAILED LOGIN for $UserName from $IP_Address (/usr/local/rt/sbin/../lib/RT/Interface/Web.pm:753) Below is the relavent part of my RT_SiteConfig Set($WebPort, 443); Set($WebPath, "/rt"); Set($WebDomain, '$hostname.$PublicDomain'); Set($rtname, '$hostname'); Set($ExternalSettings, { # AN EXAMPLE LDAP SERVICE 'My_LDAP' => { 'type' => 'ldap', 'server' => '$DC.$InternalNetwork', 'user' => '$AD_User@$InternalNetwork', 'pass' => '$Password', 'base' => 'dc=$InternalNetwork', 'filter' => '(objectClass=*)', 'attr_map' => { 'Name' => 'displayName', 'EmailAddress' => 'mail', 'RealName' => 'cn', 'ExternalAuthId' => 'sAMAccountName', 'Gecos' => 'sAMAccountName', }, }, }); # You must install Plugins on your own, this is only an example # of the correct syntax to use when activating them. # There should only be one @Plugins declaration in your config file. Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction)); Set(@Plugins,(qw(RT::Extension::CommandByMail RT::Authen::ExternalAuth))); 1; From falcone at bestpractical.com Thu Aug 1 12:17:17 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 1 Aug 2013 12:17:17 -0400 Subject: [rt-users] New installation of 4.0.13 - performance problem viewing tickets. In-Reply-To: References: <20130729152927.GW22003@jibsheet.com> Message-ID: <20130801161717.GA2203@jibsheet.com> On Mon, Jul 29, 2013 at 11:32:09PM +0800, Richard Colley wrote: > On 29 July 2013 23:29, Kevin Falcone <[1]falcone at bestpractical.com> wrote: > > On Mon, Jul 29, 2013 at 04:46:25PM +0800, Richard Colley wrote: > > I am having a strange performance problem viewing tickets in a recent > > installation of RT v4.0.13 on RHEL6.4. ? DB is Postgres 9.2. > > Which version of DBD::Pg are you using? > > DBD::Pg is version 2.19.3. That's new enough to no longer generate incorrect SQL, but RT doesn't use the DBIx::SearchBuilder functions that call column_info except during upgrades. As a result, I'm unsure what in RT would be triggering the queries you're seeing. You might turn on RT or Postgres' query logging and see if you can figure out what happens before those queries. Also - be suspicious of any customizations. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From bbaker at copesan.com Thu Aug 1 12:19:05 2013 From: bbaker at copesan.com (Bryon Baker) Date: Thu, 1 Aug 2013 16:19:05 +0000 Subject: [rt-users] ExternalAuth problems In-Reply-To: <8e800ab362724d8982a8786ef1216adb@BL2PR04MB050.namprd04.prod.outlook.com> References: <8e800ab362724d8982a8786ef1216adb@BL2PR04MB050.namprd04.prod.outlook.com> Message-ID: <0d250cb0224b4736855f2751a093c0be@BLUPR05MB103.namprd05.prod.outlook.com> Brian If you use AdsiEdit and look at the user object you are trying to use it will display the Distinguished Name needed to access the object. Like Name Class Distinguished Name CN=RQ Tracker User CN=RQ Tracker,OU=Users_Special,OU=Copesan,DC=Copesan,DC=Local In the above case User would be 'user' => 'CN=RQ Tracker,OU=Users_Special,OU=Copesan,DC=Copesan,DC=Local', 'server' => "This would be any readable Domain Controler" Hope this helps. Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726? ?? 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Brian Haupt Sent: Thursday, August 01, 2013 11:06 AM To: rt-users at lists.bestpractical.com Subject: Re: [rt-users] ExternalAuth problems I have tried removing the extra '(' as recommended but with no success. I have also tried using changing 'user' => $AD_User@$InternalNetwork ', to 'user' => 'cn=$Username,cn=Users,dc=internal,dc=$DomainName,dc=com', I also tried adding Set($LdapServer, 'ldaps://myDomainController.xxxxxxx.com'); Set($LdapTLS, 1); Set($LdapSSLVersion, 3); But none of these have yielded any better results. -----Original Message----- From: Jeff Solberg [mailto:jsolberg at intrepidls.com] Sent: Thursday, August 01, 2013 11:23 AM To: Brian Haupt; rt-users at lists.bestpractical.com Subject: RE: [rt-users] ExternalAuth problems Try removing the extra '(' you have in front of qw in your set at plugin declaration. Jeff From my Android phone on T-Mobile. The first nationwide 4G network. -------- Original message -------- From: Brian Haupt Date: 08/01/2013 7:48 AM (GMT-08:00) To: rt-users at lists.bestpractical.com Subject: [rt-users] ExternalAuth problems I am setting up a new Request Tracker 4.0.16 installation on CentOS 6.4. I am able to log into RT using the RT root password but I receive the following error when trying to login using my AD account [Thu Aug 1 14:37:33 2013] [error]: FAILED LOGIN for $UserName from $IP_Address (/usr/local/rt/sbin/../lib/RT/Interface/Web.pm:753) Below is the relavent part of my RT_SiteConfig Set($WebPort, 443); Set($WebPath, "/rt"); Set($WebDomain, '$hostname.$PublicDomain'); Set($rtname, '$hostname'); Set($ExternalSettings, { # AN EXAMPLE LDAP SERVICE 'My_LDAP' => { 'type' => 'ldap', 'server' => '$DC.$InternalNetwork', 'user' => '$AD_User@$InternalNetwork', 'pass' => '$Password', 'base' => 'dc=$InternalNetwork', 'filter' => '(objectClass=*)', 'attr_map' => { 'Name' => 'displayName', 'EmailAddress' => 'mail', 'RealName' => 'cn', 'ExternalAuthId' => 'sAMAccountName', 'Gecos' => 'sAMAccountName', }, }, }); # You must install Plugins on your own, this is only an example # of the correct syntax to use when activating them. # There should only be one @Plugins declaration in your config file. Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction)); Set(@Plugins,(qw(RT::Extension::CommandByMail RT::Authen::ExternalAuth))); 1; From falcone at bestpractical.com Thu Aug 1 12:21:29 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 1 Aug 2013 12:21:29 -0400 Subject: [rt-users] Differentiating while sending notifictions In-Reply-To: <1375348698.4545.175.camel@s-rwysocki> References: <1375272237.4545.162.camel@s-rwysocki> <20130731161047.GF22003@jibsheet.com> <1375348698.4545.175.camel@s-rwysocki> Message-ID: <20130801162129.GB2203@jibsheet.com> On Thu, Aug 01, 2013 at 11:18:18AM +0200, Robert Wysocki wrote: > Dnia 2013-07-31, ?ro o godzinie 12:10 -0400, Kevin Falcone pisze: > > On Wed, Jul 31, 2013 at 02:03:57PM +0200, Robert Wysocki wrote: > > > I'm looking for a way to differentiate between external (mainly > > > customers) and internal users (emplyees) while sending notifications. > > > > > > From what I figured out this cannot be done within the template itself. > > > Should I write custom code and plug it in with some callback or is there > > > any other way? > > > > Often people do this by having AdminCcs be internal and Requestors/Ccs > > be external. This way they naturally use two separate Templates. > > This would be a nice solutions except not everybody likes to receive > tons of comments as AdminCc. You can tune what Scrips run, although if some people do and some people don't, it's difficult. > > If you tell us more specifically what you're trying to accomplish, > > someone might be able to suggest a solution. > > Our RT web interface is used mainly locally. We have links included in > templates, but external users usually don't have credentials to log in > into web interface, so links just confuse them. > We'd like to split templates so that only those with access get links > and others don't. Unfortunately, RT uses one template to generate all the mail to all the Requestors, so you can't solve this with templates. One way to solve this is having some custom notification actions (perhaps with rt-email-group-admin to notify some internal users separately from the others). The only real solution is likely to have some sort of Notify Privileged Users vs Notify Unprivileged Users Scrip Actions that subclass the Notify action and override which Requestors are picked. It'll be weird because half the Requestors would be notified in a clump and then the others would be notified. Or to convert RT to sending one email per user. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From jsolberg at intrepidls.com Thu Aug 1 12:21:55 2013 From: jsolberg at intrepidls.com (Jeff Solberg) Date: Thu, 1 Aug 2013 16:21:55 +0000 Subject: [rt-users] ExternalAuth problems In-Reply-To: <8e800ab362724d8982a8786ef1216adb@BL2PR04MB050.namprd04.prod.outlook.com> References: <8e800ab362724d8982a8786ef1216adb@BL2PR04MB050.namprd04.prod.outlook.com> Message-ID: <66F399A5340D2E44B1D4A4672B648976DF701B@canis.intrepidls.com> When you removed the extra '(' did you also remove the extra ')' from the end of the declaration? Your plug in line should look like this Set(@Plugins, qw(RT::Extension::CommandByMail RT::Authen::ExternalAuth)); Restart Apache.. If this doesn?t work go into RT as root then go into the system configuration Tools--> Configuration --> tools--> System Configuration And see if the plugs are being set. Hope this helps. Jeff -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Brian Haupt Sent: Thursday, August 01, 2013 9:06 AM To: rt-users at lists.bestpractical.com Subject: Re: [rt-users] ExternalAuth problems I have tried removing the extra '(' as recommended but with no success. I have also tried using changing 'user' => $AD_User@$InternalNetwork ', to 'user' => 'cn=$Username,cn=Users,dc=internal,dc=$DomainName,dc=com', I also tried adding Set($LdapServer, 'ldaps://myDomainController.xxxxxxx.com'); Set($LdapTLS, 1); Set($LdapSSLVersion, 3); But none of these have yielded any better results. -----Original Message----- From: Jeff Solberg [mailto:jsolberg at intrepidls.com] Sent: Thursday, August 01, 2013 11:23 AM To: Brian Haupt; rt-users at lists.bestpractical.com Subject: RE: [rt-users] ExternalAuth problems Try removing the extra '(' you have in front of qw in your set at plugin declaration. Jeff From my Android phone on T-Mobile. The first nationwide 4G network. -------- Original message -------- From: Brian Haupt Date: 08/01/2013 7:48 AM (GMT-08:00) To: rt-users at lists.bestpractical.com Subject: [rt-users] ExternalAuth problems I am setting up a new Request Tracker 4.0.16 installation on CentOS 6.4. I am able to log into RT using the RT root password but I receive the following error when trying to login using my AD account [Thu Aug 1 14:37:33 2013] [error]: FAILED LOGIN for $UserName from $IP_Address (/usr/local/rt/sbin/../lib/RT/Interface/Web.pm:753) Below is the relavent part of my RT_SiteConfig Set($WebPort, 443); Set($WebPath, "/rt"); Set($WebDomain, '$hostname.$PublicDomain'); Set($rtname, '$hostname'); Set($ExternalSettings, { # AN EXAMPLE LDAP SERVICE 'My_LDAP' => { 'type' => 'ldap', 'server' => '$DC.$InternalNetwork', 'user' => '$AD_User@$InternalNetwork', 'pass' => '$Password', 'base' => 'dc=$InternalNetwork', 'filter' => '(objectClass=*)', 'attr_map' => { 'Name' => 'displayName', 'EmailAddress' => 'mail', 'RealName' => 'cn', 'ExternalAuthId' => 'sAMAccountName', 'Gecos' => 'sAMAccountName', }, }, }); # You must install Plugins on your own, this is only an example # of the correct syntax to use when activating them. # There should only be one @Plugins declaration in your config file. Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction)); Set(@Plugins,(qw(RT::Extension::CommandByMail RT::Authen::ExternalAuth))); 1; From falcone at bestpractical.com Thu Aug 1 12:22:06 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 1 Aug 2013 12:22:06 -0400 Subject: [rt-users] dashboard reminders in RT4? In-Reply-To: References: Message-ID: <20130801162206.GC2203@jibsheet.com> On Thu, Aug 01, 2013 at 08:26:38AM -0400, SSzretter wrote: > I have set up a couple dashboards, which look good and also set a m-f > 8am reminder with an email address in each. The email did not go > out this morning, so I am trying to figure out why. > > Generally, emails go out for tickets and the system checks mail and > pulls it in regularly, so I am assuming there is some kind of > rt-crontool going on (or similar). I did not specifically set that > up, but it's working. > > SO, there must be something additional that I have to do to actually > have my dashboard reminders go out every day, what should I look at? You probably skipped step #9 in the install: http://bestpractical.com/docs/rt/latest/README.html -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Thu Aug 1 12:22:29 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 1 Aug 2013 12:22:29 -0400 Subject: [rt-users] Functions In-Reply-To: <51FA69B7.40803@eltoma-offshore.com> References: <51FA69B7.40803@eltoma-offshore.com> Message-ID: <20130801162229.GD2203@jibsheet.com> On Thu, Aug 01, 2013 at 04:59:19PM +0300, Alexander Kucheryuk wrote: > How can I know methods and functions of variables ? > For example, $Ticket->Status which gets the status of the ticket. > How can I find out other functions like "status"? > > I checked wiki but its really limited. I would imagine I'd need to > manually debug to find it all out but I was hoping there would be > something available ready-made since I am not proficient in perl. Start with http://docs.bestpractical.com -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Thu Aug 1 12:25:01 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 1 Aug 2013 12:25:01 -0400 Subject: [rt-users] Developer Mode In-Reply-To: <8861feb749cb4a2fa112207552451525@BLUPR05MB103.namprd05.prod.outlook.com> References: <8861feb749cb4a2fa112207552451525@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: <20130801162501.GE2203@jibsheet.com> On Thu, Aug 01, 2013 at 04:03:37PM +0000, Bryon Baker wrote: > I am going to make a lot of changes to RT and was attempting to switch to Developer mode by > adding > > Set($DevelMode, '1'); > > To the SiteConfig file when I do this I get the following error > > Aug 01 10:52:04 linux-jrlt.site start_apache2[2937]: Can't locate Module/Refresh.pm in @INC > (@INC contains: /usr/share/request-tracker...e 97.\n > > Does anyone know what I need to do the fix this issue? Install Module::Refresh. You may need a few other modules to run in Devel::Mode. You can run /opt/rt4/sbin/rt-test-dependencies --with-dev which will give you too large a list of modules that are needed for development of RT (they include the modules to run the test suite also). -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From brennanma at gmail.com Thu Aug 1 13:00:50 2013 From: brennanma at gmail.com (Matt Brennan) Date: Thu, 1 Aug 2013 13:00:50 -0400 Subject: [rt-users] Inventory Type Add-On In-Reply-To: <20130730205131.GX3001@aart.rice.edu> References: <20130730194339.GW3001@aart.rice.edu> <20130730205131.GX3001@aart.rice.edu> Message-ID: Interesting point. I may give that a try. Thanks Ken! -Matt On Tue, Jul 30, 2013 at 4:51 PM, ktm at rice.edu wrote: > On Tue, Jul 30, 2013 at 03:54:21PM -0400, Matt Brennan wrote: > > I had considered using AT to track the devices themselves that are being > > repaired. I had thought about whether there was a way to use AT to do > this, > > but I don't see any way to create a finite supply of parts and to > subtract > > from that inventory when used (unless I created an asset for every part > in > > inventory which, when you get into things like screws, would be a bit > > ridiculous). > > > > I was thinking that the asset would track the part id and then there > would be a custom field with the part count that would be decremented > as used. That is was an inventory system does after all. > > Ken > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbaker at copesan.com Thu Aug 1 13:35:00 2013 From: bbaker at copesan.com (Bryon Baker) Date: Thu, 1 Aug 2013 17:35:00 +0000 Subject: [rt-users] Trying to add to Lifecycles. Message-ID: <8688bc44989c4189ade1dde8ab8820ba@BLUPR05MB103.namprd05.prod.outlook.com> Trying to add the assigned and evaluation lifecycles. I am adding the following to SiteConfig and when I do I get the following error [Thu Aug 1 17:25:22 2013] [debug]: Autohandler called ExternalAuth. Response: (0, ExternalAuthPriority not defined, please check your configuration file.) (/usr/share/request-tracker/local/plugins/RT-Authen-ExternalAuth/html/Elements/DoAuth:16) And external:auth no longer works I have added the section after the External setting section and before the external setting with no difference Set(%Lifecycles, default => { initial => [ 'new' ], active => [ 'open', 'stalled', 'assigned', 'evaluation' ], inactive => [ 'resolved', 'rejected', 'deleted' ], defaults => { on_create => 'new', on_merge => 'resolved', on_merge => 'resolved', approved => 'open', denied => 'rejected', reminder_on_open => 'open', reminder_on_resolve => 'resolved', }, transitions => { '' => [qw(new open resolved)], # from => [ to list ], new => [qw(open stalled resolved rejected deleted)], open => [qw(new stalled resolved rejected deleted)], stalled => [qw(new open rejected resolved deleted)], resolved => [qw(new open stalled rejected deleted)], rejected => [qw(new open stalled resolved deleted)], deleted => [qw(new open stalled rejected resolved)], }, rights => { '* -> deleted' => 'DeleteTicket', '* -> *' => 'ModifyTicket', }, actions => [ 'new -> open' => { label => 'Open It', # loc update => 'Respond', }, 'new -> resolved' => { label => 'Resolve', # loc update => 'Comment', }, 'new -> rejected' => { label => 'Reject', # loc update => 'Respond', }, 'new -> deleted' => { label => 'Delete', # loc }, 'open -> stalled' => { label => 'Stall', # loc update => 'Comment', }, 'open -> resolved' => { label => 'Resolve', # loc update => 'Comment', }, 'open -> rejected' => { label => 'Reject', # loc update => 'Respond', }, 'stalled -> open' => { label => 'Open It', # loc }, 'resolved -> open' => { label => 'Re-open', # loc update => 'Comment', }, 'rejected -> open' => { label => 'Re-open', # loc update => 'Comment', }, 'deleted -> open' => { label => 'Undelete', # loc }, ], }, ); Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbaker at copesan.com Thu Aug 1 13:56:12 2013 From: bbaker at copesan.com (Bryon Baker) Date: Thu, 1 Aug 2013 17:56:12 +0000 Subject: [rt-users] Trying to add to Lifecycles. In-Reply-To: <8688bc44989c4189ade1dde8ab8820ba@BLUPR05MB103.namprd05.prod.outlook.com> References: <8688bc44989c4189ade1dde8ab8820ba@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: <26df958328164bf0b4a20b1866dd0675@BLUPR05MB103.namprd05.prod.outlook.com> Update I even took the example from http://bestpractical.com/docs/rt/4.0.13/customizing/lifecycles.html And I get the same response. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bryon Baker Sent: Thursday, August 01, 2013 12:35 PM To: RT Users (rt-users at lists.bestpractical.com) Cc: Kenneth Crocker (crocker.consult at gmail.com) Subject: [rt-users] Trying to add to Lifecycles. Trying to add the assigned and evaluation lifecycles. I am adding the following to SiteConfig and when I do I get the following error [Thu Aug 1 17:25:22 2013] [debug]: Autohandler called ExternalAuth. Response: (0, ExternalAuthPriority not defined, please check your configuration file.) (/usr/share/request-tracker/local/plugins/RT-Authen-ExternalAuth/html/Elements/DoAuth:16) And external:auth no longer works I have added the section after the External setting section and before the external setting with no difference Set(%Lifecycles, default => { initial => [ 'new' ], active => [ 'open', 'stalled', 'assigned', 'evaluation' ], inactive => [ 'resolved', 'rejected', 'deleted' ], defaults => { on_create => 'new', on_merge => 'resolved', on_merge => 'resolved', approved => 'open', denied => 'rejected', reminder_on_open => 'open', reminder_on_resolve => 'resolved', }, transitions => { '' => [qw(new open resolved)], # from => [ to list ], new => [qw(open stalled resolved rejected deleted)], open => [qw(new stalled resolved rejected deleted)], stalled => [qw(new open rejected resolved deleted)], resolved => [qw(new open stalled rejected deleted)], rejected => [qw(new open stalled resolved deleted)], deleted => [qw(new open stalled rejected resolved)], }, rights => { '* -> deleted' => 'DeleteTicket', '* -> *' => 'ModifyTicket', }, actions => [ 'new -> open' => { label => 'Open It', # loc update => 'Respond', }, 'new -> resolved' => { label => 'Resolve', # loc update => 'Comment', }, 'new -> rejected' => { label => 'Reject', # loc update => 'Respond', }, 'new -> deleted' => { label => 'Delete', # loc }, 'open -> stalled' => { label => 'Stall', # loc update => 'Comment', }, 'open -> resolved' => { label => 'Resolve', # loc update => 'Comment', }, 'open -> rejected' => { label => 'Reject', # loc update => 'Respond', }, 'stalled -> open' => { label => 'Open It', # loc }, 'resolved -> open' => { label => 'Re-open', # loc update => 'Comment', }, 'rejected -> open' => { label => 'Re-open', # loc update => 'Comment', }, 'deleted -> open' => { label => 'Undelete', # loc }, ], }, ); Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From frontcam at me.com Thu Aug 1 14:28:41 2013 From: frontcam at me.com (window camera) Date: Thu, 01 Aug 2013 18:28:41 +0000 (GMT) Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: <26df958328164bf0b4a20b1866dd0675@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: Hello All Has anyone installed the RT Extension on RT 4.13? It install just fine, registered? the component in RT_Config.pm. However, even after all of this, there doesn't seem to be anything in the RT GUI with the option for "Summary By User". Does anyone know how to use this or where to find the Summery By User option in the GUI?? THank you! Rick -------------- next part -------------- An HTML attachment was scrubbed... URL: From frontcam at me.com Thu Aug 1 15:24:41 2013 From: frontcam at me.com (window camera) Date: Thu, 01 Aug 2013 19:24:41 +0000 (GMT) Subject: [rt-users] Help with GNATT RT Extension: Doesn't show up! Message-ID: <4fce7731-52b2-433e-a8d7-05c93a71a20e@me.com> Hello All We installed the GNAT RT Extension (https://github.com/bestpractical/rt-extension-jsgantt) successfully. However, there seems to be no option on the RT GUI to run the GNATT extension.And, after reading through all thedocumentation on it, there is no mention on HOW or where to find the GNATT extension. Is there anyone out there familiar with this extension enough to know where and how to run it within the RT GUI? thank you! Rick? -------------- next part -------------- An HTML attachment was scrubbed... URL: From presnypreklad at gmail.com Thu Aug 1 15:27:17 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Thu, 1 Aug 2013 21:27:17 +0200 Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: References: <26df958328164bf0b4a20b1866dd0675@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: > Has anyone installed the RT Extension on RT 4.13? Do you mean the Summary By User extension on RT 4.0.13? > registered the component in RT_Config.pm. Do you mean RT_SiteConfig.pm? > However, even after all of this, > there doesn't seem to be anything in the RT GUI with the option for "Summary > By User". What operating system? How are you installing the extension? Relevant section (and exact filename for good measure) of RT site configuration file? From presnypreklad at gmail.com Thu Aug 1 15:29:35 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Thu, 1 Aug 2013 21:29:35 +0200 Subject: [rt-users] Help with GNATT RT Extension: Doesn't show up! In-Reply-To: <4fce7731-52b2-433e-a8d7-05c93a71a20e@me.com> References: <4fce7731-52b2-433e-a8d7-05c93a71a20e@me.com> Message-ID: > However, there seems to be no option on the RT GUI to run the GNATT > extension. Just to be sure: did you clean the Mason cache and your browser's cache, too? From bbaker at copesan.com Thu Aug 1 15:30:07 2013 From: bbaker at copesan.com (Bryon Baker) Date: Thu, 1 Aug 2013 19:30:07 +0000 Subject: [rt-users] Trying to add to Lifecycles. In-Reply-To: <26df958328164bf0b4a20b1866dd0675@BLUPR05MB103.namprd05.prod.outlook.com> References: <8688bc44989c4189ade1dde8ab8820ba@BLUPR05MB103.namprd05.prod.outlook.com> <26df958328164bf0b4a20b1866dd0675@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: <6b9d016accce4086bdb09f44db1d9e0c@BLUPR05MB103.namprd05.prod.outlook.com> I think I figured it out added this to SiteConfig and it looks like it works. Set(%Lifecycles, default => { initial => [ 'new' ], active => [ 'open', 'assigned' , 'evaluation', 'stalled' ], inactive => [ 'resolved', 'rejected', 'deleted' ], defaults => { on_create => 'new', on_merge => 'resolved', approved => 'open', denied => 'rejected', reminder_on_open => 'open', reminder_on_resolve => 'resolved', }, }, ); Assigned and evaluation are showing up in the quick search and ExternalAuth still works. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bryon Baker Sent: Thursday, August 01, 2013 12:56 PM To: RT Users (rt-users at lists.bestpractical.com) Cc: Kenneth Crocker (crocker.consult at gmail.com) Subject: Re: [rt-users] Trying to add to Lifecycles. Update I even took the example from http://bestpractical.com/docs/rt/4.0.13/customizing/lifecycles.html And I get the same response. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bryon Baker Sent: Thursday, August 01, 2013 12:35 PM To: RT Users (rt-users at lists.bestpractical.com) Cc: Kenneth Crocker (crocker.consult at gmail.com) Subject: [rt-users] Trying to add to Lifecycles. Trying to add the assigned and evaluation lifecycles. I am adding the following to SiteConfig and when I do I get the following error [Thu Aug 1 17:25:22 2013] [debug]: Autohandler called ExternalAuth. Response: (0, ExternalAuthPriority not defined, please check your configuration file.) (/usr/share/request-tracker/local/plugins/RT-Authen-ExternalAuth/html/Elements/DoAuth:16) And external:auth no longer works I have added the section after the External setting section and before the external setting with no difference Set(%Lifecycles, default => { initial => [ 'new' ], active => [ 'open', 'stalled', 'assigned', 'evaluation' ], inactive => [ 'resolved', 'rejected', 'deleted' ], defaults => { on_create => 'new', on_merge => 'resolved', on_merge => 'resolved', approved => 'open', denied => 'rejected', reminder_on_open => 'open', reminder_on_resolve => 'resolved', }, transitions => { '' => [qw(new open resolved)], # from => [ to list ], new => [qw(open stalled resolved rejected deleted)], open => [qw(new stalled resolved rejected deleted)], stalled => [qw(new open rejected resolved deleted)], resolved => [qw(new open stalled rejected deleted)], rejected => [qw(new open stalled resolved deleted)], deleted => [qw(new open stalled rejected resolved)], }, rights => { '* -> deleted' => 'DeleteTicket', '* -> *' => 'ModifyTicket', }, actions => [ 'new -> open' => { label => 'Open It', # loc update => 'Respond', }, 'new -> resolved' => { label => 'Resolve', # loc update => 'Comment', }, 'new -> rejected' => { label => 'Reject', # loc update => 'Respond', }, 'new -> deleted' => { label => 'Delete', # loc }, 'open -> stalled' => { label => 'Stall', # loc update => 'Comment', }, 'open -> resolved' => { label => 'Resolve', # loc update => 'Comment', }, 'open -> rejected' => { label => 'Reject', # loc update => 'Respond', }, 'stalled -> open' => { label => 'Open It', # loc }, 'resolved -> open' => { label => 'Re-open', # loc update => 'Comment', }, 'rejected -> open' => { label => 'Re-open', # loc update => 'Comment', }, 'deleted -> open' => { label => 'Undelete', # loc }, ], }, ); Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at tracker-software.com Thu Aug 1 15:40:44 2013 From: paul at tracker-software.com (Paul O'Rorke) Date: Thu, 01 Aug 2013 12:40:44 -0700 Subject: [rt-users] Migration Prep In-Reply-To: <20130801001554.GI22003@jibsheet.com> References: <20130725163239.GO22003@jibsheet.com> <51F18ECB.50401@tracker-software.com> <20130726125343.GS22003@jibsheet.com> <51F6DEFB.1090407@tracker-software.com> <20130730144234.GX22003@jibsheet.com> <51F83B67.1030802@tracker-software.com> <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> Message-ID: <51FAB9BC.4000903@tracker-software.com> I don't remember skipping any errors during make upgrade-database. Here are the table descriptions you asked for. As you can see the Classes, Topics, Articles tables do exist. Hopefully you will be able to tell what I need to do to my DB to fix this... mysql> describe ACL; +---------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+-------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | PrincipalType | varchar(25) | NO | | NULL | | | PrincipalId | int(11) | NO | | NULL | | | RightName | varchar(25) | NO | MUL | NULL | | | ObjectType | varchar(25) | NO | | NULL | | | ObjectId | int(11) | NO | | 0 | | | Creator | int(11) | NO | | 0 | | | Created | datetime | YES | | NULL | | | LastUpdatedBy | int(11) | NO | | 0 | | | LastUpdated | datetime | YES | | NULL | | +---------------+-------------+------+-----+---------+----------------+ 10 rows in set (0.00 sec) mysql> describe Groups; +---------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | Name | varchar(200) | YES | | NULL | | | Description | varchar(255) | YES | | NULL | | | Domain | varchar(64) | YES | MUL | NULL | | | Type | varchar(64) | YES | MUL | NULL | | | Instance | int(11) | YES | | NULL | | | Creator | int(11) | NO | | 0 | | | Created | datetime | YES | | NULL | | | LastUpdatedBy | int(11) | NO | | 0 | | | LastUpdated | datetime | YES | | NULL | | +---------------+--------------+------+-----+---------+----------------+ 10 rows in set (0.00 sec) mysql> describe GroupMembers; +---------------+----------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+----------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | GroupId | int(11) | NO | MUL | 0 | | | MemberId | int(11) | NO | | 0 | | | Creator | int(11) | NO | | 0 | | | Created | datetime | YES | | NULL | | | LastUpdatedBy | int(11) | NO | | 0 | | | LastUpdated | datetime | YES | | NULL | | +---------------+----------+------+-----+---------+----------------+ 7 rows in set (0.00 sec) mysql> describe CustomFieldValues; +---------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | CustomField | int(11) | NO | MUL | NULL | | | Name | varchar(200) | YES | | NULL | | | Description | varchar(255) | YES | | NULL | | | SortOrder | int(11) | NO | | 0 | | | Creator | int(11) | NO | | 0 | | | Created | datetime | YES | | NULL | | | LastUpdatedBy | int(11) | NO | | 0 | | | LastUpdated | datetime | YES | | NULL | | | Category | varchar(255) | YES | | NULL | | +---------------+--------------+------+-----+---------+----------------+ 10 rows in set (0.00 sec) mysql> describe Tickets; +-----------------+--------------+------+-----+--------------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------------+--------------+------+-----+--------------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | EffectiveId | int(11) | NO | MUL | 0 | | | Queue | int(11) | NO | MUL | 0 | | | Type | varchar(16) | YES | | NULL | | | IssueStatement | int(11) | NO | | 0 | | | Resolution | int(11) | NO | | 0 | | | Owner | int(11) | NO | MUL | 0 | | | Subject | varchar(200) | YES | | [no subject] | | | InitialPriority | int(11) | NO | | 0 | | | FinalPriority | int(11) | NO | | 0 | | | Priority | int(11) | NO | | 0 | | | TimeEstimated | int(11) | NO | | 0 | | | TimeWorked | int(11) | NO | | 0 | | | Status | varchar(64) | YES | | NULL | | | TimeLeft | int(11) | NO | | 0 | | | Told | datetime | YES | | NULL | | | Starts | datetime | YES | | NULL | | | Started | datetime | YES | | NULL | | | Due | datetime | YES | | NULL | | | Resolved | datetime | YES | | NULL | | | LastUpdatedBy | int(11) | NO | | 0 | | | LastUpdated | datetime | YES | | NULL | | | Creator | int(11) | NO | | 0 | | | Created | datetime | YES | | NULL | | | Disabled | smallint(6) | NO | | 0 | | +-----------------+--------------+------+-----+--------------+----------------+ 25 rows in set (0.00 sec) mysql> describe CustomFields; +---------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | Name | varchar(200) | YES | | NULL | | | Type | varchar(200) | YES | | NULL | | | MaxValues | int(11) | YES | | NULL | | | Pattern | text | YES | | NULL | | | Repeated | smallint(6) | NO | | 0 | | | Description | varchar(255) | YES | | NULL | | | SortOrder | int(11) | NO | | 0 | | | LookupType | varchar(255) | NO | | NULL | | | Creator | int(11) | NO | | 0 | | | Created | datetime | YES | | NULL | | | LastUpdatedBy | int(11) | NO | | 0 | | | LastUpdated | datetime | YES | | NULL | | | Disabled | smallint(6) | NO | | 0 | | | BasedOn | int(11) | YES | | NULL | | | RenderType | varchar(64) | YES | | NULL | | | ValuesClass | varchar(64) | YES | | NULL | | +---------------+--------------+------+-----+---------+----------------+ 17 rows in set (0.00 sec) mysql> describe Queues; +-------------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | Name | varchar(200) | NO | UNI | NULL | | | Description | varchar(255) | YES | | NULL | | | CorrespondAddress | varchar(120) | YES | | NULL | | | CommentAddress | varchar(120) | YES | | NULL | | | InitialPriority | int(11) | NO | | 0 | | | FinalPriority | int(11) | NO | | 0 | | | DefaultDueIn | int(11) | NO | | 0 | | | Creator | int(11) | NO | | 0 | | | Created | datetime | YES | | NULL | | | LastUpdatedBy | int(11) | NO | | 0 | | | LastUpdated | datetime | YES | | NULL | | | Disabled | smallint(6) | NO | MUL | 0 | | | SubjectTag | varchar(120) | YES | | NULL | | | Lifecycle | varchar(32) | YES | | NULL | | +-------------------+--------------+------+-----+---------+----------------+ 15 rows in set (0.00 sec) mysql> show tables; +-------------------------+ | Tables_in_rtdb | +-------------------------+ | ACL | | Articles | | Attachments | | Attributes | | CachedGroupMembers | | Classes | | CustomFieldValues | | CustomFields | | GroupMembers | | Groups | | Links | | ObjectClasses | | ObjectCustomFieldValues | | ObjectCustomFields | | ObjectTopics | | Principals | | Queues | | ScripActions | | ScripConditions | | Scrips | | Templates | | Tickets | | Topics | | Transactions | | Users | | sessions | +-------------------------+ 26 rows in set (0.00 sec) mysql> describe Classes; +---------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | Name | varchar(255) | NO | | | | | Description | varchar(255) | NO | | | | | SortOrder | int(11) | NO | | 0 | | | Disabled | int(2) | NO | | 0 | | | Creator | int(11) | NO | | 0 | | | Created | datetime | YES | | NULL | | | LastUpdatedBy | int(11) | NO | | 0 | | | LastUpdated | datetime | YES | | NULL | | | HotList | int(2) | NO | | 0 | | +---------------+--------------+------+-----+---------+----------------+ 10 rows in set (0.00 sec) mysql> describe Topics; +-------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | Parent | int(11) | NO | | 0 | | | Name | varchar(255) | NO | | | | | Description | varchar(255) | NO | | | | | ObjectType | varchar(64) | NO | | | | | ObjectId | int(11) | NO | | 0 | | +-------------+--------------+------+-----+---------+----------------+ 6 rows in set (0.01 sec) mysql> describe Articles; +---------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | Name | varchar(255) | NO | | | | | Summary | varchar(255) | NO | | | | | SortOrder | int(11) | NO | | 0 | | | Class | int(11) | NO | | 0 | | | Parent | int(11) | NO | | 0 | | | URI | varchar(255) | YES | | NULL | | | Creator | int(11) | NO | | 0 | | | Created | datetime | YES | | NULL | | | LastUpdatedBy | int(11) | NO | | 0 | | | LastUpdated | datetime | YES | | NULL | | +---------------+--------------+------+-----+---------+----------------+ 11 rows in set (0.00 sec) *Paul O'Rorke* Tracker Software Products paul at tracker-software.com On 7/31/2013 5:15 PM, Kevin Falcone wrote: > On Wed, Jul 31, 2013 at 12:31:26PM -0700, Paul O'Rorke wrote: >> OK - I thought that make upgrade-database covered those - it suggested it was doing all those >> incremental updates. It asked from which version I was update from/to and showed each step as >> doing something. What is it's purpose then? >> >> Do I have to still do each one manually from 3.8.4 then? > make upgrade-database runs all of the steps. > The database you're showing clearly did not have at least one of the > steps run on it. > > Did you skip past any errors? > > You can also show the 'desc TABLE' for: > ACL > Groups > GroupMembers > CustomFieldValues > Tickets > CustomFields > Queues > and check for the existence of the Classes, Topics, Articles tables. > > Your desc Users showed that at least one part of the Users table > upgrade (adding the AuthToken field) was run. Now the challenge is > figuring out what steps did not run. > > -kevin > >> Paul O'Rorke >> >> On 07/31/2013 11:59 AM, Kevin Falcone wrote: >> >> On Wed, Jul 31, 2013 at 10:24:29AM -0700, Paul O'Rorke wrote: >> >> Password: !sha512!8MzDJesb8kr4UHIA!784B/mzwvLcUEEa >> `Password` varbinary(40) DEFAULT NULL, >> >> These are 3.8 versions of that table, not 4.0 versions. >> Did you run all of the database upgrade steps? This was step 4.0.0rc4. >> There are many other schema changes. >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From vadud3 at gmail.com Thu Aug 1 15:41:36 2013 From: vadud3 at gmail.com (Asif Iqbal) Date: Thu, 1 Aug 2013 15:41:36 -0400 Subject: [rt-users] Login page style Message-ID: What is the best place to change the Login title to look like this http://picpaste.com/oldrt-0P81Y9uY.png ? I am on 4.0.16. On RT 3.8.2 I modified it in /opt/rt3/local/html/Elements/Login login-box
<&| /Widgets/TitleBox, title => loc('LOGIN with your AD Credentials'), titleright => $RT::VERSION, hideable => 0 &> -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Thu Aug 1 16:29:04 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 1 Aug 2013 16:29:04 -0400 Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: References: Message-ID: <20130801202904.GF2203@jibsheet.com> On Thu, Aug 01, 2013 at 06:28:41PM +0000, window camera wrote: > Does anyone know how to use this or where to find the Summery By User option in the GUI?? Click 'Edit' in the upper right hand corner of your RT at a Glance page, choose it from the list to add it to the page. Or edit a dashboard and add it there. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From tjg at ucsc.edu Thu Aug 1 18:25:00 2013 From: tjg at ucsc.edu (Tim Gustafson) Date: Thu, 1 Aug 2013 15:25:00 -0700 Subject: [rt-users] Date/Time Output Format Message-ID: Hi, How does one add an additional option to the drop-down for "Date format" under the "Locale" fieldset on individual user's "Settings" pages? I'd like to add "mm/dd/yyyy hh:ii A" as an option - my users don't need/want seconds to be displayed there, but would like am/pm to show. I looked at $DateTimeFormat but I don't see how that would enable me to let users still have the option of other formats. All I want to do is add a new option, not take away the old ones. -- Tim Gustafson tjg at ucsc.edu 831-459-5354 Baskin Engineering, Room 313A From robert.wysocki at unity.pl Fri Aug 2 03:29:24 2013 From: robert.wysocki at unity.pl (Robert Wysocki) Date: Fri, 2 Aug 2013 09:29:24 +0200 Subject: [rt-users] Differentiating while sending notifictions In-Reply-To: <20130801162129.GB2203@jibsheet.com> References: <1375272237.4545.162.camel@s-rwysocki> <20130731161047.GF22003@jibsheet.com> <1375348698.4545.175.camel@s-rwysocki> <20130801162129.GB2203@jibsheet.com> Message-ID: <1375428564.4545.186.camel@s-rwysocki> Dnia 2013-08-01, czw o godzinie 12:21 -0400, Kevin Falcone pisze: > > Our RT web interface is used mainly locally. We have links included in > > templates, but external users usually don't have credentials to log in > > into web interface, so links just confuse them. > > We'd like to split templates so that only those with access get links > > and others don't. > > Unfortunately, RT uses one template to generate all the mail to all > the Requestors, so you can't solve this with templates. > > One way to solve this is having some custom notification actions > (perhaps with rt-email-group-admin to notify some internal users > separately from the others). > > The only real solution is likely to have some sort of > Notify Privileged Users vs Notify Unprivileged Users Scrip Actions > that subclass the Notify action and override which Requestors are > picked. It'll be weird because half the Requestors would be notified > in a clump and then the others would be notified. > Or to convert RT to sending one email per user. Few months ago I've implemented something similar - a "role" for traffic manager. It consists of a per-queue custom field, some local modifications in Action.pm and custom ScripActions in DB. I'll probably gonna try to customize it so that we can have the kind of ScripActions you've mentioned. In my opinion it would be great to have a easy-to-use mechanism for creation of custom roles like 'Requestor' od 'AdminCc'. Regards, -- Robert Wysocki administrator system?w linuksowych administrator baz danych Grupa Unity | ul. Przedmiejska 6-10, 54-201 Wroc?aw ul. Conrada 55B, 31-357 Krak?w | ul. Z?ota 59, 00-120 Warszawa From mdrouet at randco.fr Fri Aug 2 08:06:55 2013 From: mdrouet at randco.fr (Maximilien Drouet) Date: Fri, 2 Aug 2013 14:06:55 +0200 Subject: [rt-users] (RT::Authen::ExternalAuth) "email exists" problem authenticating trough AD In-Reply-To: References: <51EE4719.8030901@2ndquadrant.com> Message-ID: Hi You are right, i'm using RT::Authen::ExternalAuth. It binds because i receive all aditional fields and even creates the user with those . The problem is really focused on authentication step and i can't understand why :( -------------- next part -------------- An HTML attachment was scrubbed... URL: From frontcam at me.com Fri Aug 2 09:45:03 2013 From: frontcam at me.com (window camera) Date: Fri, 02 Aug 2013 13:45:03 +0000 (GMT) Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: <20130801202904.GF2203@jibsheet.com> Message-ID: Thank you Kevin. So now that I added it via Edit, I'm getting "internal error" and it doesn't show up. The rt.log is empty. However, the /var/log/messages has this error message: Aug 2 09:01:32 rttrack RT: could not find component for path 'SummaryByUser'#012#012Stack:#012 [/rtdata/share/html/Elements/MyRT:95]#012 [/rtdata/share/html/index.html:78]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:635]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:335]#012 [/rtdata/share/html/autohandler:53] (/rtdata/sbin/../lib/RT/Interface/Web/Handler.pm:208) Any ideas on how i would troubleshoot this? I'm on RT 4.013. Perhaps the extension is just not compatible? Thank you!? -R Sent from iCloud On Aug 01, 2013, at 04:29 PM, Kevin Falcone wrote: > On Thu, Aug 01, 2013 at 06:28:41PM +0000, window camera wrote: >> Does anyone know how to use this or where to find the Summery By User option in the GUI?? > > Click 'Edit' in the upper right hand corner of your RT at a Glance > page, choose it from the list to add it to the page. > > Or edit a dashboard and add it there. > > -kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From frontcam at me.com Fri Aug 2 10:38:04 2013 From: frontcam at me.com (window camera) Date: Fri, 02 Aug 2013 14:38:04 +0000 (GMT) Subject: [rt-users] Help with GNATT RT Extension: Doesn't show up! In-Reply-To: Message-ID: Thanks Nathan. Yes, I have cleared the Mason cache and the browser cache. Still, unfortunately, I don't see any option anywhere for the GNATT reports. Perhaps the GNATT extension is not compatible with RT 4.013? May I ask where the GNATT extension is supposed to show up in the GUI? Thank you -R? Sent from iCloud On Aug 01, 2013, at 03:29 PM, Nathan Cutler wrote: >> However, there seems to be no option on the RT GUI to run the GNATT >> extension. > > Just to be sure: did you clean the Mason cache and your browser's cache, too? -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Fri Aug 2 10:48:53 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 10:48:53 -0400 Subject: [rt-users] Migration Prep In-Reply-To: <51FAB9BC.4000903@tracker-software.com> References: <20130726125343.GS22003@jibsheet.com> <51F6DEFB.1090407@tracker-software.com> <20130730144234.GX22003@jibsheet.com> <51F83B67.1030802@tracker-software.com> <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> Message-ID: <20130802144853.GG2203@jibsheet.com> On Thu, Aug 01, 2013 at 12:40:44PM -0700, Paul O'Rorke wrote: > I don't remember skipping any errors during make upgrade-database. Here are the table > descriptions you asked for. As you can see the Classes, Topics, Articles tables do exist. Do you have logs of the upgrade? > Hopefully you will be able to tell what I need to do to my DB to fix this... Really- you need to do another test upgrade and figure out what fails. While I can tell you how to fix Users, I wouldn't trust that other parts of the upgrade didn't fail. > mysql> describe ACL; > mysql> describe Groups; > mysql> describe GroupMembers; > mysql> describe CustomFieldValues; > mysql> describe Tickets; > mysql> describe CustomFields; > mysql> describe Queues; > mysql> show tables; These all look correct. That shows that you at least ran upgrades through 3.9.7, but the User change for Password that you're missing was 4.0.0rc4. Did you stop anywhere or let it run everything through 4.0.16? You can look at 'show create table sessions' which should be innodb not myisam and look at your Attributes table, which should have a LONGBLOB for Content. While I've seen errors that reset the Password field to the wrong size on 3.6 -> 4.0 upgrades, those don't apply to a 3.8 -> 4.0 upgrade. At this point, I'd rerun a database upgrade, paying close attention to what steps run and watching the screen and the mysql error logs for errors. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From darin at darins.net Fri Aug 2 10:50:37 2013 From: darin at darins.net (Darin Perusich) Date: Fri, 2 Aug 2013 10:50:37 -0400 Subject: [rt-users] Help with GNATT RT Extension: Doesn't show up! In-Reply-To: References: Message-ID: Under Links next to Graph when viewing a ticket. On Fri, Aug 2, 2013 at 10:38 AM, window camera wrote: > May I ask where the GNATT extension is supposed to show up in the GUI? -- Later, Darin From falcone at bestpractical.com Fri Aug 2 10:55:12 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 10:55:12 -0400 Subject: [rt-users] Date/Time Output Format In-Reply-To: References: Message-ID: <20130802145512.GH2203@jibsheet.com> On Thu, Aug 01, 2013 at 03:25:00PM -0700, Tim Gustafson wrote: > How does one add an additional option to the drop-down for "Date > format" under the "Locale" fieldset on individual user's "Settings" > pages? > > I'd like to add "mm/dd/yyyy hh:ii A" as an option - my users don't > need/want seconds to be displayed there, but would like am/pm to show. > > I looked at $DateTimeFormat but I don't see how that would enable me > to let users still have the option of other formats. All I want to do > is add a new option, not take away the old ones. Setting $DateTimeFormat controls the default your users get, there are some examples of defining 'custom' ones, such as ISO without seconds, or RFC2822 without seconds. If there's an option already which is 'close' to what you want, you might be able to do that. Otherwise, if you need something wholly custom, it's a pretty simple plugin to add to the list, I've written one or two: https://metacpan.org/module/RT::Extension::DateTAI64 you can see it's a tiny amount of perl code at the bottom of the file, most of the text is documentation: http://api.metacpan.org/source/FALCONE/RT-Extension-DateTAI64-0.01/lib/RT/Extension/DateTAI64.pm -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Fri Aug 2 10:56:56 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 10:56:56 -0400 Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: References: <20130801202904.GF2203@jibsheet.com> Message-ID: <20130802145656.GI2203@jibsheet.com> On Fri, Aug 02, 2013 at 01:45:03PM +0000, window camera wrote: > So now that I added it via Edit, I'm getting "internal error" and it doesn't show up. You said you registered the component in HomepageComponents, did you also enable it as a plugin? > The rt.log is empty. However, the /var/log/messages has this error message: > > Aug 2 09:01:32 rttrack RT: could not find component for path 'SummaryByUser'#012#012Stack:#012 [/rtdata/share/html/Elements/MyRT:95]#012 [/rtdata/share/html/index.html:78]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:635]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:335]#012 [/rtdata/share/html/autohandler:53] (/rtdata/sbin/../lib/RT/Interface/Web/Handler.pm:208) > Any ideas on how i would troubleshoot this? I'm on RT 4.013. Perhaps the extension is just not compatible? You also cut off part of this that would have shown the search paths for where it was looking for the file. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From vadud3 at gmail.com Fri Aug 2 11:21:24 2013 From: vadud3 at gmail.com (Asif Iqbal) Date: Fri, 2 Aug 2013 11:21:24 -0400 Subject: [rt-users] Migration Prep In-Reply-To: <20130802144853.GG2203@jibsheet.com> References: <20130726125343.GS22003@jibsheet.com> <51F6DEFB.1090407@tracker-software.com> <20130730144234.GX22003@jibsheet.com> <51F83B67.1030802@tracker-software.com> <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> Message-ID: On Fri, Aug 2, 2013 at 10:48 AM, Kevin Falcone wrote: > You can look at 'show create table sessions' which should be innodb > not myisam and look at your Attributes table, which should have a > LONGBLOB for Content. > I just did my test upgrade from rt 3.8.2 / mysql 5.0.75 to rt 4.0.16 / mysql 5.5.32 but session table still showing myisam. $ mysql -e 'use rt4; show create table sessions' | sessions | CREATE TABLE `sessions` ( `id` varbinary(32) NOT NULL DEFAULT '', `a_session` longblob, `LastUpdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 | I guess I can just ALTER the session table now? -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Fri Aug 2 11:32:37 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 11:32:37 -0400 Subject: [rt-users] Migration Prep In-Reply-To: References: <20130730144234.GX22003@jibsheet.com> <51F83B67.1030802@tracker-software.com> <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> Message-ID: <20130802153237.GJ2203@jibsheet.com> On Fri, Aug 02, 2013 at 11:21:24AM -0400, Asif Iqbal wrote: > On Fri, Aug 2, 2013 at 10:48 AM, Kevin Falcone <[1]falcone at bestpractical.com> wrote: > > You can look at 'show create table sessions' which should be innodb > not myisam and look at your Attributes table, which should have a > LONGBLOB for Content. > > I just did my test upgrade from rt 3.8.2 / mysql 5.0.75 to rt 4.0.16 / mysql 5.5.32 > but session table still showing myisam. > $ mysql -e 'use rt4; show create table sessions' > | sessions | CREATE TABLE `sessions` ( > `id` varbinary(32) NOT NULL DEFAULT '', > `a_session` longblob, > `LastUpdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, > PRIMARY KEY (`id`) > ) ENGINE=MyISAM DEFAULT CHARSET=utf8 | > I guess I can just ALTER the session table now? Please show a log of your make upgrade-database step One of the steps explicitly drops and recreates the sessions table. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From frontcam at me.com Fri Aug 2 11:33:48 2013 From: frontcam at me.com (window camera) Date: Fri, 02 Aug 2013 15:33:48 +0000 (GMT) Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: <20130802145656.GI2203@jibsheet.com> Message-ID: <1a3195f7-e2ea-40fa-ad20-78868ce63560@me.com> <> Yes, I did. Homepagecomponents setting is in RT_Config.pm: Set( $HomepageComponents, [ qw(QuickCreate Quicksearch MyAdminQueues MySupportQueues MyReminders RefreshHomepage Dashboards SavedSearches SummaryByUser) # loc_qw ] ); =back And the plugin setting is in RT_SiteConfig.pm. Is there anyway that you know of that I can increase the logging? Or perhaps there is another log file somewhere? Also, perhaps it's just not compatible with RT 4.13. Do you know how to go about uninstalling it? <> Unfortunately, that's how it shows up in the log file /var/log/messages. The RT engine cuts them off in the log file. Thank you for looking into this! -Rick ? On Aug 02, 2013, at 10:56 AM, Kevin Falcone wrote: > On Fri, Aug 02, 2013 at 01:45:03PM +0000, window camera wrote: >> So now that I added it via Edit, I'm getting "internal error" and it doesn't show up. > > You said you registered the component in HomepageComponents, did you > also enable it as a plugin? > >> The rt.log is empty. However, the /var/log/messages has this error message: >> Aug 2 09:01:32 rttrack RT: could not find component for path 'SummaryByUser'#012#012Stack:#012 [/rtdata/share/html/Elements/MyRT:95]#012 [/rtdata/share/html/index.html:78]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:635]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:335]#012 [/rtdata/share/html/autohandler:53] (/rtdata/sbin/../lib/RT/Interface/Web/Handler.pm:208) >> Any ideas on how i would troubleshoot this? I'm on RT 4.013. Perhaps the extension is just not compatible? > > You also cut off part of this that would have shown the search paths > for where it was looking for the file. > > -kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Fri Aug 2 11:49:36 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 11:49:36 -0400 Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: <1a3195f7-e2ea-40fa-ad20-78868ce63560@me.com> References: <20130802145656.GI2203@jibsheet.com> <1a3195f7-e2ea-40fa-ad20-78868ce63560@me.com> Message-ID: <20130802154936.GK2203@jibsheet.com> On Fri, Aug 02, 2013 at 03:33:48PM +0000, window camera wrote: > < also enable it as a plugin?>> > > Yes, I did. Homepagecomponents setting is in RT_Config.pm: This is wrong. Always make your changes in RT_SiteConfig.pm, never in RT_Config.pm or they'll be lost when you upgrade. Read lines 9 through 17 of RT_Config.pm: ############################# WARNING ############################# # # # NEVER EDIT RT_Config.pm ! # # # # Instead, copy any sections you want to change to # # RT_SiteConfig.pm and edit them there. Otherwise, # # your changes will be lost when you upgrade RT. # # # ############################# WARNING ############################# > Set( > $HomepageComponents, > [ > qw(QuickCreate Quicksearch MyAdminQueues MySupportQueues MyReminders RefreshHomepage Dashboards SavedSearches SummaryByUser) # loc_qw > ] > ); That's not actually correct. This plugin provides two components. OwnerSummmary and RequestorSummary. Go delete SummaryByUser from your RT at a Glance page, fix HomepageComponents to contain valid components and then add them to the page. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From vadud3 at gmail.com Fri Aug 2 12:49:47 2013 From: vadud3 at gmail.com (Asif Iqbal) Date: Fri, 2 Aug 2013 12:49:47 -0400 Subject: [rt-users] Migration Prep In-Reply-To: <20130802153237.GJ2203@jibsheet.com> References: <20130730144234.GX22003@jibsheet.com> <51F83B67.1030802@tracker-software.com> <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> Message-ID: On Fri, Aug 2, 2013 at 11:32 AM, Kevin Falcone wrote: > > I just did my test upgrade from rt 3.8.2 / mysql 5.0.75 to rt 4.0.16 > / mysql 5.5.32 > > but session table still showing myisam. > > $ mysql -e 'use rt4; show create table sessions' > > | sessions | CREATE TABLE `sessions` ( > > `id` varbinary(32) NOT NULL DEFAULT '', > > `a_session` longblob, > > `LastUpdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE > CURRENT_TIMESTAMP, > > PRIMARY KEY (`id`) > > ) ENGINE=MyISAM DEFAULT CHARSET=utf8 | > > I guess I can just ALTER the session table now? > > Please show a log of your make upgrade-database step > > One of the steps explicitly drops and recreates the sessions table. ~/src/rt-4.0.16# make upgrade-database /usr/bin/perl -I/opt/rt4/local/lib -I/opt/rt4/lib sbin/rt-setup-database --action upgrade --prompt-for-dba-password In order to create or update your RT database, this script needs to connect to your mysql instance on localhost (port '') as root Please specify that user's database password below. If the user has no database password, just press return. Password: Working with: Type: mysql Host: localhost Port: Name: rt4 User: rt_user DBA: root Enter RT version you're upgrading from: 3.8.2 Going to apply following upgrades: * 3.8.3 * 3.8.4 * 3.8.6 * 3.8.8 * 3.8.9 * 3.9.1 * 3.9.2 * 3.9.3 * 3.9.5 * 3.9.6 * 3.9.7 * 3.9.8 * 4.0.1 * 4.0.3 * 4.0.4 * 4.0.6 * 4.0.9 * 4.0.12 * 4.0.13 Enter RT version if you want to stop upgrade at some point, or leave it blank if you want apply above upgrades: IT'S VERY IMPORTANT TO BACK UP BEFORE THIS STEP Proceed [y/N]:y Processing 3.8.3 Now inserting data. Processing 3.8.4 Now inserting data. Processing 3.8.6 Now inserting data. Processing 3.8.8 Now inserting data. [Fri Aug 2 16:42:55 2013] [warning]: Couldn't set SortOrder: That is already the current value (./etc/upgrade/3.8.8/content:32) [Fri Aug 2 16:42:55 2013] [warning]: Couldn't set SortOrder: That is already the current value (./etc/upgrade/3.8.8/content:32) Processing 3.8.9 Now inserting data. [Fri Aug 2 16:42:58 2013] [warning]: Use of uninitialized value in string eq at /home/iqbala/src/rt-4.0.16/sbin/../lib/RT/Template.pm line 652, <> line 1. (/home/iqbala/src/rt-4.0.16/sbin/../lib/RT/Template.pm:652) [Fri Aug 2 16:42:58 2013] [warning]: Use of uninitialized value in string eq at /home/iqbala/src/rt-4.0.16/sbin/../lib/RT/Template.pm line 652, <> line 1. (/home/iqbala/src/rt-4.0.16/sbin/../lib/RT/Template.pm:652) [Fri Aug 2 16:42:58 2013] [warning]: Use of uninitialized value in string eq at /home/iqbala/src/rt-4.0.16/sbin/../lib/RT/Template.pm line 652, <> line 1. (/home/iqbala/src/rt-4.0.16/sbin/../lib/RT/Template.pm:652) Processing 3.9.1 Now inserting data. [Fri Aug 2 16:43:03 2013] [warning]: Unable to grant ExecuteCode on principal 685493: NSI already has that right (./etc/upgrade/3.9.1/content:63) Processing 3.9.2 Now inserting data. Processing 3.9.3 Now populating database schema. Processing 3.9.5 Now populating database schema. Processing 3.9.6 Now populating database schema. Processing 3.9.7 Now populating database schema. Now inserting data. Processing 3.9.8 Now populating database schema. Now inserting data. [Fri Aug 2 16:46:20 2013] [error]: You appear to be upgrading from RTFM 2.0 - We don't support upgrading this old of an RTFM yet (./etc/upgrade/3.9.8/content:11) [Fri Aug 2 16:46:20 2013] [error]: We found RTFM tables in your database. Checking for content. (./etc/upgrade/3.9.8/content:14) [Fri Aug 2 16:46:20 2013] [error]: You appear to have RTFM Articles. You can upgrade using the etc/upgrade/upgrade-articles script. Read more about it in docs/UPGRADING-4.0 (./etc/upgrade/3.9.8/content:20) Processing 4.0.1 Now inserting data. Processing 4.0.3 Now inserting data. Processing 4.0.4 Now inserting data. Processing 4.0.6 Now populating database schema. Now inserting data. Processing 4.0.9 Now inserting data. Processing 4.0.12 Now populating database schema. Processing 4.0.13 Now populating database schema. Done. root at newwebrt:~/src/rt-4.0.16# -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From frontcam at me.com Fri Aug 2 13:03:32 2013 From: frontcam at me.com (window camera) Date: Fri, 02 Aug 2013 17:03:32 +0000 (GMT) Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: <20130802154936.GK2203@jibsheet.com> Message-ID: <14e03bc3-e2d4-425f-ac2a-848e0d83b385@me.com> <> Yes, I know it's wrong to do it there. Had no choice though. There was absolutely no information or documenation on how to setup "HomepageCompoents" in RT_SiteConfig.pm. I searched far and wide for it. Do you happen to know how? I'll tell you how I did it though (in RT_SiteConfig.pm): SET ( HomepageComponents, qw('SummaryByUser')); and I also added the SummaryByUser in the @plugins. Howerver, got the same exact error. No dice. Just error'ed out again. I'm just a little baffled why these extensions don't come with a README that gives directions on how to set it up. Anyway I digress. <> Yes, thanks. I did do that. Same error. See above configuration I did in RT_SiteConfig.pm. Now when I add "OwnerSummary" as you said, I get error "Error while loading ....can't locate RT/Extensions/OwnerSummary.pm. Any other things you think I should check? Or perhaps now we're at the point where this extension is perhaps not compatible with RT 4.13? Thank you Rick? Sent from iCloud On Aug 02, 2013, at 11:49 AM, Kevin Falcone wrote: > On Fri, Aug 02, 2013 at 03:33:48PM +0000, window camera wrote: >> <> also enable it as a plugin?>> >> Yes, I did. Homepagecomponents setting is in RT_Config.pm: > > This is wrong. Always make your changes in RT_SiteConfig.pm, never in > RT_Config.pm or they'll be lost when you upgrade. > > Read lines 9 through 17 of RT_Config.pm: > > ############################# WARNING ############################# > # # > # NEVER EDIT RT_Config.pm ! # > # # > # Instead, copy any sections you want to change to # > # RT_SiteConfig.pm and edit them there. Otherwise, # > # your changes will be lost when you upgrade RT. # > # # > ############################# WARNING ############################# > > >> Set( >> $HomepageComponents, >> [ >> qw(QuickCreate Quicksearch MyAdminQueues MySupportQueues MyReminders RefreshHomepage Dashboards SavedSearches SummaryByUser) # loc_qw >> ] >> ); > > That's not actually correct. > This plugin provides two components. OwnerSummmary and RequestorSummary. > Go delete SummaryByUser from your RT at a Glance page, fix HomepageComponents to contain valid components and then add them to the page. > > -kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Fri Aug 2 13:04:23 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 13:04:23 -0400 Subject: [rt-users] Migration Prep In-Reply-To: References: <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> Message-ID: <20130802170423.GL2203@jibsheet.com> On Fri, Aug 02, 2013 at 12:49:47PM -0400, Asif Iqbal wrote: > Please show a log of your make upgrade-database step > > * 3.9.8 > * 4.0.1 That's definitely skipping steps. It should read: * 3.9.8 * 4.0.0rc2 * 4.0.0rc4 * 4.0.0rc7 * 4.0.1 What does ls -l etc/upgrade/ in the directory where you're running make upgrade-database show? ls -l etc/upgrade/4.0.0rc*/ would also be interesting. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From paul at tracker-software.com Fri Aug 2 13:04:16 2013 From: paul at tracker-software.com (Paul O'Rorke) Date: Fri, 02 Aug 2013 10:04:16 -0700 Subject: [rt-users] Migration Prep In-Reply-To: <20130802144853.GG2203@jibsheet.com> References: <20130726125343.GS22003@jibsheet.com> <51F6DEFB.1090407@tracker-software.com> <20130730144234.GX22003@jibsheet.com> <51F83B67.1030802@tracker-software.com> <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> Message-ID: <51FBE690.4090701@tracker-software.com> Thanks again Kevin, OK - I'll roll back and run the upgrade again from 3.8.4. > Do you have logs of the upgrade? How do I enable/check logging for that? *Paul O'Rorke* Tracker Software Products paul at tracker-software.com On 8/2/2013 7:48 AM, Kevin Falcone wrote: > On Thu, Aug 01, 2013 at 12:40:44PM -0700, Paul O'Rorke wrote: >> I don't remember skipping any errors during make upgrade-database. Here are the table >> descriptions you asked for. As you can see the Classes, Topics, Articles tables do exist. > Do you have logs of the upgrade? > >> Hopefully you will be able to tell what I need to do to my DB to fix this... > Really- you need to do another test upgrade and figure out what fails. > While I can tell you how to fix Users, I wouldn't trust that other > parts of the upgrade didn't fail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Fri Aug 2 13:15:20 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 13:15:20 -0400 Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: <14e03bc3-e2d4-425f-ac2a-848e0d83b385@me.com> References: <20130802154936.GK2203@jibsheet.com> <14e03bc3-e2d4-425f-ac2a-848e0d83b385@me.com> Message-ID: <20130802171520.GM2203@jibsheet.com> On Fri, Aug 02, 2013 at 05:03:32PM +0000, window camera wrote: > < RT_Config.pm or they'll be lost when you upgrade.>> > > Yes, I know it's wrong to do it there. Had no choice though. > There was absolutely no information or documenation on how to > setup "HomepageCompoents" in RT_SiteConfig.pm. I searched far and > wide for it. Um. Copy it from RT_Config.pm to RT_SiteConfig.pm and modify it there.o The documentation I copied that you deleted said what to do. ############################# WARNING ############################# # # # NEVER EDIT RT_Config.pm ! # # # # Instead, copy any sections you want to change to # # RT_SiteConfig.pm and edit them there. Otherwise, # # your changes will be lost when you upgrade RT. # # # ############################# WARNING ############################# > > Do you happen to know how? > > I'll tell you how I did it though (in RT_SiteConfig.pm): > > SET ( HomepageComponents, qw('SummaryByUser')); Nope, SET is invalid, it's Set (copy, don't retype). Exactly the line you had in RT_Config.pm goes in RT_SiteConfig.pm. Then you add OwnerSummary to that HomepageComponents line. (The names OwnerSummary and RequestorSummary are documented in the DESCRIPTION section of the README shipped with the extension). > and I also added the SummaryByUser in the @plugins. @Plugins, not @plugins. You still haven't shown your plugins configuration. > Howerver, got the same exact error. No dice. Just error'ed out again. > I'm just a little baffled why these extensions don't come with a > README that gives directions on how to set it up. Anyway I digress. Most extensions do, this one is underdocumented. > <> > > Yes, thanks. I did do that. Same error. See above configuration I did in RT_SiteConfig.pm. > Now when I add "OwnerSummary" as you said, I get error "Error while loading ....can't locate RT/Extensions/OwnerSummary.pm. No, don't add that to plugins, you add that to HomepageComponents. > Any other things you think I should check? Or perhaps now we're at the point where this extension is perhaps not compatible with RT 4.13? This extension is compatible with 4.0.13. I'm the developer who contributed a patch to make it compatible with RT4. Since you don't seem to be following my explanations, I'll copy and paste the correct configuration here, but then you're on your own. Set( $HomepageComponents, [ qw(QuickCreate Quicksearch MyAdminQueues MySupportQueues MyReminders RefreshHomepage Dashboards SavedSearches OwnerSummary) # loc_qw ] ); Set( @Plugins, qw(RT::Extension::SummaryByUser)); If you use more than one plugin, this @Plugins line is incorrect and will disable other plugins. You must specify them all in a single @Plugins line. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From vadud3 at gmail.com Fri Aug 2 13:16:11 2013 From: vadud3 at gmail.com (Asif Iqbal) Date: Fri, 2 Aug 2013 13:16:11 -0400 Subject: [rt-users] Migration Prep In-Reply-To: <20130802170423.GL2203@jibsheet.com> References: <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> <20130802170423.GL2203@jibsheet.com> Message-ID: On Fri, Aug 2, 2013 at 1:04 PM, Kevin Falcone wrote: > On Fri, Aug 02, 2013 at 12:49:47PM -0400, Asif Iqbal wrote: > > Please show a log of your make upgrade-database step > > > > * 3.9.8 > > * 4.0.1 > > That's definitely skipping steps. > > It should read: > * 3.9.8 > * 4.0.0rc2 > * 4.0.0rc4 > * 4.0.0rc7 > * 4.0.1 > > What does ls -l etc/upgrade/ in the directory where you're running make > upgrade-database show? > > ~/src/rt-4.0.16$ ls -al etc/upgrade/ ... drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 3.8.8 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 3.8.9 -rwxr-xr-- 1 root root 3169 Jul 30 14:37 3.8-branded-queues-extension -rwxrwxr-x 1 iqbala iqbala 3179 Jul 29 19:02 3.8-branded-queues-extension.in -rwxr-xr-- 1 root root 3203 Jul 30 14:37 3.8-ical-extension -rw-rw-r-- 1 iqbala iqbala 3213 Jul 29 19:02 3.8-ical-extension.in drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 3.9.1 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 3.9.2 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 3.9.3 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 3.9.5 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 3.9.6 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 3.9.7 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 3.9.8 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 4.0.0rc2 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 4.0.0rc4 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 4.0.0rc7 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 4.0.1 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 4.0.12 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 4.0.13 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 4.0.3 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 4.0.4 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 4.0.6 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 4.0.9 .... > ls -l etc/upgrade/4.0.0rc*/ would also be interesting. > > ~/src/rt-4.0.16$ ls -al etc/upgrade/4.0.0rc* etc/upgrade/4.0.0rc2: total 12 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 . drwxrwxr-x 43 iqbala iqbala 4096 Jul 30 17:31 .. -rw-rw-r-- 1 iqbala iqbala 193 Jul 29 19:02 schema.mysql etc/upgrade/4.0.0rc4: total 20 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 . drwxrwxr-x 43 iqbala iqbala 4096 Jul 30 17:31 .. -rw-rw-r-- 1 iqbala iqbala 48 Jul 29 19:02 schema.mysql -rw-rw-r-- 1 iqbala iqbala 49 Jul 29 19:02 schema.Oracle -rw-rw-r-- 1 iqbala iqbala 52 Jul 29 19:02 schema.Pg etc/upgrade/4.0.0rc7: total 12 drwxrwxr-x 2 iqbala iqbala 4096 Jul 29 19:02 . drwxrwxr-x 43 iqbala iqbala 4096 Jul 30 17:31 .. -rw-rw-r-- 1 iqbala iqbala 630 Jul 29 19:02 content ~/src/rt-4.0.16$ cat etc/upgrade/4.0.0rc2/schema.mysql DROP TABLE IF EXISTS sessions; CREATE TABLE sessions ( id char(32) NOT NULL, a_session LONGBLOB, LastUpdated TIMESTAMP, PRIMARY KEY (id) ) ENGINE=InnoDB CHARACTER SET ascii; I am not sure why it is skipping then. Could it be because of the RTFM errors? I do not use them and not planning to either. -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From frontcam at me.com Fri Aug 2 13:22:38 2013 From: frontcam at me.com (window camera) Date: Fri, 02 Aug 2013 17:22:38 +0000 (GMT) Subject: [rt-users] Help with GNATT RT Extension: Doesn't show up! In-Reply-To: Message-ID: <75287738-0a78-4a86-b2e1-3c38fa9c4e32@me.com> Yes, it was there! Thank you. I'm still a little shocked that these RT extensions don't come with completed install directions or little helpful things like, "where to find the darn thing"?! Oh well, nothing is perfect I supposed. They make the extensions, it's up to use to figure out how to use them I guess. Thanks again Sent from iCloud On Aug 02, 2013, at 10:50 AM, Darin Perusich wrote: > Under Links next to Graph when viewing a ticket. > > On Fri, Aug 2, 2013 at 10:38 AM, window camera wrote: >> May I ask where the GNATT extension is supposed to show up in the GUI? > > > -- > Later, > Darin -------------- next part -------------- An HTML attachment was scrubbed... URL: From trs at bestpractical.com Fri Aug 2 13:23:26 2013 From: trs at bestpractical.com (Thomas Sibley) Date: Fri, 02 Aug 2013 10:23:26 -0700 Subject: [rt-users] Migration Prep In-Reply-To: <20130802170423.GL2203@jibsheet.com> References: <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> <20130802170423.GL2203@jibsheet.com> Message-ID: <51FBEB0E.6050404@bestpractical.com> On 08/02/2013 10:04 AM, Kevin Falcone wrote: > On Fri, Aug 02, 2013 at 12:49:47PM -0400, Asif Iqbal wrote: >> Please show a log of your make upgrade-database step >> >> * 3.9.8 >> * 4.0.1 > > That's definitely skipping steps. > > It should read: > * 3.9.8 > * 4.0.0rc2 > * 4.0.0rc4 > * 4.0.0rc7 > * 4.0.1 Paul and Asif, you've helped uncover a regression in RT's upgrade logic beginning in 4.0.14. It only affects folks who are upgrading from an RT 3.8.x (or older) install to 4.0.14 or higher. If you're upgrading from 4.0.0 or higher, you're unaffected. 4.0.17 will be out shortly to correct this regression. Thanks for your time spent debugging on the list. From falcone at bestpractical.com Fri Aug 2 13:46:36 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 13:46:36 -0400 Subject: [rt-users] Help with GNATT RT Extension: Doesn't show up! In-Reply-To: <75287738-0a78-4a86-b2e1-3c38fa9c4e32@me.com> References: <75287738-0a78-4a86-b2e1-3c38fa9c4e32@me.com> Message-ID: <20130802174636.GN2203@jibsheet.com> On Fri, Aug 02, 2013 at 05:22:38PM +0000, window camera wrote: > I'm still a little shocked that these RT extensions don't come with > completed install directions or little helpful things like, "where > to find the darn thing"?! Oh well, nothing is perfect I supposed. > They make the extensions, it's up to use to figure out how to use > them I guess. Patches welcome. This page includes an email address where you can send your suggested update. https://rt.cpan.org/Public/Bug/Report.html?Queue=RT-Extension-JSGantt -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From frontcam at me.com Fri Aug 2 13:53:51 2013 From: frontcam at me.com (window camera) Date: Fri, 02 Aug 2013 17:53:51 +0000 (GMT) Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: <20130802171520.GM2203@jibsheet.com> Message-ID: <4b6f8274-10ca-4f0b-afec-0c21a4a5151c@me.com> Kevin, Your help is much appreciated. I've done exactly what you've stated. I've also successfully installed over 10 other extensions. For some reason, this extension just doesn't want to work on my RT 4.13 version. I still get the error : Aug 2 13:48:18 rttrack RT: could not find component for path 'SummaryByUser'#012#012Stack:#012 [/rtdata/share/html/Elements/MyRT:95]#012 [/rtdata/share/html/index.html:78]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:635]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:335]#012 [/rtdata/share/html/autohandler:53] (/rtdata/sbin/../lib/RT/Interface/Web/Handler.pm:208) At this point, i'd like to uninstall it and get rid of all the error messages (on the GUI and within the logs). Are there removal instructions anywhere? Thank you again!? -Rick Sent from iCloud On Aug 02, 2013, at 01:15 PM, Kevin Falcone wrote: > On Fri, Aug 02, 2013 at 05:03:32PM +0000, window camera wrote: >> <> RT_Config.pm or they'll be lost when you upgrade.>> >> Yes, I know it's wrong to do it there. Had no choice though. >> There was absolutely no information or documenation on how to >> setup "HomepageCompoents" in RT_SiteConfig.pm. I searched far and >> wide for it. > > Um. Copy it from RT_Config.pm to RT_SiteConfig.pm and modify it > there.o > > The documentation I copied that you deleted said what to do. > > ############################# WARNING ############################# > # # > # NEVER EDIT RT_Config.pm ! # > # # > # Instead, copy any sections you want to change to # > # RT_SiteConfig.pm and edit them there. Otherwise, # > # your changes will be lost when you upgrade RT. # > # # > ############################# WARNING ############################# > > >> Do you happen to know how? >> I'll tell you how I did it though (in RT_SiteConfig.pm): >> SET ( HomepageComponents, qw('SummaryByUser')); > > Nope, SET is invalid, it's Set (copy, don't retype). > Exactly the line you had in RT_Config.pm goes in RT_SiteConfig.pm. > > Then you add OwnerSummary to that HomepageComponents line. > (The names OwnerSummary and RequestorSummary are documented in the > DESCRIPTION section of the README shipped with the extension). > >> and I also added the SummaryByUser in the @plugins. > > @Plugins, not @plugins. You still haven't shown your plugins configuration. > >> Howerver, got the same exact error. No dice. Just error'ed out again. >> I'm just a little baffled why these extensions don't come with a >> README that gives directions on how to set it up. Anyway I digress. > > Most extensions do, this one is underdocumented. > >> <> >> Yes, thanks. I did do that. Same error. See above configuration I did in RT_SiteConfig.pm. > >> Now when I add "OwnerSummary" as you said, I get error "Error while loading ....can't locate RT/Extensions/OwnerSummary.pm. > > No, don't add that to plugins, you add that to HomepageComponents. > >> Any other things you think I should check? Or perhaps now we're at the point where this extension is perhaps not compatible with RT 4.13? > > This extension is compatible with 4.0.13. > I'm the developer who contributed a patch to make it compatible with RT4. > > Since you don't seem to be following my explanations, I'll copy and > paste the correct configuration here, but then you're on your own. > > Set( > $HomepageComponents, > [ > qw(QuickCreate Quicksearch MyAdminQueues MySupportQueues MyReminders RefreshHomepage Dashboards SavedSearches OwnerSummary) # loc_qw > ] > ); > > Set( @Plugins, qw(RT::Extension::SummaryByUser)); > > If you use more than one plugin, this @Plugins line is incorrect and > will disable other plugins. You must specify them all in a single > @Plugins line. > > -kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Fri Aug 2 14:03:09 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 14:03:09 -0400 Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: <4b6f8274-10ca-4f0b-afec-0c21a4a5151c@me.com> References: <20130802171520.GM2203@jibsheet.com> <4b6f8274-10ca-4f0b-afec-0c21a4a5151c@me.com> Message-ID: <20130802180309.GO2203@jibsheet.com> On Fri, Aug 02, 2013 at 05:53:51PM +0000, window camera wrote: > I still get the error : > > Aug 2 13:48:18 rttrack RT: could not find component for path 'SummaryByUser'#012#012Stack:#012 [/rtdata/share/html/Elements/MyRT:95]#012 [/rtdata/share/html/index.html:78]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:635]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:335]#012 [/rtdata/share/html/autohandler:53] (/rtdata/sbin/../lib/RT/Interface/Web/Handler.pm:208) > At this point, i'd like to uninstall it and get rid of all the error messages (on the GUI and within the logs). You've not followed my instructions if you have that error. At this point, go click the Reset to Default on that page. > Are there removal instructions anywhere? Delete the plugin. Remove it from your configuration. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Fri Aug 2 14:04:53 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 14:04:53 -0400 Subject: [rt-users] Differentiating while sending notifictions In-Reply-To: <1375428564.4545.186.camel@s-rwysocki> References: <1375272237.4545.162.camel@s-rwysocki> <20130731161047.GF22003@jibsheet.com> <1375348698.4545.175.camel@s-rwysocki> <20130801162129.GB2203@jibsheet.com> <1375428564.4545.186.camel@s-rwysocki> Message-ID: <20130802180453.GP2203@jibsheet.com> On Fri, Aug 02, 2013 at 09:29:24AM +0200, Robert Wysocki wrote: > Few months ago I've implemented something similar - a "role" for traffic > manager. It consists of a per-queue custom field, some local > modifications in Action.pm and custom ScripActions in DB. > I'll probably gonna try to customize it so that we can have the kind of > ScripActions you've mentioned. You could probably do that with subclassing rather than direct modifications, but it sounds like you need some pretty significant changes. > In my opinion it would be great to have a easy-to-use mechanism for > creation of custom roles like 'Requestor' od 'AdminCc'. It sure would, but it's a rather complicated piece of the system and it's very easy to add huge performance bottlenecks. The development version of RT includes significant refactoring to make it easier to add new roles. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From presnypreklad at gmail.com Fri Aug 2 14:11:17 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Fri, 2 Aug 2013 20:11:17 +0200 Subject: [rt-users] (RT::Authen::ExternalAuth) "email exists" problem authenticating trough AD In-Reply-To: References: <51EE4719.8030901@2ndquadrant.com> Message-ID: > It binds because i receive all aditional fields and even creates the user > with those . Yes, it binds, but anonymously. All the information fields are first retrieved that way. Only then does the authentication phase start, when it attempts to bind as the user with the password that the user enters in the login window. > The problem is really focused on authentication step and i can't understand > why :( Yes, so the question is (once again): can you bind *as the user* and *with the user's password* from the command line? From frontcam at me.com Fri Aug 2 14:33:44 2013 From: frontcam at me.com (window camera) Date: Fri, 02 Aug 2013 18:33:44 +0000 (GMT) Subject: [rt-users] Help with SummaryByUsers extension In-Reply-To: <20130802180309.GO2203@jibsheet.com> Message-ID: <5916fbb4-8bd4-4b50-871d-91ae3ab64d46@me.com> <> I wouldn't assume that. But thank you for taking the time to help. Best -Rick? Sent from iCloud On Aug 02, 2013, at 02:03 PM, Kevin Falcone wrote: > On Fri, Aug 02, 2013 at 05:53:51PM +0000, window camera wrote: >> I still get the error : >> Aug 2 13:48:18 rttrack RT: could not find component for path 'SummaryByUser'#012#012Stack:#012 [/rtdata/share/html/Elements/MyRT:95]#012 [/rtdata/share/html/index.html:78]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:635]#012 [/rtdata/sbin/../lib/RT/Interface/Web.pm:335]#012 [/rtdata/share/html/autohandler:53] (/rtdata/sbin/../lib/RT/Interface/Web/Handler.pm:208) >> At this point, i'd like to uninstall it and get rid of all the error messages (on the GUI and within the logs). > > You've not followed my instructions if you have that error. > > At this point, go click the Reset to Default on that page. > >> Are there removal instructions anywhere? > > Delete the plugin. > Remove it from your configuration. > > -kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexmv at bestpractical.com Fri Aug 2 15:34:08 2013 From: alexmv at bestpractical.com (Alex Vandiver) Date: Fri, 02 Aug 2013 15:34:08 -0400 Subject: [rt-users] [rt-announce] RT 4.0.17 released Message-ID: <1375472048.13076.4.camel@umgah.localdomain> This release fixes an important regression in the upgrade script included in 4.0.14, 4.0.15, and 4.0.16. Attempting to upgrade from 3.x would skip key upgrade steps. New installs, and sites upgrading from within the 4.0.x series, are unaffected. Affected installations (i.e., who upgraded from 3.x to 4.0.14, 4.0.15, or 4.0.16) should install RT 4.0.17, and then run 'make upgrade-database', specifying versions 3.9.9 through 4.0.0 as the versions to upgrade from and to. This should produce: Going to apply following upgrades: * 4.0.0rc2 * 4.0.0rc4 * 4.0.0rc7 Due to the missed upgrade steps, passwords would work until after the user first logged in, or until etc/upgrade/vulnerable-passwords was run. Affected users may be found by running the following SQL query: SELECT Name FROM Users WHERE Password LIKE '!sha512!%' AND LENGTH(Password) = 40; After completing the upgrade steps mentioned above, passwords for affected users should be restored from backups, the admin UI (assuming an administrator can log in), or (as a last resort) setting them explicitly via: perl -I/opt/rt4/local/lib -I/opt/rt4/lib -MRT=-init \ -e 'my $u = RT::User->new( RT->SystemUser );' \ -e '($u->Load("username"))[0] or die "Failed to load user";' \ -e '$u->SetPassword("new_password");' Adjust the username and password on the last two lines accordingly. You may need to adjust /opt/rt4/local/lib and /opt/rt4/lib on the first line if your RT is not installed into the default location of /opt/rt4 http://download.bestpractical.com/pub/rt/release/rt-4.0.17.tar.gz http://download.bestpractical.com/pub/rt/release/rt-4.0.17.tar.gz.sig SHA1 sums b348fa687001db08198bc2b014a348083108e801 rt-4.0.17.tar.gz edc3848822315a14bc4a272d4d0fae60fe5ced8d rt-4.0.17.tar.gz.sig A complete changelog is available from git by running: git log rt-4.0.16..rt-4.0.17 or visiting https://github.com/bestpractical/rt/compare/rt-4.0.16...rt-4.0.17 _______________________________________________ rt-announce mailing list rt-announce at lists.bestpractical.com http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-announce From brian.s.haupt at ama-inc.com Fri Aug 2 16:06:30 2013 From: brian.s.haupt at ama-inc.com (Brian Haupt) Date: Fri, 2 Aug 2013 20:06:30 +0000 Subject: [rt-users] Multiple $rtname ? Message-ID: <27d02eb151294ca586be7c45f275590b@BL2PR04MB050.namprd04.prod.outlook.com> I am trying to configure the automated email from RT to display the queue name as part of the ticket id. For example assume the queues are HR, Contracts, and Accounting. I want the following email alerts [Contracts # $TicketID] $OriginalSubject [HR # $TicketID] $OriginalSubject [Accounting # $TicketID] $OriginalSubject Is it possible to set multiple $rtname, values in the RT_SiteConfig.pm? If not how can I configure the email as I want them using one RT 4 instance with multiple queues? Thank you, Brian From falcone at bestpractical.com Fri Aug 2 16:11:27 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 2 Aug 2013 16:11:27 -0400 Subject: [rt-users] Multiple $rtname ? In-Reply-To: <27d02eb151294ca586be7c45f275590b@BL2PR04MB050.namprd04.prod.outlook.com> References: <27d02eb151294ca586be7c45f275590b@BL2PR04MB050.namprd04.prod.outlook.com> Message-ID: <20130802201127.GQ2203@jibsheet.com> On Fri, Aug 02, 2013 at 08:06:30PM +0000, Brian Haupt wrote: > I am trying to configure the automated email from RT to display the > queue name as part of the ticket id. For example assume the queues are > HR, Contracts, and Accounting. I want the following email alerts > [Contracts # $TicketID] $OriginalSubject > [HR # $TicketID] $OriginalSubject > [Accounting # $TicketID] $OriginalSubject > Is it possible to set multiple $rtname, values in the RT_SiteConfig.pm? If not how can I configure the email as I want them using one RT 4 instance with multiple queues? Use "Subject Tag" on the Queue Admin page. It'll change it for you and keep track and parse all of it. You get one per Queue, hopefully that's sufficient. If you need more, you can do it, but it's more work. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From brian.s.haupt at ama-inc.com Fri Aug 2 16:24:59 2013 From: brian.s.haupt at ama-inc.com (Brian Haupt) Date: Fri, 2 Aug 2013 20:24:59 +0000 Subject: [rt-users] Multiple $rtname ? In-Reply-To: <20130802201127.GQ2203@jibsheet.com> References: <27d02eb151294ca586be7c45f275590b@BL2PR04MB050.namprd04.prod.outlook.com> <20130802201127.GQ2203@jibsheet.com> Message-ID: Kevin, That did the trick; thank you. Brian -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Kevin Falcone Sent: Friday, August 02, 2013 4:11 PM To: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Multiple $rtname ? On Fri, Aug 02, 2013 at 08:06:30PM +0000, Brian Haupt wrote: > I am trying to configure the automated email from RT to display the > queue name as part of the ticket id. For example assume the queues are > HR, Contracts, and Accounting. I want the following email alerts > [Contracts # $TicketID] $OriginalSubject [HR # $TicketID] > $OriginalSubject [Accounting # $TicketID] $OriginalSubject Is it > possible to set multiple $rtname, values in the RT_SiteConfig.pm? If not how can I configure the email as I want them using one RT 4 instance with multiple queues? Use "Subject Tag" on the Queue Admin page. It'll change it for you and keep track and parse all of it. You get one per Queue, hopefully that's sufficient. If you need more, you can do it, but it's more work. -kevin From kevin.elliott at alaska.gov Fri Aug 2 18:41:38 2013 From: kevin.elliott at alaska.gov (Elliott, Kevin C (DOR)) Date: Fri, 02 Aug 2013 22:41:38 +0000 Subject: [rt-users] "Bad name after cn'" when using LDAPImport Message-ID: <1BCBBD850909C148B389F50256796E350D86E800@SOAJNUEXMB3.soa.alaska.gov> I'm using Request Tracker 4.0.7 with LDAPImport 0.34 and Authen::ExternalAuth 10-4. I already have user creation and attribute mapping configured with ExternalAuth. I'm primarily interested in using LDAPImport to populate a half dozen or so Public Groups in Request Tracker with users from Active Directory. The idea is that separate divisions can just add their staff to that Active Directory group and when LDAPImport runs they'll be granted the appropriate rights to manage their division's queue in Request Tracker. I'm pulling from an Active Directory LDAP implementation at a functional level of Windows Server 2008. When I do a test run (/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/bin/rtldapimport --debug > ldapimport.debug 2>&1) I get the following: Couldn't load RT config file RT_SiteConfig.pm: Bad name after cn' at /etc/request-tracker4/RT_SiteConfig.pm line 91. Compilation failed in require at /usr/share/request-tracker4/lib/RT/Config.pm line 905. BEGIN failed--compilation aborted at ./rtldapimport line 26. That corresponds with this line of my RT_SiteConfig.pm: Set($LDAPGroupMapping, { Name => 'cn', I've configured LDAPImport as follows: ## LDAP Import ## Set($LDAPHost, 'ldaps://dc.alaska.gov'); Set($LDAPUser, 'CN=dor-requesttracker,OU=Security Groups and Accounts,OU=IT,OU=Divisions,OU=DOR,OU=State Departments,DC=alaska,DC=gov'); Set($LDAPPassword ,'Password); Set($LDAPBase, 'ou=DOR,ou=State Departments,dc=alaska,dc=gov'); Set($LDAPGroupBase, 'OU=Security Groups and Accounts,OU=IT,OU=Divisions,OU=DOR,OU=State Departments,DC=alaska,DC=gov'); Set($LDAPGroupFilter, '(|(CN=dor-rt-admins)(CN=dor-rt-staff)); Set($LDAPGroupMapping, { Name => 'cn', Member_Attr => 'member', Member_Attr_Value => 'sAMAccountName', Description => 'description'}); Set($LDAPSizeLimit, 1000); I feel like I'm missing something real simple here. Can someone lend another set of eyes to this problem? Thanks! --- Kevin Elliott Networking Specialist II Alaska Department of Revenue, ASD-IT (907) 465-2314 -------------- next part -------------- An HTML attachment was scrubbed... URL: From arunragini at gmail.com Sat Aug 3 18:08:13 2013 From: arunragini at gmail.com (Arun ragini) Date: Sun, 4 Aug 2013 03:38:13 +0530 Subject: [rt-users] Login issues Message-ID: Hi All, RT 4.0.16 ia acting up and it is resetting password after login. I tried changing the password the sql query but once I login it reset the password and I can not login into the system any help will help us resolve this issue. Thanks for your help Arun -- www.opensourcer.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexmv at bestpractical.com Sun Aug 4 00:42:33 2013 From: alexmv at bestpractical.com (Alex Vandiver) Date: Sun, 04 Aug 2013 00:42:33 -0400 Subject: [rt-users] Login issues In-Reply-To: References: Message-ID: <1375591353.13130.1.camel@umgah.localdomain> On Sun, 2013-08-04 at 03:38 +0530, Arun ragini wrote: > RT 4.0.16 ia acting up and it is resetting password after login. If you upgraded from RT 3.x to RT 4.0.16, please see the release notes for RT 4.0.17: http://blog.bestpractical.com/2013/08/rt-4017-released.html - Alex From chrisherrmann7 at gmail.com Sun Aug 4 23:51:59 2013 From: chrisherrmann7 at gmail.com (Chris Herrmann) Date: Mon, 5 Aug 2013 13:51:59 +1000 Subject: [rt-users] One particular ticket crashes RT 3.8.7 Message-ID: Hi guys, at this stage I'm just hoping to find out where to look, to get more information. Scenario is: - Viewing or comment / replying on a specific ticket causes the page to fail. Other tickets are fine. - Viewing the same ticket via the mobile interface is OK - Emailing the ticket wtih updated comments is OK - I haven't tried CLI yet so can't comment - Upgrading RT isn't an option right now - It isn't consistent - it doesn't always fail. Fail rate appears to be around 9/10 times The only logs of note that I can find are: apache vhost access_log - just shows me that the page got hit e.g. /Ticket/Update.html?Action=Comment&id=106648 /Ticket/Display.html?id=106648 apache vhost error_log - empty apache default error log - has: [Mon Aug 05 12:58:24 2013] [notice] child pid 7013 exit signal Segmentation faul these correspond to when i try to view this specific ticket. Based upon some list emails I saw kicking around last week I've added: Set($LogToSyslog , 'debug'); Set($LogToScreen , 'error'); Set($LogToFile , undef); Set($LogDir, '/var/log/rt3'); Set($LogToFileNamed , "rt3.log"); #log to rt.log to RT_SiteConfig.pm but... there's nothing logging to /var/log/rt3 /var/log/debug contains: Aug 5 13:45:59 sirius RT: We found a merged ticket.106966/106648 Aug 5 13:45:59 sirius RT: We found a merged ticket.106969/106648 Aug 5 13:46:02 sirius RT: We found a merged ticket.106966/106648 Aug 5 13:46:02 sirius RT: last message repeated 35 times Aug 5 13:46:02 sirius RT: We found a merged ticket.106969/106648 Aug 5 13:46:02 sirius RT: last message repeated 44 times Aug 5 13:46:02 sirius RT: We found a merged ticket.106966/106648 Aug 5 13:46:02 sirius RT: We found a merged ticket.106969/106648 Aug 5 13:46:02 sirius RT: last message repeated 11 times Aug 5 13:46:02 sirius RT: We found a merged ticket.106966/106648 /var/log/syslog (ditto) /var/log/user.log even more of it... Aug 5 13:46:02 sirius RT: We found a merged ticket.106966/106648 Aug 5 13:46:21 sirius RT: last message repeated 42 times Other notes: - hitting the page chews a lot of CPU for a long time before finally dieing - the ticket is large (a lot of text) but it's by no means the largest ticket we have by an order of magnitude. These other larger tickets are fine... Help! Not sure where I should be looking... Thanks! Regards, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From presnypreklad at gmail.com Mon Aug 5 03:53:03 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Mon, 5 Aug 2013 09:53:03 +0200 Subject: [rt-users] "Bad name after cn'" when using LDAPImport In-Reply-To: <1BCBBD850909C148B389F50256796E350D86E800@SOAJNUEXMB3.soa.alaska.gov> References: <1BCBBD850909C148B389F50256796E350D86E800@SOAJNUEXMB3.soa.alaska.gov> Message-ID: > That corresponds with this line of my RT_SiteConfig.pm: Look one line above that -- you appear to be missing a closing apostrophe. > Set($LDAPGroupFilter, '(|(CN=dor-rt-admins)(CN=dor-rt-staff)); This is the offending line. From sszretter at hotmail.com Mon Aug 5 06:48:50 2013 From: sszretter at hotmail.com (SSzretter) Date: Mon, 5 Aug 2013 06:48:50 -0400 Subject: [rt-users] dashboard reminders in RT4? In-Reply-To: References: <20130801162206.GC2203@jibsheet.com> Message-ID: Thank you, yes, I did skip that. I have now added it, and can see in my syslog, that it looks like it's running rt-email-dashboards. However, I am still not seeing any emails. No error messages in syslog around that entry, but no emails either. Any suggestion on where to look to debug (log, or )? On Thu, Aug 1, 2013 at 12:22 PM, Kevin Falcone wrote: > On Thu, Aug 01, 2013 at 08:26:38AM -0400, SSzretter wrote: >> I have set up a couple dashboards, which look good and also set a m-f >> 8am reminder with an email address in each. The email did not go >> out this morning, so I am trying to figure out why. >> >> Generally, emails go out for tickets and the system checks mail and >> pulls it in regularly, so I am assuming there is some kind of >> rt-crontool going on (or similar). I did not specifically set that >> up, but it's working. >> >> SO, there must be something additional that I have to do to actually >> have my dashboard reminders go out every day, what should I look at? > > You probably skipped step #9 in the install: > http://bestpractical.com/docs/rt/latest/README.html > > -kevin -- Garden From jgreen at hdms.com Mon Aug 5 09:27:33 2013 From: jgreen at hdms.com (Green, Jesse) Date: Mon, 5 Aug 2013 13:27:33 +0000 Subject: [rt-users] Scripting ticket creation with fields containing non-alphanumeric characters. Message-ID: <14309726.71709.1375709254513.JavaMail.root@securemail.hdms.com> I'm very new to RT and am trying to write a python script to create a ticket in my RT database. The crux of my problem lies in non-alphanumeric characters. Submitting the ticket works fine with all the fields that have only alphanumeric characters, but I have some fields with non-alphanumeric characters and those submissions return to me "Error 409 Syntax Error". I am using python-rtkit to work with REST from my script. To try and solve this problem I have corresponded with the person who maintains python-rtkit to make sure that it wasn't a bug in python-rtkit or my misuse of the module (https://github.com/z4r/python-rtkit/issues/31 , you can find a copy of my script in this thread for reference). The conclusion reached at the end of that discussion was that I would need to upgrade my install of RT from its current version of 3.6.6 to 4.x. However I have discovered from my superior (who is in charge of our install of RT) that that isn't an option. After I tried that I tried to poke around and find some documentation on Error 409 but was unable to find any documentation of RT's errors anywhere but WAS able to find a correspondence for a similar issue (http://www.gossamer-threads.com/lists/rt/users/95179?search_string=REST%20syntax;#95179) unfortunately it is for a different version of RT (3.8.x) and the suggested fix involved a line in REST.pm that doesn't exist in my install of RT. Which brings me to posting in this mailing list. I'm wondering if there's a fix similar to the other one posted in the mailing list (see second link in this post) for RT3.6.6 that I can use to enable the creation of tickets via an external script without having to upgrade RT or remove those special characters I'm using RTv3.6.6 and the server is on Red Hat 4.1.2-54 and Apache 2.2.3. If you need any additional details, please ask. - The information contained in this message is privileged and confidential. It is intended only for the recipient or entity listed above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to the message and promptly deleting it from your computer. NOTICE TO RECIPIENT(S) OF INFORMATION: Information disclosed to you pertaining to certain conditions, such as treatment for alcohol or drug abuse, HIV/AIDS and other sexually transmitted diseases, behavioral health, and genetic marker information is protected by various federal and state laws which prohibit any further disclosure of this information by you without the express written consent of the person to whom it pertains or as otherwise permitted by such laws. Any unauthorized further disclosure in violation of state or federal law may result in a fine or jail sentence or both. A general authorization for the release of medical or other information is NOT sufficient consent for release of these types of information. The federal rule at 42 CFR Part 2 restricts use of the information disclosed to criminally investigate or prosecute any alcohol or drug abuse patient. -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Mon Aug 5 10:25:17 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Mon, 5 Aug 2013 10:25:17 -0400 Subject: [rt-users] dashboard reminders in RT4? In-Reply-To: References: <20130801162206.GC2203@jibsheet.com> Message-ID: <20130805142517.GR2203@jibsheet.com> On Mon, Aug 05, 2013 at 06:48:50AM -0400, SSzretter wrote: > On Thu, Aug 1, 2013 at 12:22 PM, Kevin Falcone > wrote: > > On Thu, Aug 01, 2013 at 08:26:38AM -0400, SSzretter wrote: > >> I have set up a couple dashboards, which look good and also set a m-f > >> 8am reminder with an email address in each. The email did not go > >> out this morning, so I am trying to figure out why. > >> > >> Generally, emails go out for tickets and the system checks mail and > >> pulls it in regularly, so I am assuming there is some kind of > >> rt-crontool going on (or similar). I did not specifically set that > >> up, but it's working. > >> > >> SO, there must be something additional that I have to do to actually > >> have my dashboard reminders go out every day, what should I look at? > > > > You probably skipped step #9 in the install: > > http://bestpractical.com/docs/rt/latest/README.html > > Thank you, yes, I did skip that. I have now added it, and can see > in my syslog, that it looks like it's running rt-email-dashboards. > However, I am still not seeing any emails. No error messages in > syslog around that entry, but no emails either. Any suggestion on > where to look to debug (log, or )? The command you set up has several documented arguments to be used for testing and debugging: http://bestpractical.com/docs/rt/latest/rt-email-dashboards.html -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Mon Aug 5 11:11:08 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Mon, 5 Aug 2013 11:11:08 -0400 Subject: [rt-users] Scripting ticket creation with fields containing non-alphanumeric characters. In-Reply-To: <14309726.71709.1375709254513.JavaMail.root@securemail.hdms.com> References: <14309726.71709.1375709254513.JavaMail.root@securemail.hdms.com> Message-ID: <20130805151108.GS2203@jibsheet.com> On Mon, Aug 05, 2013 at 01:27:33PM +0000, Green, Jesse wrote: > I'm very new to RT and am trying to write a python script to create a ticket in my RT > database. The crux of my problem lies in non-alphanumeric characters. Submitting the ticket > works fine with all the fields that have only alphanumeric characters, but I have some fields > with non-alphanumeric characters and those submissions return to me "Error 409 Syntax Error". > > I am using python-rtkit to work with REST from my script. To try and solve this problem I > have corresponded with the person who maintains python-rtkit to make sure that it wasn't a bug > in python-rtkit or my misuse of the module ([1]https://github.com/z4r/python-rtkit/issues/31 , > you can find a copy of my script in this thread for reference). The conclusion reached at the > end of that discussion was that I would need to upgrade my install of RT from its current > version of 3.6.6 to 4.x. However I have discovered from my superior (who is in charge of our > install of RT) that that isn't an option. > > After I tried that I tried to poke around and find some documentation on Error 409 but was > unable to find any documentation of RT's errors anywhere but WAS able to find a > correspondence for a similar issue > ([2]http://www.gossamer-threads.com/lists/rt/users/95179?search_string=REST%20syntax;#95179) > unfortunately it is for a different version of RT (3.8.x) and the suggested fix involved a > line in REST.pm that doesn't exist in my install of RT. Which brings me to posting in this > mailing list. > > I'm wondering if there's a fix similar to the other one posted in the mailing list (see second > link in this post) for RT3.6.6 that I can use to enable the creation of tickets via an > external script without having to upgrade RT or remove those special characters 3.6.6 is more than 5 years old and has actually been End of Lifed for nearly 2 years now: http://blog.bestpractical.com/2011/09/rt-36-end-of-life-reminder.html You may want to talk to your supervisor again. There are a number of security issues in that release. The code you're running into was refactored before 3.8.0 was released, so any patch that was later applied to 3.8 or 4.0 to fix problems with the Custom Field parsing will be annoying to backport. As a result, I cannot just point you to a commit in git and tell you to apply it, someone would have to develop and backport a branch. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Mon Aug 5 11:32:15 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Mon, 5 Aug 2013 11:32:15 -0400 Subject: [rt-users] One particular ticket crashes RT 3.8.7 In-Reply-To: References: Message-ID: <20130805153215.GT2203@jibsheet.com> On Mon, Aug 05, 2013 at 01:51:59PM +1000, Chris Herrmann wrote: > [Mon Aug 05 12:58:24 2013] [notice] child pid 7013 exit signal Segmentation faul > Set($LogToFile , undef); > Set($LogDir, '/var/log/rt3'); > Set($LogToFileNamed , "rt3.log"); #log to rt.log > > to RT_SiteConfig.pm > but... there's nothing logging to /var/log/rt3 There's nothing in /var/log/rt3 because you told RT not to log anything to the file. You should touch /var/log/rt3/rt3.log and make sure your webserver can write to it and then change $LogToFile to the log level you want - however, you do seem to be getting debugging logs to syslog so you may not need it (logging the same debug log to multiple places just slows RT down). > /var/log/debug contains: > Aug 5 13:45:59 sirius RT: We found a merged ticket.106966/106648 > Aug 5 13:45:59 sirius RT: We found a merged ticket.106969/106648 How many Tickets in your database have an EffectiveId of 106648? There's some performance improvements around merged tickets in 3.8.8. Usually when folks complain of crashing on old 3.8 tickets with lots of text, it's a bug in Text::Quoted or a bug in Perl. Those are both hard to fix without upgrades though. You would need a lot more information to show us what broke though. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From kevin.elliott at alaska.gov Mon Aug 5 13:26:26 2013 From: kevin.elliott at alaska.gov (Elliott, Kevin C (DOR)) Date: Mon, 05 Aug 2013 17:26:26 +0000 Subject: [rt-users] "Bad name after cn'" when using LDAPImport In-Reply-To: References: <1BCBBD850909C148B389F50256796E350D86E800@SOAJNUEXMB3.soa.alaska.gov> Message-ID: <1BCBBD850909C148B389F50256796E350D86EEB4@SOAJNUEXMB3.soa.alaska.gov> That was indeed the failing line. Thank you. > -----Original Message----- > From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users- > bounces at lists.bestpractical.com] On Behalf Of Nathan Cutler > Sent: Sunday, August 04, 2013 11:53 PM > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] "Bad name after cn'" when using LDAPImport > > > That corresponds with this line of my RT_SiteConfig.pm: > > Look one line above that -- you appear to be missing a closing apostrophe. > > > Set($LDAPGroupFilter, '(|(CN=dor-rt-admins)(CN=dor-rt-staff)); > > This is the offending line. From kevin.elliott at alaska.gov Mon Aug 5 13:45:58 2013 From: kevin.elliott at alaska.gov (Elliott, Kevin C (DOR)) Date: Mon, 05 Aug 2013 17:45:58 +0000 Subject: [rt-users] LDAPImport succeds with user LDAP bind but fails with group Message-ID: <1BCBBD850909C148B389F50256796E350D86EED3@SOAJNUEXMB3.soa.alaska.gov> Continuing onwards with my attempt to pull groups and their members from Active Directory into Request Tracker I've made some progress. However, I'm currently stymied - LDAPImport will successfully connect and search for users but when re-using the LDAP connection it fails to connect for the group search. Here's the debugging information from an rtldapimport run: Running test import, no data will be changed Rerun command with --import to perform the import Rerun command with --debug for more information connecting to ldap://domaincontroller.alaska.gov binding as CN=dor-requesttracker,OU=Security Groups and Accounts,OU=IT,OU=Divisions,OU=DOR,OU=State Departments,DC=soa,DC=alaska,DC=gov searching with: base => 'OU=Security Groups and Accounts,OU=IT,OU=Divisions,OU=DOR,OU=State Departments,DC=soa,DC=alaska,DC=gov' control => 'Net::LDAP::Control::Paged=HASH(0x524cd80)' filter => '(&(cn = users))' search found 0 objects No results found, no import Testing group import searching with: base => 'OU=Security Groups and Accounts,OU=IT,OU=Divisions,OU=DOR,OU=State Departments,DC=soa,DC=alaska,DC=gov' control => 'Net::LDAP::Control::Paged=HASH(0x86973b8)' filter => '(|(CN=dor-requesttracker-admins)(CN=dor-asd-rt-staff))' [Mon Aug 5 17:10:47 2013] [error]: LDAP search failed Can't contact LDAP server (/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/lib/RT/Extension/LDAPImport.pm:1237) LDAP search failed Can't contact LDAP server search found 0 objects No results found, no group import Finished test Looking at the perl for LDAPImport.pm shows me that the _run_search method is generating the "LDAP search failed" part of the debugging output. I'm assuming this means that Net::LDAP is generating the "Can't contact LDAP server" from $result->code. I feel this hypothesis is further supported by the fact that a 'grep "contact" LDAPImport.pm' turn up nothing. It looks like Net:LDAP just gets the base and filter and off it goes. I've confirmed that my filter works with ldapsearch. I there something different I need to do get a successful LDAP bind when looking performing the group import? --- Kevin Elliott Networking Specialist II Alaska Department of Revenue, ASD-IT (907) 465-2314 -------------- next part -------------- An HTML attachment was scrubbed... URL: From presnypreklad at gmail.com Mon Aug 5 14:20:17 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Mon, 5 Aug 2013 20:20:17 +0200 Subject: [rt-users] LDAPImport succeds with user LDAP bind but fails with group In-Reply-To: <1BCBBD850909C148B389F50256796E350D86EED3@SOAJNUEXMB3.soa.alaska.gov> References: <1BCBBD850909C148B389F50256796E350D86EED3@SOAJNUEXMB3.soa.alaska.gov> Message-ID: Hi Kevin, > I?ve confirmed > that my filter works with ldapsearch. Can you send the working ldapsearch command? Seems suspicious to me that the initial search for the user comes up empty. From falcone at bestpractical.com Mon Aug 5 14:26:51 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Mon, 5 Aug 2013 14:26:51 -0400 Subject: [rt-users] LDAPImport succeds with user LDAP bind but fails with group In-Reply-To: <1BCBBD850909C148B389F50256796E350D86EED3@SOAJNUEXMB3.soa.alaska.gov> References: <1BCBBD850909C148B389F50256796E350D86EED3@SOAJNUEXMB3.soa.alaska.gov> Message-ID: <20130805182651.GA43429@jibsheet.com> On Mon, Aug 05, 2013 at 05:45:58PM +0000, Elliott, Kevin C (DOR) wrote: > [Mon Aug 5 17:10:47 2013] [error]: LDAP search failed Can't contact LDAP server > (/usr/local/share/request-tracker4/plugins/RT-Extension-LDAPImport/lib/RT/Extension/LDAPImport.pm:1237) > > LDAP search failed Can't contact LDAP server > > Looking at the perl for LDAPImport.pm shows me that the _run_search method is generating the > "LDAP search failed" part of the debugging output. I'm assuming this means that Net::LDAP is > generating the "Can't contact LDAP server" from $result->code. I feel this hypothesis is > further supported by the fact that a `grep "contact" LDAPImport.pm' turn up nothing. It looks > like Net:LDAP just gets the base and filter and off it goes. I've confirmed that my filter > works with ldapsearch. Correct - those errors come from Net::LDAP->error(). What do the logs on your LDAP server say? -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Mon Aug 5 15:33:22 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Mon, 5 Aug 2013 15:33:22 -0400 Subject: [rt-users] [rt-announce] RT for Incident Response 3.0.0 Released Message-ID: <20130805193322.GB43429@jibsheet.com> RT for Incident Response 3.0.0 is now available. Learn more about using RT for Incident Response http://www.bestpractical.com/rtir/ http://download.bestpractical.com/pub/rt/release/RT-IR-3.0.0.tar.gz http://download.bestpractical.com/pub/rt/release/RT-IR-3.0.0.tar.gz.asc SHA1 sums 6cc4797b185530bb050eefb68c1e15900714a8e9 RT-IR-3.0.0.tar.gz 5f1bd4bfd353956f2a714428773d373c1af7a1b1 RT-IR-3.0.0.tar.gz.asc RTIR 3.0 is fully compatible with the RT 4.0 series. It takes advantage of many new native RT features to remove complexity and ease future development. RTIR now uses RT's built-in IP Custom Field support, providing IPv6 support as well as IPv4. It can leverage RT's full text indexing support for faster searching of tickets. It also picks up many other new RT 4.0 features such as email history folding, autocompletion of email addresses, an online theme editor and continued support for PGP encryption/decryption of emails. You can read more about RT 4 features here: http://bestpractical.com/rt/whats-new-in-4.html RTIR now allows you to link Reports, Investigations and Blocks to multiple incidents and to require an Incident while creating a Report, Investigation or Block. This is controlled by the new %RTIR_IncidentChildren configuration option. By default, it retains compatibility with the RTIR workflow available in 2.4 and 2.6. As a result of this change, RTIR now provides greater flexibility for choosing an Incident during creation or linking. RTIR no longer ships an internal SLA implementation. RT::Extension::SLA is more flexible and supports more options. RTIR now allows greater editing of the searches displayed during Incident reply or during linking/splitting actions. A user can pull in resolved tickets or limit to a certain subset of the linked tickets. This RTIR release requires RT 4.0.14, but we recommend installing the latest RT release available (4.0.17 at this time) as it repairs a few regressions in the upgrade path. If you are already running 3.0.0rc1, this release contains a database upgrade. If you are still running on 2.4 or 2.6 but have been testing upgrades, it includes a number of updates to the upgrade process that should improve performance. Please review all of the documentation in docs/UPGRADING and corresponding docs/UPGRADING-* files relevant to your current RTIR version. You may also review the upgrading documentation at http://www.bestpractical.com/docs/rtir/3.0/ With the release of RTIR 3.0.0, the RTIR 2 series has officially entered maintenance mode. For more details about this and future RTIR release scheduling, we have published a blog post: http://blog.bestpractical.com/2013/07/rtir-release-scheduling.html A complete changelog is available from git by running: git log 2.6.1..3.0.0 or visiting https://github.com/bestpractical/rtir/compare/2.6.1...3.0.0 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: -------------- next part -------------- _______________________________________________ rt-announce mailing list rt-announce at lists.bestpractical.com http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-announce From frontcam at me.com Mon Aug 5 16:20:20 2013 From: frontcam at me.com (window camera) Date: Mon, 05 Aug 2013 20:20:20 +0000 (GMT) Subject: [rt-users] custom fields on dashboard for new tickets? Message-ID: <76609f02-f16a-4d05-938d-2985e5ecc11a@me.com> Hi All Could someone point me in the right direction of how we would go about creating bullets and other custom fields for the front dashboard that is used by customer who create tickets? We'd like to create bullets and fields (that are mandatory to choose at least one), for say , etc., to have the user click on when they create a ticket, and that info would be sent to the owner of the ticket so they could work on it. Thank you for any help you can provide in doing this! -Rick? -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisherrmann7 at gmail.com Mon Aug 5 20:14:32 2013 From: chrisherrmann7 at gmail.com (Chris Herrmann) Date: Tue, 6 Aug 2013 10:14:32 +1000 Subject: [rt-users] rt-users Digest, Vol 113, Issue 9 In-Reply-To: References: Message-ID: Hi Kevin, Thanks for that, yes I'm a bit blonde undef would not log. I've changed that to 'error' now. OK, there's 3 tickets with that effectiveID; there are 91 transactions that relate to those three ticket IDs. OK i've just tried the cli, and show ticket/106648/history works OK... and the www interface is working OK right now too for that ticket. Hmm... What kind of information do I need to dig out for you? Sorry a bit vague I know, I'm just not sure where to look for the information that's going to give a clue about what broke! so the logs when it does work look the same as when it fails: Aug 6 09:53:02 sirius RT: We found a merged ticket.106966/106648 Aug 6 09:53:02 sirius RT: last message repeated 2 times Aug 6 09:53:02 sirius RT: We found a merged ticket.106969/106648 Aug 6 09:53:02 sirius RT: last message repeated 2 times Aug 6 09:53:02 sirius RT: We found a merged ticket.106966/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106969/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106966/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106969/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106966/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106969/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106966/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106969/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106966/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106969/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106966/106648 Aug 6 09:53:02 sirius RT: We found a merged ticket.106969/106648 Aug 6 09:53:12 sirius RT: We found a merged ticket.106966/106648 Aug 6 09:53:12 sirius RT: last message repeated 35 times Aug 6 09:53:12 sirius RT: We found a merged ticket.106969/106648 Aug 6 09:53:12 sirius RT: last message repeated 44 times Aug 6 09:53:12 sirius RT: We found a merged ticket.106966/106648 Aug 6 09:53:12 sirius RT: We found a merged ticket.106969/106648 Aug 6 09:53:12 sirius RT: last message repeated 11 times Aug 6 09:53:12 sirius RT: We found a merged ticket.106966/106648 If I comment right now I get in /var/log/user.log: Aug 6 09:55:07 sirius RT: About to think about scrips for transaction #971499 Aug 6 09:55:07 sirius RT: About to prepare scrips for transaction #971499 Aug 6 09:55:07 sirius RT: Found 7 scrips for TransactionCreate stage with applicable type(s) Comment Aug 6 09:55:07 sirius RT: About to commit scrips for transaction #971499 Aug 6 09:55:07 sirius RT: Committing scrip #7 on txn #971499 of ticket #106648 Aug 6 09:55:07 sirius RT: Calling SetRecipientDigests for transaction RT::Transaction=HASH(0x7f5fbc933c10), id 971499 Aug 6 09:55:07 sirius RT: Working on mailfield To; recipients are Aug 6 09:55:07 sirius RT: Subject: [myRT #106648] [Comment] B/F - Broken site#012From: "Chris Herrmann via RT" #012Reply-To: helpdesk-comment at sirius#012In-Reply-To: #012References: #012 #012Message-ID: #012Precedence: bulk#012X-RT-Loop-Prevention: myRT#012RT-Ticket: myRT #106648#012Managed-BY: RT 3.8.7 ( http://www.bestpractical.com/rt/)#012RT-Originator: chris at local#012MIME-Version: 1.0#012Content-Transfer-Encoding: 8bit#012Content-Type: text/plain; charset="utf-8"#012X-RT-Original-Encoding: utf-8 Aug 6 09:55:07 sirius RT: Removing deferred recipients from To: line Aug 6 09:55:07 sirius RT: Setting deferred recipients for attribute creation Aug 6 09:55:07 sirius RT: Working on mailfield Cc; recipients are (and more like this - truncating in the interests of brevity - let me know if you want a full dump but it looks like it's just iterating over several scrips determining who it needs to notify based upon the transaction). Aug 6 09:55:08 sirius RT: Committing scrip #26 on txn #971499 of ticket #106648 Aug 6 09:55:08 sirius RT: Committing scrip #29 on txn #971499 of ticket #106648 Aug 6 09:55:08 sirius RT: Found 0 scrips for TransactionBatch stage with applicable type(s) Comment Aug 6 09:55:09 sirius RT: We found a merged ticket.106966/106648 Let me know where else I should go digging, or more general info that I can / should provide you on our setup. Thanks again! Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.elliott at alaska.gov Mon Aug 5 20:37:08 2013 From: kevin.elliott at alaska.gov (Elliott, Kevin C (DOR)) Date: Tue, 06 Aug 2013 00:37:08 +0000 Subject: [rt-users] LDAPImport succeds with user LDAP bind but fails with group Message-ID: <1BCBBD850909C148B389F50256796E350D86F060@SOAJNUEXMB3.soa.alaska.gov> Ah! That's it. I forgot to change and test the filter ($LDAPFilter) used for the User import - not enough coffee this morning, I guess. The example used in the documentation is not applicable to Active Directory. Changing it from '(&(cn = users))' to '(&(objectclass=person)(!(objectclass=computer)))' allowed the User import to run successfully followed by the Group Import. Thanks all! > -----Original Message----- > From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users- > bounces at lists.bestpractical.com] On Behalf Of Nathan Cutler > Sent: Monday, August 05, 2013 10:20 AM > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] LDAPImport succeds with user LDAP bind but fails with > group > > Hi Kevin, > > > I?ve confirmed > > that my filter works with ldapsearch. > > Can you send the working ldapsearch command? Seems suspicious to me > that the initial search for the user comes up empty. From chrisherrmann7 at gmail.com Tue Aug 6 07:04:25 2013 From: chrisherrmann7 at gmail.com (Chris Herrmann) Date: Tue, 6 Aug 2013 21:04:25 +1000 Subject: [rt-users] nginx / varnish / apache with RT? Message-ID: Hi all, i've been playing with an NVA setup for some lamp sites (Joomla) and the scaling is looking pretty amazing... still early days but initial results look very promising. anyway, it got me thinking to whether varnish would work with RT. I'm familiar enough with it to understand the generic accelerator principle ... but I don't see how it would work with generated content - because of RT handles sessions / authentication / etc. Or is it smart enough to know that if I visit the same ticket twice in a row and the ticket hasn't changed, to give me cached content? I've tried searching for "perl varnish" and "request tracker varnish" type pages but have only found one archive thread http://www.gossamer-threads.com/lists/rt/users/72455 which appears inconclusive - does it actually make a noticeable difference or not? Internally we're using a squid proxy, and we have a small number of users, so not sure that the static page elements being handled by varnish or nginx would offer a huge advantage? anyway keen to hear people's experiences or other thoughts on accelerating RT... Cheers, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From rainer at ultra-secure.de Tue Aug 6 08:22:45 2013 From: rainer at ultra-secure.de (Rainer Duffner) Date: Tue, 6 Aug 2013 14:22:45 +0200 Subject: [rt-users] nginx / varnish / apache with RT? In-Reply-To: References: Message-ID: <20130806142245.085e518e@suse3> Am Tue, 6 Aug 2013 21:04:25 +1000 schrieb Chris Herrmann : > Hi all, > > i've been playing with an NVA setup for some lamp sites (Joomla) and > the scaling is looking pretty amazing... still early days but initial > results look very promising. > > anyway, it got me thinking to whether varnish would work with RT. I'm > familiar enough with it to understand the generic accelerator > principle ... but I don't see how it would work with generated > content - because of RT handles sessions / authentication / etc. Or > is it smart enough to know that if I visit the same ticket twice in a > row and the ticket hasn't changed, to give me cached content? > > I've tried searching for "perl varnish" and "request tracker varnish" > type pages but have only found one archive thread > http://www.gossamer-threads.com/lists/rt/users/72455 which appears > inconclusive - does it actually make a noticeable difference or not? > Internally we're using a squid proxy, and we have a small number of > users, so not sure that the static page elements being handled by > varnish or nginx would offer a huge advantage? anyway keen to hear > people's experiences or other thoughts on accelerating RT... I have no experience running RT with NGNIX (only installed it as proof-of-concept once), but from what I can remember, it's serving all the static files directly (if you follow the documentation, you don't even need Apache anymore) and maybe also cached data. I sincerely doubt you'd hit a scalabilty-wall in NGINX before running out of CPU for the spawn-fcgi perl processes. Adding varnish to the mix looks to me like a wasted effort (if you serve RT over SSL, you'd need NGINX in front of it, again, because varnish does not do SSL at all). From ktm at rice.edu Tue Aug 6 08:53:47 2013 From: ktm at rice.edu (ktm at rice.edu) Date: Tue, 6 Aug 2013 07:53:47 -0500 Subject: [rt-users] nginx / varnish / apache with RT? In-Reply-To: References: Message-ID: <20130806125347.GU3001@aart.rice.edu> On Tue, Aug 06, 2013 at 09:04:25PM +1000, Chris Herrmann wrote: > Hi all, > > i've been playing with an NVA setup for some lamp sites (Joomla) and the > scaling is looking pretty amazing... still early days but initial results > look very promising. > > anyway, it got me thinking to whether varnish would work with RT. I'm > familiar enough with it to understand the generic accelerator principle ... > but I don't see how it would work with generated content - because of RT > handles sessions / authentication / etc. Or is it smart enough to know that > if I visit the same ticket twice in a row and the ticket hasn't changed, to > give me cached content? > > I've tried searching for "perl varnish" and "request tracker varnish" type > pages but have only found one archive thread > http://www.gossamer-threads.com/lists/rt/users/72455 which appears > inconclusive - does it actually make a noticeable difference or not? > Internally we're using a squid proxy, and we have a small number of users, > so not sure that the static page elements being handled by varnish or nginx > would offer a huge advantage? anyway keen to hear people's experiences or > other thoughts on accelerating RT... > > Cheers, > > Chris Hi Chris, We have tried nginx/fastCGI both with and without nginx caching the static content. The biggest win was just moving from Apache/mod_perl to the nginx/ fastCGI. It made RT much more scalable and allowed us to manage its resource allocation better. I do not think that varnish would do anything except add complexity to the setup. Regards, Ken From chrilde at gmail.com Tue Aug 6 09:21:12 2013 From: chrilde at gmail.com (Chrilly Cheng) Date: Tue, 6 Aug 2013 21:21:12 +0800 Subject: [rt-users] [4.0.7][Debian]Quick search in homepage doesn't show ticket amount Message-ID: Hi All, I encountered this issue when i was trying to setup RT on a new server. I've created a Lifecycle in RT_SiteConfig.pm file: Set(%Lifecycles, cyclename => { ....... }, ); All queues i created are using this lifecycle, even the default queue. But after i configured and tested ticket lifecycle, i found out Quick search component shows none ticket amount of all those queues. I tried to creat a new queue with approvals lifecycle, the ticket amount of all status do show. Then i tried to clear the mason data, replaced those Quicksearch, QueueSummaryByLifecycle QueueSummaryByStatus files in /usr/share/request-tracker4/html/Elements, it turned out to make no sense at all. I'm so frustrated on this, somebody please help. Any comments or ideas would be great appreciated. Thanks all. -- *Br* *Vodar* *It's not where you start -- it's where you finish that count.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Tue Aug 6 10:57:37 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Tue, 6 Aug 2013 10:57:37 -0400 Subject: [rt-users] [4.0.7][Debian]Quick search in homepage doesn't show ticket amount In-Reply-To: References: Message-ID: <20130806145737.GC43429@jibsheet.com> On Tue, Aug 06, 2013 at 09:21:12PM +0800, Chrilly Cheng wrote: > Hi All, > I encountered this issue when i was trying to setup RT on a new server. > I've created a Lifecycle in RT_SiteConfig.pm file: > Set(%Lifecycles, > cyclename => { > ....... > }, > ); > All queues i created are using this lifecycle, even the default queue. But after i configured > and tested ticket lifecycle, i found out Quick search component shows none ticket amount of > all those queues. > I tried to creat a new queue with approvals lifecycle, the ticket amount of all status do > show. Then i tried to clear the mason data, replaced those Quicksearch, This implies that your custom lifecycle is not correct. However, you didn't show your lifecycle, so that's just a guess. -kevin > QueueSummaryByLifecycle QueueSummaryByStatus files in > /usr/share/request-tracker4/html/Elements, it turned out to make no sense at all. > I'm so frustrated on this, somebody please help. Any comments or ideas would be great > appreciated. Thanks all. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From vadud3 at gmail.com Tue Aug 6 12:15:38 2013 From: vadud3 at gmail.com (Asif Iqbal) Date: Tue, 6 Aug 2013 12:15:38 -0400 Subject: [rt-users] nginx / varnish / apache with RT? In-Reply-To: <20130806125347.GU3001@aart.rice.edu> References: <20130806125347.GU3001@aart.rice.edu> Message-ID: On Tue, Aug 6, 2013 at 8:53 AM, ktm at rice.edu wrote: > On Tue, Aug 06, 2013 at 09:04:25PM +1000, Chris Herrmann wrote: > > Hi all, > > > > i've been playing with an NVA setup for some lamp sites (Joomla) and the > > scaling is looking pretty amazing... still early days but initial results > > look very promising. > > > > anyway, it got me thinking to whether varnish would work with RT. I'm > > familiar enough with it to understand the generic accelerator principle > ... > > but I don't see how it would work with generated content - because of RT > > handles sessions / authentication / etc. Or is it smart enough to know > that > > if I visit the same ticket twice in a row and the ticket hasn't changed, > to > > give me cached content? > > > > I've tried searching for "perl varnish" and "request tracker varnish" > type > > pages but have only found one archive thread > > http://www.gossamer-threads.com/lists/rt/users/72455 which appears > > inconclusive - does it actually make a noticeable difference or not? > > Internally we're using a squid proxy, and we have a small number of > users, > > so not sure that the static page elements being handled by varnish or > nginx > > would offer a huge advantage? anyway keen to hear people's experiences or > > other thoughts on accelerating RT... > > > > Cheers, > > > > Chris > > Hi Chris, > > We have tried nginx/fastCGI both with and without nginx caching the static > content. The biggest win was just moving from Apache/mod_perl to the nginx/ > fastCGI. It made RT much more scalable and allowed us to manage its > resource > allocation better. I do not think that varnish would do anything except add > complexity to the setup. > care to share your nginx/fascgi config ? I am seeing one in the http://bestpractical.com/docs/rt/latest/web_deployment.html#nginx as a start. > Regards, > Ken > -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From smackillip at idanalytics.com Tue Aug 6 12:17:54 2013 From: smackillip at idanalytics.com (MacKillip, Scott) Date: Tue, 6 Aug 2013 16:17:54 +0000 Subject: [rt-users] public dashboards in RT 4.0.10 Message-ID: <7984DE7547E8204A8A3629BDEF565DD4128F09AE@IDA025.idanalytics.net> Hello, I am trying to add new dashboards to our existing RT installation (rt version 4.0.10, using MySQL). I can create the dashboard, and am able to subscribe to it, however the end users (who really need this) are not able to find and thus subscribe to the new dashboard. Additionally, I've not been able to successfully create a dashboard that gets added to the "Home" pull down menu. How is this accomplished? Once the dashboard is created, do I need to provide it group rights? I have tried creating the dashboard as my regular user and also as my administrator account and have tried to create a dashboard using the provided "root" account. I am obviously missing something, just not sure what! Are there any administrative tools that would allow me to find out what accounts are subscribed to what dashboards? I've done a google search on dashboards in RT, what I've discovered is this (please correct me if anything is incorrect!): 1. If you create the dashboard as root user it should have the correct permissions to be viewed by all. 2. Need to subscribe to the dashboard as a logged in user (that is, I can't log in as me and add a dashboard to someone else's RT account. I can subscribe someone else's email account to get the dashboard, however that would then need to be managed by me in my account on RT) Pointers, input, advice are all welcome on this issue from me - I am continuing to poke around to see what I can find, however thought it best to turn to the guru's after spending most of one day on this. I appreciate your time! Regards, Scott MacKillip Configuration Manager ID Analytics, Inc. Office: 858.312.6393 Fax: 858.451.9051 www.idanalytics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From landonstewart at gmail.com Tue Aug 6 15:37:57 2013 From: landonstewart at gmail.com (Landon) Date: Tue, 6 Aug 2013 12:37:57 -0700 Subject: [rt-users] Using RTIR - How to send notices to clients who do not respond to Investigations In-Reply-To: <20130801013718.GJ22003@jibsheet.com> References: <20130801013718.GJ22003@jibsheet.com> Message-ID: On 31 July 2013 18:37, Kevin Falcone wrote: > I've generally just used RT::Action::Notify and --action-arg AdminCc to > notify the AdminCcs (or other arguments as needed). For Notify, you > must use --transaction first or --transaction last and keep in mind > that Notify.pm obeys the NotifyActor note. RecordCorrespondence might > work fine, I've just never used it. Using SendEmail directly is > almost never what you want. > > Keep in mind however that any code that records a transaction on a > ticket (so RecordCorrespondence, which records a transaction by > calling the Correspond method) is going to update LastUpdated on the > ticket. You're updating the ticket, so LastUpdated moves. > > Sending mail without that is likely to be *very* difficult. You > likely actually want a Condition module that checks for a status > change or checks for the first notification to do your calculations, > or to record something in a custom field for easier querying. > > I think I've got the Condition module worked out. Using two custom fields that update on correspondence (if we update it sets the StaffUpdate to Y and increments a counter). If the customer updates it sets StaffUpdate to N and resets the counter. This in conjunction with the LastUpdated and other fields seems very useful for the condition checking. I've attempted to use RT::Action::Notify briefly and then realized I don't know how to use it because it looks like it calls functions in RT::Action::SendEmail and tries to parse a template but I don't know how to tell it what template to use. When I run it with rt-crontool it basically chokes on the Parse part of RT::Action::SendEmail. Do you know of any functioning examples using Notify and SendEmail? I've been googling but this seems to be a bit of a gray area apparently. I see posts about people asking but no examples of it working. Thanks! -- Landon Stewart -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrilde at gmail.com Wed Aug 7 01:20:35 2013 From: chrilde at gmail.com (Chrilly Cheng) Date: Wed, 7 Aug 2013 13:20:35 +0800 Subject: [rt-users] [4.0.7][Debian]Quick search in homepage doesn't show ticket amount In-Reply-To: <20130806145737.GC43429@jibsheet.com> References: <20130806145737.GC43429@jibsheet.com> Message-ID: Hi Kevin, Thanks for your reply. I've test my custom lifecycle in RT web ui, it works fine. For your concern, i paste my lifecycle code at below, please help to check it, thanks a lot! File location: /etc/request-tracker4/RT_SiteConfig.pm Set(%Lifecycles, # modify the default lifecycle crmcase => { # All the appropriate ticket statuses initial => [ 'NeedAction' ], active => [ 'InProgress','WaitingforCustomer', 'WaitingforVendor', 'WaitingforLaunch', 'Monitoring' ], inactive => [ 'Closed','Rejected' ], # Default ticket statuses for certain actions defaults => { on_create => 'NeedAction', }, # Status change restrictions transitions => { 'NeedAction' => [qw(InProgress Rejected)], 'InProgress' => [qw(WaitingforCustomer WaitingforVendor WaitingforLaunch NeedAction Monitoring Rejected Closed)], 'WaitingforCustomer' => [qw(InProgress Rejected)], 'WaitingforVendor' => [qw(InProgress Rejected)], 'WaitingforLaunch' => [qw(InProgress Rejected)], 'Monitoring' => [qw(InProgress Closed)], 'Closed' => [qw(NeedAction)], 'Rejected' => [qw(NeedAction)], }, # Rights for different actions rights => { # These rights are in the default lifecycle '* -> Monitoring' => 'Monitoring Case', 'Closed,Rejected -> *' => 'Reopen Case', '* -> Rejected' => 'Reject Case', }, # Actions for the web UI actions => [ 'NeedAction -> InProgess' => { label => 'Accept Case', update => 'Comment', }, 'InProgress -> WaitingforCustomer' => { label => 'Waiting for Customer', update => 'Comment', }, 'InProgress -> WaitingforVendor' => { label => 'Waiting for Vendor', update => 'Comment', }, 'InProgress -> WaitingforLaunch' => { label => 'Waiting for Launch', update => 'Comment', }, 'InProgress -> Monitoring' => { label => 'Start Monitoring', update => 'Comment', }, 'WaitingforCustomer -> InProgress' => { label => 'Receive from Customer', update => 'Comment', }, 'WaitingforVendor -> InProgress' => { label => 'Receive from Vendor', update => 'Comment', }, 'WaitingforLaunch -> InProgress' => { label => 'Ready for Launch', update => 'Comment', }, 'InProgress -> NeedAction' => { label => 'Reassign Case', update => 'Comment', }, 'Monitoring -> Closed' => { label => 'Close Case', update => 'Comment', }, 'Closed -> NeedAction' => { label => 'Reopen Case', update => 'Comment', }, '* -> Rejected' => { label => 'Reject', update => 'Comment', }, 'Rejected -> NeedAction' => { label => 'NeedAction', update => 'Comment', }, ], }, # Status mapping different different lifecycles ); Any comments of this? On Tue, Aug 6, 2013 at 10:57 PM, Kevin Falcone wrote: > On Tue, Aug 06, 2013 at 09:21:12PM +0800, Chrilly Cheng wrote: > > Hi All, > > I encountered this issue when i was trying to setup RT on a new > server. > > I've created a Lifecycle in RT_SiteConfig.pm file: > > Set(%Lifecycles, > > cyclename => { > > ....... > > }, > > ); > > All queues i created are using this lifecycle, even the default > queue. But after i configured > > and tested ticket lifecycle, i found out Quick search component shows > none ticket amount of > > all those queues. > > I tried to creat a new queue with approvals lifecycle, the ticket > amount of all status do > > show. Then i tried to clear the mason data, replaced those > Quicksearch, > > This implies that your custom lifecycle is not correct. > However, you didn't show your lifecycle, so that's just a guess. > > -kevin > > > QueueSummaryByLifecycle QueueSummaryByStatus files in > > /usr/share/request-tracker4/html/Elements, it turned out to make no > sense at all. > > I'm so frustrated on this, somebody please help. Any comments or > ideas would be great > > appreciated. Thanks all. > -- *Br* *Vodar* *It's not where you start -- it's where you finish that count.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Wed Aug 7 10:45:37 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Wed, 7 Aug 2013 10:45:37 -0400 Subject: [rt-users] Using RTIR - How to send notices to clients who do not respond to Investigations In-Reply-To: References: <20130801013718.GJ22003@jibsheet.com> Message-ID: <20130807144537.GA2007@jibsheet.com> On Tue, Aug 06, 2013 at 12:37:57PM -0700, Landon wrote: > > I think I've got the Condition module worked out. Using two custom fields that update on > correspondence (if we update it sets the StaffUpdate to Y and increments a counter). If the > customer updates it sets StaffUpdate to N and resets the counter. This in conjunction with the > LastUpdated and other fields seems very useful for the condition checking. Good > I've attempted to use RT::Action::Notify briefly and then realized I don't know how to use it > because it looks like it calls functions in RT::Action::SendEmail and tries to parse a > template but I don't know how to tell it what template to use. When I run it with rt-crontool > it basically chokes on the Parse part of RT::Action::SendEmail. Looking in the documentation for rt-crontool http://bestpractical.com/docs/rt/latest/rt-crontool.html#template should make clear how to use a template > Do you know of any functioning examples using Notify and SendEmail? > I've been googling but this seems to be a bit of a gray area > apparently. I see posts about people asking but no examples of it It's a grey area because you don't want to use SendEmail directly, as I believe I said in my previous email. Either use Notify if you just want to record an Outgoing Email transaction or use RecordCorrespondence if you want a real reply and email. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Wed Aug 7 10:48:48 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Wed, 7 Aug 2013 10:48:48 -0400 Subject: [rt-users] public dashboards in RT 4.0.10 In-Reply-To: <7984DE7547E8204A8A3629BDEF565DD4128F09AE@IDA025.idanalytics.net> References: <7984DE7547E8204A8A3629BDEF565DD4128F09AE@IDA025.idanalytics.net> Message-ID: <20130807144848.GB2007@jibsheet.com> On Tue, Aug 06, 2013 at 04:17:54PM +0000, MacKillip, Scott wrote: > I can create the dashboard, and am able to subscribe to it, however the end users (who really > need this) are not able to find and thus subscribe to the new dashboard. Additionally, I've > not been able to successfully create a dashboard that gets added to the "Home" pull down menu. > How is this accomplished? Once the dashboard is created, do I need to provide it group > rights? I have tried creating the dashboard as my regular user and also as my administrator > account and have tried to create a dashboard using the provided "root" account. I am obviously > missing something, just not sure what! What kind of dashboards are you creating: My dashboards or a specific group dashboards? What kind of users are you trying to give access to the dashboards, Privileged users or Unprivileged users (users who use SelfService). The Home pulldown menu is calculated as the first 7 dashboards you have permission to see (this gets better in 4.2). > Are there any administrative tools that would allow me to find out what accounts are > subscribed to what dashboards? Unfortunately no. > > 1. If you create the dashboard as root user it should have the correct permissions to be > viewed by all. This is incorrect. If you don't set up proper permissions, creating it as user won't help. > 2. Need to subscribe to the dashboard as a logged in user (that is, I can't log in as me > and add a dashboard to someone else's RT account. I can subscribe someone else's email account > to get the dashboard, however that would then need to be managed by me in my account on RT) Subscriptions are managed by the logged in user. If you sort your permissions out, you'll be able to grant users access without doing anything else. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Wed Aug 7 13:55:03 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Wed, 7 Aug 2013 13:55:03 -0400 Subject: [rt-users] [4.0.7][Debian]Quick search in homepage doesn't show ticket amount In-Reply-To: References: <20130806145737.GC43429@jibsheet.com> Message-ID: <20130807175503.GC2007@jibsheet.com> On Wed, Aug 07, 2013 at 01:20:35PM +0800, Chrilly Cheng wrote: > Thanks for your reply. I've test my custom lifecycle in RT web ui, it works fine. > For your concern, i paste my lifecycle code at below, please help to check it, thanks a lot! Thanks for sending along the LifeCycle config. It points out a regression introduced in 4.0.13. We've merged a fix for it and you can grab the commit from here and apply it: details https://github.com/bestpractical/rt/commit/5a5579867ae459ce3c55571450a501220ba9b3a8 You can wget https://github.com/bestpractical/rt/commit/5a5579867ae459ce3c55571450a501220ba9b3a8.patch cd /opt/rt4 patch -p1 < 5a5579867ae459ce3c55571450a501220ba9b3a8.patch when 4.0.18 ships, it'll have a fix for it. Also, you should fix the warnings that RT logs when starting up about errors in your lifecycle. [warning]: Nonexistant status closed,rejected in right transition in crmcase lifecycle [warning]: Nonexistant status inprogess in action in crmcase lifecycle -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From landonstewart at gmail.com Wed Aug 7 16:55:51 2013 From: landonstewart at gmail.com (Landon) Date: Wed, 7 Aug 2013 13:55:51 -0700 Subject: [rt-users] Using RTIR - How to send notices to clients who do not respond to Investigations In-Reply-To: <20130807144537.GA2007@jibsheet.com> References: <20130801013718.GJ22003@jibsheet.com> <20130807144537.GA2007@jibsheet.com> Message-ID: On 7 August 2013 07:45, Kevin Falcone wrote: > It's a grey area because you don't want to use SendEmail directly, as > I believe I said in my previous email. > > Either use Notify if you just want to record an Outgoing Email > transaction or use RecordCorrespondence if you want a real reply and > email. > LOL this is not nearly as complicated as I thought it was. Since I didn't use the --template parameter on rt-crontool it gave me a warning about SendEmail not being able to parse a template. That's what I had difficulty with. I wasn't aware of the --template parameter and that made all the difference. Works like a charm now. Basically: /opt/rt4/bin/rt-crontool --search RT::Search::FromSQL --search-arg '' --action RT::Action::Notify --action-arg Requestor --template "No Update Warning" --transaction last Thanks again Kevin for clarifying the use of RT::Action::Notify and how it relates to RT::Action::SendEmail. It works like a charm. -- Landon Stewart -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrilde at gmail.com Thu Aug 8 01:56:09 2013 From: chrilde at gmail.com (Chrilly Cheng) Date: Thu, 8 Aug 2013 13:56:09 +0800 Subject: [rt-users] [4.0.7][Debian]Quick search in homepage doesn't show ticket amount In-Reply-To: <20130807175503.GC2007@jibsheet.com> References: <20130806145737.GC43429@jibsheet.com> <20130807175503.GC2007@jibsheet.com> Message-ID: Thanks a lot, Kevin. This issue is fixed according to your solution. And I've noticed that warning info and fixed it also. Sincere thanks for your help. Br Vodar On Thu, Aug 8, 2013 at 1:55 AM, Kevin Falcone wrote: > On Wed, Aug 07, 2013 at 01:20:35PM +0800, Chrilly Cheng wrote: > > Thanks for your reply. I've test my custom lifecycle in RT web ui, it > works fine. > > For your concern, i paste my lifecycle code at below, please help to > check it, thanks a lot! > > Thanks for sending along the LifeCycle config. It points out a > regression introduced in 4.0.13. We've merged a fix for it and you > can grab the commit from here and apply it: > > details > > https://github.com/bestpractical/rt/commit/5a5579867ae459ce3c55571450a501220ba9b3a8 > > You can > wget > > https://github.com/bestpractical/rt/commit/5a5579867ae459ce3c55571450a501220ba9b3a8.patch > cd /opt/rt4 > patch -p1 < 5a5579867ae459ce3c55571450a501220ba9b3a8.patch > > when 4.0.18 ships, it'll have a fix for it. > > Also, you should fix the warnings that RT logs when starting up about > errors in your lifecycle. > > [warning]: Nonexistant status closed,rejected in right transition in > crmcase lifecycle > [warning]: Nonexistant status inprogess in action in crmcase lifecycle > > -kevin > -- *Br* *Vodar* *It's not where you start -- it's where you finish that count.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrilde at gmail.com Thu Aug 8 03:26:13 2013 From: chrilde at gmail.com (Chrilly Cheng) Date: Thu, 8 Aug 2013 15:26:13 +0800 Subject: [rt-users] error when replace bpslogo.png file Message-ID: Hi All, I've got an error when I tried to replace the default bpslogo.png file with a new one of the same name in RT(/usr/share/request-tracker4/html/NoAuth/images). The error log shows as below: [error]: '<&' without matching '&>' at /usr/share/request-tracker4/html/NoAuth/images/bpslogo.png line 32 (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209) On line 209 of Handler.pm file, it is: sub HTML::Mason::Exception::as_rt_error { my ($self) = @_; $RT::Logger->error( $self->full_message ); #line 209 return "An internal RT error has occurred. Your administrator can find more details in RT's log files."; } I checked the Hander.pm file but cant figure out anything. Please help. BTW, my RT version is 4.0.7 -- *Br* *Vodar* *It's not where you start -- it's where you finish that count.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From jerrinrulz at gmail.com Thu Aug 8 06:38:39 2013 From: jerrinrulz at gmail.com (jerrin jose) Date: Thu, 8 Aug 2013 03:38:39 -0700 (PDT) Subject: [rt-users] Need to remove a certain watcher from current transaction in RT Message-ID: <1375958319437-54957.post@n7.nabble.com> Hi I am facing a peculiar problem. I want to remove a certain watcher whenever users reply through mail. So for eg if I want to remove xyz at abc.com from the watcher list for the current transcation only, what code to write? I am not that familiar with programming and hope you guys will help.. Also please let me know what all to input in the foll sections: Custom condition Custom action preparation code Custom action cleanup code Thanks a ton! -- View this message in context: http://requesttracker.8502.n7.nabble.com/Need-to-remove-a-certain-watcher-from-current-transaction-in-RT-tp54957.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From falcone at bestpractical.com Thu Aug 8 10:34:31 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 8 Aug 2013 10:34:31 -0400 Subject: [rt-users] error when replace bpslogo.png file In-Reply-To: References: Message-ID: <20130808143431.GD2007@jibsheet.com> On Thu, Aug 08, 2013 at 03:26:13PM +0800, Chrilly Cheng wrote: > Hi All, > I've got an error when I tried to replace the default bpslogo.png file with a new one of the > same name in RT(/usr/share/request-tracker4/html/NoAuth/images). The error log shows as below: Instead of replacing our logo (which goes with our copyright) why not use the Theme Editor we provide to add your own logo to the upper righthand corner? -kevin > [error]: '<&' without matching '&>' at > /usr/share/request-tracker4/html/NoAuth/images/bpslogo.png line 32 > (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209) > On line 209 of Handler.pm file, it is: > sub HTML::Mason::Exception::as_rt_error { > my ($self) = @_; > $RT::Logger->error( $self->full_message ); #line 209 > return "An internal RT error has occurred. Your administrator can find more details in RT's > log files."; > } > I checked the Hander.pm file but cant figure out anything. Please help. > BTW, my RT version is 4.0.7 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From kkaylor at ivytech.edu Thu Aug 8 11:18:32 2013 From: kkaylor at ivytech.edu (Kenny W Kaylor) Date: Thu, 8 Aug 2013 11:18:32 -0400 Subject: [rt-users] PowerShell REST Interface In-Reply-To: <45F7FCF45050CB4E8B265F0E58DADD3412764EEAD0@MBX4.ivytech.local> References: <45F7FCF45050CB4E8B265F0E58DADD3412764EEAD0@MBX4.ivytech.local> Message-ID: <45F7FCF45050CB4E8B265F0E58DADD3412764EEAD1@MBX4.ivytech.local> I was looking into the capabilities of using PowerShell with RT and came across some documentation with examples of how to accomplish this, http://requesttracker.wikia.com/wiki/REST. I attempted the example in the PowerShell section at the bottom but I can't seem to get anywhere with it. It just returns that I need to provide credentials even though I've specified them per the example in the documentation. This is what I get. $rt.Content RT/4.0.11 401 Credentials required I've looked through the searchable archives, google, RT documentation and just not seeing much else about this. Has anyone accomplished this before? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennis.comeaux at gmail.com Thu Aug 8 12:43:47 2013 From: dennis.comeaux at gmail.com (Dennis Comeaux) Date: Thu, 8 Aug 2013 11:43:47 -0500 Subject: [rt-users] Lost Root Password Message-ID: Another one of these threads. * Root password for Linux known * RT 3.8.4 * http://requesttracker.wikia.com/wiki/RecoverRootPassword didn't work * we have httpd restrictions on the website taht require login that authenticates against an ldap server * other users can login... but we can't get in as root.... and root doesn't seem to have an account on the ldap server Anyone have ideas? It looks like RT takes the userid and auth from ldap as well. Can I just make a different account admin level? I need to just move some users around from one queue to another. I know its the ldap auth. -- "il n'y a pas de libert? s'il y a d?pendance" --Theobalt -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at tracker-software.com Thu Aug 8 13:41:52 2013 From: paul at tracker-software.com (Paul O'Rorke) Date: Thu, 08 Aug 2013 10:41:52 -0700 Subject: [rt-users] Migration Prep In-Reply-To: <51FBEB0E.6050404@bestpractical.com> References: <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> <20130802170423.GL2203@jibsheet.com> <51FBEB0E.6050404@bestpractical.com> Message-ID: <5203D860.5000504@tracker-software.com> Just a heads up that running the make upgrade-database on an upgrade from 3.8.4 to 4.0.17 worked flawlessly once I successfully restored the DB from mysqldump. Thanks for the help and more importantly thanks for fixing that script. :-) *Paul O?Rorke* Tracker Software Products paul at tracker-software.com On 8/2/2013 10:23 AM, Thomas Sibley wrote: > On 08/02/2013 10:04 AM, Kevin Falcone wrote: >> On Fri, Aug 02, 2013 at 12:49:47PM -0400, Asif Iqbal wrote: >>> Please show a log of your make upgrade-database step >>> >>> * 3.9.8 >>> * 4.0.1 >> That's definitely skipping steps. >> >> It should read: >> * 3.9.8 >> * 4.0.0rc2 >> * 4.0.0rc4 >> * 4.0.0rc7 >> * 4.0.1 > Paul and Asif, you've helped uncover a regression in RT's upgrade logic > beginning in 4.0.14. It only affects folks who are upgrading from an RT > 3.8.x (or older) install to 4.0.14 or higher. If you're upgrading from > 4.0.0 or higher, you're unaffected. > > 4.0.17 will be out shortly to correct this regression. Thanks for your > time spent debugging on the list. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vadud3 at gmail.com Thu Aug 8 15:28:54 2013 From: vadud3 at gmail.com (Asif Iqbal) Date: Thu, 8 Aug 2013 15:28:54 -0400 Subject: [rt-users] nginx / varnish / apache with RT? In-Reply-To: References: <20130806125347.GU3001@aart.rice.edu> Message-ID: On Tue, Aug 6, 2013 at 12:15 PM, Asif Iqbal wrote: > care to share your nginx/fascgi config ? I am seeing one in the > http://bestpractical.com/docs/rt/latest/web_deployment.html#nginx > as a start. > I used that from doc with an exception of adding some ssl options and adding fastcgi_param HTTPS on; It works pretty well. And then I found Ruslan has a cool nginx extension in github. I tried that and it works too except I do not see an option to run in ssl mode. -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbaker at copesan.com Thu Aug 8 17:12:39 2013 From: bbaker at copesan.com (Bryon Baker) Date: Thu, 8 Aug 2013 21:12:39 +0000 Subject: [rt-users] Searching for a string Message-ID: <276f28db77824f58b15b4d6d6d6136fc@BLUPR05MB103.namprd05.prod.outlook.com> I am searching the content of an email for a string using. m/'Building: Walgreen Drug Store #\d+/ Does not find text. But index($t_subject, 'Building: Walgreen Drug Store #'); Does find text. I capture the content from the RT log file and found that there is double quotes in the texted. Is this why it won't work? Is this the expected results? If this is the expected result how would I search the text using index for the CRLF character? Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From frontcam at me.com Thu Aug 8 17:41:52 2013 From: frontcam at me.com (window camera) Date: Thu, 08 Aug 2013 21:41:52 +0000 (GMT) Subject: [rt-users] custom fields on dashboard for new tickets? In-Reply-To: <76609f02-f16a-4d05-938d-2985e5ecc11a@me.com> Message-ID: Thanks all. Worked like a charm! -Rick On Aug 05, 2013, at 04:20 PM, window camera wrote: > Hi All > ? > Could someone point me in the right direction of how we would go about creating bullets and other custom fields for the front dashboard that is used by customer who create tickets? We'd like to create bullets and fields (that are mandatory to choose at least one), for say , etc., to have the user click on when they create a ticket, and that info would be sent to the owner of the ticket so they could work on it. > > Thank you for any help you can provide in doing this! > > -Rick -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirby at umbc.edu Thu Aug 8 18:48:43 2013 From: kirby at umbc.edu (Joe Kirby) Date: Thu, 8 Aug 2013 18:48:43 -0400 Subject: [rt-users] RT-at-a-Glance Saved Searches not showing RT System searches Message-ID: I would like to know how to make RT System Searches show when the Saved Searches is added to RT-at-a-Glance. This is a great feature for My Closed Tickets type reports that are really not needed on the page as its own. At this time it seems like only SuperUser gets these. Is there a setting that would allow this? Thanks in advance Joe From paul at tracker-software.com Fri Aug 9 00:52:25 2013 From: paul at tracker-software.com (Paul O'Rorke) Date: Thu, 08 Aug 2013 21:52:25 -0700 Subject: [rt-users] Migration Prep In-Reply-To: <51FBEB0E.6050404@bestpractical.com> References: <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> <20130802170423.GL2203@jibsheet.com> <51FBEB0E.6050404@bestpractical.com> Message-ID: <52047589.3000100@tracker-software.com> Thanks for all the support. I have a shiny new 4.0.17 ticking away nicely. Very happy. *Paul O?Rorke* Tracker Software Products paul at tracker-software.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrilde at gmail.com Fri Aug 9 01:51:09 2013 From: chrilde at gmail.com (Chrilly Cheng) Date: Fri, 9 Aug 2013 13:51:09 +0800 Subject: [rt-users] error when replace bpslogo.png file In-Reply-To: <20130808143431.GD2007@jibsheet.com> References: <20130808143431.GD2007@jibsheet.com> Message-ID: Sorry, I didn't notice that function when I was searching to replace png file in RT location. Thanks for warning me that. I've changed it back. Now I can set my logo from Tools->Configuration->Tools->Theme, thanks again for your help. On Thu, Aug 8, 2013 at 10:34 PM, Kevin Falcone wrote: > On Thu, Aug 08, 2013 at 03:26:13PM +0800, Chrilly Cheng wrote: > > Hi All, > > I've got an error when I tried to replace the default bpslogo.png > file with a new one of the > > same name in RT(/usr/share/request-tracker4/html/NoAuth/images). The > error log shows as below: > > Instead of replacing our logo (which goes with our copyright) why not > use the Theme Editor we provide to add your own logo to the upper > righthand corner? > > -kevin > > > [error]: '<&' without matching '&>' at > > /usr/share/request-tracker4/html/NoAuth/images/bpslogo.png line 32 > > (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209) > > On line 209 of Handler.pm file, it is: > > sub HTML::Mason::Exception::as_rt_error { > > my ($self) = @_; > > $RT::Logger->error( $self->full_message ); #line 209 > > return "An internal RT error has occurred. Your administrator can > find more details in RT's > > log files."; > > } > > I checked the Hander.pm file but cant figure out anything. Please > help. > > BTW, my RT version is 4.0.7 > -- *Br* *Vodar* *It's not where you start -- it's where you finish that count.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at tracker-software.com Fri Aug 9 03:54:23 2013 From: paul at tracker-software.com (Paul O'Rorke) Date: Fri, 09 Aug 2013 00:54:23 -0700 Subject: [rt-users] Migration Prep In-Reply-To: <52047589.3000100@tracker-software.com> References: <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> <20130802170423.GL2203@jibsheet.com> <51FBEB0E.6050404@bestpractical.com> <52047589.3000100@tracker-software.com> Message-ID: <5204A02F.70902@tracker-software.com> OK - a little premature. After running for a few hours I rebooted my new RT and get a database connect fail. For some reason it's not trying to use a password in DBI connect: Aug 9 00:33:23 rt4 RT: DBI connect('dbname=rtdb;host=localhost','rtuser',...) failed: Access denied for user 'rtuser'@'localhost' (using password: NO) at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. (/usr/local/share/perl/5.14.2/Carp.pm:102) The database name, user and password are all correct in RT_SiteConfig.pm and I can connect using those credentials from a shell on that box and can access the right database. Any suggestions why I'm seeing (using password: NO) in my logs? I get something similar at startup/shutdown. regards *Paul O?Rorke* Tracker Software Products paul at tracker-software.com On 8/8/2013 9:52 PM, Paul O'Rorke wrote: > Thanks for all the support. I have a shiny new 4.0.17 ticking away > nicely. Very happy. > > *Paul O?Rorke* > Tracker Software Products > paul at tracker-software.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From presnypreklad at gmail.com Fri Aug 9 09:27:34 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Fri, 9 Aug 2013 15:27:34 +0200 Subject: [rt-users] Searching for a string In-Reply-To: <276f28db77824f58b15b4d6d6d6136fc@BLUPR05MB103.namprd05.prod.outlook.com> References: <276f28db77824f58b15b4d6d6d6136fc@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: > I am searching the content of an email for a string using. > > m/'Building: Walgreen Drug Store #\d+/ Does not find text. > > But > > index($t_subject, 'Building: Walgreen Drug Store #'); Does find text. A few (hopefully helpful) questions: 1. Why do have a single-quote character before the word Building in the first example, but not in the second? 2. Can you send an example string that you searching over? 3. Better yet, can you send a snippet of your code? And a note: if you are trying to capture text, you need parentheses around the text you intend to capture. Something like this: #!/usr/bin/perl use strict; use warnings; my $str="And suddenly, there were Building: Walgreen Drug Store #235232343434324235521 flies in the tepid air"; my ($substr) = ($str =~ m/(Building: Walgreen Drug Store #\d+)/); print $substr, "\n"; Also, you don't mention whether this string occurs only in the email headers, or also in the body? If in the body, will you have to deal with the possibility of a line break occuring inside the string? Nathan From bbaker at copesan.com Fri Aug 9 12:15:01 2013 From: bbaker at copesan.com (Bryon Baker) Date: Fri, 9 Aug 2013 16:15:01 +0000 Subject: [rt-users] Searching for a string In-Reply-To: References: <276f28db77824f58b15b4d6d6d6136fc@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: <91b5077ee88646afb5395cbba239d859@BLUPR05MB103.namprd05.prod.outlook.com> The single quote must have been a typo In the email. I switch the code to use regex for the search see results below. Using index still works just need to change brain thought to get it to work similar to regex. I still think the issue is the double quotes in the content text. I have done some other test using the Padre ide if I take out the double quotes the regex search works. Here is the codes being used. my $t_subject = $self->TransactionObj->ContentObj->Content ; my $match = "Building: Walgreen Drug Store"; if ( $t_subject !~ /$match/i) { $RT::Logger->debug("Found Match\n"); return 0; } else { $RT::Logger->debug("No Match Found Match string: $match content: $t_subject\n"); return 1; } Here is the log entry when the search fails and the content is in the log as well. Thanks for the help [Fri Aug 9 16:08:02 2013] [debug]: No Match Found Match string: Building: Walgreen Drug Store content: Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" From: Walgreens Facilities Maint Svc Ctr [mailto:walgreenshelp at cbre.com] Sent: Thursday, July 18, 2013 9:26 AM To: Client Service; Kimberly Jefferson Subject: CSR- Dispatch of Work Order C2239243 The Walgreens Facilities Maintenance Svc Ctr has assigned a work order for service to Copesan Services Inc. The referenced work order number is C2239243 Below are the details: Date Entered: Jul 18 2013 9:22AM CST Priority: P5 - Medium (5 Business Day Response) Target Response: Jul 25 2013 9:22AM CST Target Completion: Jul 25 2013 9:22AM CST Service Location: 5600 W Fullerton, Chicago, IL, 60639-2305, US Cntry, St, City: US, IL, Chicago-North Mkt Building: Walgreen Drug Store #4233 Floor: All: 5600 W Fullerton Area: Walgreen Drug Store #4233 Location within Area: (Not provided by Requestor) Requestor Name: LAURA DWORAKOWSKI Requestor Phone: 773-745-1640 Contact Name: LAURA DWORAKOWSKI Contact Phone: (773) 637-4440 Problem Description: PEST CONTROL - NON EMERGENCY Insect/Rodent/Termite/Animal:>FLIES ARE EVERYWHERE IN THE STORE. Order Status: O - Open Cost of work should not exceed 300.00 USD. If the cost of completing the work will exceed this amount please contact the Walgreens Facilities Maintenance Svc Ctr for approval/authorization before proceeding with the work. If you have any questions about this work order, please contact the Walgreens Facilities Maintenance Svc Ctr at 877-871-3128 Notes to Vendor: * To help ensure timely payment, please use the Vendor Activity Website to complete the order, providing arrival, departure and a description of work performed. Please use the Vendor Activity Website to submit detailed invoice information for billable services. * Vendor shall adhere to all current safety regulations and standard company guidelines. * Vendor shall be licensed, insured and bonded as required by regional/local laws where the work is being performed. * In accordance with the financial terms of the FACILITIES MANAGEMENT OUTSOURCING SERVICES AGREEMENT by and between WALGREEN CO. and CBRE, Effective as of May 13, 2011, CBRE will be paying third party vendors according to Net 35 terms. This is effective upon the assumption of existing or creation of new vendor relationships between CBRE and third party providers of goods and/or services to CBRE or WALGREENS on behalf of CBRE." ((eval 1542):8) [Fri Aug 9 16:08:02 2013] [debug]: Committing scrip #15 on txn #1022 of ticket #96 (/usr/lib/perl5/vendor_perl/5.16.2/RT/Scrips.pm:182) [Fri Aug 9 16:08:02 2013] [error]: Scrip 15 Commit failed: RT::Ticket::Body Unimplemented in RT::Action::UserDefined. ((eval 1549) line 12) Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726? ?? 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Nathan Cutler Sent: Friday, August 09, 2013 8:28 AM To: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Searching for a string > I am searching the content of an email for a string using. > > m/'Building: Walgreen Drug Store #\d+/ Does not find text. > > But > > index($t_subject, 'Building: Walgreen Drug Store #'); Does find text. A few (hopefully helpful) questions: 1. Why do have a single-quote character before the word Building in the first example, but not in the second? 2. Can you send an example string that you searching over? 3. Better yet, can you send a snippet of your code? And a note: if you are trying to capture text, you need parentheses around the text you intend to capture. Something like this: #!/usr/bin/perl use strict; use warnings; my $str="And suddenly, there were Building: Walgreen Drug Store #235232343434324235521 flies in the tepid air"; my ($substr) = ($str =~ m/(Building: Walgreen Drug Store #\d+)/); print $substr, "\n"; Also, you don't mention whether this string occurs only in the email headers, or also in the body? If in the body, will you have to deal with the possibility of a line break occuring inside the string? Nathan From paul at tracker-software.com Fri Aug 9 09:36:49 2013 From: paul at tracker-software.com (Paul O'Rorke) Date: Fri, 09 Aug 2013 06:36:49 -0700 Subject: [rt-users] Migration Prep In-Reply-To: <5204A02F.70902@tracker-software.com> References: <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> <20130802170423.GL2203@jibsheet.com> <51FBEB0E.6050404@bestpractical.com> <52047589.3000100@tracker-software.com> <5204A02F.70902@tracker-software.com> Message-ID: <5204F071.5000507@tracker-software.com> When I look at syslog I see the following during startup: Aug 9 08:28:03 rt4 acpid: starting up with netlink and the input layer Aug 9 08:28:03 rt4 acpid: 1 rule loaded Aug 9 08:28:03 rt4 acpid: waiting for events: event logging is off Aug 9 08:28:04 rt4 RT: DBI connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. (/usr/local/share/perl/5.14.2/Carp.pm:102) Aug 9 08:28:05 rt4 RT: DBI connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. (/usr/local/share/perl/5.14.2/Carp.pm:102) Aug 9 08:28:08 rt4 /usr/sbin/cron[2152]: (CRON) INFO (pidfile fd = 3) Aug 9 08:28:08 rt4 /usr/sbin/cron[2172]: (CRON) STARTUP (fork ok) Aug 9 08:28:08 rt4 /usr/sbin/cron[2172]: (CRON) INFO (Running @reboot jobs) Aug 9 08:28:08 rt4 mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql Aug 9 08:28:08 rt4 mysqld: 130809 8:28:08 [Note] Plugin 'FEDERATED' is disabled. Aug 9 08:28:08 rt4 mysqld: 130809 8:28:08 InnoDB: The InnoDB memory heap is disabled Aug 9 08:28:08 rt4 mysqld: 130809 8:28:08 InnoDB: Mutexes and rw_locks use GCC atomic builtins Aug 9 08:28:08 rt4 mysqld: 130809 8:28:08 InnoDB: Compressed tables use zlib 1.2.7 Aug 9 08:28:08 rt4 mysqld: 130809 8:28:08 InnoDB: Using Linux native AIO Aug 9 08:28:08 rt4 mysqld: 130809 8:28:08 InnoDB: Initializing buffer pool, size = 128.0M Aug 9 08:28:08 rt4 mysqld: 130809 8:28:08 InnoDB: Completed initialization of buffer pool Aug 9 08:28:08 rt4 RT: DBI connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. (/usr/local/share/perl/5.14.2/Carp.pm:102) Aug 9 08:28:08 rt4 mysqld: 130809 8:28:08 InnoDB: highest supported file format is Barracuda. Aug 9 08:28:08 rt4 RT: DBI connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. (/usr/local/share/perl/5.14.2/Carp.pm:102) Aug 9 08:28:09 rt4 mysqld: 130809 8:28:09 InnoDB: Waiting for the background threads to start Aug 9 08:28:10 rt4 mysqld: 130809 8:28:10 InnoDB: 5.5.31 started; log sequence number 2602152497 Aug 9 08:28:10 rt4 mysqld: 130809 8:28:10 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306 Aug 9 08:28:10 rt4 mysqld: 130809 8:28:10 [Note] - '127.0.0.1' resolves to '127.0.0.1'; Aug 9 08:28:10 rt4 mysqld: 130809 8:28:10 [Note] Server socket created on IP: '127.0.0.1'. Aug 9 08:28:10 rt4 mysqld: 130809 8:28:10 [Note] Event Scheduler: Loaded 0 events Aug 9 08:28:10 rt4 mysqld: 130809 8:28:10 [Note] /usr/sbin/mysqld: ready for connections. Aug 9 08:28:10 rt4 mysqld: Version: '5.5.31-0+wheezy1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian) Aug 9 08:28:10 rt4 /etc/mysql/debian-start[2704]: Upgrading MySQL tables if necessary. Aug 9 08:28:10 rt4 /etc/mysql/debian-start[2708]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored It almost looks like RT is trying to connect before MySQL is loaded. Also - I find that the connection intermittently works then fails. One minute I'm looking at my new RT tickets then on a page refresh I am back to the RT setup screen because it thinks there is no database configured. I'm at a loss here and really need to get this new install stable. Any help is appreciated. Paul O'Rorke Tracker Software Products Canada Limited On 08/09/2013 12:54 AM, Paul O'Rorke wrote: > OK - a little premature. > > After running for a few hours I rebooted my new RT and get a database > connect fail. For some reason it's not trying to use a password in > DBI connect: > > Aug 9 00:33:23 rt4 RT: DBI > connect('dbname=rtdb;host=localhost','rtuser',...) failed: Access > denied for user 'rtuser'@'localhost' (using password: NO) at > /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line > 105. (/usr/local/share/perl/5.14.2/Carp.pm:102) > > The database name, user and password are all correct in > RT_SiteConfig.pm and I can connect using those credentials from a > shell on that box and can access the right database. > > Any suggestions why I'm seeing (using password: NO) in my logs? I > get something similar at startup/shutdown. > > regards > > *Paul O?Rorke* > Tracker Software Products > paul at tracker-software.com > > > On 8/8/2013 9:52 PM, Paul O'Rorke wrote: >> Thanks for all the support. I have a shiny new 4.0.17 ticking away >> nicely. Very happy. >> >> *Paul O?Rorke* >> Tracker Software Products >> paul at tracker-software.com >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From presnypreklad at gmail.com Fri Aug 9 12:58:52 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Fri, 9 Aug 2013 18:58:52 +0200 Subject: [rt-users] Searching for a string In-Reply-To: <91b5077ee88646afb5395cbba239d859@BLUPR05MB103.namprd05.prod.outlook.com> References: <276f28db77824f58b15b4d6d6d6136fc@BLUPR05MB103.namprd05.prod.outlook.com> <91b5077ee88646afb5395cbba239d859@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: Hi Bryon: Perl regexes can be a bit tricky. > Here is the codes being used. > > my $t_subject = $self->TransactionObj->ContentObj->Content ; > my $match = "Building: Walgreen Drug Store"; Here I would be to use \s+ after the colon, since there might be multiple spaces or even a tab in the email. Unless you're sure it will always be just a single space. > if ( $t_subject !~ /$match/i) { This says "if $t_subject does NOT match". Don't you want the opposite? I'd suggest you try changing the !~ operator (does NOT match) in this line to =~ (matches). > $RT::Logger->debug("Found Match\n"); > return 0; > } > else { > $RT::Logger->debug("No Match Found Match string: $match content: $t_subject\n"); > return 1; > } Another thing to try is the "s" modifier, which explicitly tells Perl to treat the entire email as a single line. But in my test it works fine without. Hope this helps. Nathan From paul at tracker-software.com Fri Aug 9 13:28:09 2013 From: paul at tracker-software.com (Paul O'Rorke) Date: Fri, 09 Aug 2013 10:28:09 -0700 Subject: [rt-users] Migration Prep In-Reply-To: <520521F3.8030706@tracker-software.com> References: <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> <20130802170423.GL2203@jibsheet.com> <51FBEB0E.6050404@bestpractical.com> <52047589.3000100@tracker-software.com> <5204A02F.70902@tracker-software.com> <5204F071.5000507@tracker-software.com> <520521F3.8030706@tracker-software.com> Message-ID: <520526A9.4040304@tracker-software.com> A little more information. If I run through the setup screens that are presented because RT thinks there is no initialised database I get my new RT with the theme and logo etc but it flips between that and again going to the login screen. Of course this overwrites my RT_SiteConfig.pm but I'm at a loss to understand why this is not persistent. It keeps connecting to MySQL then not. Is there anything else I can provide that would help troubleshoot this? *Paul O?Rorke* Tracker Software Products paul at tracker-software.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbaker at copesan.com Fri Aug 9 13:37:02 2013 From: bbaker at copesan.com (Bryon Baker) Date: Fri, 9 Aug 2013 17:37:02 +0000 Subject: [rt-users] Searching for a string In-Reply-To: References: <276f28db77824f58b15b4d6d6d6136fc@BLUPR05MB103.namprd05.prod.outlook.com> <91b5077ee88646afb5395cbba239d859@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: Here is the code I am using now: my $t_subject = $self->TransactionObj->ContentObj->Content ; if ($t_subject =~ /Building:\s+Walgreen Drug Store/is) { $RT::Logger->debug("Found Match\n"); return 0; } else { $RT::Logger->debug("No Match Found Match content: $t_subject\n"); return 1; } This is working thanks Nathan :) Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726? ?? 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Nathan Cutler Sent: Friday, August 09, 2013 11:59 AM To: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Searching for a string Hi Bryon: Perl regexes can be a bit tricky. > Here is the codes being used. > > my $t_subject = $self->TransactionObj->ContentObj->Content ; my $match > = "Building: Walgreen Drug Store"; Here I would be to use \s+ after the colon, since there might be multiple spaces or even a tab in the email. Unless you're sure it will always be just a single space. > if ( $t_subject !~ /$match/i) { This says "if $t_subject does NOT match". Don't you want the opposite? I'd suggest you try changing the !~ operator (does NOT match) in this line to =~ (matches). > $RT::Logger->debug("Found Match\n"); > return 0; > } > else { > $RT::Logger->debug("No Match Found Match string: $match content: $t_subject\n"); > return 1; > } Another thing to try is the "s" modifier, which explicitly tells Perl to treat the entire email as a single line. But in my test it works fine without. Hope this helps. Nathan From bbaker at copesan.com Fri Aug 9 14:19:16 2013 From: bbaker at copesan.com (Bryon Baker) Date: Fri, 9 Aug 2013 18:19:16 +0000 Subject: [rt-users] Searching for a string In-Reply-To: References: <276f28db77824f58b15b4d6d6d6136fc@BLUPR05MB103.namprd05.prod.outlook.com> <91b5077ee88646afb5395cbba239d859@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: <7fe7c2ffe6154c258667fdd2e83f0cdd@BLUPR05MB103.namprd05.prod.outlook.com> Ok moving on So the "Custom action preparation code" is working I added this to the "Custom action cleanup code:" use strict; use warnings; #### Start Area for Request Tracker ############ my $storenumber = "4223"; my $wonumber = "C2239243"; $RT::Logger->debug("Clean up Found Work Order: $wonumber Store: $storenumber\n"); return 1; and all I get in the log is [Fri Aug 9 18:13:49 2013] [debug]: Found match for Walgreens, C2239243, 4233 ((eval 1635):8) (From the "Custom action preparation code") [Fri Aug 9 18:13:49 2013] [debug]: Skipping Scrip #15 because it didn't Prepare (/usr/lib/perl5/vendor_perl/5.16.2/RT/Scrips.pm:237) Where is the message from the "Custom action cleanup code:"? Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726? ?? 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Nathan Cutler Sent: Friday, August 09, 2013 11:59 AM To: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Searching for a string Hi Bryon: Perl regexes can be a bit tricky. > Here is the codes being used. > > my $t_subject = $self->TransactionObj->ContentObj->Content ; my $match > = "Building: Walgreen Drug Store"; Here I would be to use \s+ after the colon, since there might be multiple spaces or even a tab in the email. Unless you're sure it will always be just a single space. > if ( $t_subject !~ /$match/i) { This says "if $t_subject does NOT match". Don't you want the opposite? I'd suggest you try changing the !~ operator (does NOT match) in this line to =~ (matches). > $RT::Logger->debug("Found Match\n"); > return 0; > } > else { > $RT::Logger->debug("No Match Found Match string: $match content: $t_subject\n"); > return 1; > } Another thing to try is the "s" modifier, which explicitly tells Perl to treat the entire email as a single line. But in my test it works fine without. Hope this helps. Nathan From bbaker at copesan.com Fri Aug 9 15:09:14 2013 From: bbaker at copesan.com (Bryon Baker) Date: Fri, 9 Aug 2013 19:09:14 +0000 Subject: [rt-users] Searching for a string References: <276f28db77824f58b15b4d6d6d6136fc@BLUPR05MB103.namprd05.prod.outlook.com> <91b5077ee88646afb5395cbba239d859@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: Never mind found the issue. Again thanks Nathan for the help on the regex stuff. Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726? ?? 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: Bryon Baker Sent: Friday, August 09, 2013 1:19 PM To: 'Nathan Cutler'; rt-users at lists.bestpractical.com Subject: RE: [rt-users] Searching for a string Ok moving on So the "Custom action preparation code" is working I added this to the "Custom action cleanup code:" use strict; use warnings; #### Start Area for Request Tracker ############ my $storenumber = "4223"; my $wonumber = "C2239243"; $RT::Logger->debug("Clean up Found Work Order: $wonumber Store: $storenumber\n"); return 1; and all I get in the log is [Fri Aug 9 18:13:49 2013] [debug]: Found match for Walgreens, C2239243, 4233 ((eval 1635):8) (From the "Custom action preparation code") [Fri Aug 9 18:13:49 2013] [debug]: Skipping Scrip #15 because it didn't Prepare (/usr/lib/perl5/vendor_perl/5.16.2/RT/Scrips.pm:237) Where is the message from the "Custom action cleanup code:"? Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726? ?? 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Nathan Cutler Sent: Friday, August 09, 2013 11:59 AM To: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Searching for a string Hi Bryon: Perl regexes can be a bit tricky. > Here is the codes being used. > > my $t_subject = $self->TransactionObj->ContentObj->Content ; my $match > = "Building: Walgreen Drug Store"; Here I would be to use \s+ after the colon, since there might be multiple spaces or even a tab in the email. Unless you're sure it will always be just a single space. > if ( $t_subject !~ /$match/i) { This says "if $t_subject does NOT match". Don't you want the opposite? I'd suggest you try changing the !~ operator (does NOT match) in this line to =~ (matches). > $RT::Logger->debug("Found Match\n"); > return 0; > } > else { > $RT::Logger->debug("No Match Found Match string: $match content: $t_subject\n"); > return 1; > } Another thing to try is the "s" modifier, which explicitly tells Perl to treat the entire email as a single line. But in my test it works fine without. Hope this helps. Nathan From trs at bestpractical.com Fri Aug 9 15:45:37 2013 From: trs at bestpractical.com (Thomas Sibley) Date: Fri, 09 Aug 2013 12:45:37 -0700 Subject: [rt-users] Migration Prep In-Reply-To: <5204F071.5000507@tracker-software.com> References: <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> <20130802170423.GL2203@jibsheet.com> <51FBEB0E.6050404@bestpractical.com> <52047589.3000100@tracker-software.com> <5204A02F.70902@tracker-software.com> <5204F071.5000507@tracker-software.com> Message-ID: <520546E1.9090203@bestpractical.com> On 08/09/2013 06:36 AM, Paul O'Rorke wrote: > When I look at syslog I see the following during startup: > > > Aug 9 08:28:04 rt4 RT: DBI > connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't connect > to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) > at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. > (/usr/local/share/perl/5.14.2/Carp.pm:102) > Aug 9 08:28:05 rt4 RT: DBI > connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't connect > to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) > at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. > (/usr/local/share/perl/5.14.2/Carp.pm:102) > Aug 9 08:28:08 rt4 mysqld_safe: Starting mysqld daemon with databases > from /var/lib/mysql Just by looking at the log timestamps, your system is pretty clearly set to start Apache (or whatever is serving RT) before mysql. This isn't RT's fault, but simply the wrong startup ordering for your system. You should change it so Apache/your webserver depends on mysql being started first. How to do so depends on your distribution. From bbaker at copesan.com Fri Aug 9 16:08:02 2013 From: bbaker at copesan.com (Bryon Baker) Date: Fri, 9 Aug 2013 20:08:02 +0000 Subject: [rt-users] Hyperlinks Message-ID: <11ececfef7e1421292d8cde26c54e345@BLUPR05MB103.namprd05.prod.outlook.com> General question Is there a way to preserve the hyperlink in an email? We have emails sent to us that have buttons for accept or reject. The agent or owner of the ticket needs to click the button for the given action. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at tracker-software.com Fri Aug 9 17:18:16 2013 From: paul at tracker-software.com (paul) Date: Fri, 09 Aug 2013 14:18:16 -0700 Subject: [rt-users] Migration Prep Message-ID: Thanks Thomas Setting Apache to start after mysql seems to have done the trick. Sent from my GT-I9305T on the Telstra 4G network -------- Original message -------- From: Thomas Sibley Date: To: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Migration Prep On 08/09/2013 06:36 AM, Paul O'Rorke wrote: > When I look at syslog I see the following during startup: > > > Aug? 9 08:28:04 rt4 RT: DBI > connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't connect > to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) > at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. > (/usr/local/share/perl/5.14.2/Carp.pm:102) > Aug? 9 08:28:05 rt4 RT: DBI > connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't connect > to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) > at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. > (/usr/local/share/perl/5.14.2/Carp.pm:102) > Aug? 9 08:28:08 rt4 mysqld_safe: Starting mysqld daemon with databases > from /var/lib/mysql Just by looking at the log timestamps, your system is pretty clearly set to start Apache (or whatever is serving RT) before mysql.? This isn't RT's fault, but simply the wrong startup ordering for your system.? You should change it so Apache/your webserver depends on mysql being started first.? How to do so depends on your distribution. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbaker at copesan.com Fri Aug 9 17:35:21 2013 From: bbaker at copesan.com (Bryon Baker) Date: Fri, 9 Aug 2013 21:35:21 +0000 Subject: [rt-users] Regex Message-ID: <8b9071bfd7844af1b870a5175987129c@BLUPR05MB103.namprd05.prod.outlook.com> Ok this question is to the regex experts I have this email content and I want returned to me the City. 116 Walker Ave. Berlin Circle Plaza West Berlin, NJ 08091 Store Contact: MICHAEL OCONNOR - SOPASM Phone: (856)719-0335 Fax : (856)719-2216 Thanks in advance for you expert help. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbaker at copesan.com Fri Aug 9 19:05:08 2013 From: bbaker at copesan.com (Bryon Baker) Date: Fri, 9 Aug 2013 23:05:08 +0000 Subject: [rt-users] Regex Message-ID: Update this is what I came up with seems to work Thoughts? Tries to anchor begin of line but found it is white space. /\s{10}([\w{2},]+),\s*(\w{2})\s*(\d{5})/ Ok this question is to the regex experts I have this email content and I want returned to me the City. 116 Walker Ave. Berlin Circle Plaza West Berlin, NJ 08091 Store Contact: MICHAEL OCONNOR - SOPASM Phone: (856)719-0335 Fax : (856)719-2216 Thanks in advance for you expert help. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbaker at copesan.com Fri Aug 9 19:37:59 2013 From: bbaker at copesan.com (Bryon Baker) Date: Fri, 9 Aug 2013 23:37:59 +0000 Subject: [rt-users] Regex Message-ID: Sorry back to the drawing board does not work if the city is two words. Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" From: Bryon Baker Sent: Friday, August 09, 2013 6:05 PM To: 'rt-users at lists.bestpractical.com' Subject: RE: Regex Update this is what I came up with seems to work Thoughts? Tries to anchor begin of line but found it is white space. /\s{10}([\w{2},]+),\s*(\w{2})\s*(\d{5})/ Ok this question is to the regex experts I have this email content and I want returned to me the City. 116 Walker Ave. Berlin Circle Plaza West Berlin, NJ 08091 Store Contact: MICHAEL OCONNOR - SOPASM Phone: (856)719-0335 Fax : (856)719-2216 Thanks in advance for you expert help. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From presnypreklad at gmail.com Sat Aug 10 05:11:56 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Sat, 10 Aug 2013 11:11:56 +0200 Subject: [rt-users] Regex In-Reply-To: References: Message-ID: > Sorry back to the drawing board does not work if the city is two words. Really, I would think that regex questions (especially if there are going to be lots of them) will be considered off-topic here. Have you considered asking your question at stackoverflow.com? (Suggestion: tag your question "perl" and "regex" and specify whether you want your regex to work on just this one string, or in general on a class of strings.) From landonstewart at gmail.com Sat Aug 10 19:34:33 2013 From: landonstewart at gmail.com (Landon) Date: Sat, 10 Aug 2013 16:34:33 -0700 Subject: [rt-users] Searching and comparing two date field values instead of value with supplied valid Message-ID: Hello, Is there any way to search for tickets while comparing two field values? This doesn't work: Queue = 'Incident Reports' AND Created < CF.{SpecialDate} AND Status = 'new' It doesn't like the string "CF.{SpecialDate}" because it's not enclosed in quotations and therefor not a string. Which is what I want to do but cannot I guess. The error displayed on the RT UI is: Wrong query, expecting a VALUE in 'Queue = 'Incident Reports' AND Created < >CF.{SpecialDate}<--here AND Status = 'new'' With normal MySQL queries one can compare two table columns so I'm wondering if there's a way to do this with the SQL syntax that RT uses. -- Landon Stewart -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvdwege at xs4all.nl Sun Aug 11 03:23:32 2013 From: jvdwege at xs4all.nl (Joop) Date: Sun, 11 Aug 2013 09:23:32 +0200 Subject: [rt-users] Searching and comparing two date field values instead of value with supplied valid In-Reply-To: References: Message-ID: <52073BF4.5030200@xs4all.nl> Landon wrote: Sorry for hijacking your question/thread. > > Is there any way to search for tickets while comparing two field values? > > This doesn't work: > Queue = 'Incident Reports' AND Created < CF.{SpecialDate} AND Status = > 'new' > > It doesn't like the string "CF.{SpecialDate}" because it's not > enclosed in quotations and therefor not a string. Which is what I > want to do but cannot I guess. The error displayed on the RT UI is: > > Wrong query, expecting a VALUE in 'Queue = 'Incident Reports' AND > Created < >CF.{SpecialDate}<--here AND Status = 'new'' > > I'm looking at something similar. I would like to check whether the ResolvedDate is past the DueDate but that is also not possible. I seem to remember that this has been asked before but can't seem to find that thread anymore. Probably searching with the wrong keywords so if someone can point me in the right direction, please? Regards, Joop -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott.dalzell at aveva.com Mon Aug 12 06:42:11 2013 From: scott.dalzell at aveva.com (scott.dalzell) Date: Mon, 12 Aug 2013 03:42:11 -0700 (PDT) Subject: [rt-users] Unowned Tickets Table on Homepage not updating correctly Message-ID: <1376304130960-54986.post@n7.nabble.com> Hi i am running an RT system setup so that our support team monitors 5 queues and our multiple resellers also have a queue each to run there support services One of the support users has reported an issue with the "10 newest unowned tickets" table on the homepage not displaying the full list of tickets that they have permissions to see We know that there are 4 unowned tickets in the General queue and the user has full access too and multiple tickets in queues that the user doesnt have access too. On the homepage the "10 newest unowned tickets" table stats there are only 2 unowned tickets in the general queue (i.e 2 tickets are missed),however if i open up the table it will display all 4 unowned ticket they are allowed to see. i have created my own "unowned tickets" search and it suffers from the same bug, However, it has also been noted that this bug only effects the table on the homepage. Tables runs fine in a dashboard. has anyone else experiancd this and if so were they able to resolve it thank you in advanced -- View this message in context: http://requesttracker.8502.n7.nabble.com/Unowned-Tickets-Table-on-Homepage-not-updating-correctly-tp54986.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From robert.wysocki at unity.pl Mon Aug 12 06:50:08 2013 From: robert.wysocki at unity.pl (Robert Wysocki) Date: Mon, 12 Aug 2013 12:50:08 +0200 Subject: [rt-users] Unowned Tickets Table on Homepage not updating correctly In-Reply-To: <1376304130960-54986.post@n7.nabble.com> References: <1376304130960-54986.post@n7.nabble.com> Message-ID: <1376304608.4852.38.camel@s-rwysocki> Dnia 2013-08-12, pon o godzinie 03:42 -0700, scott.dalzell pisze: > Hi > i am running an RT system setup so that our support team monitors 5 queues > and our multiple resellers also have a queue each to run there support > services > > One of the support users has reported an issue with the "10 newest unowned > tickets" table on the homepage not displaying the full list of tickets that > they have permissions to see > > We know that there are 4 unowned tickets in the General queue and the user > has full access too and multiple tickets in queues that the user doesnt have > access too. > > On the homepage the "10 newest unowned tickets" table stats there are only 2 > unowned tickets in the general queue (i.e 2 tickets are missed),however if i > open up the table it will display all 4 unowned ticket they are allowed to > see. > > i have created my own "unowned tickets" search and it suffers from the same > bug, However, it has also been noted that this bug only effects the table on > the homepage. Tables runs fine in a dashboard. > > has anyone else experiancd this and if so were they able to resolve it It's not a bug, it's a feature. Check "Rows per page" setting on "RT at a glace" edit page ( https://your_rt/Prefs/MyRT.html) Regards, -- Robert Wysocki administrator system?w linuksowych administrator baz danych Grupa Unity | ul. Przedmiejska 6-10, 54-201 Wroc?aw ul. Conrada 55B, 31-357 Krak?w | ul. Z?ota 59, 00-120 Warszawa From scott.dalzell at aveva.com Mon Aug 12 07:01:19 2013 From: scott.dalzell at aveva.com (scott.dalzell) Date: Mon, 12 Aug 2013 04:01:19 -0700 (PDT) Subject: [rt-users] Unowned Tickets Table on Homepage not updating correctly In-Reply-To: <1376304608.4852.38.camel@s-rwysocki> References: <1376304130960-54986.post@n7.nabble.com> <1376304608.4852.38.camel@s-rwysocki> Message-ID: <1376305279659-54988.post@n7.nabble.com> Thank you for the quick response The Rows per box was set to 10 so i have increased it to 100 and it revieled the 2 missing tickets. I take it RT counts tickets that the user doesnt have permission to view in this Rows per box count as well ye thank you again -- View this message in context: http://requesttracker.8502.n7.nabble.com/Unowned-Tickets-Table-on-Homepage-not-updating-correctly-tp54986p54988.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From falcone at bestpractical.com Mon Aug 12 10:38:49 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Mon, 12 Aug 2013 10:38:49 -0400 Subject: [rt-users] Searching and comparing two date field values instead of value with supplied valid In-Reply-To: <52073BF4.5030200@xs4all.nl> References: <52073BF4.5030200@xs4all.nl> Message-ID: <20130812143849.GE2007@jibsheet.com> On Sun, Aug 11, 2013 at 09:23:32AM +0200, Joop wrote: > Landon wrote: > > Sorry for hijacking your question/thread. > > Is there any way to search for tickets while comparing two field values? > This doesn't work: > Queue = 'Incident Reports' AND Created < CF.{SpecialDate} AND Status = 'new' > It doesn't like the string "CF.{SpecialDate}" because it's not enclosed in quotations and > therefor not a string. Which is what I want to do but cannot I guess. The error displayed > on the RT UI is: > > Wrong query, expecting a VALUE in 'Queue = 'Incident Reports' AND Created < > >CF.{SpecialDate}<--here AND Status = 'new'' > > I'm looking at something similar. I would like to check whether the ResolvedDate is past the > DueDate but that is also not possible. I seem to remember that this has been asked before but > can't seem to find that thread anymore. Probably searching with the wrong keywords so if > someone can point me in the right direction, please? Unfortunately, RT's TicketSQL cannot compare two fields like that. It's hard to free up the engineering time required to make it go right now. Hopefully at some point it'll be part of a customer requirement and that will speed up implementation. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Mon Aug 12 10:39:49 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Mon, 12 Aug 2013 10:39:49 -0400 Subject: [rt-users] Unowned Tickets Table on Homepage not updating correctly In-Reply-To: <1376305279659-54988.post@n7.nabble.com> References: <1376304130960-54986.post@n7.nabble.com> <1376304608.4852.38.camel@s-rwysocki> <1376305279659-54988.post@n7.nabble.com> Message-ID: <20130812143949.GF2007@jibsheet.com> On Mon, Aug 12, 2013 at 04:01:19AM -0700, scott.dalzell wrote: > Thank you for the quick response > > The Rows per box was set to 10 so i have increased it to 100 and it revieled > the 2 missing tickets. > > I take it RT counts tickets that the user doesnt have permission to view in > this Rows per box count as well ye > > thank you again Even more of a feature, enable this (defaulted on in the branch that will become 4.2) and let us know of any regressions you encounter. http://bestpractical.com/docs/rt/latest/RT_Config.html#UseSQLForACLChecks -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From scott.dalzell at aveva.com Mon Aug 12 11:19:56 2013 From: scott.dalzell at aveva.com (scott.dalzell) Date: Mon, 12 Aug 2013 08:19:56 -0700 (PDT) Subject: [rt-users] Unowned Tickets Table on Homepage not updating correctly In-Reply-To: <20130812143949.GF2007@jibsheet.com> References: <1376304130960-54986.post@n7.nabble.com> <1376304608.4852.38.camel@s-rwysocki> <1376305279659-54988.post@n7.nabble.com> <20130812143949.GF2007@jibsheet.com> Message-ID: <1376320796284-54991.post@n7.nabble.com> This setting nailed the issue on the head. ill post here again if i notice any issues from setting Set($UseSQLForACLChecks,1) in the RT_SiteConfig file but all appears well thank you everyone for your help Scott -- View this message in context: http://requesttracker.8502.n7.nabble.com/Unowned-Tickets-Table-on-Homepage-not-updating-correctly-tp54986p54991.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From jim.h.berry at frb.gov Mon Aug 12 12:01:41 2013 From: jim.h.berry at frb.gov (Jim Berry) Date: Mon, 12 Aug 2013 16:01:41 +0000 Subject: [rt-users] Migration Prep In-Reply-To: <520546E1.9090203@bestpractical.com> References: <20130731154805.GD22003@jibsheet.com> <51F9484D.9040905@tracker-software.com> <20130731185905.GH22003@jibsheet.com> <51F9660E.4080306@tracker-software.com> <20130801001554.GI22003@jibsheet.com> <51FAB9BC.4000903@tracker-software.com> <20130802144853.GG2203@jibsheet.com> <20130802153237.GJ2203@jibsheet.com> <20130802170423.GL2203@jibsheet.com> <51FBEB0E.6050404@bestpractical.com> <52047589.3000100@tracker-software.com> <5204A02F.70902@tracker-software.com> <5204F071.5000507@tracker-software.com> <520546E1.9090203@bestpractical.com> Message-ID: <328C311131899241A0CD6A885762A6300DF95E2E@m1-mailbox03> Similarly at our site: We observed issues (not just RT) when Apache was started before the Postgres server was ready. During certain testing, it might be necessary to manually restart Apache. Jim -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Thomas Sibley Sent: Friday, August 09, 2013 3:46 PM To: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Migration Prep On 08/09/2013 06:36 AM, Paul O'Rorke wrote: > When I look at syslog I see the following during startup: > > > Aug 9 08:28:04 rt4 RT: DBI > connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't > connect to local MySQL server through socket > '/var/run/mysqld/mysqld.sock' (2) at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. > (/usr/local/share/perl/5.14.2/Carp.pm:102) > Aug 9 08:28:05 rt4 RT: DBI > connect('dbname=rtdb;host=localhost','rtuser',...) failed: Can't > connect to local MySQL server through socket > '/var/run/mysqld/mysqld.sock' (2) at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. > (/usr/local/share/perl/5.14.2/Carp.pm:102) > Aug 9 08:28:08 rt4 mysqld_safe: Starting mysqld daemon with databases > from /var/lib/mysql Just by looking at the log timestamps, your system is pretty clearly set to start Apache (or whatever is serving RT) before mysql. This isn't RT's fault, but simply the wrong startup ordering for your system. You should change it so Apache/your webserver depends on mysql being started first. How to do so depends on your distribution. -------------- next part -------------- An HTML attachment was scrubbed... URL: From landonstewart at gmail.com Mon Aug 12 14:39:36 2013 From: landonstewart at gmail.com (Landon) Date: Mon, 12 Aug 2013 11:39:36 -0700 Subject: [rt-users] Searching and comparing two date field values instead of value with supplied valid In-Reply-To: <20130812143849.GE2007@jibsheet.com> References: <52073BF4.5030200@xs4all.nl> <20130812143849.GE2007@jibsheet.com> Message-ID: On 12 August 2013 07:38, Kevin Falcone wrote: > On Sun, Aug 11, 2013 at 09:23:32AM +0200, Joop wrote: > > Landon wrote: > > > > Sorry for hijacking your question/thread. > > > > Is there any way to search for tickets while comparing two field > values? > > This doesn't work: > > Queue = 'Incident Reports' AND Created < CF.{SpecialDate} AND > Status = 'new' > > It doesn't like the string "CF.{SpecialDate}" because it's not > enclosed in quotations and > > therefor not a string. Which is what I want to do but cannot I > guess. The error displayed > > on the RT UI is: > > > > Wrong query, expecting a VALUE in 'Queue = 'Incident Reports' AND > Created < > > >CF.{SpecialDate}<--here AND Status = 'new'' > > > > I'm looking at something similar. I would like to check whether the > ResolvedDate is past the > > DueDate but that is also not possible. I seem to remember that this > has been asked before but > > can't seem to find that thread anymore. Probably searching with the > wrong keywords so if > > someone can point me in the right direction, please? > > Unfortunately, RT's TicketSQL cannot compare two fields like that. > It's hard to free up the engineering time required to make it go > right now. Hopefully at some point it'll be part of a customer > requirement and that will speed up implementation. > > OK failing this then perhaps some light can be shed on comparing dates in scrips/modules. What I envision is an action module that goes through each ticket from this condition: --search RT::Search::FromSQL "id < 1000000" The --action being something like "RT::Action::CreationDates" or something that basically loads the ticket and compares the dates and closes tickets whos CF.{ServerCreated} < Created. This way any ticket containing an IP address of a server that was created after the ticket was created can be marked resolved. The help I need though is on comparing dates using RT::Date or something. If I load the CF.{ServerCreated} and the Created value how do I compare them reliably in modules? Would this work? ... my $ServerCreated = DateTime::Format::MySQL->parse_datetime( $ticket->FirstCustomFieldValue('ServerCreated') ); my $Created = DateTime::Format::MySQL->parse_datetime( $ticketObj->Created ); $ticket->SetStatus( 'resolved' ) if $ServerCreated < $Created; ? -- Landon Stewart -------------- next part -------------- An HTML attachment was scrubbed... URL: From trs at bestpractical.com Mon Aug 12 14:45:12 2013 From: trs at bestpractical.com (Thomas Sibley) Date: Mon, 12 Aug 2013 11:45:12 -0700 Subject: [rt-users] Searching and comparing two date field values instead of value with supplied valid In-Reply-To: References: <52073BF4.5030200@xs4all.nl> <20130812143849.GE2007@jibsheet.com> Message-ID: <52092D38.2090404@bestpractical.com> On 08/12/2013 11:39 AM, Landon wrote: > The help I need though is on comparing dates using RT::Date or > something. If I load the CF.{ServerCreated} and the Created value how > do I compare them reliably in modules? > > Would this work? > ... > my $ServerCreated = DateTime::Format::MySQL->parse_datetime( > $ticket->FirstCustomFieldValue('ServerCreated') ); > my $Created = DateTime::Format::MySQL->parse_datetime( > $ticketObj->Created ); > $ticket->SetStatus( 'resolved' ) if $ServerCreated < $Created; > ? my $server_created = RT::Date->new( $ticket->CurrentUser ); $server_created->Set( Format => 'sql', Value => $ticket->FirstCustomFieldValue('ServerCreated'), ); if ($server_created->Unix < $ticket->CreatedObj->Unix) { ... } From landonstewart at gmail.com Mon Aug 12 14:48:41 2013 From: landonstewart at gmail.com (Landon) Date: Mon, 12 Aug 2013 11:48:41 -0700 Subject: [rt-users] Searching and comparing two date field values instead of value with supplied valid In-Reply-To: <52092D38.2090404@bestpractical.com> References: <52073BF4.5030200@xs4all.nl> <20130812143849.GE2007@jibsheet.com> <52092D38.2090404@bestpractical.com> Message-ID: On 12 August 2013 11:45, Thomas Sibley wrote: > On 08/12/2013 11:39 AM, Landon wrote: > > The help I need though is on comparing dates using RT::Date or > > something. If I load the CF.{ServerCreated} and the Created value how > > do I compare them reliably in modules? > > > > Would this work? > > ... > > my $ServerCreated = DateTime::Format::MySQL->parse_datetime( > > $ticket->FirstCustomFieldValue('ServerCreated') ); > > my $Created = DateTime::Format::MySQL->parse_datetime( > > $ticketObj->Created ); > > $ticket->SetStatus( 'resolved' ) if $ServerCreated < $Created; > > ? > > my $server_created = RT::Date->new( $ticket->CurrentUser ); > $server_created->Set( > Format => 'sql', > Value => $ticket->FirstCustomFieldValue('ServerCreated'), > ); > > if ($server_created->Unix < $ticket->CreatedObj->Unix) { > ... > } > > Oh niiice. Thanks Thomas! -- Landon Stewart -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmcgrath at carthage.edu Mon Aug 12 15:45:21 2013 From: mmcgrath at carthage.edu (Max McGrath) Date: Mon, 12 Aug 2013 14:45:21 -0500 Subject: [rt-users] How to add articles to response Message-ID: Hello - Running rt 4.0.16 -- and this used to work when I was on 4.0.6. When replying to a ticket I see the *Search for Articles matching* and the *Include Article* boxes, but neither of them are working for me (I've tried different browsers). In 4.0.6 there was a drop-down of all the available articles. In 4.0.16 there is a *Go* button that does nothing when I click it. Am I missing something? -- Max McGrath Network Administrator Carthage College 262-552-5512 mmcgrath at carthage.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Mon Aug 12 16:18:32 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Mon, 12 Aug 2013 16:18:32 -0400 Subject: [rt-users] How to add articles to response In-Reply-To: References: Message-ID: <20130812201832.GG2007@jibsheet.com> On Mon, Aug 12, 2013 at 02:45:21PM -0500, Max McGrath wrote: > Running rt 4.0.16 -- and this used to work when I was on 4.0.6. > When replying to a ticket I see the Search for Articles matching and the Include Article > boxes, but neither of them are working for me (I've tried different browsers). > In 4.0.6 there was a drop-down of all the available articles. In 4.0.16 there is a Go button > that does nothing when I click it. > Am I missing something? This is working for us on a production 4.0.17 instance, so I'd suspect some local change. What kind of local modifications do you have? Can you see the Articles you expect to see if you browse around? Check other permissions and whether or not Classes apply to the right Queues. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From bbaker at copesan.com Mon Aug 12 17:08:38 2013 From: bbaker at copesan.com (Bryon Baker) Date: Mon, 12 Aug 2013 21:08:38 +0000 Subject: [rt-users] Trying to retrive the Queue Description. Message-ID: Can someone help? I am trying to retrieve the description on a queue given the name from a ticket object. Here is what I tried so far. my $trans = $self->TransactionObj; my $ticket = $self->TicketObj; my $qname = $self->TicketObj->QueueObj->Name; my $qdescription = $self->QueueObj->Description (Name = $qname); $RT::Logger->debug("Change Script Found Queue Desc: $description\n"); Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From presnypreklad at gmail.com Tue Aug 13 04:12:54 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Tue, 13 Aug 2013 10:12:54 +0200 Subject: [rt-users] sendmailpipe returns EX_TEMPFAIL Message-ID: Greetings: We are having an problem with Postfix sendmail returning "code 75" (EX_TEMPFAIL) on outgoing emails from RT. I have been monitoring the bug and can find no rhyme or reason to it. Most of the time, emails leave RT without any trouble. But occasionally they fail unreproducibly like this: Aug 12 08:01:16 perelman RT: #35212/333905 - Scrip 4 On Create Notify AdminCcs (/usr/lib/perl5/vendor_perl/5.10.0/RT/Action/SendEmail.pm:285) Aug 12 08:01:16 perelman RT: : `/usr/sbin/sendmail -oi -t` exited with code 75 (/usr/lib/perl5/vendor_perl/5.10.0/RT/Interface/Email.pm:486) Aug 12 08:01:16 perelman RT: : Could not send mail with command `/usr/sbin/sendmail -oi -t`: : `/usr/sbin/sendmail -oi -t` exited with code 75 at /usr/lib/perl5/vendor_perl/5.10.0/RT/Interface/Email.pm line 487. Stack: [/usr/lib/perl5/vendor_perl/5.10.0/RT/Interface/Email.pm:487] [/usr/lib/perl5/vendor_perl/5.10.0/RT/Action/SendEmail.pm:292] [/usr/lib/perl5/vendor_perl/5.10.0/RT/Action/SendEmail.pm:114] [/usr/lib/perl5/vendor_perl/5.10.0/RT/ScripAction.pm:232] [/usr/lib/perl5/vendor_perl/5.10.0/RT/Scrip.pm:475] [/usr/lib/perl5/vendor_perl/5.10.0/RT/Scrips.pm:188] [/usr/lib/perl5/vendor_perl/5.10.0/RT/Transaction.pm:201] [/usr/lib/perl5/vendor_perl/5.10.0/RT/Record.pm:1504] [/usr/lib/perl5/vendor_perl/5.10.0/RT/Ticket.pm:682] [/usr/lib/perl5/vendor_perl/5.10.0/RT/Interface/Email.pm:1569] [/usr/share/request-tracker/html/REST/1.0/NoAuth/mail-gateway:61] (/usr/lib/perl5/vendor_perl/5.10.0/RT/Interface/Email.pm:491) This is RT 4.0.13 and we are running it on a virtual machine with 8GB of RAM. Free RAM is around 80%, so the problem is not memory-related. There is one other mod_perl application running on the same machine, but adding "PerlOptions +Parent" to the Apache vhost configuration didn't help. (Do I need to add it to the vhost configuration of the other mod_perl app, too?) In RT_SiteConfig.pm I have: Set($SendmailCommand, 'sendmailpipe'); Set($SendmailArguments, '-oi -t'); I'm running a fairly modern Postfix (v. 2.5.13) on a fairly modern OS (SLES11-SP2). Here's apache2ctl -V: # apache2ctl -V Server version: Apache/2.2.12 (Linux/SUSE) Server built: Mar 27 2013 18:47:49 Server's Module Magic Number: 20051115:23 Server loaded: APR 1.3.3, APR-Util 1.3.4 Compiled using: APR 1.3.3, APR-Util 1.3.4 Architecture: 64-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/srv/www" -D SUEXEC_BIN="/usr/sbin/suexec2" -D DEFAULT_PIDLOG="/var/run/httpd2.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="/var/run/accept.lock" -D DEFAULT_ERRORLOG="/var/log/apache2/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types" -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf" What appears to be happening is this: for reasons unknown, occasionally when RT goes to send an email, the sendmailpipe command ('/usr/bin/sendmail -oi -t') gets executed but nothing is piped in. This causes sendmail to report: postfix/sendmail[23352]: fatal: wwwrun(30): No recipient addresses found in message header and RT logs the "code 75" error quoted above. In the web UI, when I look at the transaction "with headers", it says: X-RT-Interface: API MIME-Version: 1.0 X-Mailer: MIME-tools 5.502 (Entity 5.502) Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: binary X-RT-Original-Encoding: ascii RT-Message-ID: Content-Length: 105 Sending the previous mail has failed. Please contact your admin, they can find more details in the logs. Yesterday I added the '-v' switch to the sendmail command line, which is causing mail delivery reports to be sent to a local user on the machine. These mail delivery reports reproduce all the headers. I have not managed to "capture" the bug in this way, yet, however. But as soon as I do I will post the mail delivery report here. Does anyone have any other ideas for debugging this issue? Especially I am interested in how I could confirm or deny that it's related to mod_perl "cohabitation" -- i.e. two different Perl applications in a single mod_perl host? Nathan From presnypreklad at gmail.com Tue Aug 13 04:55:57 2013 From: presnypreklad at gmail.com (Nathan Cutler) Date: Tue, 13 Aug 2013 10:55:57 +0200 Subject: [rt-users] sendmailpipe returns EX_TEMPFAIL In-Reply-To: References: Message-ID: > Does anyone have any other ideas for debugging this issue? Especially > I am interested in how I could confirm or deny that it's related to > mod_perl "cohabitation" -- i.e. two different Perl applications in a > single mod_perl host? I noticed that when I don't have "PerlOptions +Parent" in the apache config, the Perl library search order on the System Configuration page is different than when I do. Here's what it looks like _without_ PerlOptions +Parent (omitting the line numbers which do not copy-paste): Perl library search order /usr/share/request-tracker/local/lib /usr/share/request-tracker/local/plugins/RT-Extension-MergeUsers/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /srv/www/perl-lib /srv/www/vhosts/pdb/ /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 . /srv/www Notice lines 5 and 6 which obviously come from the other mod_perl application. Now, here's what it says _with_ PerlOptions +Parent: Perl library search order /usr/share/request-tracker/local/lib /usr/share/request-tracker/local/plugins/RT-Extension-MergeUsers/lib /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 . /srv/www So maybe the problem is solved? I did have PerlOptions +Parent in the apache configuration before, but maybe not correctly? I checked the other application's vhosts file and it _does_ have PerlOptions +Parent. Nathan From falcone at bestpractical.com Tue Aug 13 09:27:36 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Tue, 13 Aug 2013 09:27:36 -0400 Subject: [rt-users] Trying to retrive the Queue Description. In-Reply-To: References: Message-ID: <20130813132736.GH2007@jibsheet.com> On Mon, Aug 12, 2013 at 09:08:38PM +0000, Bryon Baker wrote: > my $qname = $self->TicketObj->QueueObj->Name; > my $qdescription = $self->QueueObj->Description (Name = $qname); You don't say how this failed (since I expect it was a runtime error in your logs) but compare how in the first line you got a ticket, got the queue, requested the name with the second line where you skipped the ticket and went right to queue. Also, the (Name = $qname) part is nonsense and I'm not sure why you thought you needed it? -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From mmcgrath at carthage.edu Tue Aug 13 09:36:28 2013 From: mmcgrath at carthage.edu (Max McGrath) Date: Tue, 13 Aug 2013 08:36:28 -0500 Subject: [rt-users] How to add articles to response In-Reply-To: <20130812201832.GG2007@jibsheet.com> References: <20130812201832.GG2007@jibsheet.com> Message-ID: Was a permissions thing. From what I saw, the Article in question was applied to appropriate queue, but I still was not seeing it. I ended up clicking the *check this box to apply this Class globally to all Queues *and that fixed it. Not sure why it didn't work with how it was originally set up. Thanks Kevin! Max -- Max McGrath Network Administrator Carthage College 262-552-5512 mmcgrath at carthage.edu On Mon, Aug 12, 2013 at 3:18 PM, Kevin Falcone wrote: > On Mon, Aug 12, 2013 at 02:45:21PM -0500, Max McGrath wrote: > > Running rt 4.0.16 -- and this used to work when I was on 4.0.6. > > When replying to a ticket I see the Search for Articles matching and > the Include Article > > boxes, but neither of them are working for me (I've tried different > browsers). > > In 4.0.6 there was a drop-down of all the available articles. In > 4.0.16 there is a Go button > > that does nothing when I click it. > > Am I missing something? > > This is working for us on a production 4.0.17 instance, so I'd suspect > some local change. > > What kind of local modifications do you have? > Can you see the Articles you expect to see if you browse around? > Check other permissions and whether or not Classes apply to the right > Queues. > > -kevin > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmcgrath at carthage.edu Tue Aug 13 09:38:59 2013 From: mmcgrath at carthage.edu (Max McGrath) Date: Tue, 13 Aug 2013 08:38:59 -0500 Subject: [rt-users] How to add articles to response In-Reply-To: References: <20130812201832.GG2007@jibsheet.com> Message-ID: Nevermind! My mistake... It is working as it is suppose to. It had permissions for a specific queue, and the ticket I was working on was not in that queue. Disregard! Max -- Max McGrath Network Administrator Carthage College 262-552-5512 mmcgrath at carthage.edu On Tue, Aug 13, 2013 at 8:36 AM, Max McGrath wrote: > Was a permissions thing. From what I saw, the Article in question was > applied to appropriate queue, but I still was not seeing it. I ended up > clicking the *check this box to apply this Class globally to all Queues *and > that fixed it. > > Not sure why it didn't work with how it was originally set up. > > Thanks Kevin! > > Max > > -- > Max McGrath > Network Administrator > Carthage College > 262-552-5512 > mmcgrath at carthage.edu > > > On Mon, Aug 12, 2013 at 3:18 PM, Kevin Falcone wrote: > >> On Mon, Aug 12, 2013 at 02:45:21PM -0500, Max McGrath wrote: >> > Running rt 4.0.16 -- and this used to work when I was on 4.0.6. >> > When replying to a ticket I see the Search for Articles matching and >> the Include Article >> > boxes, but neither of them are working for me (I've tried different >> browsers). >> > In 4.0.6 there was a drop-down of all the available articles. In >> 4.0.16 there is a Go button >> > that does nothing when I click it. >> > Am I missing something? >> >> This is working for us on a production 4.0.17 instance, so I'd suspect >> some local change. >> >> What kind of local modifications do you have? >> Can you see the Articles you expect to see if you browse around? >> Check other permissions and whether or not Classes apply to the right >> Queues. >> >> -kevin >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirby at umbc.edu Tue Aug 13 12:43:08 2013 From: kirby at umbc.edu (Joe Kirby) Date: Tue, 13 Aug 2013 12:43:08 -0400 Subject: [rt-users] RT-at-a-Glance Saved Searches not showing RT System searches In-Reply-To: References: Message-ID: <6589E20D-D3EE-49ED-8F97-D72136A9858D@umbc.edu> Joe Kirby , Assistant Vice President, Business Systems Division of Information Technology (DoIT) Support Response - http://www.umbc.edu/doit Administration 627 Office - 410-455-3020 Email - kirby at umbc.edu On Aug 9, 2013, at 12:00 PM, rt-users-request at lists.bestpractical.com wrote: > Send rt-users mailing list submissions to > rt-users at lists.bestpractical.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users > or, via email, send a message with subject or body 'help' to > rt-users-request at lists.bestpractical.com > > You can reach the person managing the list at > rt-users-owner at lists.bestpractical.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of rt-users digest..." > > > Today's Topics: > > 1. Lost Root Password (Dennis Comeaux) > 2. Re: Migration Prep (Paul O'Rorke) > 3. Re: nginx / varnish / apache with RT? (Asif Iqbal) > 4. Searching for a string (Bryon Baker) > 5. Re: custom fields on dashboard for new tickets? (window camera) > 6. RT-at-a-Glance Saved Searches not showing RT System searches > (Joe Kirby) > 7. Re: Migration Prep (Paul O'Rorke) > 8. Re: error when replace bpslogo.png file (Chrilly Cheng) > 9. Re: Migration Prep (Paul O'Rorke) > 10. Re: Searching for a string (Nathan Cutler) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 8 Aug 2013 11:43:47 -0500 > From: Dennis Comeaux > To: rt-users at lists.bestpractical.com > Subject: [rt-users] Lost Root Password > Message-ID: > > Content-Type: text/plain; charset="utf-8" > > Another one of these threads. > > * Root password for Linux known > * RT 3.8.4 > * http://requesttracker.wikia.com/wiki/RecoverRootPassword didn't work > * we have httpd restrictions on the website taht require login that > authenticates against an ldap server > * other users can login... but we can't get in as root.... and root doesn't > seem to have an account on the ldap server > > Anyone have ideas? It looks like RT takes the userid and auth from ldap as > well. > > Can I just make a different account admin level? I need to just move some > users around from one queue to another. I know its the ldap auth. > > > -- > "il n'y a pas de libert? s'il y a d?pendance" > --Theobalt > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 2 > Date: Thu, 08 Aug 2013 10:41:52 -0700 > From: Paul O'Rorke > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] Migration Prep > Message-ID: <5203D860.5000504 at tracker-software.com> > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > Just a heads up that running the make upgrade-database on an upgrade > from 3.8.4 to 4.0.17 worked flawlessly once I successfully restored the > DB from mysqldump. > > Thanks for the help and more importantly thanks for fixing that script. > > :-) > > *Paul O?Rorke* > Tracker Software Products > paul at tracker-software.com > > On 8/2/2013 10:23 AM, Thomas Sibley wrote: >> On 08/02/2013 10:04 AM, Kevin Falcone wrote: >>> On Fri, Aug 02, 2013 at 12:49:47PM -0400, Asif Iqbal wrote: >>>> Please show a log of your make upgrade-database step >>>> >>>> * 3.9.8 >>>> * 4.0.1 >>> That's definitely skipping steps. >>> >>> It should read: >>> * 3.9.8 >>> * 4.0.0rc2 >>> * 4.0.0rc4 >>> * 4.0.0rc7 >>> * 4.0.1 >> Paul and Asif, you've helped uncover a regression in RT's upgrade logic >> beginning in 4.0.14. It only affects folks who are upgrading from an RT >> 3.8.x (or older) install to 4.0.14 or higher. If you're upgrading from >> 4.0.0 or higher, you're unaffected. >> >> 4.0.17 will be out shortly to correct this regression. Thanks for your >> time spent debugging on the list. > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 3 > Date: Thu, 8 Aug 2013 15:28:54 -0400 > From: Asif Iqbal > To: "ktm at rice.edu" > Cc: rt-users Users , Chris Herrmann > > Subject: Re: [rt-users] nginx / varnish / apache with RT? > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > On Tue, Aug 6, 2013 at 12:15 PM, Asif Iqbal wrote: > >> care to share your nginx/fascgi config ? I am seeing one in the >> http://bestpractical.com/docs/rt/latest/web_deployment.html#nginx >> as a start. >> > > I used that from doc with an exception of adding some ssl options and > adding fastcgi_param HTTPS on; > > It works pretty well. And then I found Ruslan has a cool nginx extension in > github. I tried that and it works too > except I do not see an option to run in ssl mode. > > > > > -- > Asif Iqbal > PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 4 > Date: Thu, 8 Aug 2013 21:12:39 +0000 > From: Bryon Baker > To: "RT Users (rt-users at lists.bestpractical.com)" > > Subject: [rt-users] Searching for a string > Message-ID: > <276f28db77824f58b15b4d6d6d6136fc at BLUPR05MB103.namprd05.prod.outlook.com> > > Content-Type: text/plain; charset="us-ascii" > > I am searching the content of an email for a string using. > > m/'Building: Walgreen Drug Store #\d+/ Does not find text. > > But > > index($t_subject, 'Building: Walgreen Drug Store #'); Does find text. > > I capture the content from the RT log file and found that there is double quotes in the texted. > > Is this why it won't work? > Is this the expected results? > > If this is the expected result how would I search the text using index for the CRLF character? > > Thanks > Bryon Baker > Network Operations Manager > Copesan - Specialists in Pest Solutions > 800-267-3726 * 262-783-6261 ext. 2296 > bbaker at copesan.com > www.copesan.com > "Servicing North America with Local Care" > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 5 > Date: Thu, 08 Aug 2013 21:41:52 +0000 (GMT) > From: window camera > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] custom fields on dashboard for new tickets? > Message-ID: > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > Thanks all. Worked like a charm! > > > -Rick > > On Aug 05, 2013, at 04:20 PM, window camera wrote: > >> Hi All >> ? >> Could someone point me in the right direction of how we would go about creating bullets and other custom fields for the front dashboard that is used by customer who create tickets? We'd like to create bullets and fields (that are mandatory to choose at least one), for say , etc., to have the user click on when they create a ticket, and that info would be sent to the owner of the ticket so they could work on it. >> >> Thank you for any help you can provide in doing this! >> >> -Rick > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 6 > Date: Thu, 8 Aug 2013 18:48:43 -0400 > From: Joe Kirby > To: rt-users at lists.bestpractical.com > Subject: [rt-users] RT-at-a-Glance Saved Searches not showing RT > System searches > Message-ID: > Content-Type: text/plain; charset=us-ascii > > I would like to know how to make RT System Searches show when the Saved Searches is added to RT-at-a-Glance. > > This is a great feature for My Closed Tickets type reports that are really not needed on the page as its own. > > At this time it seems like only SuperUser gets these. > > Is there a setting that would allow this? > > Thanks in advance > > Joe > > ------------------------------ Usually when I do not hear back on a topic it means that it is either not clear what I am asking for or it is a stupid question. I have looked back through the wiki again with no luck on how to have RT System Searches available to the delivered Saved Search. The reports saved as RT System Searches are available to be placed on the RT-at-a-Glance but do not show up in the Saved Search option. I am trying to avoid having to generate many copies of a system wide report so it shows up in folks Saved Search collection. At the risk of being an annoyance I am reporting Thanks in advance Joe > > Message: 7 > Date: Thu, 08 Aug 2013 21:52:25 -0700 > From: Paul O'Rorke > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] Migration Prep > Message-ID: <52047589.3000100 at tracker-software.com> > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > Thanks for all the support. I have a shiny new 4.0.17 ticking away > nicely. Very happy. > > *Paul O?Rorke* > Tracker Software Products > paul at tracker-software.com > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 8 > Date: Fri, 9 Aug 2013 13:51:09 +0800 > From: Chrilly Cheng > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] error when replace bpslogo.png file > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Sorry, I didn't notice that function when I was searching to replace png > file in RT location. Thanks for warning me that. I've changed it back. > > Now I can set my logo from Tools->Configuration->Tools->Theme, thanks again > for your help. > > > On Thu, Aug 8, 2013 at 10:34 PM, Kevin Falcone wrote: > >> On Thu, Aug 08, 2013 at 03:26:13PM +0800, Chrilly Cheng wrote: >>> Hi All, >>> I've got an error when I tried to replace the default bpslogo.png >> file with a new one of the >>> same name in RT(/usr/share/request-tracker4/html/NoAuth/images). The >> error log shows as below: >> >> Instead of replacing our logo (which goes with our copyright) why not >> use the Theme Editor we provide to add your own logo to the upper >> righthand corner? >> >> -kevin >> >>> [error]: '<&' without matching '&>' at >>> /usr/share/request-tracker4/html/NoAuth/images/bpslogo.png line 32 >>> (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209) >>> On line 209 of Handler.pm file, it is: >>> sub HTML::Mason::Exception::as_rt_error { >>> my ($self) = @_; >>> $RT::Logger->error( $self->full_message ); #line 209 >>> return "An internal RT error has occurred. Your administrator can >> find more details in RT's >>> log files."; >>> } >>> I checked the Hander.pm file but cant figure out anything. Please >> help. >>> BTW, my RT version is 4.0.7 >> > > > > -- > *Br* > *Vodar* > *It's not where you start -- it's where you finish that count.* > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 9 > Date: Fri, 09 Aug 2013 00:54:23 -0700 > From: Paul O'Rorke > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] Migration Prep > Message-ID: <5204A02F.70902 at tracker-software.com> > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > OK - a little premature. > > After running for a few hours I rebooted my new RT and get a database > connect fail. For some reason it's not trying to use a password in DBI > connect: > > Aug 9 00:33:23 rt4 RT: DBI > connect('dbname=rtdb;host=localhost','rtuser',...) failed: Access > denied for user 'rtuser'@'localhost' (using password: NO) at > /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105. > (/usr/local/share/perl/5.14.2/Carp.pm:102) > > The database name, user and password are all correct in RT_SiteConfig.pm > and I can connect using those credentials from a shell on that box and > can access the right database. > > Any suggestions why I'm seeing (using password: NO) in my logs? I get > something similar at startup/shutdown. > > regards > > *Paul O?Rorke* > Tracker Software Products > paul at tracker-software.com > > > On 8/8/2013 9:52 PM, Paul O'Rorke wrote: >> Thanks for all the support. I have a shiny new 4.0.17 ticking away >> nicely. Very happy. >> >> *Paul O?Rorke* >> Tracker Software Products >> paul at tracker-software.com >> > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 10 > Date: Fri, 9 Aug 2013 15:27:34 +0200 > From: Nathan Cutler > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] Searching for a string > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > >> I am searching the content of an email for a string using. >> >> m/'Building: Walgreen Drug Store #\d+/ Does not find text. >> >> But >> >> index($t_subject, 'Building: Walgreen Drug Store #'); Does find text. > > A few (hopefully helpful) questions: > > 1. Why do have a single-quote character before the word Building in > the first example, but not in the second? > > 2. Can you send an example string that you searching over? > > 3. Better yet, can you send a snippet of your code? > > And a note: if you are trying to capture text, you need parentheses > around the text you intend to capture. Something like this: > > > #!/usr/bin/perl > use strict; > use warnings; > > my $str="And suddenly, there were Building: Walgreen Drug Store > #235232343434324235521 flies in the tepid air"; > > my ($substr) = ($str =~ m/(Building: Walgreen Drug Store #\d+)/); > print $substr, "\n"; > > > Also, you don't mention whether this string occurs only in the email > headers, or also in the body? If in the body, will you have to deal > with the possibility of a line break occuring inside the string? > > Nathan > > > ------------------------------ > > -------- > rt-users mailing list > rt-users at lists.bestpractical.com > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users > > > > End of rt-users Digest, Vol 113, Issue 13 > ***************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From lois.bennett at channing.harvard.edu Tue Aug 13 13:40:25 2013 From: lois.bennett at channing.harvard.edu (Lois Bennett) Date: Tue, 13 Aug 2013 13:40:25 -0400 Subject: [rt-users] Migration to RT 4.0.17 from 3.8.9 with new server Message-ID: Hello, I have read the documentation on upgrading and none of the particulars exactly fit. I have a new VM (Centos6). I have installed RT 4.0.17 completely vanilla. Old mysql: mysql Ver 14.12 Distrib 5.0.81, for unknown-linux-gnu (x86_64) using readline 5.2 Old RT is 3.8.9 New mysql: mysql Ver 14.14 Distrib 5.1.66, for redhat-linux-gnu (x86_64) using readline 5.1 All has gone well. I have gotten as far as running make initialize-database. Now what? I am not clear if the next step is to take a dump of the running server and copy it to the new server then run update database? Do I need to do anything to the database before I use it? I see someone else doing this: > 1. make a clone of the existing RT, > 2. upgrade it to 4.0.13 > 3. do a mysqldump on the upgraded clone > 4. restore the dump on the new server. Is it recommended to actually clone the old and upgrade it in place? Could I simply restore a backup from the old on the new and run make upgrade-database I know I will need to setup users, groups, cron, email and probably some other things as well. T hank you for your help. Peace, Lois -- Lois Bennett, MSEE Senior System Administrator Channing Laboratory Brigham & Women's Hospital A Teaching Affiliate of Harvard Medical School and Harvard School of Public Health -------------- next part -------------- An HTML attachment was scrubbed... URL: From SJC at qvii.com Tue Aug 13 14:45:00 2013 From: SJC at qvii.com (Cena, Stephen (ext. 300)) Date: Tue, 13 Aug 2013 14:45:00 -0400 Subject: [rt-users] MySQL issue - Windows vs. Linux - Table name case seems to matter Message-ID: <4DD6AB329450D847913EA76D7F3C6B8312F7F258@valkyrie.ogp.qvii.com> I'm looking to move all of my MySQL servers from Windows XP systems to Linux. I'm doing testing now & so far all is well, except with RT. I currently am running RT 4.0.17 on Ubuntu 12.04LTS with a MySQL 5.5x database on Windows XP SP3. I am able to successfully backup & restore the database on the Windows machine. However, when I restore it to the new Linux box, I get the following error: ============================================================= root at starbug:/home/admsjc/rt-4.0.17# service apache2 start * Starting web server apache2 [Tue Aug 13 18:40:45 2013] [warning]: DBD::mysql::st execute failed: Table 'rtdb.Users' doesn't exist at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 589. (/usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm:589) [Tue Aug 13 18:40:45 2013] [warning]: RT::Handle=HASH(0xb8986ab4) couldn't execute the query 'SELECT * FROM Users WHERE Name = ?' at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 602. DBIx::SearchBuilder::Handle::SimpleQuery('RT::Handle=HASH(0xb8986ab4)', 'SELECT * FROM Users WHERE Name = ?', 'RT_System') called at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Record.pm line 1234 DBIx::SearchBuilder::Record::_LoadFromSQL('RT::CurrentUser=HASH(0xb895ab 10)', 'SELECT * FROM Users WHERE Name = ?', 'RT_System') called at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Record.pm line 1153 DBIx::SearchBuilder::Record::LoadByCols('RT::CurrentUser=HASH(0xb895ab10 )', 'Name', 'RT_System') called at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Record/Cachable.pm line 120 DBIx::SearchBuilder::Record::Cachable::LoadByCols('RT::CurrentUser=HASH( 0xb895ab10)', 'Name', 'RT_System') called at /opt/rt4/sbin/../lib/RT/Record.pm line 375 RT::Record::LoadByCols('RT::CurrentUser=HASH(0xb895ab10)', 'Name', 'RT_System') called at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Record.pm line 1098 DBIx::SearchBuilder::Record::LoadByCol('RT::CurrentUser=HASH(0xb895ab10) ', 'Name', 'RT_System') called at /opt/rt4/sbin/../lib/RT/User.pm line 479 RT::User::Load('RT::CurrentUser=HASH(0xb895ab10)', 'RT_System') called at /opt/rt4/sbin/../lib/RT/Handle.pm line 238 RT::Handle::CheckIntegrity('RT::Handle') called at /opt/rt4/sbin/rt-server line 99 require /opt/rt4/sbin/rt-server called at (eval 6) line 3 eval 'package Plack::Sandbox::_2fopt_2frt4_2fsbin_2frt_2dserver; { my $app = do $_file; if ( !$app && ( my $error = $@ || $! )) { die $error; } $app; } ;' called at /usr/share/perl5/Plack/Util.pm line 118 Plack::Util::_load_sandbox('/opt/rt4/sbin/rt-server') called at /usr/share/perl5/Plack/Util.pm line 155 Plack::Util::load_psgi('/opt/rt4/sbin/rt-server') called at /usr/share/perl5/Plack/Handler/Apache2.pm line 32 Plack::Handler::Apache2::load_app('Plack::Handler::Apache2', '/opt/rt4/sbin/rt-server') called at /usr/share/perl5/Plack/Handler/Apache2.pm line 24 Plack::Handler::Apache2::preload('Plack::Handler::Apache2', '/opt/rt4/sbin/rt-server') called at /etc/apache2/sites-enabled/000-default line 20 eval 'package Apache2::ReadConfig::etc::apache2::sites_enabled::000_default::line_19; #line 19 /etc/apache2/sites-enabled/000-default use Plack::Handler::Apache2; Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server"); ;' called at /opt/rt4/sbin/rt-server line 0 (/usr/local/share/perl/5.14.2/Carp.pm:103) [Tue Aug 13 18:40:45 2013] [warning]: Use of uninitialized value in concatenation (.) or string at /opt/rt4/sbin/../lib/RT/Handle.pm line 240. (/opt/rt4/sbin/../lib/RT/Handle.pm:239) RT couldn't connect to the database where tickets are stored. If this is a new installation of RT, you should visit the URL below to configure RT and initialize your database. If this is an existing RT installation, this may indicate a database connectivity problem. The error RT got back when trying to connect to your database was: Couldn't find RT_System user in the DB '' (more error messages after this) ====================================================================== I am able to use the MySQL client tools on the Ubuntu Server running RT to successfully access the RT database. There is something funny I noticed. If I try to execute: SELECT * FROM Users WHERE Name = ?' I get: ERROR 1146 (42S02): Table 'rtdb.Users' doesn't exist If I then go into the RT database & change the "user" table to "User", RT goes further & has the same error for the ticket tables. Did I do something wrong with my backup? Or is this a Windows/Linux issue I've never seen before? Stephen Cena QVII MIS/IT Dept 850 Hudson Ave. Rochester, NY. 14620 585-544-0450 x300 sjc at qvii.com "Thank you for helping us help you help us all." --For email related issues, please contact postmaster at qvii.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From vadud3 at gmail.com Tue Aug 13 14:54:28 2013 From: vadud3 at gmail.com (Asif Iqbal) Date: Tue, 13 Aug 2013 14:54:28 -0400 Subject: [rt-users] Migration to RT 4.0.17 from 3.8.9 with new server In-Reply-To: References: Message-ID: On Tue, Aug 13, 2013 at 1:40 PM, Lois Bennett < lois.bennett at channing.harvard.edu> wrote: > Hello, > > I have read the documentation on upgrading and none of the particulars > exactly fit. > > I have a new VM (Centos6). I have installed RT 4.0.17 completely vanilla. > > > Old mysql: > mysql Ver 14.12 Distrib 5.0.81, for unknown-linux-gnu (x86_64) using > readline 5.2 > Old RT is 3.8.9 > > New mysql: > mysql Ver 14.14 Distrib 5.1.66, for redhat-linux-gnu (x86_64) using > readline 5.1 > > All has gone well. > > I have gotten as far as running make initialize-database. > > Now what? I am not clear if the next step is to take a dump of the > running server and copy it to the new server then run update database? > > This is what I did as next steps - copy over the RT_SiteConfig.pm from /opt/rt3/etc to /opt/rt4/etc - comment out the plugins - mysql> drop database rt4; - mysql> create database rt4; - # mysql < dump.from.rt3.sql - src/rt-4.0.17# sudo make upgrade-database - uncomment the plugins from RT_SiteConfig.pm - .. follow the rest of the steps from README .. Do I need to do anything to the database before I use it? > > I see someone else doing this: > > 1. make a clone of the existing RT, > > 2. upgrade it to 4.0.13 > > 3. do a mysqldump on the upgraded clone > > 4. restore the dump on the new server. > > Is it recommended to actually clone the old and upgrade it in place? > Could I simply restore a backup from the old on the new and run > make upgrade-database > > I know I will need to setup users, groups, cron, email and probably some > other things as well. > > T > hank you for your help. > > Peace, > Lois > > > -- > Lois Bennett, MSEE > Senior System Administrator > Channing Laboratory > Brigham & Women's Hospital > A Teaching Affiliate of > Harvard Medical School and > Harvard School of Public Health > -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From boli at itss.co.tz Tue Aug 13 16:35:43 2013 From: boli at itss.co.tz (Boli) Date: Tue, 13 Aug 2013 23:35:43 +0300 Subject: [rt-users] Re-send a previously attached attachment? Message-ID: <520A989F.3020805@itss.co.tz> Hi All, Apologies if I have missed something obvious. How can I re-send an attachment that has previously been attached to a ticket without downloading it and re-attaching it. For example, if a new requestor or CC is added to a ticket, and I want to get them up to date quickly by referring to previously discussed/attached information. Comments/Suggestions welcomed Regards, Boli -- Network Engineer From manuel.lauk at zeiss.com Tue Aug 13 16:27:30 2013 From: manuel.lauk at zeiss.com (Manuel Lauk) Date: Tue, 13 Aug 2013 22:27:30 +0200 Subject: [rt-users] =?iso-8859-1?q?AUTO=3A_Manuel_Lauk_is_out_of_the_offic?= =?iso-8859-1?q?e_=28R=FCckkehr_am_19=2E08=2E2013=29?= Message-ID: Ich bin bis 19.08.2013 abwesend. In urgent cases please contact SupportCenter Email: suportcenter2.surgical at meditec.zeiss.com Phone: +49 7364 20 6363 Hinweis: Dies ist eine automatische Antwort auf Ihre Nachricht "rt-users Digest, Vol 113, Issue 18" gesendet am 13.08.2013 18:00:02. Diese ist die einzige Benachrichtigung, die Sie empfangen werden, w?hrend diese Person abwesend ist. ---------------------------------------- This message is intended for a particular addressee only and may contain business or company secrets. If you have received this email in error, please contact the sender and delete the message immediately. Any use of this email, including saving, publishing, copying, replication or forwarding of the message or the contents is not permitted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kendric.Beachey at garmin.com Tue Aug 13 17:49:54 2013 From: Kendric.Beachey at garmin.com (Beachey, Kendric) Date: Tue, 13 Aug 2013 21:49:54 +0000 Subject: [rt-users] Re-send a previously attached attachment? In-Reply-To: <520A989F.3020805@itss.co.tz> References: <520A989F.3020805@itss.co.tz> Message-ID: <074C3AE4E206DC478AB4FA128B9791411686968F@OLAWPA-EXMB06.ad.garmin.com> Point them to the web view of the ticket? The attachment should be there in the ticket history, so they can download/view it at their leisure. (assuming you don't have a security policy that would prevent this) -- Kendric Beachey -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Boli Sent: Tuesday, August 13, 2013 3:36 PM To: RT users Subject: [rt-users] Re-send a previously attached attachment? Hi All, Apologies if I have missed something obvious. How can I re-send an attachment that has previously been attached to a ticket without downloading it and re-attaching it. For example, if a new requestor or CC is added to a ticket, and I want to get them up to date quickly by referring to previously discussed/attached information. Comments/Suggestions welcomed Regards, Boli -- Network Engineer ________________________________ CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient(s) and contain information that may be confidential and/or legally privileged. If you have received this email in error, please notify the sender by reply email and delete the message. Any disclosure, copying, distribution or use of this communication (including attachments) by someone other than the intended recipient is prohibited. Thank you. From reg.bestpractical at posterus.com Wed Aug 14 05:50:50 2013 From: reg.bestpractical at posterus.com (Maciej Dobrzanski) Date: Wed, 14 Aug 2013 11:50:50 +0200 Subject: [rt-users] MySQL issue - Windows vs. Linux - Table name case seems to matter In-Reply-To: <4DD6AB329450D847913EA76D7F3C6B8312F7F258@valkyrie.ogp.qvii.com> References: <4DD6AB329450D847913EA76D7F3C6B8312F7F258@valkyrie.ogp.qvii.com> Message-ID: <011b01ce98d3$c8867720$59936560$@bestpractical@posterus.com> Stephen, MySQL does not maintain internal dictionary where it could keep the list of tables (but InnoDB does for its own purpose!). Instead, MySQL relies on the information from the underlying file system. Since Windows does not care about case of file names, 'users.frm', 'Users.frm' and 'UsErS.frm' are all the same file, in MySQL 'users', 'Users' and 'USERS' will all be the same table. On the other hand, Linux has case sensitive file names, so 'users.frm' and 'Users.frm' are two different files. In this case 'users' and 'Users' also become two different tables. Your problem is easy to fix, but the solution will depend on how the MySQL server on Windows was configured and how the tables were created both in MySQL and on disk. Typically either performing dump & restore or setting lower_case_table_names=1 option (or both) on Linux is enough, however in certain circumstances it may not be. Please refer to this page http://dev.mysql.com/doc/refman/5.5/en/identifier-case-sensitivity.html as it will most likely contain the answers you need. Maciek From scott.dalzell at aveva.com Wed Aug 14 06:22:56 2013 From: scott.dalzell at aveva.com (scott.dalzell) Date: Wed, 14 Aug 2013 03:22:56 -0700 (PDT) Subject: [rt-users] Modify CF dropdown list from external DB based off of another CFs value Message-ID: <1376475776536-55012.post@n7.nabble.com> I have 2 ticket CFs (Version_No and Product) i currently have a perl script to update the Version_No CF drop down list from an external database with a manually set Where value set in the code. (This all works fine for controlling the drop down list values to show only the version numbers for the manually set product) i would now like to modify the code to allow the drop down list to be updated with values which contain the same catagory as the value set in the Product CF, similar to using the Categories are based on Field when you create your own list To do this i have added the following line my $dbwherevalue = $self->TicketObj->FirstCustomFieldValue('Product'); but i also get the following error [error]: Can't locate object method "TicketObj" via package "RT::CustomFieldValues::Version_No" at /opt/rt4/sbin/../lib/RT/CustomFieldValues/Version_No.pm line 60 would someone be able to advice me what to do to resolve this error below is my code -------------------CODE START----------------------- ################################################## ##Prep ################################################## package RT::CustomFieldValues::Version_No; use strict; use warnings; use DBI; use DBD::Mysql; use base qw(RT::CustomFieldValues::External); ################################################## ##List Description ################################################## sub SourceDescription { return 'Version Numbers'; } ################################################## ##VARIABLES ################################################## sub ExternalValues { my $self = shift; # External Database details my $dbhost = "[HostName]"; my $dbtype = "[DatabaseType]"; my $dbname = "[DatabaseName]"; my $dbtable="customfieldvalue"; my $dbcolumn="Name"; my $dbwherecolumn="Category"; #my $dbwherevalue="'Testing1234'"; my $dbwherevalue = $self->TicketObj->FirstCustomFieldValue('Product'); my $dbuser = "[UserName]"; my $dbpass = "[Password]"; my $i = 0; my @res; my $Hostname; ################################################## ##Connect to Database ################################################## #Database on remote server my $dbh = DBI->connect("DBI:$dbtype:$dbname;host=$dbhost", "$dbuser", "$dbpass", { RaiseError => 1 } ); ################################################## ##Run Search of DB for values you wish in CF List ################################################## my $req = "SELECT distinct $dbcolumn FROM $dbtable where $dbwherecolumn=$dbwherevalue"; my $hreq = $dbh->prepare($req); $hreq->execute();; $hreq->bind_columns(\$Hostname); while ($hreq->fetch()){ push @res, { name => $Hostname, description => $Hostname, sortorder => $i++, }; } return \@res; } RT::Base->_ImportOverlays(); 1; -------------------CODE END------------------------- thank you in advanced Scott -- View this message in context: http://requesttracker.8502.n7.nabble.com/Modify-CF-dropdown-list-from-external-DB-based-off-of-another-CFs-value-tp55012.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From drey111 at gmail.com Wed Aug 14 07:23:23 2013 From: drey111 at gmail.com (Joe Harris) Date: Wed, 14 Aug 2013 07:23:23 -0400 Subject: [rt-users] Modify CF dropdown list from external DB based off of another CFs value In-Reply-To: <1376475776536-55012.post@n7.nabble.com> References: <1376475776536-55012.post@n7.nabble.com> Message-ID: I had a similar need. But instead of connecting to an external database from within RT, I put together 2 scripts to check for content change and dump and load my custom fields in cron. In my case, I was pulling time sheet codes which are: client_project and task_code. Each client_project has specific task_codes so task_codes is dependent on client_project. Mine is probably way more complicated than you need and could be done easier in perl. I'm a bash man at heart so here is my method. They could be run from one script as long as the server has access to get to both databases. Since custom fields are added to transactions as the actual field values (and not relational by id's) this was the best way foe me to get this done. During the day if the finance department adds or removes codes, within an hour the RT system is updated. Also in my case, client_project and task_code are each concatenated from 4 fields in my original search (fields 1 and 2 make up client_project and fields 3 and 4 make up task_code). Hope this helps in some way and apologies for the long message... The first script is run on the external server and creates a load file. This script is run every hour between 8am and 5pm from cron. #!/bin/bash NEWFILE=/tmp/codes.txt OLDFILE=/tmp/codes.last /bin/mv $NEWFILE $OLDFILE /usr/bin/psql -A -t -c "select field1,field2 from table where criteria like 'your_criteria' -U postgres_user databasename >$NEWFILE if /usr/bin/diff $NEWFILE $OLDFILE >/dev/null ; then echo "NoChanges" >/tmp/codes.status else echo "Changes" >/tmp/codes.status fi Then on another server, I look at the codes.status file and check for changes. If there are, I pull over the file and dump and load the customfieldvalues table where the customfield is in my case 1 and 2. This script is run 5 minutes after the other one. #!/bin/bash HOME=/path/to/scripts STATUSFILE=/tmp/codes.status LOADFILE=/tmp/codes.txt LASTFILE=/tmp/codes.txt LOGFILE=$HOME/codes.log PGSERVER=RT_PGSERVERNAME_REDACTED PGUSER=RT_USER_REDACTED PGDB=RT_DBNAME_REDACTED TODAY=`date +%Y-%m-%d-%H:%M:%S` echo "Starting script at $TODAY" # Start logging exec > >(tee $LOGFILE) exec 2>&1 #Fetch status file scp root at EXT_SERVERNAME_REDACTED:$STATUSFILE /tmp/ STATUS=`cat $STATUSFILE` echo $STATUS > $LOGFILE if [ $STATUS == "Changes" ] ; then echo "Making Changes">> $LOGFILE # Fetch update file scp root at EXT_SERVERNAME_REDACTED:$LOADFILE /tmp/ # Clean up previous sql load files and remove the old custom fields rm -f $HOME/client_project.* rm -f $HOME/task_code.* rm -f $HOME/sequence.tmp mv $HOME/client_project_backup $HOME/client_project_backup-$TODAY psql -A -t -c "select * from customfieldvalues where customfield='1'" -h $PGSERVER -U $PGUSER $PGDB >>$HOME/client_project_backup psql -A -t -c "select * from customfieldvalues where customfield='2'" -h $PGSERVER -U $PGUSER $PGDB >>$HOME/task_code_backup psql -A -c "delete from customfieldvalues where customfield='1'" -h $PGSERVER -U $PGUSER $PGDB psql -A -c "delete from customfieldvalues where customfield='2'" -h $PGSERVER -U $PGUSER $PGDB # Add a placeholder to notify users that update is taking place psql -A -c "insert into customfieldvalues (customfield,name,creator,created) values ('1','Tasks are being updated. Refresh in 2-5 minutes','22',now())" -h $PGSERVER -U $PGUSER $PGDB # Start numbering echo "5" >$HOME/sequence.tmp # Parse through load file and capture variables to populate Client/Project field OIFS=$IFS IFS=' ' for m in `cat $LOADFILE` do CLIENT=`echo $m|cut -d"|" -f1` PROJECT=`echo $m|cut -d"|" -f2` CLIENTPROJECT="${CLIENT}[${PROJECT}]" echo "$CLIENTPROJECT" >>$HOME/client_project.tmp done # Get Unique Client Project Codes to load to database cat $HOME/client_project.tmp |sort -u >> $HOME/client_project.txt OIFS=$IFS IFS=' ' for c in `cat $HOME/client_project.txt` do NAME=`echo $c |cut -d"|" -f1` # Send load file info to SQL file for troubleshooting, then update the database with the new Client Project Values echo "psql -A -c \"insert into customfieldvalues (customfield,name,creator,created) values ('1','$c','22',now())\" -h $PGSERVER -U $PGUSER $PGDB" >>$HOME/client_project.sql psql -A -c "insert into customfieldvalues (customfield,name,creator,created) values ('1','$c','22',now())" -h $PGSERVER -U $PGUSER $PGDB #Increment sequence file for sorting in the Web GUI sequence=`tail -n1 $HOME/sequence.tmp` SEQUENCE=`expr $sequence + 5` CLEANNAME=`echo $NAME |sed -e 's/\[/\|/g; s/\]//g'` # Using the formatted Client/Project codes, loop through the loadfile and capture Task codes for each Client/Project code OIFS=$IFS IFS=' ' for task in `cat $LOADFILE|grep $CLEANNAME` do TASK=`echo $task|cut -d"|" -f3` CODE=`echo $task|cut -d"|" -f4` CLIENT=`echo $task|cut -d"|" -f1` PROJECT=`echo $task|cut -d"|" -f2` CLIENTPROJECT="${CLIENT}[${PROJECT}]" TASKCODE="${TASK}[${CODE}]" echo "psql -A -c \"insert into customfieldvalues (customfield,name,creator,created,category,sortorder) values ('2','$TASKCODE','22',now(),'$CLIENTPROJECT','$SEQUENCE')\" -h $PGSERVER -U $PGUSER $PGDB" >>$HOME/task_code.sql psql -A -c "insert into customfieldvalues (customfield,name,creator,created,category,sortorder) values ('2','$TASKCODE','22',now(),'$CLIENTPROJECT','$SEQUENCE')" -h $PGSERVER -U $PGUSER $PGDB echo $SEQUENCE >$HOME/sequence.tmp done done psql -A -c "delete from customfieldvalues where name='Tasks are being updated. Refresh in 2-5 minutes'" -h $PGSERVER -U $PGUSER $PGDB echo "Complete" >>$LOGFILE else echo "No Changes">>$LOGFILE fi -------------- next part -------------- An HTML attachment was scrubbed... URL: From SJC at qvii.com Wed Aug 14 08:19:38 2013 From: SJC at qvii.com (Cena, Stephen (ext. 300)) Date: Wed, 14 Aug 2013 08:19:38 -0400 Subject: [rt-users] MySQL issue - Windows vs. Linux - Table name References: Message-ID: <4DD6AB329450D847913EA76D7F3C6B8312F7F634@valkyrie.ogp.qvii.com> Maciek - I figured it was more a MySQL issue than an RT one. I manually went in & changed each table to the correct one (users to Users) and that appeared to work. However, this won't fix my problem if I have to move several databases over (we have a lot of MySQL dependant apps here). Thank you for the link. I'll take a look at it today & see if it will help. I'm just glad to know it's a MySQL issue and not an RT one! Steve From falcone at bestpractical.com Wed Aug 14 10:33:03 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Wed, 14 Aug 2013 10:33:03 -0400 Subject: [rt-users] RT-at-a-Glance Saved Searches not showing RT System searches In-Reply-To: <6589E20D-D3EE-49ED-8F97-D72136A9858D@umbc.edu> References: <6589E20D-D3EE-49ED-8F97-D72136A9858D@umbc.edu> Message-ID: <20130814143303.GI2007@jibsheet.com> Joe - it helps if you trim the rest of the digest when replying. On Tue, Aug 13, 2013 at 12:43:08PM -0400, Joe Kirby wrote: >> >> I would like to know how to make RT System Searches show when the Saved Searches is added to >> RT-at-a-Glance. >> >> This is a great feature for My Closed Tickets type reports that are really not needed on the >> page as its own. >> >> At this time it seems like only SuperUser gets these. >> >> Is there a setting that would allow this? >> >> Thanks in advance > > Usually when I do not hear back on a topic it means that it is either not clear what I am > asking for or it is a stupid question. > I have looked back through the wiki again with no luck on how to have RT System Searches > available to the delivered Saved Search. > The reports saved as RT System Searches are available to be placed on the RT-at-a-Glance but > do not show up in the Saved Search option. > I am trying to avoid having to generate many copies of a system wide report so it shows up in > folks Saved Search collection. > At the risk of being an annoyance I am reporting > Thanks in advance RT System Searches don't automatically show up for all users unless their name is in a specific format (compare with the system default searches we ship). I consider this an oversight, and it'll probably be fixed in a future release. At this time, your best solution is finding the widest group you can and assigning the search to that group. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Wed Aug 14 10:35:25 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Wed, 14 Aug 2013 10:35:25 -0400 Subject: [rt-users] sendmailpipe returns EX_TEMPFAIL In-Reply-To: References: Message-ID: <20130814143525.GJ2007@jibsheet.com> On Tue, Aug 13, 2013 at 10:55:57AM +0200, Nathan Cutler wrote: > > Does anyone have any other ideas for debugging this issue? Especially > > I am interested in how I could confirm or deny that it's related to > > mod_perl "cohabitation" -- i.e. two different Perl applications in a > > single mod_perl host? > > I noticed that when I don't have "PerlOptions +Parent" in the apache > config, the Perl library search order on the System Configuration page > is different than when I do. Here's what it looks like _without_ > PerlOptions +Parent (omitting the line numbers which do not > copy-paste): > > Perl library search order > > /usr/share/request-tracker/local/lib > /usr/share/request-tracker/local/plugins/RT-Extension-MergeUsers/lib > /usr/lib/perl5/vendor_perl/5.10.0 > /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi > /srv/www/perl-lib > /srv/www/vhosts/pdb/ > /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi > /usr/lib/perl5/site_perl/5.10.0 > /usr/lib/perl5/vendor_perl > /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi > /usr/lib/perl5/5.10.0 > . > /srv/www > > Notice lines 5 and 6 which obviously come from the other mod_perl application. > > Now, here's what it says _with_ PerlOptions +Parent: > > Perl library search order > > /usr/share/request-tracker/local/lib > /usr/share/request-tracker/local/plugins/RT-Extension-MergeUsers/lib > /usr/lib/perl5/vendor_perl/5.10.0 > /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi > /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi > /usr/lib/perl5/site_perl/5.10.0 > /usr/lib/perl5/vendor_perl > /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi > /usr/lib/perl5/5.10.0 > . > /srv/www > > So maybe the problem is solved? I did have PerlOptions +Parent in the > apache configuration before, but maybe not correctly? I checked the > other application's vhosts file and it _does_ have PerlOptions > +Parent. While PerlOptions +Parent is important if you need to run two mod_perl apps, you should keep your log in place, and possibly dig up one of the shims from the mailing list archives that has been used to debug this. In the past, it was bugs in mod_perl and the handler type, but it's nearly impossible to debug from the standard RT debug and mail logs. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Wed Aug 14 10:36:17 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Wed, 14 Aug 2013 10:36:17 -0400 Subject: [rt-users] Re-send a previously attached attachment? In-Reply-To: <074C3AE4E206DC478AB4FA128B9791411686968F@OLAWPA-EXMB06.ad.garmin.com> References: <520A989F.3020805@itss.co.tz> <074C3AE4E206DC478AB4FA128B9791411686968F@OLAWPA-EXMB06.ad.garmin.com> Message-ID: <20130814143617.GK2007@jibsheet.com> On Tue, Aug 13, 2013 at 09:49:54PM +0000, Beachey, Kendric wrote: > >>-----Original Message----- >>From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Boli >>Sent: Tuesday, August 13, 2013 3:36 PM >>To: RT users >>Subject: [rt-users] Re-send a previously attached attachment? >> >>Hi All, >> >>Apologies if I have missed something obvious. >> >>How can I re-send an attachment that has previously been attached to a ticket without downloading it and re-attaching it. >> >>For example, if a new requestor or CC is added to a ticket, and I want to get them up to date quickly by referring to previously discussed/attached information. >> >>Comments/Suggestions welcomed >> >>Regards, > > Point them to the web view of the ticket? The attachment should be there in the ticket history, so they can download/view it at their leisure. > > (assuming you don't have a security policy that would prevent this) The alternate (attaching a previously attached attachment to a new reply) is something we've explored in a few branches with clients, but nothing we've written has stuck or been right for mainstream release. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From trs at bestpractical.com Wed Aug 14 11:19:14 2013 From: trs at bestpractical.com (Thomas Sibley) Date: Wed, 14 Aug 2013 08:19:14 -0700 Subject: [rt-users] sendmailpipe returns EX_TEMPFAIL In-Reply-To: <20130814143525.GJ2007@jibsheet.com> References: <20130814143525.GJ2007@jibsheet.com> Message-ID: <520B9FF2.7080903@bestpractical.com> On 08/14/2013 07:35 AM, Kevin Falcone wrote: >> So maybe the problem is solved? I did have PerlOptions +Parent in the >> apache configuration before, but maybe not correctly? I checked the >> other application's vhosts file and it _does_ have PerlOptions >> +Parent. > > While PerlOptions +Parent is important if you need to run two mod_perl > apps, you should keep your log in place, and possibly dig up one of > the shims from the mailing list archives that has been used to debug > this. > > In the past, it was bugs in mod_perl and the handler type, but it's > nearly impossible to debug from the standard RT debug and mail logs. Adding on to what Kevin said... You could also just save yourself some time and switch to a different deployment option for RT. Running it under mod_fastcgi or mod_fcgid is simple and would avoid any mod_perl bugs with +Parent. Why fight with mod_perl? From dbrooks at mdah.state.ms.us Wed Aug 14 11:42:46 2013 From: dbrooks at mdah.state.ms.us (Donny Brooks) Date: Wed, 14 Aug 2013 10:42:46 -0500 Subject: [rt-users] Groups in LDAP Message-ID: <7597-520ba580-5-2262d0c0@25267501> I have successfully setup RT4.0.17 on a CentOS 6.4 machine with RT::Authen::ExternalAuth to authenticate against our OpenLDAP. My question is, can I have certain groups in LDAP that are automatically privileged in RT? Like setup a helpdesk group and everyone in there are automatically set with the proper abilities. -- Donny B. From ltomalty at uwaterloo.ca Wed Aug 14 11:47:52 2013 From: ltomalty at uwaterloo.ca (Lisa Tomalty) Date: Wed, 14 Aug 2013 15:47:52 +0000 Subject: [rt-users] RT4 and GIT; RT4 and Eclipse Message-ID: <360FA71407D1624082F4F84DBACABD541220677C@connmbx5> 1) Re: GIT <-> RT4 integration: ---Does anyone know of a way to tie a "commit" (in GIT) to a ticket in RT4, by putting an RT ticket # in the commit (and, ideally, back to the code)? 2) Does anyone know of a way to connect Eclipse and RT4 (mylin used to do this with an older version of RT)? Thanks! Lisa :) -------------------------------------------------------------------------------- Lisa Tomalty Information Systems & Technology/Arts Computing Office MC 2052/PAS 2023 University of Waterloo Waterloo, Ontario, Canada MC2025/PAS1083 (519) 888-4567 X35873 ltomalty at uwaterloo.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirby at umbc.edu Wed Aug 14 12:09:52 2013 From: kirby at umbc.edu (Joe Kirby) Date: Wed, 14 Aug 2013 12:09:52 -0400 Subject: [rt-users] rt-users Digest, Vol 113, Issue 20 In-Reply-To: References: Message-ID: <957A0C23-D755-434D-89D3-43D23DA5D2D3@umbc.edu> Thank You! and will do with replies Joe Joe Kirby , Assistant Vice President, Business Systems Division of Information Technology (DoIT) Support Response - http://www.umbc.edu/doit Administration 627 Office - 410-455-3020 Email - kirby at umbc.edu On Aug 14, 2013, at 12:00 PM, rt-users-request at lists.bestpractical.com wrote: > Send rt-users mailing list submissions to > rt-users at lists.bestpractical.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users > or, via email, send a message with subject or body 'help' to > rt-users-request at lists.bestpractical.com > > You can reach the person managing the list at > rt-users-owner at lists.bestpractical.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of rt-users digest..." > > > Today's Topics: > > 1. Re: Modify CF dropdown list from external DB based off of > another CFs value (Joe Harris) > 2. Re: MySQL issue - Windows vs. Linux - Table name > (Cena, Stephen (ext. 300)) > 3. Re: RT-at-a-Glance Saved Searches not showing RT System > searches (Kevin Falcone) > 4. Re: sendmailpipe returns EX_TEMPFAIL (Kevin Falcone) > 5. Re: Re-send a previously attached attachment? (Kevin Falcone) > 6. Re: sendmailpipe returns EX_TEMPFAIL (Thomas Sibley) > 7. Groups in LDAP (Donny Brooks) > 8. RT4 and GIT; RT4 and Eclipse (Lisa Tomalty) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 14 Aug 2013 07:23:23 -0400 > From: Joe Harris > To: "scott.dalzell" > Cc: "rt-users at lists.bestpractical.com" > > Subject: Re: [rt-users] Modify CF dropdown list from external DB based > off of another CFs value > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > I had a similar need. But instead of connecting to an external database > from within RT, I put together 2 scripts to check for content change and > dump and load my custom fields in cron. In my case, I was pulling time > sheet codes which are: > client_project and task_code. Each client_project has specific task_codes > so task_codes is dependent on client_project. Mine is probably way more > complicated than you need and could be done easier in perl. I'm a bash man > at heart so here is my method. They could be run from one script as long > as the server has access to get to both databases. Since custom fields are > added to transactions as the actual field values (and not relational by > id's) this was the best way foe me to get this done. During the day if the > finance department adds or removes codes, within an hour the RT system is > updated. Also in my case, client_project and task_code are each > concatenated from 4 fields in my original search (fields 1 and 2 make up > client_project and fields 3 and 4 make up task_code). Hope this helps in > some way and apologies for the long message... > > The first script is run on the external server and creates a load file. > This script is run every hour between 8am and 5pm from cron. > > #!/bin/bash > NEWFILE=/tmp/codes.txt > OLDFILE=/tmp/codes.last > /bin/mv $NEWFILE $OLDFILE > /usr/bin/psql -A -t -c "select field1,field2 from table where criteria like > 'your_criteria' -U postgres_user databasename >$NEWFILE > if /usr/bin/diff $NEWFILE $OLDFILE >/dev/null ; then > echo "NoChanges" >/tmp/codes.status > else > echo "Changes" >/tmp/codes.status > fi > > Then on another server, I look at the codes.status file and check for > changes. If there are, I pull over the file and dump and load the > customfieldvalues table where the customfield is in my case 1 and 2. This > script is run 5 minutes after the other one. > > #!/bin/bash > HOME=/path/to/scripts > STATUSFILE=/tmp/codes.status > LOADFILE=/tmp/codes.txt > LASTFILE=/tmp/codes.txt > LOGFILE=$HOME/codes.log > PGSERVER=RT_PGSERVERNAME_REDACTED > PGUSER=RT_USER_REDACTED > PGDB=RT_DBNAME_REDACTED > TODAY=`date +%Y-%m-%d-%H:%M:%S` > echo "Starting script at $TODAY" > # Start logging > exec > >(tee $LOGFILE) > exec 2>&1 > > #Fetch status file > scp root at EXT_SERVERNAME_REDACTED:$STATUSFILE /tmp/ > STATUS=`cat $STATUSFILE` > echo $STATUS > $LOGFILE > if [ $STATUS == "Changes" ] ; then > echo "Making Changes">> $LOGFILE > > # Fetch update file > scp root at EXT_SERVERNAME_REDACTED:$LOADFILE /tmp/ > > # Clean up previous sql load files and remove the old custom fields > rm -f $HOME/client_project.* > rm -f $HOME/task_code.* > rm -f $HOME/sequence.tmp > mv $HOME/client_project_backup $HOME/client_project_backup-$TODAY > psql -A -t -c "select * from customfieldvalues where customfield='1'" -h > $PGSERVER -U $PGUSER $PGDB >>$HOME/client_project_backup > psql -A -t -c "select * from customfieldvalues where customfield='2'" -h > $PGSERVER -U $PGUSER $PGDB >>$HOME/task_code_backup > psql -A -c "delete from customfieldvalues where customfield='1'" -h > $PGSERVER -U $PGUSER $PGDB > psql -A -c "delete from customfieldvalues where customfield='2'" -h > $PGSERVER -U $PGUSER $PGDB > # Add a placeholder to notify users that update is taking place > psql -A -c "insert into customfieldvalues > (customfield,name,creator,created) values ('1','Tasks are being updated. > Refresh in 2-5 minutes','22',now())" -h $PGSERVER -U $PGUSER $PGDB > > # Start numbering > echo "5" >$HOME/sequence.tmp > > # Parse through load file and capture variables to populate Client/Project > field > OIFS=$IFS > IFS=' > ' > for m in `cat $LOADFILE` > do > CLIENT=`echo $m|cut -d"|" -f1` > PROJECT=`echo $m|cut -d"|" -f2` > CLIENTPROJECT="${CLIENT}[${PROJECT}]" > echo "$CLIENTPROJECT" >>$HOME/client_project.tmp > done > > # Get Unique Client Project Codes to load to database > cat $HOME/client_project.tmp |sort -u >> $HOME/client_project.txt > OIFS=$IFS > IFS=' > ' > for c in `cat $HOME/client_project.txt` > do > NAME=`echo $c |cut -d"|" -f1` > # Send load file info to SQL file for troubleshooting, then update the > database with the new Client Project Values > echo "psql -A -c \"insert into customfieldvalues > (customfield,name,creator,created) values ('1','$c','22',now())\" -h > $PGSERVER -U $PGUSER $PGDB" >>$HOME/client_project.sql > psql -A -c "insert into customfieldvalues > (customfield,name,creator,created) values ('1','$c','22',now())" -h > $PGSERVER -U $PGUSER $PGDB > > #Increment sequence file for sorting in the Web GUI > sequence=`tail -n1 $HOME/sequence.tmp` > SEQUENCE=`expr $sequence + 5` > CLEANNAME=`echo $NAME |sed -e 's/\[/\|/g; s/\]//g'` > > # Using the formatted Client/Project codes, loop through the loadfile and > capture Task codes for each Client/Project code > OIFS=$IFS > IFS=' > ' > for task in `cat $LOADFILE|grep $CLEANNAME` > do > TASK=`echo $task|cut -d"|" -f3` > CODE=`echo $task|cut -d"|" -f4` > CLIENT=`echo $task|cut -d"|" -f1` > PROJECT=`echo $task|cut -d"|" -f2` > CLIENTPROJECT="${CLIENT}[${PROJECT}]" > TASKCODE="${TASK}[${CODE}]" > echo "psql -A -c \"insert into customfieldvalues > (customfield,name,creator,created,category,sortorder) values > ('2','$TASKCODE','22',now(),'$CLIENTPROJECT','$SEQUENCE')\" -h $PGSERVER -U > $PGUSER $PGDB" >>$HOME/task_code.sql > psql -A -c "insert into customfieldvalues > (customfield,name,creator,created,category,sortorder) values > ('2','$TASKCODE','22',now(),'$CLIENTPROJECT','$SEQUENCE')" -h $PGSERVER -U > $PGUSER $PGDB > echo $SEQUENCE >$HOME/sequence.tmp > done > done > psql -A -c "delete from customfieldvalues where name='Tasks are being > updated. Refresh in 2-5 minutes'" -h $PGSERVER -U $PGUSER $PGDB > echo "Complete" >>$LOGFILE > else > echo "No Changes">>$LOGFILE > fi > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 2 > Date: Wed, 14 Aug 2013 08:19:38 -0400 > From: "Cena, Stephen \(ext. 300\)" > To: > Subject: Re: [rt-users] MySQL issue - Windows vs. Linux - Table name > Message-ID: > <4DD6AB329450D847913EA76D7F3C6B8312F7F634 at valkyrie.ogp.qvii.com> > Content-Type: text/plain; charset="us-ascii" > > Maciek - I figured it was more a MySQL issue than an RT one. I manually > went in & changed each table to the correct one (users to Users) and > that appeared to work. However, this won't fix my problem if I have to > move several databases over (we have a lot of MySQL dependant apps > here). Thank you for the link. I'll take a look at it today & see if it > will help. I'm just glad to know it's a MySQL issue and not an RT one! > > Steve > > > ------------------------------ > > Message: 3 > Date: Wed, 14 Aug 2013 10:33:03 -0400 > From: Kevin Falcone > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] RT-at-a-Glance Saved Searches not showing RT > System searches > Message-ID: <20130814143303.GI2007 at jibsheet.com> > Content-Type: text/plain; charset="us-ascii" > > Joe - it helps if you trim the rest of the digest when replying. > > On Tue, Aug 13, 2013 at 12:43:08PM -0400, Joe Kirby wrote: >>> >>> I would like to know how to make RT System Searches show when the Saved Searches is added to >>> RT-at-a-Glance. >>> >>> This is a great feature for My Closed Tickets type reports that are really not needed on the >>> page as its own. >>> >>> At this time it seems like only SuperUser gets these. >>> >>> Is there a setting that would allow this? >>> >>> Thanks in advance >> >> Usually when I do not hear back on a topic it means that it is either not clear what I am >> asking for or it is a stupid question. >> I have looked back through the wiki again with no luck on how to have RT System Searches >> available to the delivered Saved Search. >> The reports saved as RT System Searches are available to be placed on the RT-at-a-Glance but >> do not show up in the Saved Search option. >> I am trying to avoid having to generate many copies of a system wide report so it shows up in >> folks Saved Search collection. >> At the risk of being an annoyance I am reporting >> Thanks in advance > > RT System Searches don't automatically show up for all users unless > their name is in a specific format (compare with the system default > searches we ship). I consider this an oversight, and it'll probably > be fixed in a future release. At this time, your best solution is > finding the widest group you can and assigning the search to that > group. > > -kevin > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 235 bytes > Desc: not available > URL: > > ------------------------------ > > Message: 4 > Date: Wed, 14 Aug 2013 10:35:25 -0400 > From: Kevin Falcone > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] sendmailpipe returns EX_TEMPFAIL > Message-ID: <20130814143525.GJ2007 at jibsheet.com> > Content-Type: text/plain; charset="us-ascii" > > On Tue, Aug 13, 2013 at 10:55:57AM +0200, Nathan Cutler wrote: >>> Does anyone have any other ideas for debugging this issue? Especially >>> I am interested in how I could confirm or deny that it's related to >>> mod_perl "cohabitation" -- i.e. two different Perl applications in a >>> single mod_perl host? >> >> I noticed that when I don't have "PerlOptions +Parent" in the apache >> config, the Perl library search order on the System Configuration page >> is different than when I do. Here's what it looks like _without_ >> PerlOptions +Parent (omitting the line numbers which do not >> copy-paste): >> >> Perl library search order >> >> /usr/share/request-tracker/local/lib >> /usr/share/request-tracker/local/plugins/RT-Extension-MergeUsers/lib >> /usr/lib/perl5/vendor_perl/5.10.0 >> /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi >> /srv/www/perl-lib >> /srv/www/vhosts/pdb/ >> /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi >> /usr/lib/perl5/site_perl/5.10.0 >> /usr/lib/perl5/vendor_perl >> /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi >> /usr/lib/perl5/5.10.0 >> . >> /srv/www >> >> Notice lines 5 and 6 which obviously come from the other mod_perl application. >> >> Now, here's what it says _with_ PerlOptions +Parent: >> >> Perl library search order >> >> /usr/share/request-tracker/local/lib >> /usr/share/request-tracker/local/plugins/RT-Extension-MergeUsers/lib >> /usr/lib/perl5/vendor_perl/5.10.0 >> /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi >> /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi >> /usr/lib/perl5/site_perl/5.10.0 >> /usr/lib/perl5/vendor_perl >> /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi >> /usr/lib/perl5/5.10.0 >> . >> /srv/www >> >> So maybe the problem is solved? I did have PerlOptions +Parent in the >> apache configuration before, but maybe not correctly? I checked the >> other application's vhosts file and it _does_ have PerlOptions >> +Parent. > > While PerlOptions +Parent is important if you need to run two mod_perl > apps, you should keep your log in place, and possibly dig up one of > the shims from the mailing list archives that has been used to debug > this. > > In the past, it was bugs in mod_perl and the handler type, but it's > nearly impossible to debug from the standard RT debug and mail logs. > > -kevin > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 235 bytes > Desc: not available > URL: > > ------------------------------ > > Message: 5 > Date: Wed, 14 Aug 2013 10:36:17 -0400 > From: Kevin Falcone > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] Re-send a previously attached attachment? > Message-ID: <20130814143617.GK2007 at jibsheet.com> > Content-Type: text/plain; charset="us-ascii" > > On Tue, Aug 13, 2013 at 09:49:54PM +0000, Beachey, Kendric wrote: >> >>> -----Original Message----- >>> From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Boli >>> Sent: Tuesday, August 13, 2013 3:36 PM >>> To: RT users >>> Subject: [rt-users] Re-send a previously attached attachment? >>> >>> Hi All, >>> >>> Apologies if I have missed something obvious. >>> >>> How can I re-send an attachment that has previously been attached to a ticket without downloading it and re-attaching it. >>> >>> For example, if a new requestor or CC is added to a ticket, and I want to get them up to date quickly by referring to previously discussed/attached information. >>> >>> Comments/Suggestions welcomed >>> >>> Regards, >> >> Point them to the web view of the ticket? The attachment should be there in the ticket history, so they can download/view it at their leisure. >> >> (assuming you don't have a security policy that would prevent this) > > The alternate (attaching a previously attached attachment to a new > reply) is something we've explored in a few branches with clients, but > nothing we've written has stuck or been right for mainstream release. > > -kevin > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: not available > Type: application/pgp-signature > Size: 235 bytes > Desc: not available > URL: > > ------------------------------ > > Message: 6 > Date: Wed, 14 Aug 2013 08:19:14 -0700 > From: Thomas Sibley > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] sendmailpipe returns EX_TEMPFAIL > Message-ID: <520B9FF2.7080903 at bestpractical.com> > Content-Type: text/plain; charset=UTF-8 > > On 08/14/2013 07:35 AM, Kevin Falcone wrote: >>> So maybe the problem is solved? I did have PerlOptions +Parent in the >>> apache configuration before, but maybe not correctly? I checked the >>> other application's vhosts file and it _does_ have PerlOptions >>> +Parent. >> >> While PerlOptions +Parent is important if you need to run two mod_perl >> apps, you should keep your log in place, and possibly dig up one of >> the shims from the mailing list archives that has been used to debug >> this. >> >> In the past, it was bugs in mod_perl and the handler type, but it's >> nearly impossible to debug from the standard RT debug and mail logs. > > Adding on to what Kevin said... > > You could also just save yourself some time and switch to a different > deployment option for RT. Running it under mod_fastcgi or mod_fcgid is > simple and would avoid any mod_perl bugs with +Parent. Why fight with > mod_perl? > > > ------------------------------ > > Message: 7 > Date: Wed, 14 Aug 2013 10:42:46 -0500 > From: "Donny Brooks" > To: rt-users at lists.bestpractical.com > Subject: [rt-users] Groups in LDAP > Message-ID: <7597-520ba580-5-2262d0c0 at 25267501> > Content-Type: text/plain; charset="utf-8" > > I have successfully setup RT4.0.17 on a CentOS 6.4 machine with RT::Authen::ExternalAuth to authenticate against our OpenLDAP. My question is, can I have certain groups in LDAP that are automatically privileged in RT? Like setup a helpdesk group and everyone in there are automatically set with the proper abilities. > -- > > Donny B. > > > ------------------------------ > > Message: 8 > Date: Wed, 14 Aug 2013 15:47:52 +0000 > From: Lisa Tomalty > To: "rt-users at lists.bestpractical.com" > > Subject: [rt-users] RT4 and GIT; RT4 and Eclipse > Message-ID: <360FA71407D1624082F4F84DBACABD541220677C at connmbx5> > Content-Type: text/plain; charset="us-ascii" > > > 1) Re: GIT <-> RT4 integration: > ---Does anyone know of a way to tie a "commit" (in GIT) to a ticket in RT4, by putting an RT ticket # in the commit (and, ideally, back to the code)? > > 2) Does anyone know of a way to connect Eclipse and RT4 (mylin used to do this with an older version of RT)? > > Thanks! > Lisa :) > > -------------------------------------------------------------------------------- > Lisa Tomalty > Information Systems & Technology/Arts Computing Office > > MC 2052/PAS 2023 > University of Waterloo > Waterloo, Ontario, Canada > MC2025/PAS1083 > (519) 888-4567 X35873 > ltomalty at uwaterloo.ca > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > -------- > rt-users mailing list > rt-users at lists.bestpractical.com > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users > > > > End of rt-users Digest, Vol 113, Issue 20 > ***************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From JThuau at spacex.com Wed Aug 14 12:09:41 2013 From: JThuau at spacex.com (Jok Thuau) Date: Wed, 14 Aug 2013 16:09:41 +0000 Subject: [rt-users] RT4 and GIT; RT4 and Eclipse In-Reply-To: <360FA71407D1624082F4F84DBACABD541220677C@connmbx5> Message-ID: 1) Re: GIT <-> RT4 integration: ---Does anyone know of a way to tie a ?commit? (in GIT) to a ticket in RT4, by putting an RT ticket # in the commit (and, ideally, back to the code)? Git has hooks where you can call specific scripts at different stages in the commit process. You should be able to use a post-commit hook to "poke at RT" and do what you need. 2) Does anyone know of a way to connect Eclipse and RT4 (mylin used to do this with an older version of RT)? Not familiar with either of those, so I can't be of much help here. University of Waterloo Waterloo, Ontario, Canada Go Warriors! Thanks, Jok From JThuau at spacex.com Wed Aug 14 12:05:10 2013 From: JThuau at spacex.com (Jok Thuau) Date: Wed, 14 Aug 2013 16:05:10 +0000 Subject: [rt-users] Groups in LDAP In-Reply-To: <7597-520ba580-5-2262d0c0@25267501> Message-ID: There is an extension that will allow you to import groups from LDAP into RT. The extension, by default, just loads users, then groups. My patch (which is in the queue for that extension -- see below), adds a filter to the config to automatically privilege those users that match a second search. You can find the patch here: https://rt.cpan.org/Public/Bug/Display.html?id=76926 It is far from the most elegant way of doing this, but "It Works For Me(?)" Thanks, Jok -- | Joachim Thuau | IT Systems Engineer - Linux / SpaceX | On 8/14/13 8:42 AM, "Donny Brooks" wrote: >I have successfully setup RT4.0.17 on a CentOS 6.4 machine with >RT::Authen::ExternalAuth to authenticate against our OpenLDAP. My >question is, can I have certain groups in LDAP that are automatically >privileged in RT? Like setup a helpdesk group and everyone in there are >automatically set with the proper abilities. >-- > >Donny B. From javoskam at uwaterloo.ca Wed Aug 14 12:41:55 2013 From: javoskam at uwaterloo.ca (Jeff Voskamp) Date: Wed, 14 Aug 2013 12:41:55 -0400 Subject: [rt-users] RT4 and GIT; RT4 and Eclipse In-Reply-To: References: Message-ID: <520BB353.7060406@uwaterloo.ca> On 08/14/2013 12:09 PM, Jok Thuau wrote: > > > 1) Re: GIT <-> RT4 integration: > ---Does anyone know of a way to tie a ?commit? (in GIT) to a ticket in RT4, by putting an RT ticket # in the commit (and, ideally, back to the code)? > > Git has hooks where you can call specific scripts at different stages in the commit process. You should be able to use a post-commit hook to "poke at RT" and do what you need. > > > 2) Does anyone know of a way to connect Eclipse and RT4 (mylin used to do this with an older version of RT)? > > > Not familiar with either of those, so I can't be of much help here. > > University of Waterloo > Waterloo, Ontario, Canada > > Go Warriors! > > Thanks, > Jok > RT::Integration::SVN is a start but has some significant limitations. I took a look at a year or so ago. Jeff From Raed.El-Hames at daisygroupplc.com Wed Aug 14 21:32:37 2013 From: Raed.El-Hames at daisygroupplc.com (Raed El-Hames) Date: Thu, 15 Aug 2013 01:32:37 +0000 Subject: [rt-users] Malformed RT response when trying to create ticket from cli (rt) Message-ID: <892593C9CA8E25458C440A63DDC6774D8AEDD9DA@DG-HEXMBX01.daisy.group> Hi RT version 4.0.13 I am having problems creating ticket from REST interface [root at myrt RestClient]# RTDEBUG=3 ./rt create -t ticket set id='ticket/new' Queue='Testing' subject='new ticket' POST http://myrturl/REST/1.0/show Content-Length: 264 Content-Type: multipart/form-data; boundary=xYzZY --xYzZY Content-Disposition: form-data; name="format" l --xYzZY Content-Disposition: form-data; name="id" ticket/new --xYzZY Content-Disposition: form-data; name="user" root --xYzZY Content-Disposition: form-data; name="pass" mypass --xYzZY-- HTTP/1.1 200 OK Connection: close Date: Thu, 15 Aug 2013 01:29:04 GMT Server: Apache/2.2.15 (CentOS) Content-Type: text/plain; charset=utf-8 Client-Date: Thu, 15 Aug 2013 01:29:04 GMT Client-Peer: 194.143.161.11:80 Client-Response-Num: 1 Client-Transfer-Encoding: chunked Set-Cookie: RT_SID_myrt.80=0e3b9b4e581aa0237b098fefdb98e37f; path=/; HttpOnly X-Frame-Options: DENY RT/4.0.13 200 Ok # Required: id, Queue id: ticket/new Queue: General Requestor: root Subject: Cc: AdminCc: Owner: Status: new Priority: 100 InitialPriority: 100 FinalPriority: 60 TimeEstimated: 0 Starts: 2013-08-15 01:29:04 Due: 2013-08-15 01:29:04 Text: rt: Malformed RT response from http://myrt. Can anyone give any pointers ,rather urgent , The only plugins I added : (RT::Extension::TicketLocking RT::Extension::MergeUsers RTx::Calendar RT::Extension::SLA) Roy [cid:image301004.PNG at a4a14fa2.4ea5c3f8] This email (and any attachments) contains information, which may be privileged and/or confidential. It's meant only for the individual(s) or entity named above. If you're not the intended recipient, please note that disclosing, copying, distributing or using this information is prohibited. If you've received this email in error, please let me know immediately by emailing me at the email address above and then delete all traces of this email from your system. We monitor our email system, and may record your emails. Computer viruses can be transmitted by email. You should check this email and any attachments for the presence of viruses. We accept no liability for any damage caused by any virus transmitted by this email or any attachments. Daisy Communications Ltd Registered office: Daisy House, Lindred Road Business Park, Nelson, Lancashire, BB9 5SR Registered in England and Wales with company number: 4145329 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image301004.PNG Type: image/png Size: 8216 bytes Desc: image301004.PNG URL: From talena at bestpractical.com Thu Aug 15 14:32:31 2013 From: talena at bestpractical.com (Talena Gandy) Date: Thu, 15 Aug 2013 14:32:31 -0400 Subject: [rt-users] [rt-announce] Register now for Request Tracker (RT) training in New York this October! Message-ID: <3406989A-E77F-4248-B3E4-628C398AE73E@bestpractical.com> Greetings! Our third training for 2013 will be held in New York, NY on October 8th and 9th. As we like to keep class sizes relatively intimate, register soon or we may not be able to guarantee you a seat. If you can't make it to this training session, feel free to drop us a line to suggest locations for the future. This training will introduce you to the new features in RT 4.2 as part of a comprehensive overview of RT. Whether you're an old hand at RT or a recent convert, you'll have a good understanding of all of RT's features and functionality by the end of the session. The first day starts off with a tour of RT's web interface and continues with a detailed exploration and explanation of RT's functionality, aimed at non-programmer RT administrators. We'll walk through setting up a common helpdesk configuration, from rights management, constructing workflows and notifications, and the basics of Lifecycles. The second day of training picks up with server-side RT administration and dives into what you need to safely customize and extend RT. We'll cover upgrading and deploying RT, database tuning, advanced Lifecycle configurations, writing tools with RT's API, building an extension, and demonstrate how to extensibly alter the web UI and internal functions. It goes without saying that you'll get the most out of training if you attend both days of the course, but we've designed the material so that you can step out after the first day with a dramatically improved understanding of how to use RT or show up on the second day and get quickly up to speed on how to make RT do your bidding. Each class includes training materials, a continental breakfast, and an afternoon snack (lunch is not provided). If you'd like to pay with Visa, MasterCard or Discover, please visit Best Practical's online store at https://shop.bestpractical.com/#Training. Unfortunately we are unable to accept American Express or PayPal. If you'd prefer to pay with a purchase order, please email us at training at bestpractical.com. Be sure to include: * If you want to attend both days or a single day * Full names and email addresses of attendees Please also contact us at training at bestpractical.com for discounted pricing if you are from an academic institution or if you'd like to send more than 3 people. As always, feel free to drop us a line if you have any other questions. Have a great day! The Team at BPS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ rt-announce mailing list rt-announce at lists.bestpractical.com http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-announce From dbrooks at mdah.state.ms.us Thu Aug 15 15:20:38 2013 From: dbrooks at mdah.state.ms.us (Donny Brooks) Date: Thu, 15 Aug 2013 14:20:38 -0500 Subject: [rt-users] A few general questions Message-ID: <486f-520d2a00-3-633f0780@77046559> I have setup RT 4.0.17 on Centos 6.4 with RT::External:Auth for our ldap along with RT-mailgate and the corresponding email command stuff. All that is working, as best I can tell. We are currently testing only a single queue so we can just have one single email address users can send to and from there our manager can delegate it to whomever they deem needed. However I have a few questions. 1. How do you setup the "manager" account? Basically one that can delegate tickets to others, but still have it to where we can take ownership without their intervention if needed. 2. Is there an easy way to get statistics of number of tickets worked by each individual staff member 3. Is there a good place to read up on the various permissions and such I would need to set to allow my staff and I to do stuff. I have found hit and miss documentation in the wikia but nothing all inclusive. -- Donny B. From kevin.elliott at alaska.gov Thu Aug 15 18:09:15 2013 From: kevin.elliott at alaska.gov (Elliott, Kevin C (DOR)) Date: Thu, 15 Aug 2013 22:09:15 +0000 Subject: [rt-users] A few general questions In-Reply-To: <486f-520d2a00-3-633f0780@77046559> References: <486f-520d2a00-3-633f0780@77046559> Message-ID: <1BCBBD850909C148B389F50256796E351F685FE1@SOAJNUEXMB3.soa.alaska.gov> > 1. How do you setup the "manager" account? Basically one that can delegate > tickets to others, but still have it to where we can take ownership without > their intervention if needed. Try configuring a global group called Staff (or something similar) and then assigning it global rights. This would represent your cross-queue staff members such as your IT staff who need these rights in any queue. Then you could create a group (e.g., $QUEUE-Staff) and then assign them appropriate rights to their queue. In a situation where you have many queues (Building Maintenance, Help Desk, Change Requests, etc), members of your global group would have rights to all of those queues and could act as queue independent staff. Members of the $QUEUE-Staff groups would have rights specific to their queue and would function in a similar manner. Just be aware that if you follow this scheme and you need to restrict the rights of the Staff group, you'll have to go back in after the fact and assign it per-queue rights. > 2. Is there an easy way to get statistics of number of tickets worked by each > individual staff member You should be able to look at charts in the search functionality. 3. Is there a good place to read up on the various > permissions and such I would need to set to allow my staff and I to do stuff. I > have found hit and miss documentation in the wikia but nothing all inclusive. Try reading the http://requesttracker.wikia.com/wiki/RightsQuickStart and the http://requesttracker.wikia.com/wiki/Group Wikis. Other than that, if your RT instance is in a virtualized environment - I'd recommend taking a snapshot and just playing around with Rights and Groups until you get a good feel for it and then just roll back when you're done. From anthony.gladdish at newcastle.ac.uk Fri Aug 16 05:26:41 2013 From: anthony.gladdish at newcastle.ac.uk (Anthony Gladdish) Date: Fri, 16 Aug 2013 09:26:41 +0000 Subject: [rt-users] Upgrade: RTFM Article, Content CustomField not displaying Message-ID: <3DF7F58D8446BA4AB46ED0711FF24FF64EDF0F0C@EXMBCT01.campus.ncl.ac.uk> Hi, When viewing/editing an RTFM Article, Content CustomField is not displaying. This is after installing a fresh copy of RT 3.8.17 + RTFM 2.4.5 and pointing at copy of database, and upgraded as per steps in: http://www.bestpractical.com/docs/rt/3.8/UPGRADING.html from 3.8.2. I chose not to run optional "perl etc/upgrade/split-out-cf-categories" in 3.8.5 step. CustomFields already exist; I don't need to create new ones. The data in database has not changed during database upgrade. Test system ( RT 3.8.17 + RTFM 2.4.5 ): For both menus: Menu: RTFM -> Configuration -> Custom Fields Menu: Configuration -> RTFM -> Custom Fields Lists record #32 from the "CustomFields" table. "Applied" column is empty. Lists record #31 from the "CustomFields" table. "Applied" column is empty. Clicking on each CustomField, "Applies to" is "RTFM Articles". I think it should be referencing CF records from "FM_CustomFields" table instead? Works fine with RT 3.8.2 + RTFM 2.4.1. Is this a bug or have I missed something? Thanks, Anthony From SJC at qvii.com Fri Aug 16 12:51:26 2013 From: SJC at qvii.com (Cena, Stephen (ext. 300)) Date: Fri, 16 Aug 2013 12:51:26 -0400 Subject: [rt-users] MySQL issue - Windows vs. Linux - Table name case seems References: Message-ID: <4DD6AB329450D847913EA76D7F3C6B8312FA76C8@valkyrie.ogp.qvii.com> Just an update for everyone: I'm using Ubuntu 12.04LTS as the MySQL test bed to move my RT databases to. While this link: http://dev.mysql.com/doc/refman/5.5/en/identifier-case-sensitivity.html provided by Maciej Dobrzanski did help, I noticed a small issue. For some reason, 2 is not a valid option on Ubuntu. 0 and 1 both work, but 2 seems to get ignored. I've been trying to work out if its me or the database server. The RT database is small enough than I can manually fix the tables names, but just wanted to give a "heads up" if anyone else goes through this. Stephen Cena QVII MIS/IT Dept 850 Hudson Ave. Rochester, NY. 14620 585-544-0450 x300 sjc at qvii.com "Thank you for helping us help you help us all." From aharrison at gmail.com Fri Aug 16 21:17:12 2013 From: aharrison at gmail.com (Andy Harrison) Date: Fri, 16 Aug 2013 21:17:12 -0400 Subject: [rt-users] Regex In-Reply-To: References: Message-ID: Putting specific numbers in your expressions like that really hamstrings you if things don't match up to the exact counts you specify. To match your city, just do this: /^\s*(\w.*?),\s+\w{2}\s+\d{5}/ Start of line, optionally followed by 0 or more spaces, (start capture) followed by a word character, followed by a non-greedy match of any number of characters (stop capture) up to a comma, followed by 1 or more spaces, followed by two word characters, followed by 1 or more spaces, followed by 5 digits. -- Andy Harrison public key: 0x67518262 On Fri, Aug 9, 2013 at 7:37 PM, Bryon Baker wrote: > Sorry back to the drawing board does not work if the city is two words.** > ** > > ** ** > > Bryon Baker**** > > Network Operations Manager**** > > *Copesan** - Specialists in Pest Solutions* > > 800-267-3726 ? 262-783-6261 ext. 2296**** > > bbaker at copesan.com **** > > www.copesan.com**** > > *"Servicing North America with Local Care"***** > > ** ** > > *From:* Bryon Baker > *Sent:* Friday, August 09, 2013 6:05 PM > *To:* 'rt-users at lists.bestpractical.com' > *Subject:* RE: Regex **** > > ** ** > > Update this is what I came up with seems to work Thoughts?**** > > Tries to anchor begin of line but found it is white space.**** > > /\s{10}([\w{2},]+),\s*(\w{2})\s*(\d{5})/**** > > ** ** > > Ok this question is to the regex experts**** > > I have this email content and I want returned to me the City.**** > > ** ** > > 116 Walker Ave. > Berlin Circle Plaza > West Berlin, NJ 08091 > Store Contact: MICHAEL OCONNOR - SOPASM > Phone: (856)719-0335 > Fax : (856)719-2216**** > > ** ** > > Thanks in advance for you expert help.**** > > ** ** > > Thanks**** > > Bryon Baker**** > > Network Operations Manager**** > > *Copesan** - Specialists in Pest Solutions* > > 800-267-3726 ? 262-783-6261 ext. 2296**** > > bbaker at copesan.com **** > > www.copesan.com**** > > *"Servicing North America with Local Care"***** > > ** ** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arunragini at gmail.com Sat Aug 17 15:56:22 2013 From: arunragini at gmail.com (Arun ragini) Date: Sun, 18 Aug 2013 01:26:22 +0530 Subject: [rt-users] Deep recursion on subroutine "RT::Queue::SubjectTag Message-ID: Hi, I have upgraded from 3.8.6 to 4.0.16 then 4.0.17 now we are hitting with following errors [Sat Aug 17 19:54:23 2013] [warning]: Deep recursion on subroutine "RT::Queue::SubjectTag" at /opt/rt3/sbin/../lib/RT/System.pm line 232. (/opt/rt3/sbin/../lib/RT/System.pm:232) Out of memory! Callback called exit. Any help will be really helpfull. -- www.opensourcer.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at hudsonstreet.us Sun Aug 18 13:28:47 2013 From: michael at hudsonstreet.us (mdm100) Date: Sun, 18 Aug 2013 10:28:47 -0700 (PDT) Subject: [rt-users] Auto Reply Message-ID: <1376846927172-55038.post@n7.nabble.com> When requests to open tickets are sent directly to the RT queues email address a ticket is created and an Auto-Reply is received. ie.... sent to noc at RTsrvr.domain.com However, when a request to open a ticket is sent to noc at domain.com and that mail server forwards request to noc at RTsrvr.domain.com the ticket is opened/created but no auto-reply is received. Just cannot figure this one out. Any help is greatly appreciated. -- View this message in context: http://requesttracker.8502.n7.nabble.com/Auto-Reply-tp55038.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From david.fitches at unimelb.edu.au Mon Aug 19 01:05:03 2013 From: david.fitches at unimelb.edu.au (Dave Fitches) Date: Mon, 19 Aug 2013 05:05:03 +0000 Subject: [rt-users] Setting Due Dates from E-mail and writing Comments to transaction history from Custom Scrips Message-ID: <81A2F9BBDD09884AB1585083CBDEC37572CB4620@000S-EX-MBX-QS2.unimelb.edu.au> Hi all, Two problems I've been bashing my head against a wall with - any and all assistance appreciated! Problem 1: Setting the Due Date based on input from an E-mail ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ We're using web-forms to generate e-mails into RT which presents the information in an organised and standard manner. An example is below: Door Times Request Form : Details: Campus: Parkville Door Name: 203 Door Name: TEST JOB - DISREGARD Open Date: 21/08/2013 Open Time: 18:00 Close Date: 21/08/2013 Close Time: 19:00 Building Supervisor: Testy McTest Alot Department/Faculty Representitive: Campus Operations Group Requested By: Dave Fitches Email: dfitches at unimelb.edu.au Comments: Test job to get due date set for start date as defined by web form. -#- I want to grab the "Open Date: " date and set it to the ticket's DUE date (Id actually prefer to have to due the day BEFORE that, but lets work on one thing at a time shall we!) I'm using ExtractCustomFieldValues running to pluck information from these e-mails. My template goes something like this: # Set the jobs Due Date from E-mail Body |Body|(?<=Open Date: ).*|my $due_date = $value; $due_date->Set(Format => "ISO", Value => $value); $self->TicketObj->SetDue( $due_date->ISO );|q| This does NOT work for me... :( Instead I get: " [Mon Aug 19 04:47:17 2013] [error]: Can't call method "Set" on an undefined value at (eval 1293) line 1. " in my logs... Problem #2: Writing a comment to the transaction history ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I've got automatic e-mails being sent to requestors on status changes (we go from New->Open->Ordered->Dispatched->Resolved) The e-mail goes out ok, but I'd like it to log a comment to the transaction history that says so. While it shows up in my main HISTORY display, my DISPLAY history is masked to only show comments and correspondence, so I'd like a single comment line there to make seeing whats happened easier... I've got a custom scrip which goes like this: ________________________________________________________________________________________ DESCRIPTION: On Ordered Notify Requestors CONDITION: User Defined ACTION: Notify Requestors and CC's TEMPLATE: Auto-Report - Ordered STAGE: TransactionCreate CUSTOM CONDITIONS: my $txn = $self->TransactionObj; my $type = $txn->Type; return 0 unless $type eq "Status" || ( $type eq 'Set' && $txn->Field eq 'Status'); return 0 unless $txn->NewValue eq "ordered"; return 1; CUSTOM ACTION PREPARATION CODE: CUSTOM ACTION CLEANUP CODE: $self->TicketObj->Comment(Content =>"Notification sent to original requestor that their order has been processed." ); return 1; ________________________________________________________________________________________ I suspect the issue is in the cleanup code.... But it LOOKS correct! (to me - but I'm a n00b apparently!) Sorry for such a long e-mail. Again, any assistance would be greatly appreciated! Dave Fitches This email and any attachments may contain personal information or information that is otherwise confidential or the subject of copyright. Any use, disclosure or copying of any part of it is prohibited. The University does not warrant that this email or any attachments are free from viruses or defects. Please check any attachments for viruses and defects before opening them. If this email is received in error please delete it and notify us by return email. And I'm only using this signature template because I'm told I must conform. Personally I liked my old one better - but that's life! ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: From dbrooks at mdah.state.ms.us Mon Aug 19 11:19:31 2013 From: dbrooks at mdah.state.ms.us (Donny Brooks) Date: Mon, 19 Aug 2013 10:19:31 -0500 Subject: [rt-users] Change Management approvals Message-ID: <5c11-52123780-b-2f7c5200@32231635> I have setup the change requests queue according to the documents here: http://www.bestpractical.com/docs/rt/4.0/customizing/approvals.html. However I need it setup to where every one that receives the request has to approve it before it can be acted on. Basically that means 4 people in total in my environment would have to approve it. What would be the best way to do this or is it even possible? -- Donny B. From phalenor at gmail.com Mon Aug 19 13:02:35 2013 From: phalenor at gmail.com (Andrew Cobaugh) Date: Mon, 19 Aug 2013 13:02:35 -0400 Subject: [rt-users] Memory leaks with mod_fastcgi Message-ID: Hey folks, Is there no clean way around memory leaks in RT when using mod_fastcgi short of HUPing the individual rt-server.fcgi processes when they reach a certain size? Running 4.0.13 right now. With a load balancer in front hitting a simple html page located at /rt/NoAuth/LoadBalancer.html every couple of seconds, we see memory usage increase ~100MB per process with 5 rt-server processes over the course of about 12 hours. Is there any simple way to track down why memory is increasing so much? --andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From landonstewart at gmail.com Mon Aug 19 13:35:00 2013 From: landonstewart at gmail.com (Landon) Date: Mon, 19 Aug 2013 10:35:00 -0700 Subject: [rt-users] Setting Due Dates from E-mail and writing Comments to transaction history from Custom Scrips In-Reply-To: <81A2F9BBDD09884AB1585083CBDEC37572CB4620@000S-EX-MBX-QS2.unimelb.edu.au> References: <81A2F9BBDD09884AB1585083CBDEC37572CB4620@000S-EX-MBX-QS2.unimelb.edu.au> Message-ID: On 18 August 2013 22:05, Dave Fitches wrote: > My template goes something like this: > > ** > > ** ** > > # Set the jobs Due Date from E-mail Body**** > > |Body|(?<=Open Date: ).*|my $due_date = $value; $due_date->Set(Format > => "ISO", Value => $value); $self->TicketObj->SetDue( $due_date->ISO );|q| > **** > > ** ** > > This does NOT work for me? L **** > > Instead I get: ? [Mon Aug 19 04:47:17 2013] [error]: Can't call method > "Set" on an undefined value at (eval 1293) line 1. ? in my logs? > $due_date needs to be an RT::Date object in order to use set or ISO. Is it? ie: $due_date = new RT::Date( $self->CurrentUser ); $due_date->Set(Format => "ISO", Value => $value); $self->TicketObj->SetDue( $due_date->ISO ); Since your dates are not in ISO format I'd probably recommend using Format => 'unknown' to set the RT::Date figure it out. It takes a few extra cycles but provides flexibility when needed. I use this: my $Due = new RT::Date( $self->CurrentUser ); $Due->Set( Format => 'unknown', Value => 'now + 24 hours'); $ticket->SetDue($Due->ISO); > **** > > Problem #2: Writing a comment to the transaction history**** > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~**** > > While it shows up in my main HISTORY display, my DISPLAY history is masked > to only show comments and correspondence, so I?d like a single comment line > there to make seeing whats happened easier?**** > > CUSTOM ACTION CLEANUP CODE: > > ** > > > $self->TicketObj->Comment(Content =>"Notification sent to original > requestor that their order has been processed."**** > > );**** > > I suspect the issue is in the cleanup code?. But it LOOKS correct! (to me > ? but I?m a n00b apparently!) > If I'm understanding you correctly and if memory serves me I *think* you can just add RecordTransaction => 1 to the end of this and it'll do what you want. I know this works for AddCustomFieldValue() but I'm not 100% sure if it works for Comment(). Worth a try though. $self->TicketObj->Comment(Content =>"Notification sent to original requestor that their order has been processed.", RecordTransaction => 1); -- Landon Stewart -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsolberg at intrepidls.com Mon Aug 19 18:58:20 2013 From: jsolberg at intrepidls.com (Jeff Solberg) Date: Mon, 19 Aug 2013 22:58:20 +0000 Subject: [rt-users] RTFM and Self Service portal Message-ID: <66F399A5340D2E44B1D4A4672B648976E0B81E@canis.intrepidls.com> All, I am getting ready to start publishing some articles to my end user base using "Articles". I have set up my class and have created some content for testing purposes. I am following the introduction.pod file in /lib/RT/PM from the RTFM-2.4.5.tar stack. Per this document and other resources on the web state that if I grant the Unprivileged User group the ShowArticle permission on any class I have created the "end user" should see a search box enabling them to search KB articles we the IT staff have written. This is not the case however. I see a search box to search " tickets" and when I search for an article it errors out saying it cannot find the "ticket" it is trying to search for. I am running RT 4.0.7 on Debian 6. Any suggestions? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From vadud3 at gmail.com Mon Aug 19 23:37:31 2013 From: vadud3 at gmail.com (Asif Iqbal) Date: Mon, 19 Aug 2013 23:37:31 -0400 Subject: [rt-users] upgrade-database push to the mysql replica ? Message-ID: Hi All, If I run make upgrade-database on mysql master, will it push the change to mysql slave ? I could not find any answer in the mailing list, unless I missed it. Thanks -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Tue Aug 20 08:28:33 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Tue, 20 Aug 2013 08:28:33 -0400 Subject: [rt-users] Upgrade: RTFM Article, Content CustomField not displaying In-Reply-To: <3DF7F58D8446BA4AB46ED0711FF24FF64EDF0F0C@EXMBCT01.campus.ncl.ac.uk> References: <3DF7F58D8446BA4AB46ED0711FF24FF64EDF0F0C@EXMBCT01.campus.ncl.ac.uk> Message-ID: <20130820122833.GA84863@jibsheet.com> On Fri, Aug 16, 2013 at 09:26:41AM +0000, Anthony Gladdish wrote: > Test system ( RT 3.8.17 + RTFM 2.4.5 ): > > For both menus: > Menu: RTFM -> Configuration -> Custom Fields > Menu: Configuration -> RTFM -> Custom Fields > > Lists record #32 from the "CustomFields" table. "Applied" column is empty. > Lists record #31 from the "CustomFields" table. "Applied" column is empty. > > Clicking on each CustomField, "Applies to" is "RTFM Articles". > Are you quoting us the Applies To dropdown or the results of clicking on the Applies To link, which is where you apply Custom Fields to appropriate RT objects? > I think it should be referencing CF records from "FM_CustomFields" table instead? FM_CustomFields has not been a relevant RTFM table since before the 2.4.0 release. All RTFM CF data is stored in RT's core Custom Field tables. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From kristofer at cybernetik.net Tue Aug 20 10:27:14 2013 From: kristofer at cybernetik.net (Kristofer Pettijohn) Date: Tue, 20 Aug 2013 09:27:14 -0500 (CDT) Subject: [rt-users] Do not send auto resolve to a specific address In-Reply-To: <548112779.177231.1377008598032.JavaMail.zimbra@cybernetik.net> Message-ID: <241706254.177693.1377008834708.JavaMail.zimbra@cybernetik.net> Hello, I need to make RT not send auto resolve emails to a specific email address out of a particular queue. I have a custom "on resolve" Scrip set up for the queue, but its currently blank. I am not sure of the particular field or code that would be used to say "if the email address is this, then do not run this scrip". Can someone point me in the right direction? -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Tue Aug 20 11:36:04 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Tue, 20 Aug 2013 11:36:04 -0400 Subject: [rt-users] Deep recursion on subroutine "RT::Queue::SubjectTag In-Reply-To: References: Message-ID: <20130820153604.GB84863@jibsheet.com> On Sun, Aug 18, 2013 at 01:26:22AM +0530, Arun ragini wrote: > I have upgraded from 3.8.6 to 4.0.16 then 4.0.17 now we are hitting with following errors > > [Sat Aug 17 19:54:23 2013] [warning]: Deep recursion on subroutine "RT::Queue::SubjectTag" at > /opt/rt3/sbin/../lib/RT/System.pm line 232. (/opt/rt3/sbin/../lib/RT/System.pm:232) > Out of memory! > Callback called exit. Presumably you have RT::Extension::BrandedQueues installed? That was folded into 3.8, so you must be running into a bad interaction in the extension. There were docs about this for the 3.8 upgrade: http://bestpractical.com/docs/rt/latest/UPGRADING-3.8.html#UPGRADING-FROM-3.7.81-AND-EARLIER If you fix your templates and remove the plugin, your problem should go away. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From vadud3 at gmail.com Tue Aug 20 11:59:06 2013 From: vadud3 at gmail.com (Asif Iqbal) Date: Tue, 20 Aug 2013 11:59:06 -0400 Subject: [rt-users] upgrade-database push to the mysql replica ? In-Reply-To: References: Message-ID: On Mon, Aug 19, 2013 at 11:37 PM, Asif Iqbal wrote: > Hi All, > > If I run make upgrade-database on mysql master, will it push the change to > mysql slave ? > > I could not find any answer in the mailing list, unless I missed it. > > Thanks > I did a test make updgrade-database while running 'show processlist' on slave and it looks the slave rt4 gets the upgrade-database too. Please let me know if someone thinks otherwise. Thanks > > -- > Asif Iqbal > PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > > -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lenjaffe at jaffesystems.com Tue Aug 20 12:01:29 2013 From: lenjaffe at jaffesystems.com (Len Jaffe) Date: Tue, 20 Aug 2013 12:01:29 -0400 Subject: [rt-users] redefinition warnings from overlays Message-ID: Am I supposed to get subroutine redefinition warnings from orverlays? Len -- lenjaffe at jaffesystems.com 614-404-4214 @lenjaffe Software Engineer, Founder Volunteerable , Host of Columbus Code Jam www.lenjaffe.com http://www.theycomewithcheese.com Perl Advent Planet - Advent Calendars: Perlish and otherwise. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lenjaffe at jaffesystems.com Tue Aug 20 12:15:20 2013 From: lenjaffe at jaffesystems.com (Len Jaffe) Date: Tue, 20 Aug 2013 12:15:20 -0400 Subject: [rt-users] wierd applicatioin hang Message-ID: I have an application that I piggybacks off of our RT's fastcgi/mason infrastructure. I have recently ported it to run against RT 4.0, on rhel, using an IBM release of apache 2.4, and now, I can only run one request on my application code before the the server hangs. I do not encounter the hang problem if I only use RT, without accessing my app. The hang results in a 500 error to the browser, and the apache error log entries below. Has anybody run into this before? Any ideas on how to troubleshoot. For what it is worth, when I shut down apache, the fast cgi process(es) are never shut down as well. Len. [Tue Aug 20 12:03:55 2013] [info] [client 10.13.11.215] [ed002470] Session ID: d1cAAI8HZD9PWXOrc7R9FotqsE5YWFhYMpMTUgAAAAA= (reused) [Tue Aug 20 12:04:09 2013] [notice] mpmstats: rdy 44 bsy 6 rd 5 wr 1 ka 0 log 0 dns 0 cls 0 [Tue Aug 20 12:05:09 2013] [notice] mpmstats: rdy 44 bsy 6 rd 5 wr 1 ka 0 log 0 dns 0 cls 0 [Tue Aug 20 12:06:09 2013] [notice] mpmstats: rdy 44 bsy 6 rd 5 wr 1 ka 0 log 0 dns 0 cls 0 [Tue Aug 20 12:07:09 2013] [notice] mpmstats: rdy 44 bsy 6 rd 5 wr 1 ka 0 log 0 dns 0 cls 0 [Tue Aug 20 12:08:10 2013] [notice] mpmstats: rdy 44 bsy 6 rd 5 wr 1 ka 0 log 0 dns 0 cls 0 [Tue Aug 20 12:08:55 2013] [error] [client 10.13.11.215] FastCGI: comm with server "/u01/app/PROD/rt4-efts/sbin/rt-server.fcgi" aborted: idle timeout (300 sec) [Tue Aug 20 12:08:55 2013] [error] [client 10.13.11.215] FastCGI: incomplete headers (0 bytes) received from server "/u01/app/PROD/rt4-efts/sbin/rt-server.fcgi" [Tue Aug 20 12:08:55 2013] [info] [client 10.13.11.215] [ed100468] Session ID: dVcAALtZlZDW6kcjnv5D5CVPwQtYWFhYl5QTUgcAAAA= (new) -- lenjaffe at jaffesystems.com 614-404-4214 @lenjaffe Software Engineer, Founder Volunteerable , Host of Columbus Code Jam www.lenjaffe.com http://www.theycomewithcheese.com Perl Advent Planet - Advent Calendars: Perlish and otherwise. -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Tue Aug 20 13:01:45 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Tue, 20 Aug 2013 13:01:45 -0400 Subject: [rt-users] Auto Reply In-Reply-To: <1376846927172-55038.post@n7.nabble.com> References: <1376846927172-55038.post@n7.nabble.com> Message-ID: <20130820170145.GC84863@jibsheet.com> On Sun, Aug 18, 2013 at 10:28:47AM -0700, mdm100 wrote: > When requests to open tickets are sent directly to the RT queues email > address > a ticket is created and an Auto-Reply is received. ie.... sent to > noc at RTsrvr.domain.com > > However, when a request to open a ticket is sent to noc at domain.com and that > mail server > forwards request to noc at RTsrvr.domain.com the ticket is opened/created but > no auto-reply > is received. > > Just cannot figure this one out. Any help is greatly appreciated. You need to look in your RT logs (if you don't know where they are, start with your webserver logs) as well as your mail server logs. More about RT's logging: http://bestpractical.com/docs/rt/latest/RT_Config.html#Logging -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Tue Aug 20 13:10:23 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Tue, 20 Aug 2013 13:10:23 -0400 Subject: [rt-users] Memory leaks with mod_fastcgi In-Reply-To: References: Message-ID: <20130820171023.GD84863@jibsheet.com> On Mon, Aug 19, 2013 at 01:02:35PM -0400, Andrew Cobaugh wrote: > Is there no clean way around memory leaks in RT when using mod_fastcgi short of HUPing the > individual rt-server.fcgi processes when they reach a certain size? > Running 4.0.13 right now. With a load balancer in front hitting a simple html page located at > /rt/NoAuth/LoadBalancer.html every couple of seconds, we see memory usage increase ~100MB per > process with 5 rt-server processes over the course of about 12 hours. > Is there any simple way to track down why memory is increasing so much? Is that 100M with no other rt services running but the request for Loadbalancer.html or are you mixing testing requests in with production RT requests? rt-server.fcgi processes will grow as large as is needed to process the current task, so if RT sends a huge email or processes a huge attachment, I would expect individual processes to grow. Your perl build can also affect the size of child processes. You can try attaching something like http://search.cpan.org/~timb/Devel-SizeMe-0.16/ to a single rt-server.fcgi child and seeing what changes between requests. Simple repeatable actions that cause consistent growth is the easiest way to solve something like this. I'm used to seeing 70M stable fcgi processes. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Tue Aug 20 13:13:23 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Tue, 20 Aug 2013 13:13:23 -0400 Subject: [rt-users] RTFM and Self Service portal In-Reply-To: <66F399A5340D2E44B1D4A4672B648976E0B81E@canis.intrepidls.com> References: <66F399A5340D2E44B1D4A4672B648976E0B81E@canis.intrepidls.com> Message-ID: <20130820171323.GE84863@jibsheet.com> On Mon, Aug 19, 2013 at 10:58:20PM +0000, Jeff Solberg wrote: > I am getting ready to start publishing some articles to my end user base using "Articles". I > have set up my class and have created some content for testing purposes. I am following the > introduction.pod file in /lib/RT/PM from the RTFM-2.4.5.tar stack. Per this document and other > resources on the web state that if I grant the Unprivileged User group the ShowArticle > permission on any class I have created the "end user" should see a search box enabling them to > search KB articles we the IT staff have written. This is not the case however. I see a search > box to search " tickets" and when I search for an article it errors out saying it cannot find > the "ticket" it is trying to search for. > > > > I am running RT 4.0.7 on Debian 6. RT 4.0.7 contains Articles, which is a repackaging of RTFM into core. Installing and running RTFM 2.4.5 will cause problems. Unprivileged users will get that search box when you grant ShowArticle globally, because it was written for RTFM which only had global classes, not for RT4 which introduced a more fully featured Class object. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Tue Aug 20 13:16:41 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Tue, 20 Aug 2013 13:16:41 -0400 Subject: [rt-users] redefinition warnings from overlays In-Reply-To: References: Message-ID: <20130820171641.GF84863@jibsheet.com> On Tue, Aug 20, 2013 at 12:01:29PM -0400, Len Jaffe wrote: > Am I supposed to get subroutine redefinition warnings from orverlays? If you're redefining core subroutines in your overlay, I would expect warnings. If you're adding new code, you shouldn't get them. You can use "no warnings qw(redefine);" to silence them (you'll see it a lot in many BPS extensions). -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From phalenor at gmail.com Tue Aug 20 15:45:24 2013 From: phalenor at gmail.com (Andrew Cobaugh) Date: Tue, 20 Aug 2013 15:45:24 -0400 Subject: [rt-users] Memory leaks with mod_fastcgi In-Reply-To: <20130820171023.GD84863@jibsheet.com> References: <20130820171023.GD84863@jibsheet.com> Message-ID: On Tue, Aug 20, 2013 at 1:10 PM, Kevin Falcone wrote: > On Mon, Aug 19, 2013 at 01:02:35PM -0400, Andrew Cobaugh wrote: > > Is there no clean way around memory leaks in RT when using > mod_fastcgi short of HUPing the > > individual rt-server.fcgi processes when they reach a certain size? > > Running 4.0.13 right now. With a load balancer in front hitting a > simple html page located at > > /rt/NoAuth/LoadBalancer.html every couple of seconds, we see memory > usage increase ~100MB per > > process with 5 rt-server processes over the course of about 12 hours. > > Is there any simple way to track down why memory is increasing so > much? > > > Is that 100M with no other rt services running but the request for > Loadbalancer.html or are you mixing testing requests in with > production RT requests? > That was just LoadBalancer.html. No other page hits. > rt-server.fcgi processes will grow as large as is needed to process > the current task, so if RT sends a huge email or processes a huge > attachment, I would expect individual processes to grow. > > Your perl build can also affect the size of child processes. > We're actually using rpmbuild+shipwright to create packaged, redistributable RPMs containing everything necessary to run RT. You can find the package we're using here: http://yum.ait.psu.edu/ait/rhel/6/base/x86_64/rt413-vessel-opt-4.0.13-1.el6.ait.x86_64.rpm We are currently using 5.14.1, and here's the output of perl -V, http://pastebin.com/LC73KMzA You can try attaching something like > http://search.cpan.org/~timb/Devel-SizeMe-0.16/ > to a single rt-server.fcgi child and seeing what changes between > requests. Simple repeatable actions that cause consistent growth is > the easiest way to solve something like this. I'm used to seeing 70M > stable fcgi processes. > I started playing around with Devel::Gladiator a little bit, but started getting into unfamiliar territory rather quickly. I'll take a look at Devel::SizeMe. --andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From lenjaffe at jaffesystems.com Tue Aug 20 17:03:35 2013 From: lenjaffe at jaffesystems.com (Len Jaffe) Date: Tue, 20 Aug 2013 17:03:35 -0400 Subject: [rt-users] redefinition warnings from overlays In-Reply-To: <20130820171641.GF84863@jibsheet.com> References: <20130820171641.GF84863@jibsheet.com> Message-ID: On Tue, Aug 20, 2013 at 1:16 PM, Kevin Falcone wrote: > On Tue, Aug 20, 2013 at 12:01:29PM -0400, Len Jaffe wrote: > > Am I supposed to get subroutine redefinition warnings from orverlays? > > If you're redefining core subroutines in your overlay, I would expect > warnings. > > Thank you Kevin. -- lenjaffe at jaffesystems.com 614-404-4214 @lenjaffe Software Engineer, Founder Volunteerable , Host of Columbus Code Jam www.lenjaffe.com http://www.theycomewithcheese.com Perl Advent Planet - Advent Calendars: Perlish and otherwise. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.fitches at unimelb.edu.au Tue Aug 20 21:43:15 2013 From: david.fitches at unimelb.edu.au (Dave Fitches) Date: Wed, 21 Aug 2013 01:43:15 +0000 Subject: [rt-users] Setting Due Dates from E-mail and writing Comments to transaction history from Custom Scrips In-Reply-To: References: <81A2F9BBDD09884AB1585083CBDEC37572CB4620@000S-EX-MBX-QS2.unimelb.edu.au> Message-ID: <81A2F9BBDD09884AB1585083CBDEC37572CB5D2D@000S-EX-MBX-QS2.unimelb.edu.au> Hey Landon, Thanks a heap for the feedback. Problem 1 is now FIXED thanks to you! Final code for the ExtractCustomFieldValues template for those who are interested, ended up being: # Set the jobs Due Date from E-mail Body |Body|(?<=Open Date: ).*|my $Due = new RT::Date( $self->CurrentUser ); $Due->Set(Format => "unknown", Value => $value); $Due->AddDays( -1 ); $self->TicketObj->SetDue( $Due->ISO );|q| Though I did then have some interesting hic-cups with it arguing with the SLA mod... When the E-mail Value Extract was picking up the date, the SLA mod was promptly altering it. Ended up having to remove the default SLA, manually define the SLA for all other queues (not a BAD thing) and then create a new scrip for on CREATE to make it set the STARTS date otherwise the Priority Escalate process wouldn't work.... As for Problem 2 - your suggestion sadly didn't work. Dave Fitches Security Software Administrator | Security Systems | Property and Campus Services BN203, 213-215 Grattan Street The University of Melbourne, Victoria 3010, Australia T +61 3 8344 9232 | M +61 411 811 525 | F +61 3 9349 5175 | dfitches at unimelb.edu.au | securitysystems.unimelb.edu.au [cid:image001.png at 01CDDD27.F59750D0] This email and any attachments may contain personal information or information that is otherwise confidential or the subject of copyright. Any use, disclosure or copying of any part of it is prohibited. The University does not warrant that this email or any attachments are free from viruses or defects. Please check any attachments for viruses and defects before opening them. If this email is received in error please delete it and notify us by return email. And I'm only using this signature template because I'm told I must conform. Personally I liked my old one better - but that's life! ;) From: Landon [mailto:landonstewart at gmail.com] Sent: Tuesday, 20 August 2013 3:35 AM To: Dave Fitches Cc: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Setting Due Dates from E-mail and writing Comments to transaction history from Custom Scrips On 18 August 2013 22:05, Dave Fitches > wrote: My template goes something like this: # Set the jobs Due Date from E-mail Body |Body|(?<=Open Date: ).*|my $due_date = $value; $due_date->Set(Format => "ISO", Value => $value); $self->TicketObj->SetDue( $due_date->ISO );|q| This does NOT work for me... :( Instead I get: " [Mon Aug 19 04:47:17 2013] [error]: Can't call method "Set" on an undefined value at (eval 1293) line 1. " in my logs... $due_date needs to be an RT::Date object in order to use set or ISO. Is it? ie: $due_date = new RT::Date( $self->CurrentUser ); $due_date->Set(Format => "ISO", Value => $value); $self->TicketObj->SetDue( $due_date->ISO ); Since your dates are not in ISO format I'd probably recommend using Format => 'unknown' to set the RT::Date figure it out. It takes a few extra cycles but provides flexibility when needed. I use this: my $Due = new RT::Date( $self->CurrentUser ); $Due->Set( Format => 'unknown', Value => 'now + 24 hours'); $ticket->SetDue($Due->ISO); Problem #2: Writing a comment to the transaction history ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ While it shows up in my main HISTORY display, my DISPLAY history is masked to only show comments and correspondence, so I'd like a single comment line there to make seeing whats happened easier... CUSTOM ACTION CLEANUP CODE: $self->TicketObj->Comment(Content =>"Notification sent to original requestor that their order has been processed." ); I suspect the issue is in the cleanup code.... But it LOOKS correct! (to me - but I'm a n00b apparently!) If I'm understanding you correctly and if memory serves me I *think* you can just add RecordTransaction => 1 to the end of this and it'll do what you want. I know this works for AddCustomFieldValue() but I'm not 100% sure if it works for Comment(). Worth a try though. $self->TicketObj->Comment(Content =>"Notification sent to original requestor that their order has been processed.", RecordTransaction => 1); -- Landon Stewart > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 17944 bytes Desc: image001.png URL: From alexdecalli71 at gmail.com Wed Aug 21 03:39:26 2013 From: alexdecalli71 at gmail.com (Alex Decalli) Date: Wed, 21 Aug 2013 09:39:26 +0200 Subject: [rt-users] RT user login not possible after Ubuntu 11.04 uprade Message-ID: Hi all, Yesterday, I upgraded my very old uUbuntu server and with that, mysql and apache2 were updated too, configuration files are still the same. I had some problems with some file names and locations and Perl modules, I fixed them all, now I can see RT login page, but I can't login to that with my rt user (already exists in rtdb) alex001. even not with root. I checked things like rtuser can access mysql and still has all privileges, rtdb is readable to anyone, mysql log says nothing about this problem, apache log just says "login for alex001 failed" and I have no idea where else I can check or what might cause this problem. Please tell me if you can think of anything, I mean what does RT do for user login, what might have been changed, what permissions it will need and anything else you might think of... PS: I am not even sure rt is querying mysql, how can I make sure?? Thank you all Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony.gladdish at newcastle.ac.uk Wed Aug 21 04:54:17 2013 From: anthony.gladdish at newcastle.ac.uk (Anthony Gladdish) Date: Wed, 21 Aug 2013 08:54:17 +0000 Subject: [rt-users] Upgrade: RTFM Article, Content CustomField not displaying In-Reply-To: <20130820122833.GA84863@jibsheet.com> References: <3DF7F58D8446BA4AB46ED0711FF24FF64EDF0F0C@EXMBCT01.campus.ncl.ac.uk> <20130820122833.GA84863@jibsheet.com> Message-ID: <3DF7F58D8446BA4AB46ED0711FF24FF64EDF3598@EXMBCT01.campus.ncl.ac.uk> Hi Kevin, >-----Original Message----- >From: rt-users-bounces at lists.bestpractical.com [mailto:rt- >users-bounces at lists.bestpractical.com] On Behalf Of Kevin >Falcone >Sent: 20 August 2013 13:29 >To: rt-users at lists.bestpractical.com >Subject: Re: [rt-users] Upgrade: RTFM Article, Content >CustomField not displaying > >On Fri, Aug 16, 2013 at 09:26:41AM +0000, Anthony Gladdish >wrote: >> Test system ( RT 3.8.17 + RTFM 2.4.5 ): >> >> For both menus: >> Menu: RTFM -> Configuration -> Custom Fields >> Menu: Configuration -> RTFM -> Custom Fields >> >> Lists record #32 from the "CustomFields" table. >"Applied" column is empty. >> Lists record #31 from the "CustomFields" table. >"Applied" column is empty. >> >> Clicking on each CustomField, "Applies to" is >"RTFM Articles". >> >Are you quoting us the Applies To dropdown or the results of >clicking >on the Applies To link, which is where you apply Custom Fields to >appropriate RT objects? Test system: for each CustomField, the "Applies to" drop down box has "RTFM Articles" selected. Production system: "Tickets" is selected instead and does not display an "RTFM Articles" option. Assigning this "Tickets" option in my test system appears to have no effect. Test system: for each CustomField, clicking on the "Applies to" link shows a list of unselected objects - RT and my queues. Selecting these and submitting, does not display the CF in the Article's page. >> I think it should be referencing CF records from >"FM_CustomFields" table instead? > >FM_CustomFields has not been a relevant RTFM table since >before the >2.4.0 release. All RTFM CF data is stored in RT's core Custom >Field >tables. Good to know. Hope this sheds more light, Anthony From alexdecalli71 at gmail.com Wed Aug 21 05:34:38 2013 From: alexdecalli71 at gmail.com (Alex Decalli) Date: Wed, 21 Aug 2013 11:34:38 +0200 Subject: [rt-users] RT user login not possible after Ubuntu 11.04 uprade In-Reply-To: References: Message-ID: I just found out that RT time is not sync. I got it from RT log file, it is 2 hours late, I am not sure why, my server time is correct (by command date) people say it might be because of mod_perl, can it be possibly the reason I can't login to RT? On Wed, Aug 21, 2013 at 9:39 AM, Alex Decalli wrote: > Hi all, > > Yesterday, I upgraded my very old uUbuntu server and with that, mysql and > apache2 were updated too, configuration files are still the same. I had > some problems with some file names and locations and Perl modules, I fixed > them all, now I can see RT login page, but I can't login to that with my rt > user (already exists in rtdb) alex001. even not with root. I checked things > like rtuser can access mysql and still has all privileges, rtdb is > readable to anyone, mysql log says nothing about this problem, apache log > just says "login for alex001 failed" and I have no idea where else I can > check or what might cause this problem. Please tell me if you can think of > anything, I mean what does RT do for user login, what might have been > changed, what permissions it will need and anything else you might think > of... > > PS: I am not even sure rt is querying mysql, how can I make sure?? > > Thank you all > Alex > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdrouet at randco.fr Wed Aug 21 06:33:28 2013 From: mdrouet at randco.fr (Maximilien Drouet) Date: Wed, 21 Aug 2013 12:33:28 +0200 Subject: [rt-users] (RT::Authen::ExternalAuth) "email exists" problem authenticating trough AD In-Reply-To: References: <51EE4719.8030901@2ndquadrant.com> Message-ID: Hi Nathan, After many searchs with your help and our AD Administrator we found that the account was not authorized. I was given another one and now, command line binds and authenticate well but no chance with RT. Here is the command line ldapsearch -LLL -H ldap://myserver.mydomain.local -x -D 'mydomain\ldapuser' -W -b ou=FR,dc=mydomain,dc=local uid=mysuer and the output. dn: CN=Firstname Lastname,OU=z - y - x,OU=city,OU=Users & Clients,OU=mydomain,OU=FR,DC=mydomain,DC=local v objectClass: top objectClass: person objectClass: organizationalPerson objectClass: user cn: Firstname Lastname sn: Lastname c: FR l: city title: myTitle postalCode: Zipcode physicalDeliveryOfficeName: z - y - x telephoneNumber: myTelephonenumber givenName: FirstName distinguishedName: CN=Firstname Lastname,OU=z - y - x,OU=city,OU=Users & Clients,OU=mydomain,OU=FR, DC=mydomain,DC=local instanceType: 4 whenCreated: 20100701014148.0Z whenChanged: 20130821001737.0Z displayName: Firstname Lastname uSNCreated: 73679 memberOf: CN=LL.microsoftproject,OU=SDG Groups,DC=mydomain,DC=local memberOf: CN=LL.Crystal.Reports.XI,OU=SDG Groups,DC=mydomain,DC=local memberOf: CN=LL.IE8,OU=SDG Groups,DC=mydomain,DC=local memberOf: CN=LL.itop,OU=Groups,OU=mydomain,OU=FR,DC=mydomain,DC=local memberOf: CN=LL.msvisio2003,OU=SDG Groups,DC=mydomain,DC=local memberOf: CN=LL.ClickToCall,OU=SDG Groups,DC=mydomain,DC=local memberOf: CN=mydomain.LL.dsi,OU=Groups,OU=mydomain,OU=FR,DC=mydomain,DC=local uSNChanged: 10019507 co: FRANCE department: z - y - x streetAddress: myaddress name: Firstname Lastname objectGUID:: l8cI/GO3KEOyA0E8neccKA== userAccountControl: 544 badPwdCount: 0 codePage: 0 countryCode: 250 badPasswordTime: 130215493735596806 lastLogoff: 0 lastLogon: 130214762950697235 pwdLastSet: 130214610102266437 primaryGroupID: 513 objectSid:: AQUAAAAAAAUVAAAAEQz3vwuoUpdtKTGZJPEAAA== accountExpires: 130251384000000000 logonCount: 197 sAMAccountName: mysuer sAMAccountType: 805306368 userPrincipalName: mymail lockoutTime: 0 objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=mydomain,DC=local dSCorePropagationData: 20130524093118.0Z dSCorePropagationData: 20130523093743.0Z dSCorePropagationData: 16010101000001.0Z lastLogonTimestamp: 130214610103032919 uid: mysuer mail: mymail I'm quite confused with the RT configuration file and it's option, even looking at the documentation I'm a litte bit lost, maybe the problem is there. Here is the RT_Config extract # External Authentication Configuration Set($ExternalAuthPriority, [ 'My_LDAP']); Set($ExternalInfoPriority, [ 'My_LDAP']); Set($ExternalSettings, { # AN EXAMPLE LDAP SERVICE 'My_LDAP' => { 'type' => 'ldap', 'server' => 'myserver.mydomain.local', 'user' => 'ldapaccount', 'pass' => 'ldapaccountpassword', 'base' => 'ou=FR,dc=mydomain,dc=local', 'filter' => '(&(ObjectCategory=User)(ObjectClass=Person))', 'd_filter' => '(userAccountControl:1.2.840.113556.1.4.803:=2)', 'group' => 'OU=Users & Clients,OU=MYDOMAIN,OU=FR,DC=mydomain,DC=local', 'group_attr' => 'member', 'tls' => 0, 'ssl_version' => 3, 'net_ldap_args' => [ version => 3 ], 'group_scope' => 'base', 'group_attr_value' => '*', 'attr_match_list' => ['Name'], 'attr_map' => { 'Name' => 'sAMAccountName', 'EmailAddress' => 'mail', 'Organization' => 'physicalDeliveryOfficeName', 'RealName' => 'cn', 'ExternalAuthId' => 'sAMAccountName', 'Gecos' => 'sAMAccountName', 'WorkPhone' => 'telephoneNumber', 'Address1' => 'streetAddress', 'City' => 'l', 'State' => 'st', 'Zip' => 'postalCode', 'Country' => 'co' }, }, } ); Any other Idea ? -- Regards Maximilien -------------- next part -------------- An HTML attachment was scrubbed... URL: From beodep at yahoo.com Wed Aug 21 06:46:39 2013 From: beodep at yahoo.com (nonnick) Date: Wed, 21 Aug 2013 03:46:39 -0700 (PDT) Subject: [rt-users] Ticket search include relationships ticket status. In-Reply-To: <1374228055694-54665.post@n7.nabble.com> References: <1374228055694-54665.post@n7.nabble.com> Message-ID: <1377081998941-55062.post@n7.nabble.com> Just up. Thanks -- View this message in context: http://requesttracker.8502.n7.nabble.com/Ticket-search-include-relationships-ticket-status-tp54665p55062.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From alexdecalli71 at gmail.com Wed Aug 21 08:31:26 2013 From: alexdecalli71 at gmail.com (Alex Decalli) Date: Wed, 21 Aug 2013 14:31:26 +0200 Subject: [rt-users] RT user login not possible after Ubuntu 11.04 uprade In-Reply-To: References: Message-ID: Ok, found the problem but really didn't know how to fix, so have to reset password... UPDATE Users SET Password=ENCRYPT('password','SA') WHERE Name='root'; It is the password encryption method, it is changed. Any comments? On Wed, Aug 21, 2013 at 11:34 AM, Alex Decalli wrote: > I just found out that RT time is not sync. I got it from RT log file, it > is 2 hours late, I am not sure why, my server time is correct (by command > date) people say it might be because of mod_perl, can it be possibly the > reason I can't login to RT? > > > On Wed, Aug 21, 2013 at 9:39 AM, Alex Decalli wrote: > >> Hi all, >> >> Yesterday, I upgraded my very old uUbuntu server and with that, mysql and >> apache2 were updated too, configuration files are still the same. I had >> some problems with some file names and locations and Perl modules, I fixed >> them all, now I can see RT login page, but I can't login to that with my rt >> user (already exists in rtdb) alex001. even not with root. I checked things >> like rtuser can access mysql and still has all privileges, rtdb is >> readable to anyone, mysql log says nothing about this problem, apache log >> just says "login for alex001 failed" and I have no idea where else I can >> check or what might cause this problem. Please tell me if you can think of >> anything, I mean what does RT do for user login, what might have been >> changed, what permissions it will need and anything else you might think >> of... >> >> PS: I am not even sure rt is querying mysql, how can I make sure?? >> >> Thank you all >> Alex >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexdecalli71 at gmail.com Wed Aug 21 08:37:00 2013 From: alexdecalli71 at gmail.com (Alex Decalli) Date: Wed, 21 Aug 2013 14:37:00 +0200 Subject: [rt-users] Too many Undefined subroutine in rt.log Message-ID: Hi. I have recently upgraded Ubuntu 11.04 and packages (not RT,RT is still 3.8.10) since then, I cannot load any page after I login, it is just the left menu and this message comes after any link I click on: An internal RT error has occurred. Your administrator can find more details in RT's log files. I am checking the log file and it is full of undefined subroutins: [Wed Aug 21 11:46:14 2013] [error]: Undefined subroutine &HTML::Mason::Commands::ScrubHTML called at /usr/share/request-tracker3.8/html/Elements/ScrubHTML line 49, line 1510. (/usr/share/request-tracker3.8/lib/RT/Interface/Web/Handler.pm:278) [Wed Aug 21 11:46:16 2013] [error]: Undefined subroutine &HTML::Mason::Commands::ScrubHTML called at /usr/share/request-tracker3.8/html/Elements/ScrubHTML line 49, line 1511. (/usr/share/request-tracker3.8/lib/RT/Interface/Web/Handler.pm:278) [Wed Aug 21 11:46:18 2013] [error]: Undefined subroutine &HTML::Mason::Commands::ScrubHTML called at /usr/share/request-tracker3.8/html/Elements/ScrubHTML line 49, line 1511. (/usr/share/request-tracker3.8/lib/RT/Interface/Web/Handler.pm:278) [Wed Aug 21 11:46:25 2013] [error]: Undefined subroutine &HTML::Mason::Commands::ScrubHTML called at /usr/share/request-tracker3.8/html/Elements/ScrubHTML line 49, line 1511. (/usr/share/request-tracker3.8/lib/RT/Interface/Web/Handler.pm:278) [Wed Aug 21 12:26:48 2013] [error]: Undefined subroutine &RT::Interface::Web::EscapeJS called at /usr/local/share/perl/5.12.4/HTML/Mason/Interp.pm line 1020. (/usr/share/request-tracker3.8/lib/RT/Interface/Web/Handler.pm:278) What possibly causes this? Any perl modules I need? I already have these installed, tell me if I need more: Apache::DBI DateTime::Format::Mail Digest::MD5 HTML::Mason MLDBM Perl Test::Deep Test::NoWarnings Test::Tester Thanks Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcc171 at psu.edu Wed Aug 21 12:39:45 2013 From: mcc171 at psu.edu (Mark Campbell) Date: Wed, 21 Aug 2013 12:39:45 -0400 Subject: [rt-users] Ticket reply issues Message-ID: <5214ED51.1050206@psu.edu> I am having problems with certain individuals not being able to properly reply to a ticket once it is created. In this instance when I ticket is open an admin of the queue responds and a new ticket is created. The admin simply clicks reply and the subject contains the correct information between the brackets in the subject line. I have included the headers below. Any ideas? I assume the reere of @example.com probably isn't correct. MIME-Version: 1.0 In-Reply-To: X-Mailer: MIME-tools 5.427 (Entity 5.427) Content-Disposition: inline References: <0CF0D76B-6DBF-4330-B1CC-865AED98314F at psu.edu> Content-Type: text/html; charset="UTF-8" Message-ID: Content-Transfer-Encoding: binary X-RT-Original-Encoding: utf-8 RT-Send-CC: Content-Length: 3586 From falcone at bestpractical.com Wed Aug 21 12:54:45 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Wed, 21 Aug 2013 12:54:45 -0400 Subject: [rt-users] Ticket reply issues In-Reply-To: <5214ED51.1050206@psu.edu> References: <5214ED51.1050206@psu.edu> Message-ID: <20130821165445.GG84863@jibsheet.com> On Wed, Aug 21, 2013 at 12:39:45PM -0400, Mark Campbell wrote: > I am having problems with certain individuals not being able to > properly reply to a ticket once it is created. > > In this instance when I ticket is open an admin of the queue > responds and a new ticket is created. The admin simply clicks reply > and the subject contains the correct information between the > brackets in the subject line. I have included the headers below. > Any ideas? I assume the reere of @example.com probably isn't > correct. I don't see a Subject in your headers, but your headers also refer to two separate tickets (384 and 388) so clearly you have a few things going on. You should also have them reply and watch debug logs from RT. -kevin > MIME-Version: 1.0 > In-Reply-To: > X-Mailer: MIME-tools 5.427 (Entity 5.427) > Content-Disposition: inline > References: > <0CF0D76B-6DBF-4330-B1CC-865AED98314F at psu.edu> > > > > > > Content-Type: text/html; charset="UTF-8" > Message-ID: > Content-Transfer-Encoding: binary > X-RT-Original-Encoding: utf-8 > RT-Send-CC: > Content-Length: 3586 > > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Wed Aug 21 13:03:36 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Wed, 21 Aug 2013 13:03:36 -0400 Subject: [rt-users] Upgrade: RTFM Article, Content CustomField not displaying In-Reply-To: <3DF7F58D8446BA4AB46ED0711FF24FF64EDF3598@EXMBCT01.campus.ncl.ac.uk> References: <3DF7F58D8446BA4AB46ED0711FF24FF64EDF0F0C@EXMBCT01.campus.ncl.ac.uk> <20130820122833.GA84863@jibsheet.com> <3DF7F58D8446BA4AB46ED0711FF24FF64EDF3598@EXMBCT01.campus.ncl.ac.uk> Message-ID: <20130821170336.GH84863@jibsheet.com> On Wed, Aug 21, 2013 at 08:54:17AM +0000, Anthony Gladdish wrote: > Production system: "Tickets" is selected instead and does not display an "RTFM Articles" option. Assigning this "Tickets" option in my test system appears to have no effect. I'm a little confused how RTFM works on production if you don't see RTFM Articles as a Custom Field option. I assume it worked when you set up the system, but then someone broke something later (Since you mention the FM_CustomFields table I know you upgraded from a very old RTFM at some point). You can go look in the Database at the LookupType field to confirm. Assigning it to Tickets in test would just break. > Test system: for each CustomField, clicking on the "Applies to" link > shows a list of unselected objects - RT and my queues. Selecting these > and submitting, does not display the CF in the Article's page. It shouldn't show Queues, it'll show classes. Change it back to RTFM Articles, then click on Applies to and then assign it to the relevant Classes. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From vadud3 at gmail.com Wed Aug 21 14:33:41 2013 From: vadud3 at gmail.com (Asif Iqbal) Date: Wed, 21 Aug 2013 14:33:41 -0400 Subject: [rt-users] upgrade-database push to the mysql replica ? In-Reply-To: References: Message-ID: On Tue, Aug 20, 2013 at 11:59 AM, Asif Iqbal wrote: > > > > On Mon, Aug 19, 2013 at 11:37 PM, Asif Iqbal wrote: > >> Hi All, >> >> If I run make upgrade-database on mysql master, will it push the change >> to mysql slave ? >> >> I could not find any answer in the mailing list, unless I missed it. >> >> Thanks >> > > I did a test make updgrade-database while running 'show processlist' on > slave and it looks > the slave rt4 gets the upgrade-database too. Please let me know if someone > thinks otherwise. > > It does seem that ``make upgrade-database'' pushes the change to slave as well. Just needed to double check with all before migrating about 8 million transactions this weekend from old environment (sparc/solaris/rt3.8.2/mysql 5.0.55) to new environment ( 2 supermicro/linux/rt 4.0.17/mysql 5.5.32/ master/master active/passive) -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lenjaffe at jaffesystems.com Wed Aug 21 17:50:38 2013 From: lenjaffe at jaffesystems.com (Len Jaffe) Date: Wed, 21 Aug 2013 17:50:38 -0400 Subject: [rt-users] problem sharing session between RT and custom code Message-ID: I have written an application that runs alongside an RT4 instance, and makes use of RT's Logger, db handle and session. In moving from mysql to Oracle, I've run into a problem that after lodign a page from my app, the next request, whether to my app, or RT, hangs trying to get an exclusive lock on the session lock file that it had used without a problem on the previous request (and requests, if I start out clicking around in RT). I've determined that it is exclusive lock call by using strace. I've also learned that while clicking through RT, and the first click into my app, the session lock file is file descriptor 11, but the request after hitting my app uses 13, but doesn't close 11, so it looks like my app is not untie-the session, but I'm relying on RT to tie/until the session - or so I think. I'm sure that there's something that I've missed. Something that RT does that I've orverlooked, or some assumption I've made that is invalid. Can anybody tell me (why my autohandler might be causing RT to use a different fd despite using the same session id, and why it might not be correctly relinquishing the lock or the tied hash? Or nudge me in the right direction? Thanks, Len. -- lenjaffe at jaffesystems.com 614-404-4214 @lenjaffe Software Engineer, Founder Volunteerable , Host of Columbus Code Jam www.lenjaffe.com http://www.theycomewithcheese.com Perl Advent Planet - Advent Calendars: Perlish and otherwise. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmcgrath at carthage.edu Wed Aug 21 18:20:28 2013 From: mmcgrath at carthage.edu (Max McGrath) Date: Wed, 21 Aug 2013 17:20:28 -0500 Subject: [rt-users] Technician on vacation status Message-ID: Hi all - Running RT 4.0.16. Was talking with a co-worker today about this. I was wondering if there is anything that can be put in place (easily) for when a person is out of the office for a long time. For instance , if a person is out on vacation for two weeks and not everybody is aware, maybe RT shouldn't allow tickets to be given to this person? Not sure if this is possible...or even a good idea. Just a thought. Max -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexdecalli71 at gmail.com Thu Aug 22 03:04:15 2013 From: alexdecalli71 at gmail.com (Alex Decalli) Date: Thu, 22 Aug 2013 09:04:15 +0200 Subject: [rt-users] Too many Undefined subroutine in rt.log In-Reply-To: References: Message-ID: Would you please tell me how to do this? I used "instmodsh" to list these packages, I do know that I don't have some packages and honestly, I am not programmer (but I know general stuff) and also am new in RT, for example I don't know how to look into RT packages... For example, I had this error: RT::Scrip::LoadModules Unimplemented in RT. (/usr/share/request-tracker3.8/lib/RT.pm line 498) (/usr/share/request-tracker3.8/lib/RT.pm:498) I don't know how to fix this, how to install or repair this RT::Scrip::LoadModules, I go to the code, it IS scrips: if ( $args{'Heavy'} ) { # load scrips' modules my $scrips = RT::Scrips->new($RT::SystemUser); $scrips->Limit( FIELD => 'Stage', OPERATOR => '!=', VALUE => 'Disabled' ); while ( my $scrip = $scrips->Next ) { local $@; eval { $scrip->LoadModules } or $RT::Logger->error("Invalid Scrip ".$scrip->Id.". Unable to load the Action or Condition. ". "You should delete or repair this Scrip in the admin UI.\n$@\n"); } I really don't know how to fix this, or how to find missing Perl modules... Any guides will be appreciated :) On Wed, Aug 21, 2013 at 9:38 PM, Nathan Cutler wrote: > > Any perl modules I need? I already have these installed, tell me if I > need more: > > If your list show *all* the Perl-related packages you have installed, then > you definitely need more -- many more. > > The easiest way to find out would be to look at/into the Debian or Ubuntu > RT package. > > Hope this helps, > Nathan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adb at ast.cam.ac.uk Thu Aug 22 05:45:51 2013 From: adb at ast.cam.ac.uk (Andy Batey) Date: Thu, 22 Aug 2013 10:45:51 +0100 Subject: [rt-users] Create new ticket when user "replies" to a ticket they are not a requestor on Message-ID: <5215DDCF.7060401@ast.cam.ac.uk> Using RT 4.0.17 Occasionally we have an instance where the ticket requestor forwards a reply from us to a third party to ask them to comment on something in the ticket. The third party then replies to the email including our address and leaving the subject intact so it has the RT ticket id string in it. We don't have permissions enabled for the Everyone group to be able to reply to tickets so the email from the third party is bounced back with the appropriate error telling them they don't have permission to add to the ticket. Rather than this we would like RT to create a new ticket which we can then link/merge with the existing ticket. A search has not revealed whether this is possible and, if so, how to make this the default behaviour. Has anybody configured RT to work this way? Regards Andy -- -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Andrew Batey Computer Officer,Institute of Astronomy,Cambridge Tel. +44 (0) 1223 766662 (work) http://www.ast.cam.ac.uk/ -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* From arunragini at gmail.com Thu Aug 22 06:16:40 2013 From: arunragini at gmail.com (Arun ragini) Date: Thu, 22 Aug 2013 15:46:40 +0530 Subject: [rt-users] Deep recursion on subroutine "RT::Queue::SubjectTag In-Reply-To: <20130820153604.GB84863@jibsheet.com> References: <20130820153604.GB84863@jibsheet.com> Message-ID: Hi, I have checked the copy of the RT before upgrade and there no extention RT::Extension::BrandedQueues installed the only extentions installed are 1. Extension::QuickDelete 2.RT::FM and 3. RT::IR Thanks in advance Arun On Tue, Aug 20, 2013 at 9:06 PM, Kevin Falcone wrote: > On Sun, Aug 18, 2013 at 01:26:22AM +0530, Arun ragini wrote: > > I have upgraded from 3.8.6 to 4.0.16 then 4.0.17 now we are hitting > with following errors > > > > [Sat Aug 17 19:54:23 2013] [warning]: Deep recursion on subroutine > "RT::Queue::SubjectTag" at > > /opt/rt3/sbin/../lib/RT/System.pm line 232. > (/opt/rt3/sbin/../lib/RT/System.pm:232) > > Out of memory! > > Callback called exit. > > Presumably you have RT::Extension::BrandedQueues installed? > That was folded into 3.8, so you must be running into a bad > interaction in the extension. There were docs about this for the 3.8 > upgrade: > > > http://bestpractical.com/docs/rt/latest/UPGRADING-3.8.html#UPGRADING-FROM-3.7.81-AND-EARLIER > > If you fix your templates and remove the plugin, your problem should > go away. > > -kevin > -- www.opensourcer.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From arunragini at gmail.com Thu Aug 22 06:40:43 2013 From: arunragini at gmail.com (Arun ragini) Date: Thu, 22 Aug 2013 16:10:43 +0530 Subject: [rt-users] Deep recursion on subroutine "RT::Queue::SubjectTag In-Reply-To: References: <20130820153604.GB84863@jibsheet.com> Message-ID: This is what I have in my logs. [warning]: Deep recursion on subroutine "RT::Queue::SubjectTag" at /opt/rt3/sbin/../lib/RT/System.pm line 232. (/opt/rt3/sbin/../lib/RT/System.pm:232) Out of memory! Callback called exit. [Sat Aug 17 22:17:55 2013] [notice] caught SIGTERM, shutting down The RT version I'm trying to upgrade from is 3.8.6 Thanks Arun On Thu, Aug 22, 2013 at 3:46 PM, Arun ragini wrote: > Hi, > > I have checked the copy of the RT before upgrade and there no extention > RT::Extension::BrandedQueues installed the only extentions installed are > 1. Extension::QuickDelete > 2.RT::FM and > 3. RT::IR > > Thanks in advance > Arun > > > On Tue, Aug 20, 2013 at 9:06 PM, Kevin Falcone wrote: > >> On Sun, Aug 18, 2013 at 01:26:22AM +0530, Arun ragini wrote: >> > I have upgraded from 3.8.6 to 4.0.16 then 4.0.17 now we are hitting >> with following errors >> > >> > [Sat Aug 17 19:54:23 2013] [warning]: Deep recursion on subroutine >> "RT::Queue::SubjectTag" at >> > /opt/rt3/sbin/../lib/RT/System.pm line 232. >> (/opt/rt3/sbin/../lib/RT/System.pm:232) >> > Out of memory! >> > Callback called exit. >> >> Presumably you have RT::Extension::BrandedQueues installed? >> That was folded into 3.8, so you must be running into a bad >> interaction in the extension. There were docs about this for the 3.8 >> upgrade: >> >> >> http://bestpractical.com/docs/rt/latest/UPGRADING-3.8.html#UPGRADING-FROM-3.7.81-AND-EARLIER >> >> If you fix your templates and remove the plugin, your problem should >> go away. >> >> -kevin >> > > > > -- > www.opensourcer.net > -- www.opensourcer.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Thu Aug 22 11:38:47 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 22 Aug 2013 11:38:47 -0400 Subject: [rt-users] Create new ticket when user "replies" to a ticket they are not a requestor on In-Reply-To: <5215DDCF.7060401@ast.cam.ac.uk> References: <5215DDCF.7060401@ast.cam.ac.uk> Message-ID: <20130822153847.GI84863@jibsheet.com> On Thu, Aug 22, 2013 at 10:45:51AM +0100, Andy Batey wrote: > We don't have permissions enabled for the Everyone group to be able > to reply to tickets so the email from the third party is bounced > back with the appropriate error telling them they don't have > permission to add to the ticket. > Rather than this we would like RT to create a new ticket which we > can then link/merge with the existing ticket. > > A search has not revealed whether this is possible and, if so, how > to make this the default behaviour. Does 'Everyone' have CreateTicket? If so, you might be able to write some code based on this extension to do what you want: https://metacpan.org/source/FALCONE/RT-Extension-RepliesToResolved-0.02/README https://github.com/bestpractical/rt-extension-repliestoresolved This does require a recent RT4 release to provide the hooks you would use. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Thu Aug 22 11:40:54 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 22 Aug 2013 11:40:54 -0400 Subject: [rt-users] Deep recursion on subroutine "RT::Queue::SubjectTag In-Reply-To: References: <20130820153604.GB84863@jibsheet.com> Message-ID: <20130822154054.GJ84863@jibsheet.com> On Thu, Aug 22, 2013 at 04:10:43PM +0530, Arun ragini wrote: > This is what I have in my logs. > [warning]: Deep recursion on subroutine "RT::Queue::SubjectTag" at > /opt/rt3/sbin/../lib/RT/System.pm line 232. (/opt/rt3/sbin/../lib/RT/System.pm:232) > Out of memory! > Callback called exit. > [Sat Aug 17 22:17:55 2013] [notice] caught SIGTERM, shutting down > The RT version I'm trying to upgrade from is 3.8.6 Have you upgraded to RT4 in your /opt/rt3 directory? If so, that's likely the root cause of your problem. (paragraph 3) http://bestpractical.com/docs/rt/latest/UPGRADING-4.0.html#UPGRADING-FROM-BEFORE-4.0.0 -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From bbaker at copesan.com Thu Aug 22 12:14:00 2013 From: bbaker at copesan.com (Bryon Baker) Date: Thu, 22 Aug 2013 16:14:00 +0000 Subject: [rt-users] Oldvalue and New value Message-ID: <28de62803e224c059cdab6a0d60861da@BLUPR05MB103.namprd05.prod.outlook.com> Need to know what I am doing wrong I cannot seem to figure out how to implement this code my $ticket = $self->TicketObj; my $txn = $self->TransactionObj; my $type = $txn->Type; my $field = $txn->Field; my $NewStatus = "open"; my $oldvalue = $txn->Oldvalue; my $newvalue = $txn->Newvalue; $RT::Logger->debug("Open Ticket on Change Oldvalue $oldvalue\n"); $RT::Logger->debug("Open Ticket on Change Newvalue $newvalue \n"); I continue to get the following for new or old value. Scrip 63 Commit failed: RT::Transaction::Oldvalue Unimplemented in RT::Action::UserDefined. ((eval 1728) line 6) Thanks all for the help. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbaker at copesan.com Thu Aug 22 12:32:26 2013 From: bbaker at copesan.com (Bryon Baker) Date: Thu, 22 Aug 2013 16:32:26 +0000 Subject: [rt-users] Oldvalue and New value In-Reply-To: <6a32c60c72d6500d3495bdc5727b82f7@cam.ac.uk> References: <28de62803e224c059cdab6a0d60861da@BLUPR05MB103.namprd05.prod.outlook.com> <6a32c60c72d6500d3495bdc5727b82f7@cam.ac.uk> Message-ID: Thanks for the quick response to a NewBe question sorry. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726? ?? 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -----Original Message----- From: G. Dawson [mailto:gd250 at cam.ac.uk] Sent: Thursday, August 22, 2013 11:26 AM To: Bryon Baker Subject: Re: [rt-users] Oldvalue and New value Oldvalue and Newvalue should be OldValue and NewValue Gareth On 2013-08-22 17:14, Bryon Baker wrote: > Need to know what I am doing wrong I cannot seem to figure out how to > implement this code > > my $ticket = $self->TicketObj; > > my $txn = $self->TransactionObj; > > my $type = $txn->Type; > > my $field = $txn->Field; > > my $NewStatus = "open"; > > my $oldvalue = $txn->Oldvalue; > > my $newvalue = $txn->Newvalue; > > $RT::Logger->debug("Open Ticket on Change Oldvalue $oldvaluen"); > > $RT::Logger->debug("Open Ticket on Change Newvalue $newvalue n"); > > I continue to get the following for new or old value. > > Scrip 63 Commit failed: RT::Transaction::Oldvalue Unimplemented in > RT::Action::UserDefined. ((eval 1728) line 6) > > Thanks all for the help. > > Thanks > > Bryon Baker > > Network Operations Manager > > _COPESAN__ - SPECIALISTS IN PEST SOLUTIONS_ > > 800-267-3726 * 262-783-6261 ext. 2296 > > bbaker at copesan.com > > www.copesan.com [1] > > _"SERVICING NORTH AMERICA WITH LOCAL CARE"_ > > > > Links: > ------ > [1] http://www.copesan.com/ From bbaker at copesan.com Thu Aug 22 13:51:14 2013 From: bbaker at copesan.com (Bryon Baker) Date: Thu, 22 Aug 2013 17:51:14 +0000 Subject: [rt-users] RTCrontool Message-ID: <96e662a79a27462998d5879b9eb92e31@BLUPR05MB103.namprd05.prod.outlook.com> Trying to create a cron job to move tickets from one queue to another. This is what I tried which does not work. Can some lead me in the direction where I can find a list of RT:Actions? rt-crontool \ --search RT::Search::FromSQL \ --search-arg "Queue = 'cerby' AND Status = 'closed'" \ --action RT::Action::SetQueue \ --action-arg 14 -verbose I get the following error when I run this Failed to load module RT::Action::SetQueue. Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at hudsonstreet.us Thu Aug 22 15:17:05 2013 From: michael at hudsonstreet.us (mdm100) Date: Thu, 22 Aug 2013 12:17:05 -0700 (PDT) Subject: [rt-users] Auto-Reply not generated Message-ID: <1377199025389-55080.post@n7.nabble.com> When requests to open tickets are sent directly to the RT queues email address a ticket is created and an Auto-Reply generate and received. ie.... wen sent directly to noc at RT-srvr.domain.com However, when a request to open a ticket is sent to noc at domain.com and then the email is forwarded to noc at RTsrvr.domain.com the ticket is opened/created but no auto-reply is generated. Just cannot figure this one out. Any help is greatly appreciated. -- View this message in context: http://requesttracker.8502.n7.nabble.com/Auto-Reply-not-generated-tp55080.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From landonstewart at gmail.com Thu Aug 22 19:36:41 2013 From: landonstewart at gmail.com (Landon) Date: Thu, 22 Aug 2013 16:36:41 -0700 Subject: [rt-users] Auto-Reply not generated In-Reply-To: <1377199025389-55080.post@n7.nabble.com> References: <1377199025389-55080.post@n7.nabble.com> Message-ID: On 22 August 2013 12:17, mdm100 wrote: > When requests to open tickets are sent directly to the RT queues email > address > a ticket is created and an Auto-Reply generate and received. ie.... wen > sent directly to noc at RT-srvr.domain.com > > However, when a request to open a ticket is sent to noc at domain.com and > then > the email is > forwarded to noc at RTsrvr.domain.com the ticket is opened/created but no > auto-reply > is generated. > > Just cannot figure this one out. Any help is greatly appreciated. > Some information on settings and from addresses is probably necessary here. I have a feeling that the return email is being squelched because of the address to which it is being sent. Have you checked the contents of your rtQueueRegex setting in RT_SiteConfig.conf against the email addresses used for opening tickets? RT won't send mail back to an address that matches the rtQueueRegex to avoid loops. -- Landon Stewart -------------- next part -------------- An HTML attachment was scrubbed... URL: From landonstewart at gmail.com Thu Aug 22 19:48:48 2013 From: landonstewart at gmail.com (Landon) Date: Thu, 22 Aug 2013 16:48:48 -0700 Subject: [rt-users] RTCrontool In-Reply-To: <96e662a79a27462998d5879b9eb92e31@BLUPR05MB103.namprd05.prod.outlook.com> References: <96e662a79a27462998d5879b9eb92e31@BLUPR05MB103.namprd05.prod.outlook.com> Message-ID: On 22 August 2013 10:51, Bryon Baker wrote: > Trying to create a cron job to move tickets from one queue to another. > This is what I tried which does not work.**** > > Can some lead me in the direction where I can find a list of RT:Actions? > Use the 'package' name defined within any of the files within /opt/rtX/lib/RT/Action/ eg. any of these: # grep package /opt/rt4/lib/RT/Action/* | awk '{ print $2 }' | sed 's/;//' RT::Action::AutoOpen RT::Action::Autoreply RT::Action::CreateTickets RT::Action::EscalatePriority RT::Action::ExtractSubjectTag etc... > **** > > ** rt-crontool \ > > ** > > --search RT::Search::FromSQL \**** > > --search-arg "Queue = 'cerby' AND Status = 'closed'" \**** > > --action RT::Action::SetQueue \ **** > > --action-arg 14 ?verbose > > I get the following error when I run this**** > > Failed to load module RT::Action::SetQueue. > Your command line looks mostly fine to me except I'd use single quotes to enclose the parameter and double quotes to enclose data within the parameter. eg: --search-arg 'Queue = "cerby" AND Status = "closed"' Did you modify /opt/rtX/lib/RT/Action/SetQueue.pm ? It it's not executable then rt-crontool will not be able to load the module. I had the same issue when I started learning how to deal with modules and creating new ones. I haven't figured out how to debug what line is causing it to not load though. There's probably some one liner that will tell you where the syntax error is but I don't know what that line is. Using the rt.log to find out why it didn't execute doesn't help either unless it's executing as a result of a scrip. I hope this helps somewhat at least. -- Landon Stewart -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.coakley at gmail.com Thu Aug 22 20:42:31 2013 From: mike.coakley at gmail.com (Mike Coakley) Date: Thu, 22 Aug 2013 20:42:31 -0400 Subject: [rt-users] Auto-Reply not generated In-Reply-To: <1377199025389-55080.post@n7.nabble.com> References: <1377199025389-55080.post@n7.nabble.com> Message-ID: Hi mdm100, Just to be sure, have you checked how you are forwarding from the first address to the other? If that isn't keeping the original sender then that is where you are losing the reply mail. RT replies to whatever email address it receives. The logs and history should show you exactly where the message is going back to (i.e. look at the outbound message in your RT history). If I'm off base. You will need to supply the list a lot more information. Like: how your forwarding is setup, what mail mtas are in the chain, how you are getting emails into RT, how that setup is configured, logs relevant to the issue, and what a ticket history looks like for one that didn't work with the raw email source for the replies RT did send. Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.wysocki at unity.pl Fri Aug 23 03:23:32 2013 From: robert.wysocki at unity.pl (Robert Wysocki) Date: Fri, 23 Aug 2013 09:23:32 +0200 Subject: [rt-users] Auto-Reply not generated In-Reply-To: <1377199025389-55080.post@n7.nabble.com> References: <1377199025389-55080.post@n7.nabble.com> Message-ID: <1377242612.4852.86.camel@s-rwysocki> Dnia 2013-08-22, czw o godzinie 12:17 -0700, mdm100 pisze: > When requests to open tickets are sent directly to the RT queues email > address > a ticket is created and an Auto-Reply generate and received. ie.... wen > sent directly to noc at RT-srvr.domain.com > > However, when a request to open a ticket is sent to noc at domain.com and then > the email is > forwarded to noc at RTsrvr.domain.com the ticket is opened/created but no > auto-reply > is generated. > > Just cannot figure this one out. Any help is greatly appreciated. Actually we had the same issue few months ago. It turned out, that our cloud email solution adds some kind of header during the forward process that says the message is autogenerated. RT then does not send autoreply due to this headers' existence. Pretty sure the same is happening to you. Regards, -- Robert Wysocki administrator system?w linuksowych administrator baz danych Grupa Unity | ul. Przedmiejska 6-10, 54-201 Wroc?aw ul. Conrada 55B, 31-357 Krak?w | ul. Z?ota 59, 00-120 Warszawa From dporter89 at yahoo.com Fri Aug 23 11:51:05 2013 From: dporter89 at yahoo.com (dporter89) Date: Fri, 23 Aug 2013 08:51:05 -0700 (PDT) Subject: [rt-users] When installing Request Tracker It says I'm missing dependencies such as DateTime that are actually installed Message-ID: <1377273065691-55086.post@n7.nabble.com> When I go to install Request Tracker and I do make testdeps I get the following error, but these dependencies are actually installed. I'm at a lost and any help would be much appreciated. I'm installing on centOS 6.3 and Request Tracker 4.0.17 SOME DEPENDENCIES WERE MISSING. CORE missing dependencies: DateTime ...MISSING Can't locate Data/OptList.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /root/Downloads/rt-4.0.17) at /usr/local/share/perl5/Class/Load.pm line 8. Log::Dispatch ...MISSING Attempt to reload Class/Load.pm aborted. MASON missing dependencies: XML::RSS ...MISSING Attempt to reload DateTime.pm aborted. make: *** [fixdeps] Error 1 Looking at cpan these are installed [root at requesttracker rt-4.0.17]# cpan DateTime CPAN: Storable loaded ok (v2.20) Reading '/root/.cpan/Metadata' Database was generated on Thu, 22 Aug 2013 19:08:28 GMT CPAN: Module::CoreList loaded ok (v2.97) DateTime is up to date (1.03). [root at requesttracker rt-4.0.17]# cpan Log::Dispatch CPAN: Storable loaded ok (v2.20) Reading '/root/.cpan/Metadata' Database was generated on Thu, 22 Aug 2013 19:08:28 GMT CPAN: Module::CoreList loaded ok (v2.97) Log::Dispatch is up to date (2.41). [root at requesttracker rt-4.0.17]# cpan XML::RSS CPAN: Storable loaded ok (v2.20) Reading '/root/.cpan/Metadata' Database was generated on Thu, 22 Aug 2013 19:08:28 GMT CPAN: Module::CoreList loaded ok (v2.97) XML::RSS is up to date (1.54). [root at requesttracker rt-4.0.17]# -- View this message in context: http://requesttracker.8502.n7.nabble.com/When-installing-Request-Tracker-It-says-I-m-missing-dependencies-such-as-DateTime-that-are-actually-d-tp55086.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From jmates at uw.edu Fri Aug 23 12:42:28 2013 From: jmates at uw.edu (Jeremy Mates) Date: Fri, 23 Aug 2013 16:42:28 +0000 Subject: [rt-users] When installing Request Tracker It says I'm missing dependencies such as DateTime that are actually installed In-Reply-To: <1377273065691-55086.post@n7.nabble.com> References: <1377273065691-55086.post@n7.nabble.com> Message-ID: <20130823164228.GT25143@valen.ee.washington.edu> * dporter89 > DateTime ...MISSING > Can't locate Data/OptList.pm in @INC (@INC contains: > /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl > /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 > /root/Downloads/rt-4.0.17) at /usr/local/share/perl5/Class/Load.pm line 8. Good things to check are whether multiple perl installs have been done (to avoid the problem of RT using /path/to/{cpan,perl} but the PATH lists /some/other/{cpan,perl} first), and whether selinux is stabbing you in the back yet again. I avoid the vendor perl on Redhat or sed jobs of such, and install a custom perl to /opt/rt, and only use that for RT, but care must be taken to only use that version. More elaborate would be to only use /path/to/{cpan,perl}-5.18.1 and otherwise specifically versioned command names, but that's a few extra steps during the install of perl. ./Configure -des -Dprefix=/opt/rt4 && make test && make install /opt/rt4/bin/perl -MCPAN -e shell (then exit that) export PERL_MM_USE_DEFAULT=1 export PATH=/opt/rt4/bin:$PATH env PERL=/opt/rt4/bin/perl ./configure \ --enable-ssl-mailgate \ --with-web-handler=fastcgi \ --with-db-type=Pg \ --with-web-user=apache --with-web-group=apache --with-rt-group=apache make fixdeps ... /opt/rt4/bin/cpan RT::Extension::... Perlbrew would be another option, or building the custom perl into a proper software depot, etc, depending on resources available. -- ?yad sdrawkcab si yadot From jborissr at gmail.com Fri Aug 23 13:26:45 2013 From: jborissr at gmail.com (john boris) Date: Fri, 23 Aug 2013 13:26:45 -0400 Subject: [rt-users] When installing Request Tracker It says I'm missing dependencies such as DateTime that are actually installed In-Reply-To: <20130823164228.GT25143@valen.ee.washington.edu> References: <1377273065691-55086.post@n7.nabble.com> <20130823164228.GT25143@valen.ee.washington.edu> Message-ID: I had the same issue installing on a 64 Bit instance of Fedora. I just had to make sure hte paths were correct and things started working. On Fri, Aug 23, 2013 at 12:42 PM, Jeremy Mates wrote: > * dporter89 > > DateTime ...MISSING > > Can't locate Data/OptList.pm in @INC (@INC contains: > > /usr/local/lib64/perl5 /usr/local/share/perl5 > /usr/lib64/perl5/vendor_perl > > /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 > > /root/Downloads/rt-4.0.17) at /usr/local/share/perl5/Class/Load.pm line > 8. > > Good things to check are whether multiple perl installs have been done > (to avoid the problem of RT using /path/to/{cpan,perl} but the PATH > lists /some/other/{cpan,perl} first), and whether selinux is stabbing > you in the back yet again. I avoid the vendor perl on Redhat or sed > jobs of such, and install a custom perl to /opt/rt, and only use that > for RT, but care must be taken to only use that version. More elaborate > would be to only use /path/to/{cpan,perl}-5.18.1 and otherwise > specifically versioned command names, but that's a few extra steps > during the install of perl. > > ./Configure -des -Dprefix=/opt/rt4 && make test && make install > /opt/rt4/bin/perl -MCPAN -e shell > (then exit that) > > export PERL_MM_USE_DEFAULT=1 > export PATH=/opt/rt4/bin:$PATH > env PERL=/opt/rt4/bin/perl ./configure \ > --enable-ssl-mailgate \ > --with-web-handler=fastcgi \ > --with-db-type=Pg \ > --with-web-user=apache --with-web-group=apache --with-rt-group=apache > make fixdeps > > ... > > /opt/rt4/bin/cpan RT::Extension::... > > Perlbrew would be another option, or building the custom perl into a > proper software depot, etc, depending on resources available. > > -- > yad sdrawkcab si yadot > -- John J. Boris, Sr. Online Services www.onlinesvc.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dporter89 at yahoo.com Fri Aug 23 14:14:55 2013 From: dporter89 at yahoo.com (dporter89) Date: Fri, 23 Aug 2013 11:14:55 -0700 (PDT) Subject: [rt-users] When installing Request Tracker It says I'm missing dependencies such as DateTime that are actually installed In-Reply-To: References: <1377273065691-55086.post@n7.nabble.com> <20130823164228.GT25143@valen.ee.washington.edu> Message-ID: <1377281695749-55089.post@n7.nabble.com> Hi John, Could you expound upon what you did to correct your path issue. It's odd because when I run make fixdeps, it tries to install the 3 missing dependencies but then comes back with "they are up to date" So it looks like it's finding them but then it still comes back with the missing dependencies errors. -- View this message in context: http://requesttracker.8502.n7.nabble.com/When-installing-Request-Tracker-It-says-I-m-missing-dependencies-such-as-DateTime-that-are-actually-d-tp55086p55089.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From dporter89 at yahoo.com Fri Aug 23 14:21:45 2013 From: dporter89 at yahoo.com (dporter89) Date: Fri, 23 Aug 2013 11:21:45 -0700 (PDT) Subject: [rt-users] When installing Request Tracker It says I'm missing dependencies such as DateTime that are actually installed In-Reply-To: <1377281695749-55089.post@n7.nabble.com> References: <1377273065691-55086.post@n7.nabble.com> <20130823164228.GT25143@valen.ee.washington.edu> <1377281695749-55089.post@n7.nabble.com> Message-ID: <1377282105213-55090.post@n7.nabble.com> Ok so I figured it out, I didn't need to install the missing 3 modules. All that needed to be installed was OptList.pm. So I dropped to a cpan prompt and did install Data::OptList . It installed and now all dependencies are found. -- View this message in context: http://requesttracker.8502.n7.nabble.com/When-installing-Request-Tracker-It-says-I-m-missing-dependencies-such-as-DateTime-that-are-actually-d-tp55086p55090.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From michael at hudsonstreet.us Fri Aug 23 15:42:22 2013 From: michael at hudsonstreet.us (Michael DiMartino) Date: Fri, 23 Aug 2013 15:42:22 -0400 Subject: [rt-users] Auto-Reply not generated In-Reply-To: References: <1377199025389-55080.post@n7.nabble.com> Message-ID: Mike First thanks for your reply, according the logs the return email address for the auto reply is present, but is being blacklisted by the RT system. How would that happen? Aug 23 19:38:58 RT01NYC RT: #012 The incoming message was autogenerated. Not redistributing this message to unprivileged users based on site configuration. (/usr/local/rt/sbin/../lib/RT/Action/SendEmail.pm:790) Aug 23 19:38:58 RT01NYC RT: #012mdm100 at gmail.com was blacklisted for outbound mail on this transaction. Skipping (/usr/local/rt/sbin/../lib/RT/Action/SendEmail.pm:823) Aug 23 19:38:58 RT01NYC RT: < rt-4.0.5-1563-1377286738-1718.88-4-0 at example.com>#012 The incoming message was autogenerated. Not redistributing this message to unprivileged users based on site configuration. (/usr/local/rt/sbin/../lib/RT/Action/SendEmail.pm:790) Aug 23 19:38:58 RT01NYC RT: #88/624 - Scrip 3 On Create Autoreply To Requestors (/usr/local/rt/sbin/../lib/RT/Action/SendEmail.pm:301) Aug 23 19:38:58 RT01NYC RT: No recipients found. Not sending. (/usr/local/rt/sbin/../lib/RT/Interface/Email.pm:352) Aug 23 19:38:58 RT01NYC RT: < rt-4.0.5-1563-1377286738-1718.88-4-0 at example.com> #88/624 - Scrip 4 On Create Notify AdminCcs (/usr/local/rt/sbin/../lib/RT/Action/SendEmail.pm:301) Aug 23 19:38:58 RT01NYC RT: < rt-4.0.5-1563-1377286738-1718.88-4-0 at example.com> No recipients found. Not sending. (/usr/local/rt/sbin/../lib/RT/Interface/Email.pm:352) Aug 23 19:38:58 RT01NYC RT: Ticket 88 created in queue 'Cronos' by mdm100 at gmail.com (/usr/local/rt/sbin/../lib/RT/Ticket.pm:688) On Thu, Aug 22, 2013 at 8:42 PM, Mike Coakley wrote: > Hi mdm100, > > Just to be sure, have you checked how you are forwarding from the first > address to the other? If that isn't keeping the original sender then that > is where you are losing the reply mail. RT replies to whatever email > address it receives. The logs and history should show you exactly where the > message is going back to (i.e. look at the outbound message in your RT > history). > > If I'm off base. You will need to supply the list a lot more information. > Like: how your forwarding is setup, what mail mtas are in the chain, how > you are getting emails into RT, how that setup is configured, logs relevant > to the issue, and what a ticket history looks like for one that didn't work > with the raw email source for the replies RT did send. > > Mike > > On Aug 22, 2013, 3:17 PM, mdm100 wrote: > > When requests to open tickets are sent directly to the RT queues email > address > a ticket is created and an Auto-Reply generate and received. ie.... wen > sent directly to noc at RT-srvr.domain.com > > However, when a request to open a ticket is sent to noc at domain.com and > then > the email is > forwarded to noc at RTsrvr.domain.com the ticket is opened/created but no > auto-reply > is generated. > > Just cannot figure this one out. Any help is greatly appreciated. > > > > -- > View this message in context: > http://requesttracker.8502.n7.nabble.com/Auto-Reply-not-generated-tp55080.html > Sent from the Request Tracker - User mailing list archive at Nabble.com. > > -- * * *Hudson Street Tech * *Michael Di Martino*, CEO/Founder 99 Hudson St. | New York, NY 10013 m: 631-988-6060 michael at hudsonstreet.us www.hudsonstreet.us -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin.fenech at strategicdata.com.au Sun Aug 25 22:56:35 2013 From: justin.fenech at strategicdata.com.au (Justin Fenech) Date: Mon, 26 Aug 2013 12:56:35 +1000 (EST) Subject: [rt-users] Listing valid values in RT Custom Field In-Reply-To: <1833085241.341027.1377485503649.JavaMail.root@strategicdata.com.au> Message-ID: <2113352410.341059.1377485795311.JavaMail.root@strategicdata.com.au> Just wondering if anyone has come across a similar issue. We have been trying to update a custom field on ticket creation. We have managed to succeed in updating the field based on the domain name of the requestor. However we would like to validate the domain against all of the values in the custom field. As you can see from the code below that we have attempted to get the values from the "Client" custom field. However our while loop doesn't work. my $cf = RT::CustomField->new($RT::SystemUser); my $cf_name = 'Client'; $cf->LoadByName(Name => $cf_name); my $values = $cf->Values; while ( my $v = $values->Next ) { # check if $v matches the domain. } return 1; If any one can offer assistance with this that would be great. Thanks, Justin From t.baetzler at bringe.com Mon Aug 26 07:42:48 2013 From: t.baetzler at bringe.com (=?iso-8859-1?Q?Thomas_B=E4tzler?=) Date: Mon, 26 Aug 2013 11:42:48 +0000 Subject: [rt-users] RT 4.0.17 and RT::Extension::MergeUsers 0.10 => merged user not in Basic -> Owner list Message-ID: <515168F006F2D643952F8FFD24F2E073025A3AF774@sonne2.gw.bringe.net> Hi, I've just installed MergeUsers for the first time to address the usual "multiple email" problem, and I'm seeing a weird problem when trying to change the ownership of a new ticket via the "Basics" properties page. In order to test the MergeUsers functionality, I have added a new user to our RT, which I merged to my primary RT account. Since that moment, my account doesn't show up in the "owner" dropdown on the "basic properties" page anymore - not even after unmerging the new account. It's not a privilege problem, because I can still use "take" to take ownership of a ticket. When logged in as a different user, who hasn't been touched with the new extension, that user does shows up in the "owner" dropdown. Is this a known problem? Since the README mentions a new user iterator, could that be the source of the problem? Cheers, Thomas From ruz at bestpractical.com Mon Aug 26 08:53:28 2013 From: ruz at bestpractical.com (Ruslan Zakirov) Date: Mon, 26 Aug 2013 16:53:28 +0400 Subject: [rt-users] Listing valid values in RT Custom Field In-Reply-To: <2113352410.341059.1377485795311.JavaMail.root@strategicdata.com.au> References: <1833085241.341027.1377485503649.JavaMail.root@strategicdata.com.au> <2113352410.341059.1377485795311.JavaMail.root@strategicdata.com.au> Message-ID: On Mon, Aug 26, 2013 at 6:56 AM, Justin Fenech < justin.fenech at strategicdata.com.au> wrote: > $cf->LoadByName(Name => $cf_name); You didn't check that you actually loaded custom field: unless ( $cf->id ) { die "Couldn't load CF $cf_name"; } -- Best regards, Ruslan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruz at bestpractical.com Mon Aug 26 08:57:40 2013 From: ruz at bestpractical.com (Ruslan Zakirov) Date: Mon, 26 Aug 2013 16:57:40 +0400 Subject: [rt-users] Technician on vacation status In-Reply-To: References: Message-ID: On Thu, Aug 22, 2013 at 2:20 AM, Max McGrath wrote: > Hi all - > > Running RT 4.0.16. Was talking with a co-worker today about this. I was > wondering if there is anything that can be put in place (easily) for when a > person is out of the office for a long time. > > For instance , if a person is out on vacation for two weeks and not > everybody is aware, maybe RT shouldn't allow tickets to be given to this > person? > > Not sure if this is possible...or even a good idea. Just a thought. > I havn't seen an extension for RT that helps with vacations and would be cool to get one. > Max > -- Best regards, Ruslan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rainer at ultra-secure.de Mon Aug 26 10:09:47 2013 From: rainer at ultra-secure.de (Rainer Duffner) Date: Mon, 26 Aug 2013 16:09:47 +0200 Subject: [rt-users] Technician on vacation status In-Reply-To: References: Message-ID: <20130826160947.386b075f@suse3> Am Mon, 26 Aug 2013 16:57:40 +0400 schrieb Ruslan Zakirov : > On Thu, Aug 22, 2013 at 2:20 AM, Max McGrath > wrote: > > > Hi all - > > > > Running RT 4.0.16. Was talking with a co-worker today about this. > > I was wondering if there is anything that can be put in place > > (easily) for when a person is out of the office for a long time. > > > > For instance , if a person is out on vacation for two weeks and not > > everybody is aware, maybe RT shouldn't allow tickets to be given to > > this person? > > > > Not sure if this is possible...or even a good idea. Just a thought. > > > I havn't seen an extension for RT that helps with vacations and would > be cool to get one. I have never tried this, but what happens if: - that user is disabled? - if that user has any old tickets in "waiting for feedback status" and then the tickets acutally get feedback and the user is disabled? Disabling the user is harsh - but at least, nobody will be able to assign new tickets to the user. In my organization, people just send an email to everybody when they are away for a longer time...obviously not a solution for a company with 30k active RT users. I would be really interested to know how organizations with a large number of privileged RT users handle this. From elifree at free.fr Mon Aug 26 10:30:08 2013 From: elifree at free.fr (elifree) Date: Mon, 26 Aug 2013 07:30:08 -0700 (PDT) Subject: [rt-users] ExtractCustomFieldValues and CF Select type Message-ID: <1377527408093-55097.post@n7.nabble.com> Hello, I'm using RT 4.0.10 (on a test machine) and I'm testing the extension ExtractCustomFieldValues to insert a value to a custom field (Select type with a list of 4 values). The incoming mail contains the value : Type du ticket->Incident the template contains : Type du ticket|Body|Type du ticket->(.+)$|q| then The ticket is created, and displays on the main page : Type du ticket: Incident but when I modify the ticket (the basics), on the list of values of this CF, the blue line is set on (no information) and not on Incident. So if I want to modify any field there, I must re-select the value Incident before saving, otherwise it's lost. For example, the history of the ticket shows : - at the creation of the ticket : The RT System itself - Type du ticket Incident added - after modifying : '/the name of the owne/r' - Type du ticket Incident removed With CF using type Freeform there is no problem, the value is correctly inserted at creation time. I've been searching for a while, I suppose it's simple, but even after some holidays, I still don't find the reason why the correct value is not selected. Let me know if more information is needed. Thanks a lot for your help, Elisabeth -- View this message in context: http://requesttracker.8502.n7.nabble.com/ExtractCustomFieldValues-and-CF-Select-type-tp55097.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From bbaker at copesan.com Mon Aug 26 10:54:12 2013 From: bbaker at copesan.com (Bryon Baker) Date: Mon, 26 Aug 2013 14:54:12 +0000 Subject: [rt-users] Cron Job Message-ID: <7dd1cfe6b42b4b09b87cd904642ff4d0@BLUPR05MB103.namprd05.prod.outlook.com> Looking for a better way! This is what I have done so far. I created the following Perl script which connects to a foreign data to determine if there are any available agents login to the phone system. If there are agents to send messages to then run getmail to retrieve the messages. It also makes sure the Getmail process is not already running. Why do I want something better 1. I get the following error when this runs. But messages appear to be delivered. a. Delivery error (command rt-mailgate 9285 wrote to stderr: cannot chdir to /root from /tmp/VurewGNWhm: Permission denied, aborting. at /usr/lib/perl5/5.16.2/File/Temp.pm line 902.) b. msg 575/594 (85001 bytes), delivery error (command rt-mailgate 9285 wrote to stderr: cannot chdir to /root from /tmp/VurewGNWhm: Permission denied, aborting. at /usr/lib/perl5/5.16.2/File/Temp.pm line 902.) 2. I continue to get all kinds of directories left behind in the /tmp directory. 3. I am a newbe and know there has to be a better way. Script being ran by cron as "root" #!/usr/bin/perl -w use DBI; use DateTime; my $host = '192.168.254.10'; my $port = '4308'; my $database = ''; my $user = ''; my $password = ''; my $command2 = " "; my $currentID = $$; my $dt = DateTime->now; open(FILE, "ps aux|"); while () { (my $uid,my $pid,my $cpu,my $mem,my $vsz,my $rss,my $tty,my $stat,my $start,my $time,my $command,my $command1,my $command2) = split; $command = $command // "Unknown"; $command = $command1 // "Unknown"; $command = $command2 // "Unknown"; my $result = index($command, "/usr/bin/getmail"); if ($pid ne $currentID) { if ($result > -1) { print "$dt Scrip already running $command $pid $currentID $result\n"; exit; } } } my $dsn = "DBI:mysql:database=$database;host=$host;port=$port "; my $dbh = DBI->connect($dsn, $user, $password); my $sql = 'SELECT tabaddress.EmailAddress FROM shoreware.ports as Ports '; $sql = $sql . 'inner join (shoreware.usercurrentswitch as UCS) on (Ports.PortID = UCS.HomePortID) ' ; $sql = $sql . 'inner join (shoreware.users as Users) on (Ports.CurrentDN = Users.UserDN) '; $sql = $sql . 'inner join (shoreware.workgroupagents as Agents) on (Users.UserDN = Agents.UserDN) '; $sql = $sql . 'inner join (shoreware.Tabaddresses as tabaddress) on (Users.AddressID = tabaddress.AddressID) '; $sql = $sql . 'Where (Ports.JackNumber not like \'%norr%\' or Ports.JackNumber is null and Agents.agentstateID<>0) '; $sql = $sql . 'order by Agents.UserDN '; my $sth = $dbh->prepare($sql); $sth->execute; my $rows = $sth->rows; if ($rows > 0) { system("cd /tmp"); system("getmail"); print "$dt Number of rows $rows\n"; } Getmail configuration [retriever] #type = SimpleIMAPSSLRetriever #server = imap.gmail.com #port = 993 #username = testcopesan at gmail.com #password = #mailboxes = ('BBaker',) type = SimpleIMAPRetriever server = 192.168.250.61 port = 143 username = clientservice at copesan.local password = mailboxes = ('To_Request_Tracker',) [destination] type = MDA_external path = /usr/bin/rt-mailgate user = rtuser group = rtgroup arguments = ("--url", "http://localhost/rt", "--queue", "x CSR", "--action", "correspond",) [options] read_all = false delete = false received = false delivered_to = false message_log = /var/log/request-tracker/mvmail.log Thanks in advance for all the help. Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From michelle at sorbs.net Mon Aug 26 10:00:04 2013 From: michelle at sorbs.net (Michelle Sullivan) Date: Mon, 26 Aug 2013 16:00:04 +0200 Subject: [rt-users] RT::Authen::ExternalAuth SSO config.. tips please.. Message-ID: <521B5F64.3020707@sorbs.net> Hi All, I'm moving from RT3.6 -> RT4.0.17 and have decided to try going with RT::Authen::ExternalAuth instead of an OverRide I wrote previously. My system sets a cookie for all visitors, which is just a session ID (no other information in the cookie - for security .. this is then linked to the actual user information using Apache::Session to do the dirty work) Inside the cookie retrieved information there is the Username, Email addresses (multiple possible), Real Name, RT ID (single at the moment, but will be multiple in the near future) and a load of other information (address etc.) Currently when someone logs in to the main site and updates their preferences it updates the preferences in the RT user database. Inside the retrieved information there is an 'auth' parameter which contains the current state of the login and it's timeout. My thoughts is for any un-authenticated user to be re-directed to my main login page, get the new authenticated cookie, and be re-directed back to the RT system. The RT system will then load the user information from the DB retrieved by the cookie ID.. and allow access in that method. Is this possible with RT::Authen::ExternalAuth ? If so is it possible for it to update the timeout as necessary (so the login doesn't idle out)? If all of the above... any Docs/Examples on it? (I have modules that can do this as well - but need to know what calls what and what is expected in the return) Glancing at the code, it suggests that it is not possible without extensive work... can anyone confirm or deny? Thanks, -- Michelle Sullivan http://www.mhix.org/ From jim.h.berry at frb.gov Mon Aug 26 11:22:05 2013 From: jim.h.berry at frb.gov (Jim Berry) Date: Mon, 26 Aug 2013 15:22:05 +0000 Subject: [rt-users] Technician on vacation status In-Reply-To: <20130826160947.386b075f@suse3> References: <20130826160947.386b075f@suse3> Message-ID: <328C311131899241A0CD6A885762A6300DFAFE12@m1-mailbox03> Two thoughts: 1. At our site we have a cron job which checks for new tickets which have been sitting around for N hours and don't have a future start date. If any are found, an email goes out to the owner and her manager and the RT admin with a ticket summary. This fails if all 3 are out, but has worked reasonably well, and does not depend on the accuracy of our electronic whiteboard. 2. If it is possible to determine from an RT Scrip if a staff member is on vacation, then one could have a scrip with a custom condition checking if the transaction is assigning ownership to someone who is out. If so, alert some key players. (We have the Send Email action installed for a similar situation). Jim -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Rainer Duffner Sent: Monday, August 26, 2013 10:10 AM To: Ruslan Zakirov Cc: RT users Subject: Re: [rt-users] Technician on vacation status Am Mon, 26 Aug 2013 16:57:40 +0400 schrieb Ruslan Zakirov : > On Thu, Aug 22, 2013 at 2:20 AM, Max McGrath > wrote: > > > Hi all - > > > > Running RT 4.0.16. Was talking with a co-worker today about this. > > I was wondering if there is anything that can be put in place > > (easily) for when a person is out of the office for a long time. > > > > For instance , if a person is out on vacation for two weeks and not > > everybody is aware, maybe RT shouldn't allow tickets to be given to > > this person? > > > > Not sure if this is possible...or even a good idea. Just a thought. > > > I havn't seen an extension for RT that helps with vacations and would > be cool to get one. I have never tried this, but what happens if: - that user is disabled? - if that user has any old tickets in "waiting for feedback status" and then the tickets acutally get feedback and the user is disabled? Disabling the user is harsh - but at least, nobody will be able to assign new tickets to the user. In my organization, people just send an email to everybody when they are away for a longer time...obviously not a solution for a company with 30k active RT users. I would be really interested to know how organizations with a large number of privileged RT users handle this. -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Mon Aug 26 13:51:36 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Mon, 26 Aug 2013 13:51:36 -0400 Subject: [rt-users] ExtractCustomFieldValues and CF Select type In-Reply-To: <1377527408093-55097.post@n7.nabble.com> References: <1377527408093-55097.post@n7.nabble.com> Message-ID: <20130826175136.GK84863@jibsheet.com> On Mon, Aug 26, 2013 at 07:30:08AM -0700, elifree wrote: > I'm using RT 4.0.10 (on a test machine) and I'm testing the extension > ExtractCustomFieldValues to insert a value to a custom field (Select type > with a list of 4 values). > > The incoming mail contains the value : > Type du ticket->Incident > > the template contains : > Type du ticket|Body|Type du ticket->(.+)$|q| > > then The ticket is created, and displays on the main page : > Type du ticket: Incident > > but when I modify the ticket (the basics), on the list of values of this CF, > the blue line is set on (no information) and not on Incident. > > So if I want to modify any field there, I must re-select the value Incident > before saving, otherwise it's lost. > > For example, the history of the ticket shows : > - at the creation of the ticket : > The RT System itself - Type du ticket Incident added > - after modifying : > '/the name of the owne/r' - Type du ticket Incident removed > > With CF using type Freeform there is no problem, the value is correctly > inserted at creation time. > > I've been searching for a while, I suppose it's simple, but even after some > holidays, I still don't find the reason why the correct value is not > selected. I'd bet your greedy regex (.+)$ is grabbing trailing whitespace, which doesn't exactly match the value in the select one CF. You can go look in the ObjectCustomFieldValues table for the value of the CF on your test ticket and check to see what the actual Content is. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From lstewart at iweb.com Mon Aug 26 16:55:36 2013 From: lstewart at iweb.com (Landon Stewart) Date: Mon, 26 Aug 2013 13:55:36 -0700 Subject: [rt-users] Most efficient way to update custom fields without creating too many transactions Message-ID: Hello, Currently we are utilizing some internal systems to lookup the Customer ID and other data related to that customer to add to Incident Reports coming into RT. Some organizations include a list of IP addresses or URLs related to a specific type of Incident. Those IP addresses or URLs might belong to several customers and the processing of the ticket becomes more arduous to process by my Action modules. While this is not a problem in itself because it eventually does get processed the processing also adds a number of of Transactions that is multiples of the required custom fields to be updated. For example if there are 1000 IP addresses in a ticket and there are 4 custom fields to be updated it creates 4000 transactions for that one ticket when looping each update individually. What I'm wondering is if there's a better way to make these updates so multiple values can be added to the ticket with one transaction. Example: *This:* foreach my $customerID (@customerids) { $ticket->AddCustomFieldValue( Field => 'Customer', Value => $customerID ); } Vs. This: $ticket->AddCustomFieldValue( Field => 'Customer', Value => join("\n", at customerids) ); I noticed the "Content" field in the ObjectCustomFieldValues table is limited to varchar(255) so the second psudo-code example above would probably not be a good idea. ALSO - If anyone has advice on how to split incoming tickets for tons of IP address into individual tickets please let me know. I have an idea of how I'm going to do it already based on some parsing and create perl code but there's always more than one way to skin a cat. In fact, having just re-read what I wrote above, I think I might be going about this incorrectly. Perhaps I should not be adding ALL the data per Incident Report but rather per Incident. I should probably restrict the data added to the Incident Report to just Customer ID only. Perhaps the single report having many IP addresses listed should be linked to a new Incident per customer instead of creating multiple Incident Reports. That actually makes more sense. Thanks for reading! Any feedback is appreciated. -- Landon Stewart :: lstewart at iweb.com Lead Specialist, Abuse and Security Management Sp?cialiste principal, gestion des abus et s?curit? http://iweb.com :: +1 (888) 909-4932 -------------- next part -------------- An HTML attachment was scrubbed... URL: From elifree at free.fr Tue Aug 27 04:24:52 2013 From: elifree at free.fr (elifree) Date: Tue, 27 Aug 2013 01:24:52 -0700 (PDT) Subject: [rt-users] ExtractCustomFieldValues and CF Select type In-Reply-To: <20130826175136.GK84863@jibsheet.com> References: <1377527408093-55097.post@n7.nabble.com> <20130826175136.GK84863@jibsheet.com> Message-ID: <1377591892971-55103.post@n7.nabble.com> Thanks Kevin, it's exactly the problem ! Now, as I have no knowledge in perl, I've copied the regex from an example on the RT wiki. I'll try to find the right regex by myself, but if you have the solution, I'll take it with pleasure ! Thanks again, Elisabeth -- View this message in context: http://requesttracker.8502.n7.nabble.com/ExtractCustomFieldValues-and-CF-Select-type-tp55097p55103.html Sent from the Request Tracker - User mailing list archive at Nabble.com. From gd250 at cam.ac.uk Tue Aug 27 04:51:57 2013 From: gd250 at cam.ac.uk (G. Dawson) Date: Tue, 27 Aug 2013 09:51:57 +0100 Subject: [rt-users] Most efficient way to update custom fields without creating too many transactions In-Reply-To: References: Message-ID: On 2013-08-26 21:55, Landon Stewart wrote: > > For example if there are 1000 IP addresses in a ticket and there are 4 > custom fields to be updated it creates 4000 transactions for that one > ticket when looping each update individually. > > What I'm wondering is if there's a better way to make these updates so > multiple values can be added to the ticket with one transaction. > Not quite want you want but can you silence the transactions by using the long form of the Set method described in the "How to be Silent" section of http://requesttracker.wikia.com/wiki/WriteCustomAction Gareth From patrick at bytemark.co.uk Tue Aug 27 06:23:14 2013 From: patrick at bytemark.co.uk (Patrick J Cherry) Date: Tue, 27 Aug 2013 11:23:14 +0100 Subject: [rt-users] RT::Extension::RepliesToResolved and REST interface Message-ID: <20130827102314.GJ12215@bytemark.co.uk> Hi there, The RT::Extension::RepliesToResolved extension looks really useful, and just what we need. However it looks like it will only operate if the incoming message is received over via the Email interface. Our correspondence comes in via the REST interface. Is it possible to implement the same functionality via this interface? Thanks! -- Patrick J Cherry Head of quality assurance http://www.bytemark.co.uk/ Bytemark Hosting tel: +44 (0) 1904 890 890 From simon at widgit.com Tue Aug 27 08:39:08 2013 From: simon at widgit.com (Simon Detheridge) Date: Tue, 27 Aug 2013 13:39:08 +0100 (BST) Subject: [rt-users] 'Articles' custom fields not working after upgrade to RT4 from RT3+RTFM In-Reply-To: Message-ID: Hi, Upgraded from RT3 to RT4, as follows: Installed RT4 on new box, from debian RPMs in Ubuntu 12.04. Copied RT3 database across to new box via mysqldump and ran necessary db migrations, plus upgrade-articles script. All seems to have gone smoothly, except custom fields for articles appear to be broken. Here's what happens: - All article classes are listed, and populated with the correct articles - Viewing an article shows everything except the article content (no custom fields) - Modifying an article does not show custom fields for modification in the content section - "Tools -> configuration -> articles -> custom fields" shows the correct custom fields, and also shows correct values in the "applied" column to show that they are applied to the classes. So, it looks like my custom fields are mangled somehow. Furthermore, this happens, which is odd: - Create new custom field for articles - Go to "Tools -> Configuration -> Articles -> Select -> ArticleName -> Custom Fields - Can see my new custom field under "Unselected custom fields" - Select my new custom field, click 'Submit' - Custom field is now gone. It is not listed under "Selected custom fields" (nothing is) - Go back to "Tools -> configuration -> articles -> custom fields", custom field shows as being applied to the class I just applied it to - Custom field does *not* appear on articles or article modification page themselves. Any idea what's come adrift here? -- Simon Detheridge - CTO, Widgit Software 26 Queen Street, Cubbington, CV32 7NA - Tel: +44 (0)1926 333680 From dbrooks at mdah.state.ms.us Tue Aug 27 09:02:31 2013 From: dbrooks at mdah.state.ms.us (Donny Brooks) Date: Tue, 27 Aug 2013 08:02:31 -0500 Subject: [rt-users] Categories Message-ID: On our old helpdesk (hand written php/mysql setup) we had different categories that a ticket could be put into. The choices were like: Phone New user virus etc.... We have set up RT with a main queue that the ticket then gets routed to either one of two sub queues as we have two different I.T. groups in our agency. Instead of setting up a queue for each category what would be the best way to be able to check categories for stats? I was thinking keywords/hashtags in the resolution. Anyone else have ideas or pointers? -- Donny B. From mfinn at nbutexas.com Tue Aug 27 09:07:11 2013 From: mfinn at nbutexas.com (Michael Finn) Date: Tue, 27 Aug 2013 08:07:11 -0500 Subject: [rt-users] Categories In-Reply-To: References: Message-ID: We use two custom fields -- one for a category like you have listed (a multi-select list), and one for the requesting department (single-select drop-down), also for statistical tracking. Cheers, Mike -----Original Message----- From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Donny Brooks Sent: Tuesday, August 27, 2013 8:03 AM To: rt-users at lists.bestpractical.com Subject: [rt-users] Categories On our old helpdesk (hand written php/mysql setup) we had different categories that a ticket could be put into. The choices were like: Phone New user virus etc.... We have set up RT with a main queue that the ticket then gets routed to either one of two sub queues as we have two different I.T. groups in our agency. Instead of setting up a queue for each category what would be the best way to be able to check categories for stats? I was thinking keywords/hashtags in the resolution. Anyone else have ideas or pointers? -- Donny B. From mbrister at talentwise.com Tue Aug 27 09:13:17 2013 From: mbrister at talentwise.com (Matt Brister) Date: Tue, 27 Aug 2013 13:13:17 +0000 Subject: [rt-users] Categories In-Reply-To: References: Message-ID: <1377609188.12950.12.camel@D12504> We use kind of the same idea here. We have an offsite/contract level 1 desk that charges per incident and type. We have created a custom field called "TAG" with the valid resolution type. The search can then be done from the Simple Search by using "cf.TAG:value" Tools > Configuration > Custom Fields > Create will get you to the setup. -- Matt Brister - Sr. Desktop Support Analyst (mbrister at talentwise.com) O: (425)492-8281 C: (425)533-5714 -----Original Message----- From: Donny Brooks > To: rt-users at lists.bestpractical.com Subject: [rt-users] Categories Date: Tue, 27 Aug 2013 08:02:31 -0500 On our old helpdesk (hand written php/mysql setup) we had different categories that a ticket could be put into. The choices were like: Phone New user virus etc.... We have set up RT with a main queue that the ticket then gets routed to either one of two sub queues as we have two different I.T. groups in our agency. Instead of setting up a queue for each category what would be the best way to be able to check categories for stats? I was thinking keywords/hashtags in the resolution. Anyone else have ideas or pointers? -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrick at bytemark.co.uk Tue Aug 27 11:07:07 2013 From: patrick at bytemark.co.uk (Patrick J Cherry) Date: Tue, 27 Aug 2013 16:07:07 +0100 Subject: [rt-users] RT::Extension::RepliesToResolved and REST interface In-Reply-To: <20130827102314.GJ12215@bytemark.co.uk> References: <20130827102314.GJ12215@bytemark.co.uk> Message-ID: <20130827150707.GB9107@bytemark.co.uk> (replying to myself) On Tue 27 Aug 2013 at 11:23, Patrick J Cherry wrote: > Hi there, > > The RT::Extension::RepliesToResolved extension looks really useful, and > just what we need. > > However it looks like it will only operate if the incoming message is > received over via the Email interface. Our correspondence comes in via > the REST interface. Is it possible to implement the same functionality > via this interface? I was just confused. It took me a while to make it work, but I think the critical bit is putting the configuration clauses in RT_SiteConfig.pm Thanks! -- Patrick J Cherry Head of quality assurance http://www.bytemark.co.uk/ Bytemark Hosting tel: +44 (0) 1904 890 890 From andy.law at roslin.ed.ac.uk Tue Aug 27 11:46:15 2013 From: andy.law at roslin.ed.ac.uk (LAW Andy) Date: Tue, 27 Aug 2013 16:46:15 +0100 Subject: [rt-users] Article Content not editable Message-ID: I'm trying to create some new articles and I'm struggling to find how to actually add Content. I can seemingly create the Article and give it a Name, Summary and Class and assign Topic labels to it but there is just a big blank area next to the word Content. I *think* that I've given myself all the necessary permissions to create and modify the Article content. Any clues as to where I should be looking to get this working? Later, Andy -------- Yada, yada, yada... Disclaimer: This e-mail and any attachments are confidential and intended solely for the use of the recipient(s) to whom they are addressed. If you have received it in error, please destroy all copies and inform the sender. -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From falcone at bestpractical.com Tue Aug 27 12:24:30 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Tue, 27 Aug 2013 12:24:30 -0400 Subject: [rt-users] Article Content not editable In-Reply-To: References: Message-ID: <20130827162430.GL84863@jibsheet.com> On Tue, Aug 27, 2013 at 04:46:15PM +0100, LAW Andy wrote: > I'm trying to create some new articles and I'm struggling to find how to actually add Content. I can seemingly create the Article and give it a Name, Summary and Class and assign Topic labels to it but there is just a big blank area next to the word Content. > > I *think* that I've given myself all the necessary permissions to create and modify the Article content. Any clues as to where I should be looking to get this working? http://bestpractical.com/docs/rt/latest/customizing/articles_introduction.html#Custom-Fields -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Tue Aug 27 12:27:11 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Tue, 27 Aug 2013 12:27:11 -0400 Subject: [rt-users] Most efficient way to update custom fields without creating too many transactions In-Reply-To: References: Message-ID: <20130827162711.GM84863@jibsheet.com> On Tue, Aug 27, 2013 at 09:51:57AM +0100, G. Dawson wrote: > On 2013-08-26 21:55, Landon Stewart wrote: > > > >For example if there are 1000 IP addresses in a ticket and there are 4 > >custom fields to be updated it creates 4000 transactions for that one > >ticket when looping each update individually. > > > >What I'm wondering is if there's a better way to make these updates so > >multiple values can be added to the ticket with one transaction. > > > > Not quite want you want but can you silence the transactions by > using the long form of the Set method described in the "How to be > Silent" > section of > http://requesttracker.wikia.com/wiki/WriteCustomAction It'd be safer to use the RecordTransaction argument to AddCustomFieldValue which tells RT whether or not to record a transaction. This avoids the problem of directly manipulating OCFVs and potentially truncating them when you shove content > 255 into the Content field. RT transparently bounces between the Content and LargeContent field as needed if you use the API. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From lstewart at iweb.com Tue Aug 27 12:36:53 2013 From: lstewart at iweb.com (Landon Stewart) Date: Tue, 27 Aug 2013 09:36:53 -0700 Subject: [rt-users] Most efficient way to update custom fields without creating too many transactions In-Reply-To: <20130827162711.GM84863@jibsheet.com> References: <20130827162711.GM84863@jibsheet.com> Message-ID: On 27 August 2013 09:27, Kevin Falcone wrote: > It'd be safer to use the RecordTransaction argument to > AddCustomFieldValue which tells RT whether or not to record a > transaction. > > This avoids the problem of directly manipulating OCFVs and potentially > truncating them when you shove content > 255 into the Content field. > RT transparently bounces between the Content and LargeContent field as > needed if you use the API. > So, to be clear here, if in my RT::Action::ModuleName action module if I use something like this: $Ticket->AddCustomFieldValue( Field => 'Customer', Value => join("\n", at customerids), RecordTransaction => 0 ); And if @customerids contained a list of 1000 five or six digit numbers it would not choke on that many because LargeContent would get used or because I'm not recording the transaction at all? Or am I mistaken here somewhere still? -- Landon Stewart :: lstewart at iweb.com Lead Specialist, Abuse and Security Management Sp?cialiste principal, gestion des abus et s?curit? http://iweb.com :: +1 (888) 909-4932 -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel+rt-users at tacticalbuddha.net Tue Aug 27 12:39:58 2013 From: samuel+rt-users at tacticalbuddha.net (Samuel Jones) Date: Tue, 27 Aug 2013 17:39:58 +0100 Subject: [rt-users] Extra Fields on 'Ticket and Transaction' Message-ID: <521CD65E.5030706@tacticalbuddha.net> Hey Guys, When commenting and updating tickets, on the right hand side you get a little box titled Ticket and Transaction with the following options: Update Type; Status; Owner; Worked. Is it possible to expand this box and have extra updated options in there such as Queue or Custom Fields? Thanks, Samuel From andy.law at roslin.ed.ac.uk Wed Aug 28 04:58:14 2013 From: andy.law at roslin.ed.ac.uk (LAW Andy) Date: Wed, 28 Aug 2013 09:58:14 +0100 Subject: [rt-users] Article Content not editable In-Reply-To: <20130827162430.GL84863@jibsheet.com> References: <20130827162430.GL84863@jibsheet.com> Message-ID: On 27 Aug 2013, at 17:24, Kevin Falcone wrote: > On Tue, Aug 27, 2013 at 04:46:15PM +0100, LAW Andy wrote: >> I'm trying to create some new articles and I'm struggling to find how to actually add Content. I can seemingly create the Article and give it a Name, Summary and Class and assign Topic labels to it but there is just a big blank area next to the word Content. >> >> I *think* that I've given myself all the necessary permissions to create and modify the Article content. Any clues as to where I should be looking to get this working? > > http://bestpractical.com/docs/rt/latest/customizing/articles_introduction.html#Custom-Fields > > -kevin OK. Thanks. Is there a way to get an editable field for an article that includes all the CKEditor goodness that we get in ticket comment fields? Later, Andy -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. From alexdecalli71 at gmail.com Wed Aug 28 09:00:50 2013 From: alexdecalli71 at gmail.com (Alex Decalli) Date: Wed, 28 Aug 2013 15:00:50 +0200 Subject: [rt-users] Need information about RT tables.. Message-ID: Hi everybody! I DO need description and information about tables in RT. For example, what does "pbcattbl" table do, for what the field "pbt_owner" in that is used, which modules are using which tables, what is connected to what and....... I have the model of RT tables right now. I just need documentation of tables, please let me know if you know any place I can go and find them Thanks. Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvdwege at xs4all.nl Wed Aug 28 10:47:09 2013 From: jvdwege at xs4all.nl (Joop) Date: Wed, 28 Aug 2013 16:47:09 +0200 Subject: [rt-users] Need information about RT tables.. In-Reply-To: References: Message-ID: <521E0D6D.7050104@xs4all.nl> Alex Decalli wrote: > Hi everybody! > > I DO need description and information about tables in RT. For example, > what does "pbcattbl" table do, for what the field "pbt_owner" in that > is used, which modules are using which tables, what is connected to > what and....... > That doesn't look like that is an RT table. Have a look at the source of RT, in the etc folder you'll find the create table statements for the different databases supported and their table names. Joop From alexdecalli71 at gmail.com Wed Aug 28 10:53:01 2013 From: alexdecalli71 at gmail.com (Alex Decalli) Date: Wed, 28 Aug 2013 16:53:01 +0200 Subject: [rt-users] Need information about RT tables.. In-Reply-To: <521E0D6D.7050104@xs4all.nl> References: <521E0D6D.7050104@xs4all.nl> Message-ID: Thanks Joop... I actually need to know about table description, for example, it is clear that the table "tickets" handles the tickets... but some are not clear... So there is no documentation about it?? Is there any way I can track these tables in the programs? On Wed, Aug 28, 2013 at 4:47 PM, Joop wrote: > Alex Decalli wrote: > >> Hi everybody! >> >> I DO need description and information about tables in RT. For example, >> what does "pbcattbl" table do, for what the field "pbt_owner" in that is >> used, which modules are using which tables, what is connected to what >> and....... >> >> That doesn't look like that is an RT table. Have a look at the source of > RT, in the etc folder you'll find the create table statements for the > different databases supported and their table names. > > > Joop > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From JThuau at spacex.com Wed Aug 28 11:35:33 2013 From: JThuau at spacex.com (Jok Thuau) Date: Wed, 28 Aug 2013 15:35:33 +0000 Subject: [rt-users] Need information about RT tables.. In-Reply-To: References: <521E0D6D.7050104@xs4all.nl>, Message-ID: <5F023FEC-628C-4F54-BFBC-853DCB50AD95@spacex.com> On Aug 28, 2013, at 7:53 AM, "Alex Decalli" > wrote: Thanks Joop... I actually need to know about table description, for example, it is clear that the table "tickets" handles the tickets... but some are not clear... So there is no documentation about it?? Is there any way I can track these tables in the programs? Like this you mean? http://requesttracker.wikia.com/wiki/Schema Depending on what you are trying to accomplish, I would also recommend you look at using the API to interface with RT, as the underlying schema may change between versions... From dmsimard at iweb.com Thu Aug 29 09:18:01 2013 From: dmsimard at iweb.com (David Moreau Simard) Date: Thu, 29 Aug 2013 13:18:01 +0000 Subject: [rt-users] rt-validator does not delete osbolete ObjectCustomFieldValue records Message-ID: Hi, We're trying to do a large cleanup of our database. There are a lot of obsolete ObjectCustomFieldValue records that are related to deleted tickets. I would expect rt-validator to both delete related Transactions AND The ObjectCustomFieldValue records themselves. This is not happening, although it does detect issues - for example: === Record #33716942 in ObjectCustomFieldValues references a nonexistent record in Tickets ObjectId => '6417200' => id === Record #1 in ObjectCustomFieldValues references a nonexistent record in Transactions ObjectId => '8651463' => id === After spending a lot on time on this, I came to realize that the sub in rt-validator for custom fields integrity does not use delete_record at all. Example that uses delete_record: === push @CHECKS, 'Tickets <-> Role Groups' => sub { # XXX: we check only that there is at least one group for a queue # from queue to group check_integrity( 'Tickets', 'id' => 'Groups', 'Instance', join_condition => 't.Domain = ?', bind_values => [ 'RT::Ticket-Role' ], ); # from group to ticket check_integrity( 'Groups', 'Instance' => 'Tickets', 'id', condition => 's.Domain = ?', bind_values => [ 'RT::Ticket-Role' ], action => sub { my $id = shift; return unless prompt( 'Delete', "Found a role group of a nonexistent ticket." ); delete_record( 'Groups', $id ); }, ); }; === Now, custom field checks are done this way, without delete_record: === push @CHECKS, 'CustomFields and friends' => sub { #XXX: ObjectCustomFields needs more love check_integrity( 'CustomFieldValues', 'CustomField' => 'CustomFields', 'id', ); check_integrity( 'ObjectCustomFieldValues', 'CustomField' => 'CustomFields', 'id', ); foreach my $model ( @models ) { check_integrity( 'ObjectCustomFieldValues', 'ObjectId' => m2t($model), 'id', condition => 's.ObjectType = ?', bind_values => [ "RT::$model" ], ); } }; === I'm not entirely safe with putting a delete_record somewhere in there. Can someone chime in about what would be my best course of action ? Thanks, David Moreau Simard From jledford at biltmore.com Thu Aug 29 09:45:00 2013 From: jledford at biltmore.com (Jason Ledford) Date: Thu, 29 Aug 2013 09:45:00 -0400 Subject: [rt-users] Show History on Update Page Message-ID: <435CB3214F92FD4E8E5CEEB86A204402428FB11E9A@MAILBOX.tbcnet.biltmore.com> I am wanting to customize the update page (reply or resolve) so that the History section also shows on the page. We want to see the ticket history to know what we are replying or commenting to. Can someone assist in getting that info on the page? I have already placed the Update.html in my local folder but perl is not my strongsuit. Taking that a step further, is it possible to have the first comment in the reply? Would that be a template change? Help is appreciated. Thanks. Jason Ledford Systems Analyst The Biltmore Company One North Pack Square Asheville, NC 28801 (828) 225-6127 -------------- next part -------------- An HTML attachment was scrubbed... URL: From robdewhirst at gmail.com Thu Aug 29 10:16:21 2013 From: robdewhirst at gmail.com (Dewhirst, Rob) Date: Thu, 29 Aug 2013 09:16:21 -0500 Subject: [rt-users] make fixdeps error Message-ID: I am starting a new install on RHEL6 and getting this error after running make fixdeps. I've already installed all dependencies via CPAN as best I can tell. I looked at the line generating the error in the script and can't easily tell what it's doing. Test Summary Report ------------------- t/01plack-test.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/02graceful.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/03post.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/04-bumpy-life.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/05server-header.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/06harakiri.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/07remote_port.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/08chunked_req.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/09chunked_zero_length.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=10, Tests=1, 0 wallclock secs ( 0.02 usr 0.03 sys + 0.44 cusr 0.08 csys = 0.57 CPU) Result: FAIL Failed 9/10 test programs. 0/1 subtests failed. make[1]: *** [test_dynamic] Error 2 make[1]: Leaving directory `/root/.cpan/build/Starlet-0.20-Cis82r' KAZUHO/Starlet-0.20.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports KAZUHO/Starlet-0.20.tar.gz Warning (usually harmless): 'YAML' not installed, will not store persistent state Running make install make test had returned bad status, won't install without force SMTP dependencies: Net::SMTP ...found USERLOGO dependencies: Convert::Color ...found Can't exec "./sbin/rt-test-dependencies": No such file or directory at ./sbin/rt-test-dependencies line 419. -------------- next part -------------- An HTML attachment was scrubbed... URL: From robdewhirst at gmail.com Thu Aug 29 10:31:56 2013 From: robdewhirst at gmail.com (Dewhirst, Rob) Date: Thu, 29 Aug 2013 09:31:56 -0500 Subject: [rt-users] make fixdeps error In-Reply-To: References: Message-ID: rt-4.0.17 in case that's not clear. On Thu, Aug 29, 2013 at 9:16 AM, Dewhirst, Rob wrote: > I am starting a new install on RHEL6 and getting this error after running > make fixdeps. > > > I've already installed all dependencies via CPAN as best I can tell. I > looked at the line generating the error in the script and can't easily tell > what it's doing. > > Test Summary Report > ------------------- > t/01plack-test.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/02graceful.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/03post.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/04-bumpy-life.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/05server-header.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/06harakiri.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/07remote_port.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/08chunked_req.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/09chunked_zero_length.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > Files=10, Tests=1, 0 wallclock secs ( 0.02 usr 0.03 sys + 0.44 cusr > 0.08 csys = 0.57 CPU) > Result: FAIL > Failed 9/10 test programs. 0/1 subtests failed. > make[1]: *** [test_dynamic] Error 2 > make[1]: Leaving directory `/root/.cpan/build/Starlet-0.20-Cis82r' > KAZUHO/Starlet-0.20.tar.gz > /usr/bin/make test -- NOT OK > //hint// to see the cpan-testers results for installing this module, try: > reports KAZUHO/Starlet-0.20.tar.gz > Warning (usually harmless): 'YAML' not installed, will not store > persistent state > Running make install > make test had returned bad status, won't install without force > SMTP dependencies: > Net::SMTP ...found > USERLOGO dependencies: > Convert::Color ...found > Can't exec "./sbin/rt-test-dependencies": No such file or directory at > ./sbin/rt-test-dependencies line 419. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruz at bestpractical.com Thu Aug 29 10:46:34 2013 From: ruz at bestpractical.com (Ruslan Zakirov) Date: Thu, 29 Aug 2013 18:46:34 +0400 Subject: [rt-users] make fixdeps error In-Reply-To: References: Message-ID: You've cut to much of the output. I see that script tries and fails to restart itself to get fresh environment. You can run it again yourself, but as I said it's not enough of the output to see what's wrong with Plack. On Thu, Aug 29, 2013 at 6:16 PM, Dewhirst, Rob wrote: > I am starting a new install on RHEL6 and getting this error after running > make fixdeps. > > > I've already installed all dependencies via CPAN as best I can tell. I > looked at the line generating the error in the script and can't easily tell > what it's doing. > > Test Summary Report > ------------------- > t/01plack-test.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/02graceful.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/03post.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/04-bumpy-life.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/05server-header.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/06harakiri.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/07remote_port.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/08chunked_req.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/09chunked_zero_length.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > Files=10, Tests=1, 0 wallclock secs ( 0.02 usr 0.03 sys + 0.44 cusr > 0.08 csys = 0.57 CPU) > Result: FAIL > Failed 9/10 test programs. 0/1 subtests failed. > make[1]: *** [test_dynamic] Error 2 > make[1]: Leaving directory `/root/.cpan/build/Starlet-0.20-Cis82r' > KAZUHO/Starlet-0.20.tar.gz > /usr/bin/make test -- NOT OK > //hint// to see the cpan-testers results for installing this module, try: > reports KAZUHO/Starlet-0.20.tar.gz > Warning (usually harmless): 'YAML' not installed, will not store > persistent state > Running make install > make test had returned bad status, won't install without force > SMTP dependencies: > Net::SMTP ...found > USERLOGO dependencies: > Convert::Color ...found > Can't exec "./sbin/rt-test-dependencies": No such file or directory at > ./sbin/rt-test-dependencies line 419. > > > -- Best regards, Ruslan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruz at bestpractical.com Thu Aug 29 10:48:55 2013 From: ruz at bestpractical.com (Ruslan Zakirov) Date: Thu, 29 Aug 2013 18:48:55 +0400 Subject: [rt-users] Show History on Update Page In-Reply-To: <435CB3214F92FD4E8E5CEEB86A204402428FB11E9A@MAILBOX.tbcnet.biltmore.com> References: <435CB3214F92FD4E8E5CEEB86A204402428FB11E9A@MAILBOX.tbcnet.biltmore.com> Message-ID: Hi, Grep Ticket/Display.html for "History" and more importantly take a look at Ticket/Hisotry.html file. Work from these examples to embed history in Update.html. On Thu, Aug 29, 2013 at 5:45 PM, Jason Ledford wrote: > I am wanting to customize the update page (reply or resolve) so that the > History section also shows on the page. We want to see the ticket history > to know what we are replying or commenting to. Can someone assist in > getting that info on the page? I have already placed the Update.html in my > local folder but perl is not my strongsuit. Taking that a step further, is > it possible to have the first comment in the reply? Would that be a > template change? Help is appreciated. Thanks.**** > > ** ** > > Jason Ledford**** > > *Systems Analyst* > > The Biltmore Company **** > > One North Pack Square**** > > Asheville, NC 28801**** > > (828) 225-6127**** > > ** ** > -- Best regards, Ruslan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From robdewhirst at gmail.com Thu Aug 29 10:50:38 2013 From: robdewhirst at gmail.com (Dewhirst, Rob) Date: Thu, 29 Aug 2013 09:50:38 -0500 Subject: [rt-users] make fixdeps error In-Reply-To: References: Message-ID: There's a LOT of output from this script -- how much do you need to make it useful? On Thu, Aug 29, 2013 at 9:46 AM, Ruslan Zakirov wrote: > You've cut to much of the output. I see that script tries and fails to > restart itself to get fresh environment. You can run it again yourself, but > as I said it's not enough of the output to see what's wrong with Plack. > > > On Thu, Aug 29, 2013 at 6:16 PM, Dewhirst, Rob wrote: > >> I am starting a new install on RHEL6 and getting this error after running >> make fixdeps. >> >> >> I've already installed all dependencies via CPAN as best I can tell. I >> looked at the line generating the error in the script and can't easily tell >> what it's doing. >> >> Test Summary Report >> ------------------- >> t/01plack-test.t (Wstat: 512 Tests: 0 Failed: 0) >> Non-zero exit status: 2 >> Parse errors: No plan found in TAP output >> t/02graceful.t (Wstat: 512 Tests: 0 Failed: 0) >> Non-zero exit status: 2 >> Parse errors: No plan found in TAP output >> t/03post.t (Wstat: 512 Tests: 0 Failed: 0) >> Non-zero exit status: 2 >> Parse errors: No plan found in TAP output >> t/04-bumpy-life.t (Wstat: 512 Tests: 0 Failed: 0) >> Non-zero exit status: 2 >> Parse errors: No plan found in TAP output >> t/05server-header.t (Wstat: 512 Tests: 0 Failed: 0) >> Non-zero exit status: 2 >> Parse errors: No plan found in TAP output >> t/06harakiri.t (Wstat: 512 Tests: 0 Failed: 0) >> Non-zero exit status: 2 >> Parse errors: No plan found in TAP output >> t/07remote_port.t (Wstat: 512 Tests: 0 Failed: 0) >> Non-zero exit status: 2 >> Parse errors: No plan found in TAP output >> t/08chunked_req.t (Wstat: 512 Tests: 0 Failed: 0) >> Non-zero exit status: 2 >> Parse errors: No plan found in TAP output >> t/09chunked_zero_length.t (Wstat: 512 Tests: 0 Failed: 0) >> Non-zero exit status: 2 >> Parse errors: No plan found in TAP output >> Files=10, Tests=1, 0 wallclock secs ( 0.02 usr 0.03 sys + 0.44 cusr >> 0.08 csys = 0.57 CPU) >> Result: FAIL >> Failed 9/10 test programs. 0/1 subtests failed. >> make[1]: *** [test_dynamic] Error 2 >> make[1]: Leaving directory `/root/.cpan/build/Starlet-0.20-Cis82r' >> KAZUHO/Starlet-0.20.tar.gz >> /usr/bin/make test -- NOT OK >> //hint// to see the cpan-testers results for installing this module, try: >> reports KAZUHO/Starlet-0.20.tar.gz >> Warning (usually harmless): 'YAML' not installed, will not store >> persistent state >> Running make install >> make test had returned bad status, won't install without force >> SMTP dependencies: >> Net::SMTP ...found >> USERLOGO dependencies: >> Convert::Color ...found >> Can't exec "./sbin/rt-test-dependencies": No such file or directory at >> ./sbin/rt-test-dependencies line 419. >> >> >> > > > -- > Best regards, Ruslan. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmbaxter at gmail.com Thu Aug 29 12:34:14 2013 From: gmbaxter at gmail.com (Guy Baxter) Date: Thu, 29 Aug 2013 17:34:14 +0100 Subject: [rt-users] Global RT at a Glance not taking effect Message-ID: Hi all, I've got an issue with RT at a glance global configuration not working. I want only "Dashboards" to be visible on the homepage after a user logs in. I've set the following in tools > configuration > Global > RT at a Glance RT at a glance body: Dasboards RT at a glance: Summary: blank When logging in as root this applies fine. When logging in as any other users ( we use RT External Auth) it does not apply. I also tried setting: Set ( $HomepageComponents, [qw(Dashboards)]); in RT_SiteConfig.pm But that didn't work either. Users can access Dashboards fine, so it doesn't appear to be a permissions issue, i just want them only to be able to see their dashboards rather than have to navigate to them. Could anyone assist please? RT Version is 4.0.1, External Auth is version 0.12 Many thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.elliott at alaska.gov Thu Aug 29 13:39:33 2013 From: kevin.elliott at alaska.gov (Elliott, Kevin C (DOR)) Date: Thu, 29 Aug 2013 17:39:33 +0000 Subject: [rt-users] Can't load UntouchedInHours module Message-ID: <1BCBBD850909C148B389F50256796E351F68F66A@SOAJNUEXMB3.soa.alaska.gov> I'm working with Request Tracker 4.0.7 on Debian Wheezy 7.0.1 and am attempting to configure rt-crontool and UntouchedInHours.pm as presented on the Wiki (http://requesttracker.wikia.com/wiki/UntouchedInHours) I'm running the following rt-crontool command: /usr/bin/rt-crontool \ --search RT::Search::FromSQL \ --search-arg "Queue = '1' AND (Status = 'new' OR Status = 'open' ) AND Owner != 'Nobody'" \ --condition RT::Condition::UntouchedInHours --condition-arg 4 \ --action RT::Action::SendEmail \ --template "Custom - Untouched Ticket Notification" \ --transaction 'last' \ --transaction-type 'Correspond,Comment,Status' \ --verbose echo "" Which returns the following result: [Thu Aug 29 17:32:17 2013] [critical]: Failed to load module RT::Condition::UntouchedInHours. () at /usr/bin/rt-crontool line 307. (/usr/share/request-tracker4/lib/RT.pm:351) Failed to load module RT::Condition::UntouchedInHours. () at /usr/bin/rt-crontool line 307. I'm taking that to mean that there is a programming pub in UntouchedInHours.pm that is preventing it from being called correctly but for the life of me I can't seem to find it anywhere. It was copied verbatim from the Wiki: root at DorJnuASD-RT:~/Bin# cat /usr/share/request-tracker4/lib/RT/Condition/UntouchedInHours.pm package RT::Condition::UntouchedInHours; require RT::Condition::Generic; use RT::Date; @ISA = qw(RT::Condition::Generic); use strict; use vars qw/@ISA/; sub IsApplicable { my $self = shift; if ((time()-$self->TicketObj->LastUpdatedObj->Unix)/3600 >= $self->Argument) { return 1; } else { return 0; } } # The following could be omitted. They're there to allow overrides from Vendor and Local # but as this isn't a core module, they're just there for completeness :) eval "require RT::Condition::UntouchedInHours_Vendor"; die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/UntouchedInHours_Vendor.pm}); eval "require RT::Condition::UntouchedInHours_Local"; die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/UntouchedInHours_Local.pm}); 1; The permissions look appropriate as well: root at DorJnuASD-RT:~/Bin# ls -la /usr/share/request-tracker4/lib/RT/Condition/ total 60 drwxr-xr-x 2 root root 4096 Aug 29 09:24 . drwxr-xr-x 17 root root 4096 Jun 11 11:27 .. -rw-r--r-- 1 root root 2247 May 22 09:49 AnyTransaction.pm -rw-r--r-- 1 root root 2742 May 22 09:49 BeforeDue.pm -rw-r--r-- 1 root root 2677 May 22 09:49 CloseTicket.pm -rw-r--r-- 1 root root 2475 May 22 09:49 Overdue.pm -rw-r--r-- 1 root root 2351 May 22 09:49 OwnerChange.pm -rw-r--r-- 1 root root 2356 May 22 09:49 PriorityChange.pm -rw-r--r-- 1 root root 2325 May 22 09:49 PriorityExceeds.pm -rw-r--r-- 1 root root 2306 May 22 09:49 QueueChange.pm lrwxrwxrwx 1 root root 9 Aug 29 08:37 RCS -> /root/RCS -rw-r--r-- 1 root root 2829 May 22 09:49 ReopenTicket.pm -rw-r--r-- 1 root root 4593 May 22 09:49 StatusChange.pm -rw-r--r-- 1 root root 800 Aug 29 09:23 UntouchedInHours.pm -rw-r--r-- 1 root root 2458 May 22 09:49 UserDefined.pm Any idea what I'm missing here? Thanks. --- Kevin Elliott Networking Specialist II Alaska Department of Revenue, ASD-IT (907) 465-2314 From misilot at fit.edu Thu Aug 29 13:46:16 2013 From: misilot at fit.edu (Thomas Misilo) Date: Thu, 29 Aug 2013 17:46:16 +0000 Subject: [rt-users] Upgrading from 4.0.5 to 4.0.17 Message-ID: <62CE05ACA8D0F145A68573455B2F6BF66E4B1608@EX10-BE1.fit.edu> Hi, I just want to verify the steps I would need to take in order to upgrade to the latest version of RT. Currently I have setup /opt/rt4.0.5 /opt/rt4 --> symlink to 4.0.5 /opt/rt-4.0.17 I know I will need to copy the the RT_SiteConfig.pm to the new version. Will I need to copy any files (other than my theme) over? Am I missing anything else? Thanks, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Thu Aug 29 16:31:24 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 29 Aug 2013 16:31:24 -0400 Subject: [rt-users] Most efficient way to update custom fields without creating too many transactions In-Reply-To: References: <20130827162711.GM84863@jibsheet.com> Message-ID: <20130829203124.GN84863@jibsheet.com> On Tue, Aug 27, 2013 at 09:36:53AM -0700, Landon Stewart wrote: > On 27 August 2013 09:27, Kevin Falcone <[1]falcone at bestpractical.com> wrote: > > It'd be safer to use the RecordTransaction argument to > AddCustomFieldValue which tells RT whether or not to record a > transaction. > > This avoids the problem of directly manipulating OCFVs and potentially > truncating them when you shove content > 255 into the Content field. > RT transparently bounces between the Content and LargeContent field as > needed if you use the API. > > So, to be clear here, if in my RT::Action::ModuleName action module if I use something like > this: > $Ticket->AddCustomFieldValue( Field => 'Customer', Value => join("\n", at customerids), > RecordTransaction => 0 ); > And if @customerids contained a list of 1000 five or six digit numbers it would not choke on > that many because LargeContent would get used or because I'm not recording the transaction at > all? Or am I mistaken here somewhere still? Because Custom Fields can hold a LONGBLOB worth of data. Go save a large text CF and look in the database. Saving them as 1000 individual values makes 1000 records in the database, saving them as 1 large record makes 1 record. These are treated differently on update and display. If you follow the advice of the wiki article that was linked to and reach around the API, you'll hurt yourself. Not recording transactions is orthogonal to the size of the data which can be recorded. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Thu Aug 29 16:33:16 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 29 Aug 2013 16:33:16 -0400 Subject: [rt-users] Upgrading from 4.0.5 to 4.0.17 In-Reply-To: <62CE05ACA8D0F145A68573455B2F6BF66E4B1608@EX10-BE1.fit.edu> References: <62CE05ACA8D0F145A68573455B2F6BF66E4B1608@EX10-BE1.fit.edu> Message-ID: <20130829203316.GO84863@jibsheet.com> On Thu, Aug 29, 2013 at 05:46:16PM +0000, Thomas Misilo wrote: > I just want to verify the steps I would need to take in order to upgrade to the latest version > of RT. > > Currently I have setup > > /opt/rt4.0.5 > > /opt/rt4 `a symlink to 4.0.5 > > /opt/rt-4.0.17 > > I know I will need to copy the the RT_SiteConfig.pm to the new version. Will I need to copy > any files (other than my theme) over? You should not copy any files other than the config or other local modifications. There are database changes between those versions you will need to run. You should be following any upgrading steps listed in the README and UPGRADING-4.0 document. http://bestpractical.com/docs/rt/latest/README.html http://bestpractical.com/docs/rt/latest/UPGRADING-4.0.html#UPGRADING-FROM-4.0.5-AND-EARLIER -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Thu Aug 29 16:35:14 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 29 Aug 2013 16:35:14 -0400 Subject: [rt-users] Can't load UntouchedInHours module In-Reply-To: <1BCBBD850909C148B389F50256796E351F68F66A@SOAJNUEXMB3.soa.alaska.gov> References: <1BCBBD850909C148B389F50256796E351F68F66A@SOAJNUEXMB3.soa.alaska.gov> Message-ID: <20130829203514.GP84863@jibsheet.com> On Thu, Aug 29, 2013 at 05:39:33PM +0000, Elliott, Kevin C (DOR) wrote: > > [Thu Aug 29 17:32:17 2013] [critical]: Failed to load module RT::Condition::UntouchedInHours. () at /usr/bin/rt-crontool line 307. (/usr/share/request-tracker4/lib/RT.pm:351) > Failed to load module RT::Condition::UntouchedInHours. () at /usr/bin/rt-crontool line 307. > > root at DorJnuASD-RT:~/Bin# cat /usr/share/request-tracker4/lib/RT/Condition/UntouchedInHours.pm > > package RT::Condition::UntouchedInHours; > require RT::Condition::Generic; > > use RT::Date; > > > @ISA = qw(RT::Condition::Generic); At the very least, this line is wrong: http://bestpractical.com/docs/rt/latest/UPGRADING-4.0.html#Removals-and-updates You want to inherit from RT::Condition. -kevin > use strict; > use vars qw/@ISA/; > > sub IsApplicable { > my $self = shift; > > if ((time()-$self->TicketObj->LastUpdatedObj->Unix)/3600 >= $self->Argument) { > return 1; > } > else { > return 0; > } > > } > > # The following could be omitted. They're there to allow overrides from Vendor and Local > # but as this isn't a core module, they're just there for completeness :) > eval "require RT::Condition::UntouchedInHours_Vendor"; > die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/UntouchedInHours_Vendor.pm}); > eval "require RT::Condition::UntouchedInHours_Local"; > die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/UntouchedInHours_Local.pm}); > > 1; -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From falcone at bestpractical.com Thu Aug 29 16:37:45 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Thu, 29 Aug 2013 16:37:45 -0400 Subject: [rt-users] Global RT at a Glance not taking effect In-Reply-To: References: Message-ID: <20130829203745.GQ84863@jibsheet.com> On Thu, Aug 29, 2013 at 05:34:14PM +0100, Guy Baxter wrote: > Hi all, > I've got an issue with RT at a glance global configuration not working. I want only > "Dashboards" to be visible on the homepage after a user logs in. > I've set the following in tools > configuration > Global > RT at a Glance > RT at a glance body: Dasboards > RT at a glance: Summary: blank > When logging in as root this applies fine. > When logging in as any other users ( we use RT External Auth) it does not apply. Do these users have their own homepage settings from previous use/customization? You will need to reset that, or just clear their homepage preferences in the Attributes table in the database. > I also tried setting: > Set ( $HomepageComponents, [qw(Dashboards)]); in RT_SiteConfig.pm > But that didn't work either. HomepageComponents doesn't forcibly turn off components in 4.0. It will in 4.2 > Users can access Dashboards fine, so it doesn't appear to be a permissions issue, i just want > them only to be able to see their dashboards rather than have to navigate to them. > Could anyone assist please? RT Version is 4.0.1, External Auth is version 0.12 With 4.0.1, you could be running into some bug (4.0.17 is current) but start by resetting homepage settings for one of your external auth users and seeing if that fixes it. Homepages are also cached in the session, so you need to log in and out. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From gmbaxter at gmail.com Thu Aug 29 16:47:56 2013 From: gmbaxter at gmail.com (Guy Baxter) Date: Thu, 29 Aug 2013 21:47:56 +0100 Subject: [rt-users] Global RT at a Glance not taking effect In-Reply-To: <20130829203745.GQ84863@jibsheet.com> References: <20130829203745.GQ84863@jibsheet.com> Message-ID: On 29 August 2013 21:37, Kevin Falcone wrote: > On Thu, Aug 29, 2013 at 05:34:14PM +0100, Guy Baxter wrote: > > Hi all, > > I've got an issue with RT at a glance global configuration not > working. I want only > > "Dashboards" to be visible on the homepage after a user logs in. > > I've set the following in tools > configuration > Global > RT at a > Glance > > RT at a glance body: Dasboards > > RT at a glance: Summary: blank > > When logging in as root this applies fine. > > When logging in as any other users ( we use RT External Auth) it does > not apply. > > Do these users have their own homepage settings from previous > use/customization? You will need to reset that, or just clear their > homepage preferences in the Attributes table in the database. > No, they've never been able to set them "no permissions to set preferences" was the error they got. How would I go about clearing the homepage preferences anyway? > > > I also tried setting: > > Set ( $HomepageComponents, [qw(Dashboards)]); in RT_SiteConfig.pm > > But that didn't work either. > > HomepageComponents doesn't forcibly turn off components in 4.0. > It will in 4.2 > > > Users can access Dashboards fine, so it doesn't appear to be a > permissions issue, i just want > > them only to be able to see their dashboards rather than have to > navigate to them. > > Could anyone assist please? RT Version is 4.0.1, External Auth is > version 0.12 > > With 4.0.1, you could be running into some bug (4.0.17 is current) but > start by resetting homepage settings for one of your external auth > users and seeing if that fixes it. > > Homepages are also cached in the session, so you need to log in and > out. > I've tried that, but will clear the mason cache/ reboot the server to see if it has any effect. > > -kevin > Will report back tomorrow morning. Thanks so far. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jledford at biltmore.com Thu Aug 29 23:15:57 2013 From: jledford at biltmore.com (Jason Ledford) Date: Thu, 29 Aug 2013 23:15:57 -0400 Subject: [rt-users] Show History on Update Page In-Reply-To: References: <435CB3214F92FD4E8E5CEEB86A204402428FB11E9A@MAILBOX.tbcnet.biltmore.com>, Message-ID: <435CB3214F92FD4E8E5CEEB86A2044024290416387@MAILBOX.tbcnet.biltmore.com> I will be honest I am struggling a little bit with this. I have tried a couple different approaches and can't get this to work. First I just made a local copy of history.html and named it MyPage.html and it worked. I then tried to add those elements into a local Update.html page and can't get it to show anything additional. Just for testing I added a simple test div just to try and display something extra on the Update page and can't get that to work. I have restarted the server and the mason/obj/folder is empty. What am I doing wrong? I have read through ticket/display.thml and history.html over and over and I feel like I am just overlooking something. Perl is new to me and help is most appreciated. Thanks. ________________________________________ From: ruslan.zakirov at gmail.com [ruslan.zakirov at gmail.com] On Behalf Of Ruslan Zakirov [ruz at bestpractical.com] Sent: Thursday, August 29, 2013 10:48 AM To: Jason Ledford Cc: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Show History on Update Page Hi, Grep Ticket/Display.html for "History" and more importantly take a look at Ticket/Hisotry.html file. Work from these examples to embed history in Update.html. On Thu, Aug 29, 2013 at 5:45 PM, Jason Ledford > wrote: I am wanting to customize the update page (reply or resolve) so that the History section also shows on the page. We want to see the ticket history to know what we are replying or commenting to. Can someone assist in getting that info on the page? I have already placed the Update.html in my local folder but perl is not my strongsuit. Taking that a step further, is it possible to have the first comment in the reply? Would that be a template change? Help is appreciated. Thanks. -- Best regards, Ruslan. From dominic.hargreaves at it.ox.ac.uk Fri Aug 30 05:16:39 2013 From: dominic.hargreaves at it.ox.ac.uk (Dominic Hargreaves) Date: Fri, 30 Aug 2013 10:16:39 +0100 Subject: [rt-users] Can't load UntouchedInHours module In-Reply-To: <1BCBBD850909C148B389F50256796E351F68F66A@SOAJNUEXMB3.soa.alaska.gov> References: <1BCBBD850909C148B389F50256796E351F68F66A@SOAJNUEXMB3.soa.alaska.gov> Message-ID: <20130830091639.GA4546@squash.oucs.ox.ac.uk> On Thu, Aug 29, 2013 at 05:39:33PM +0000, Elliott, Kevin C (DOR) wrote: > root at DorJnuASD-RT:~/Bin# ls -la /usr/share/request-tracker4/lib/RT/Condition/ > total 60 > drwxr-xr-x 2 root root 4096 Aug 29 09:24 . > drwxr-xr-x 17 root root 4096 Jun 11 11:27 .. > -rw-r--r-- 1 root root 2247 May 22 09:49 AnyTransaction.pm > -rw-r--r-- 1 root root 2742 May 22 09:49 BeforeDue.pm > -rw-r--r-- 1 root root 2677 May 22 09:49 CloseTicket.pm > -rw-r--r-- 1 root root 2475 May 22 09:49 Overdue.pm > -rw-r--r-- 1 root root 2351 May 22 09:49 OwnerChange.pm > -rw-r--r-- 1 root root 2356 May 22 09:49 PriorityChange.pm > -rw-r--r-- 1 root root 2325 May 22 09:49 PriorityExceeds.pm > -rw-r--r-- 1 root root 2306 May 22 09:49 QueueChange.pm > lrwxrwxrwx 1 root root 9 Aug 29 08:37 RCS -> /root/RCS > -rw-r--r-- 1 root root 2829 May 22 09:49 ReopenTicket.pm > -rw-r--r-- 1 root root 4593 May 22 09:49 StatusChange.pm > -rw-r--r-- 1 root root 800 Aug 29 09:23 UntouchedInHours.pm > -rw-r--r-- 1 root root 2458 May 22 09:49 UserDefined.pm Hi, Probably not related to your problem, but I really recommend not putting locally installed files in /usr/share as that space is reserved for the package manager (dpkg) and you could end up with overwritten files there (plus it's difficult to see what came from where). /usr/local/share/request-tracker4/lib exists for this purpose so you could move that file into /usr/local/share/request-tracker4/lib/RT/Condition/ Cheers, Dominic. -- Dominic Hargreaves, Systems Development and Support Section IT Services, University of Oxford, 13 Banbury Road, Oxford, OX2 6NN -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From ruz at bestpractical.com Fri Aug 30 08:22:43 2013 From: ruz at bestpractical.com (Ruslan Zakirov) Date: Fri, 30 Aug 2013 16:22:43 +0400 Subject: [rt-users] Show History on Update Page In-Reply-To: <435CB3214F92FD4E8E5CEEB86A2044024290416387@MAILBOX.tbcnet.biltmore.com> References: <435CB3214F92FD4E8E5CEEB86A204402428FB11E9A@MAILBOX.tbcnet.biltmore.com> <435CB3214F92FD4E8E5CEEB86A2044024290416387@MAILBOX.tbcnet.biltmore.com> Message-ID: Hi, Google for "clear mason cache request tracker". On Fri, Aug 30, 2013 at 7:15 AM, Jason Ledford wrote: > I will be honest I am struggling a little bit with this. I have tried a > couple different approaches and can't get this to work. First I just made > a local copy of history.html and named it MyPage.html and it worked. I > then tried to add those elements into a local Update.html page and can't > get it to show anything additional. Just for testing I added a simple test > div just to try and display something extra on the Update page and can't > get that to work. I have restarted the server and the mason/obj/folder is > empty. What am I doing wrong? I have read through ticket/display.thml and > history.html over and over and I feel like I am just overlooking something. > Perl is new to me and help is most appreciated. Thanks. > ________________________________________ > From: ruslan.zakirov at gmail.com [ruslan.zakirov at gmail.com] On Behalf Of > Ruslan Zakirov [ruz at bestpractical.com] > Sent: Thursday, August 29, 2013 10:48 AM > To: Jason Ledford > Cc: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] Show History on Update Page > > Hi, > > Grep Ticket/Display.html for "History" and more importantly take a look at > Ticket/Hisotry.html file. Work from these examples to embed history in > Update.html. > > > On Thu, Aug 29, 2013 at 5:45 PM, Jason Ledford > wrote: > I am wanting to customize the update page (reply or resolve) so that the > History section also shows on the page. We want to see the ticket history > to know what we are replying or commenting to. Can someone assist in > getting that info on the page? I have already placed the Update.html in my > local folder but perl is not my strongsuit. Taking that a step further, is > it possible to have the first comment in the reply? Would that be a > template change? Help is appreciated. Thanks. > > > > > > > -- > Best regards, Ruslan. > -- Best regards, Ruslan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruz at bestpractical.com Fri Aug 30 09:25:43 2013 From: ruz at bestpractical.com (Ruslan Zakirov) Date: Fri, 30 Aug 2013 17:25:43 +0400 Subject: [rt-users] make fixdeps error In-Reply-To: References: Message-ID: On Thu, Aug 29, 2013 at 6:50 PM, Dewhirst, Rob wrote: > There's a LOT of output from this script -- how much do you need to make > it useful? > Something useful. You trimmed a little bit earlier. > On Thu, Aug 29, 2013 at 9:46 AM, Ruslan Zakirov wrote: > >> You've cut to much of the output. I see that script tries and fails to >> restart itself to get fresh environment. You can run it again yourself, but >> as I said it's not enough of the output to see what's wrong with Plack. >> >> >> On Thu, Aug 29, 2013 at 6:16 PM, Dewhirst, Rob wrote: >> >>> I am starting a new install on RHEL6 and getting this error after >>> running make fixdeps. >>> >>> >>> I've already installed all dependencies via CPAN as best I can tell. I >>> looked at the line generating the error in the script and can't easily tell >>> what it's doing. >>> >>> Test Summary Report >>> ------------------- >>> t/01plack-test.t (Wstat: 512 Tests: 0 Failed: 0) >>> Non-zero exit status: 2 >>> Parse errors: No plan found in TAP output >>> t/02graceful.t (Wstat: 512 Tests: 0 Failed: 0) >>> Non-zero exit status: 2 >>> Parse errors: No plan found in TAP output >>> t/03post.t (Wstat: 512 Tests: 0 Failed: 0) >>> Non-zero exit status: 2 >>> Parse errors: No plan found in TAP output >>> t/04-bumpy-life.t (Wstat: 512 Tests: 0 Failed: 0) >>> Non-zero exit status: 2 >>> Parse errors: No plan found in TAP output >>> t/05server-header.t (Wstat: 512 Tests: 0 Failed: 0) >>> Non-zero exit status: 2 >>> Parse errors: No plan found in TAP output >>> t/06harakiri.t (Wstat: 512 Tests: 0 Failed: 0) >>> Non-zero exit status: 2 >>> Parse errors: No plan found in TAP output >>> t/07remote_port.t (Wstat: 512 Tests: 0 Failed: 0) >>> Non-zero exit status: 2 >>> Parse errors: No plan found in TAP output >>> t/08chunked_req.t (Wstat: 512 Tests: 0 Failed: 0) >>> Non-zero exit status: 2 >>> Parse errors: No plan found in TAP output >>> t/09chunked_zero_length.t (Wstat: 512 Tests: 0 Failed: 0) >>> Non-zero exit status: 2 >>> Parse errors: No plan found in TAP output >>> Files=10, Tests=1, 0 wallclock secs ( 0.02 usr 0.03 sys + 0.44 cusr >>> 0.08 csys = 0.57 CPU) >>> Result: FAIL >>> Failed 9/10 test programs. 0/1 subtests failed. >>> make[1]: *** [test_dynamic] Error 2 >>> make[1]: Leaving directory `/root/.cpan/build/Starlet-0.20-Cis82r' >>> KAZUHO/Starlet-0.20.tar.gz >>> /usr/bin/make test -- NOT OK >>> //hint// to see the cpan-testers results for installing this module, try: >>> reports KAZUHO/Starlet-0.20.tar.gz >>> Warning (usually harmless): 'YAML' not installed, will not store >>> persistent state >>> Running make install >>> make test had returned bad status, won't install without force >>> SMTP dependencies: >>> Net::SMTP ...found >>> USERLOGO dependencies: >>> Convert::Color ...found >>> Can't exec "./sbin/rt-test-dependencies": No such file or directory at >>> ./sbin/rt-test-dependencies line 419. >>> >>> >>> >> >> >> -- >> Best regards, Ruslan. >> > > -- Best regards, Ruslan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruz at bestpractical.com Fri Aug 30 09:37:15 2013 From: ruz at bestpractical.com (Ruslan Zakirov) Date: Fri, 30 Aug 2013 17:37:15 +0400 Subject: [rt-users] rt-validator does not delete osbolete ObjectCustomFieldValue records In-Reply-To: References: Message-ID: Hi, Do you care enough to send patch or git pull request? If not then file a feature request on http://issues.bestpractical.com . On Thu, Aug 29, 2013 at 5:18 PM, David Moreau Simard wrote: > Hi, > > We're trying to do a large cleanup of our database. There are a lot of > obsolete ObjectCustomFieldValue records that are related to deleted tickets. > I would expect rt-validator to both delete related Transactions AND The > ObjectCustomFieldValue records themselves. > > This is not happening, although it does detect issues - for example: > === > Record #33716942 in ObjectCustomFieldValues references a nonexistent > record in Tickets > ObjectId => '6417200' => id > === > Record #1 in ObjectCustomFieldValues references a nonexistent record in > Transactions > ObjectId => '8651463' => id > === > > After spending a lot on time on this, I came to realize that the sub in > rt-validator for custom fields integrity does not use delete_record at all. > > Example that uses delete_record: > === > push @CHECKS, 'Tickets <-> Role Groups' => sub { > # XXX: we check only that there is at least one group for a queue > # from queue to group > check_integrity( > 'Tickets', 'id' => 'Groups', 'Instance', > join_condition => 't.Domain = ?', > bind_values => [ 'RT::Ticket-Role' ], > ); > # from group to ticket > check_integrity( > 'Groups', 'Instance' => 'Tickets', 'id', > condition => 's.Domain = ?', > bind_values => [ 'RT::Ticket-Role' ], > action => sub { > my $id = shift; > return unless prompt( > 'Delete', "Found a role group of a nonexistent ticket." > ); > > delete_record( 'Groups', $id ); > }, > ); > }; > === > > Now, custom field checks are done this way, without delete_record: > === > push @CHECKS, 'CustomFields and friends' => sub { > #XXX: ObjectCustomFields needs more love > check_integrity( > 'CustomFieldValues', 'CustomField' => 'CustomFields', 'id', > ); > check_integrity( > 'ObjectCustomFieldValues', 'CustomField' => 'CustomFields', 'id', > ); > foreach my $model ( @models ) { > check_integrity( > 'ObjectCustomFieldValues', 'ObjectId' => m2t($model), 'id', > condition => 's.ObjectType = ?', > bind_values => [ "RT::$model" ], > ); > } > }; > === > > I'm not entirely safe with putting a delete_record somewhere in there. > > Can someone chime in about what would be my best course of action ? > > Thanks, > > David Moreau Simard -- Best regards, Ruslan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jledford at biltmore.com Fri Aug 30 09:44:04 2013 From: jledford at biltmore.com (Jason Ledford) Date: Fri, 30 Aug 2013 09:44:04 -0400 Subject: [rt-users] Show History on Update Page In-Reply-To: References: <435CB3214F92FD4E8E5CEEB86A204402428FB11E9A@MAILBOX.tbcnet.biltmore.com> <435CB3214F92FD4E8E5CEEB86A2044024290416387@MAILBOX.tbcnet.biltmore.com> Message-ID: <435CB3214F92FD4E8E5CEEB86A2044024290397F56@MAILBOX.tbcnet.biltmore.com> I thought I was clearing the cache, apparently I wasn?t. Cleared the cache and restarted and I have history on my update page. Thanks for your help. From: ruslan.zakirov at gmail.com [mailto:ruslan.zakirov at gmail.com] On Behalf Of Ruslan Zakirov Sent: Friday, August 30, 2013 8:23 AM To: Jason Ledford Cc: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Show History on Update Page Hi, Google for "clear mason cache request tracker". On Fri, Aug 30, 2013 at 7:15 AM, Jason Ledford > wrote: I will be honest I am struggling a little bit with this. I have tried a couple different approaches and can't get this to work. First I just made a local copy of history.html and named it MyPage.html and it worked. I then tried to add those elements into a local Update.html page and can't get it to show anything additional. Just for testing I added a simple test div just to try and display something extra on the Update page and can't get that to work. I have restarted the server and the mason/obj/folder is empty. What am I doing wrong? I have read through ticket/display.thml and history.html over and over and I feel like I am just overlooking something. Perl is new to me and help is most appreciated. Thanks. ________________________________________ From: ruslan.zakirov at gmail.com [ruslan.zakirov at gmail.com] On Behalf Of Ruslan Zakirov [ruz at bestpractical.com] Sent: Thursday, August 29, 2013 10:48 AM To: Jason Ledford Cc: rt-users at lists.bestpractical.com Subject: Re: [rt-users] Show History on Update Page Hi, Grep Ticket/Display.html for "History" and more importantly take a look at Ticket/Hisotry.html file. Work from these examples to embed history in Update.html. On Thu, Aug 29, 2013 at 5:45 PM, Jason Ledford >> wrote: I am wanting to customize the update page (reply or resolve) so that the History section also shows on the page. We want to see the ticket history to know what we are replying or commenting to. Can someone assist in getting that info on the page? I have already placed the Update.html in my local folder but perl is not my strongsuit. Taking that a step further, is it possible to have the first comment in the reply? Would that be a template change? Help is appreciated. Thanks. -- Best regards, Ruslan. -- Best regards, Ruslan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Fri Aug 30 09:48:55 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 30 Aug 2013 09:48:55 -0400 Subject: [rt-users] Global RT at a Glance not taking effect In-Reply-To: References: <20130829203745.GQ84863@jibsheet.com> Message-ID: <20130830134855.GR84863@jibsheet.com> On Thu, Aug 29, 2013 at 09:47:56PM +0100, Guy Baxter wrote: > On 29 August 2013 21:37, Kevin Falcone <[1]falcone at bestpractical.com> wrote: > > On Thu, Aug 29, 2013 at 05:34:14PM +0100, Guy Baxter wrote: > > Hi all, > > I've got an issue with RT at a glance global configuration not working. I want only > > "Dashboards" to be visible on the homepage after a user logs in. > > I've set the following in tools > configuration > Global > RT at a Glance > > RT at a glance body: Dasboards > > RT at a glance: Summary: blank > > When logging in as root this applies fine. > > When logging in as any other users ( we use RT External Auth) it does not apply. > > Do these users have their own homepage settings from previous > use/customization? You will need to reset that, or just clear their > homepage preferences in the Attributes table in the database. > > No, they've never been able to set them "no permissions to set preferences" was the error they > got. How would I go about clearing the homepage preferences anyway? As the relevant user - Settings -> RT at a Glance, although if they don't have ModifySelf they may not be able to get there and you may need to go look in the Attributes table for rows with a name of Pref-HomepageSettings and then use /opt/rt4/sbin/rt-attributes-viewer with the id of the row to see what user has an override. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From bbaker at copesan.com Fri Aug 30 14:20:27 2013 From: bbaker at copesan.com (Bryon Baker) Date: Fri, 30 Aug 2013 18:20:27 +0000 Subject: [rt-users] Searching in RT Message-ID: I have ran into an issue when search for tickets. I am searching for a number in the subject line when I am doing this RT assumes that I am search for a ticket number. Is there something I can do to change this behavior? I am using version 4.13 Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.elliott at alaska.gov Fri Aug 30 14:29:07 2013 From: kevin.elliott at alaska.gov (Elliott, Kevin C (DOR)) Date: Fri, 30 Aug 2013 18:29:07 +0000 Subject: [rt-users] Can't load UntouchedInHours module In-Reply-To: <20130829203514.GP84863@jibsheet.com> References: <1BCBBD850909C148B389F50256796E351F68F66A@SOAJNUEXMB3.soa.alaska.gov> <20130829203514.GP84863@jibsheet.com> Message-ID: <1BCBBD850909C148B389F50256796E351F68FAB9@SOAJNUEXMB3.soa.alaska.gov> That was indeed the issue. Thanks. > -----Original Message----- > From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users- > bounces at lists.bestpractical.com] On Behalf Of Kevin Falcone > Sent: Thursday, August 29, 2013 12:35 PM > To: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] Can't load UntouchedInHours module > > On Thu, Aug 29, 2013 at 05:39:33PM +0000, Elliott, Kevin C (DOR) wrote: > > > > [Thu Aug 29 17:32:17 2013] [critical]: Failed to load module > > RT::Condition::UntouchedInHours. () at /usr/bin/rt-crontool line 307. > > (/usr/share/request-tracker4/lib/RT.pm:351) > > Failed to load module RT::Condition::UntouchedInHours. () at /usr/bin/rt- > crontool line 307. > > > > root at DorJnuASD-RT:~/Bin# cat /usr/share/request- > tracker4/lib/RT/Condition/UntouchedInHours.pm > > > > package RT::Condition::UntouchedInHours; require > > RT::Condition::Generic; > > > > use RT::Date; > > > > > > @ISA = qw(RT::Condition::Generic); > > At the very least, this line is wrong: > http://bestpractical.com/docs/rt/latest/UPGRADING-4.0.html#Removals- > and-updates > > You want to inherit from RT::Condition. > > -kevin > > > use strict; > > use vars qw/@ISA/; > > > > sub IsApplicable { > > my $self = shift; > > > > if ((time()-$self->TicketObj->LastUpdatedObj->Unix)/3600 >= > $self->Argument) { > > return 1; > > } > > else { > > return 0; > > } > > > > } > > > > # The following could be omitted. They're there to allow overrides > > from Vendor and Local # but as this isn't a core module, they're just > > there for completeness :) eval "require > > RT::Condition::UntouchedInHours_Vendor"; > > die $@ if ($@ && $@ !~ qr{^Can't locate > > RT/Condition/UntouchedInHours_Vendor.pm}); > > eval "require RT::Condition::UntouchedInHours_Local"; > > die $@ if ($@ && $@ !~ qr{^Can't locate > > RT/Condition/UntouchedInHours_Local.pm}); > > > > 1; From kevin.elliott at alaska.gov Fri Aug 30 14:35:56 2013 From: kevin.elliott at alaska.gov (Elliott, Kevin C (DOR)) Date: Fri, 30 Aug 2013 18:35:56 +0000 Subject: [rt-users] Can't load UntouchedInHours module In-Reply-To: <20130830091639.GA4546@squash.oucs.ox.ac.uk> References: <1BCBBD850909C148B389F50256796E351F68F66A@SOAJNUEXMB3.soa.alaska.gov> <20130830091639.GA4546@squash.oucs.ox.ac.uk> Message-ID: <1BCBBD850909C148B389F50256796E351F68FAEC@SOAJNUEXMB3.soa.alaska.gov> Good call. I've moved it over to /usr/local/share/request-tracker. > -----Original Message----- > From: Dominic Hargreaves [mailto:dominic.hargreaves at it.ox.ac.uk] > Sent: Friday, August 30, 2013 1:17 AM > To: Elliott, Kevin C (DOR) > Cc: rt-users at lists.bestpractical.com > Subject: Re: [rt-users] Can't load UntouchedInHours module > > On Thu, Aug 29, 2013 at 05:39:33PM +0000, Elliott, Kevin C (DOR) wrote: > > > root at DorJnuASD-RT:~/Bin# ls -la > > /usr/share/request-tracker4/lib/RT/Condition/ > > total 60 > > drwxr-xr-x 2 root root 4096 Aug 29 09:24 . > > drwxr-xr-x 17 root root 4096 Jun 11 11:27 .. > > -rw-r--r-- 1 root root 2247 May 22 09:49 AnyTransaction.pm > > -rw-r--r-- 1 root root 2742 May 22 09:49 BeforeDue.pm > > -rw-r--r-- 1 root root 2677 May 22 09:49 CloseTicket.pm > > -rw-r--r-- 1 root root 2475 May 22 09:49 Overdue.pm > > -rw-r--r-- 1 root root 2351 May 22 09:49 OwnerChange.pm > > -rw-r--r-- 1 root root 2356 May 22 09:49 PriorityChange.pm > > -rw-r--r-- 1 root root 2325 May 22 09:49 PriorityExceeds.pm > > -rw-r--r-- 1 root root 2306 May 22 09:49 QueueChange.pm > > lrwxrwxrwx 1 root root 9 Aug 29 08:37 RCS -> /root/RCS > > -rw-r--r-- 1 root root 2829 May 22 09:49 ReopenTicket.pm > > -rw-r--r-- 1 root root 4593 May 22 09:49 StatusChange.pm > > -rw-r--r-- 1 root root 800 Aug 29 09:23 UntouchedInHours.pm > > -rw-r--r-- 1 root root 2458 May 22 09:49 UserDefined.pm > > Hi, > > Probably not related to your problem, but I really recommend not putting > locally installed files in /usr/share as that space is reserved for the package > manager (dpkg) and you could end up with overwritten files there (plus it's > difficult to see what came from where). > > /usr/local/share/request-tracker4/lib exists for this purpose so you could > move that file into /usr/local/share/request-tracker4/lib/RT/Condition/ > > Cheers, > Dominic. > > -- > Dominic Hargreaves, Systems Development and Support Section IT Services, > University of Oxford, 13 Banbury Road, Oxford, OX2 6NN From jim.h.berry at frb.gov Fri Aug 30 14:57:33 2013 From: jim.h.berry at frb.gov (Jim Berry) Date: Fri, 30 Aug 2013 18:57:33 +0000 Subject: [rt-users] Searching in RT In-Reply-To: References: Message-ID: <328C311131899241A0CD6A885762A6300DFB55F4@m1-mailbox03> Try putting the number in "quotes". Also, Just hit enter in the Search... box to see the instructions for the simple search. Jim From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bryon Baker Sent: Friday, August 30, 2013 2:20 PM To: RT Users (rt-users at lists.bestpractical.com) Subject: [rt-users] Searching in RT I have ran into an issue when search for tickets. I am searching for a number in the subject line when I am doing this RT assumes that I am search for a ticket number. Is there something I can do to change this behavior? I am using version 4.13 Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbaker at copesan.com Fri Aug 30 15:00:48 2013 From: bbaker at copesan.com (Bryon Baker) Date: Fri, 30 Aug 2013 19:00:48 +0000 Subject: [rt-users] Searching in RT In-Reply-To: <328C311131899241A0CD6A885762A6300DFB55F4@m1-mailbox03> References: <328C311131899241A0CD6A885762A6300DFB55F4@m1-mailbox03> Message-ID: <27ac3b91aab34ac8af466467a0325465@BLUPR05MB103.namprd05.prod.outlook.com> Great thanks that works great. Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" From: Jim Berry [mailto:jim.h.berry at frb.gov] Sent: Friday, August 30, 2013 1:58 PM To: Bryon Baker; RT Users (rt-users at lists.bestpractical.com) Subject: RE: Searching in RT Try putting the number in "quotes". Also, Just hit enter in the Search... box to see the instructions for the simple search. Jim From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bryon Baker Sent: Friday, August 30, 2013 2:20 PM To: RT Users (rt-users at lists.bestpractical.com) Subject: [rt-users] Searching in RT I have ran into an issue when search for tickets. I am searching for a number in the subject line when I am doing this RT assumes that I am search for a ticket number. Is there something I can do to change this behavior? I am using version 4.13 Thanks Bryon Baker Network Operations Manager Copesan - Specialists in Pest Solutions 800-267-3726 * 262-783-6261 ext. 2296 bbaker at copesan.com www.copesan.com "Servicing North America with Local Care" -------------- next part -------------- An HTML attachment was scrubbed... URL: From ktm at rice.edu Fri Aug 30 15:16:01 2013 From: ktm at rice.edu (ktm at rice.edu) Date: Fri, 30 Aug 2013 14:16:01 -0500 Subject: [rt-users] Searching in RT In-Reply-To: References: Message-ID: <20130830191601.GJ30496@aart.rice.edu> On Fri, Aug 30, 2013 at 06:20:27PM +0000, Bryon Baker wrote: > I have ran into an issue when search for tickets. > > I am searching for a number in the subject line when I am doing this RT assumes that I am search for a ticket number. Is there something I can do to change this behavior? > > I am using version 4.13 > Hi Bryon, I am using 3.8.13+secpatches and in it if I lead or follow the number with a SPACE it searches in the subject. I do not know if that will work on 4.x. Regards, Ken From lstewart at iweb.com Fri Aug 30 17:09:16 2013 From: lstewart at iweb.com (Landon Stewart) Date: Fri, 30 Aug 2013 14:09:16 -0700 Subject: [rt-users] Most efficient way to update custom fields without creating too many transactions In-Reply-To: <20130829203124.GN84863@jibsheet.com> References: <20130827162711.GM84863@jibsheet.com> <20130829203124.GN84863@jibsheet.com> Message-ID: On 29 August 2013 13:31, Kevin Falcone wrote: > Because Custom Fields can hold a LONGBLOB worth of data. > Go save a large text CF and look in the database. > Saving them as 1000 individual values makes 1000 records in the > database, saving them as 1 large record makes 1 record. These are > treated differently on update and display. > > If you follow the advice of the wiki article that was linked to and > reach around the API, you'll hurt yourself. > > Not recording transactions is orthogonal to the size of the data which > can be recorded. > I'm sorry - I'm pretty sure I'm reading you correctly but I'm unable to add multiple values to a Custom Field without creating multiple ObjectCustomFieldValue records. Maybe it's not possible to do so. The %Updates hash is a hash of arrays like this (this is one key, I don't know why Dumper prints it as two VARs): $VAR11 = 'Customer'; $VAR12 = [ '1xxx59', '1xxx22', '1xxx56', '1xxx5', '6xxx5', '1xxx93', '6xxx1', '4xxx1', '2xxx1', '3xxx8', '6xxx7', '1xxx08', '1xxx36' ]; Here's what I've tried and seen: foreach my $ufn (keys %Updates) { $ticket->AddCustomFieldValue( Field => $ufn, Value => join("\n", @{$Updates{$ufn}}), RecordTransaction => 0 ); } -- What this does is adds one ObjectCustomFieldValue record with \n between some stuff. These are displayed in RT as values with spaces between them. foreach my $ufn (keys %Updates) { $ticket->AddCustomFieldValue( Field => $ufn, Value => join(',', @{$Updates{$ufn}}), RecordTransaction => 0 ); } -- I didn't think this would really work but I thought I'd try it anyway. Same thing but comma delimited. They are displayed in RT as values with commas between them. So in other words I'm starting to think I've been after something that can't be done. RecordTransaction => 0 stops the "Transactions" table from getting a ton of records added to it (one for each OCFV record added) but I cannot avoid tons of OCFV records being added. -- Landon Stewart :: lstewart at iweb.com Lead Specialist, Abuse and Security Management Sp?cialiste principal, gestion des abus et s?curit? http://iweb.com :: +1 (888) 909-4932 -------------- next part -------------- An HTML attachment was scrubbed... URL: From akos.torok at docca.hu Fri Aug 30 17:24:55 2013 From: akos.torok at docca.hu (akos.torok at docca.hu) Date: Fri, 30 Aug 2013 23:24:55 +0200 Subject: [rt-users] Re-send a previously attached attachment? In-Reply-To: <520A989F.3020805@itss.co.tz> References: <520A989F.3020805@itss.co.tz> Message-ID: Hi Boli, We (Bekeny) did something related: http://requesttracker.8502.n7.nabble.com/attachment-improvements-td45499.html Regards, ?kos On Tue, Aug 13, 2013 at 10:35 PM, Boli wrote: > Hi All, > > Apologies if I have missed something obvious. > > How can I re-send an attachment that has previously been attached to a > ticket without downloading it and re-attaching it. > > For example, if a new requestor or CC is added to a ticket, and I want > to get them up to date quickly by referring to previously > discussed/attached information. > > Comments/Suggestions welcomed > > Regards, > > Boli > -- > Network Engineer > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From falcone at bestpractical.com Fri Aug 30 17:29:51 2013 From: falcone at bestpractical.com (Kevin Falcone) Date: Fri, 30 Aug 2013 17:29:51 -0400 Subject: [rt-users] Most efficient way to update custom fields without creating too many transactions In-Reply-To: References: <20130827162711.GM84863@jibsheet.com> <20130829203124.GN84863@jibsheet.com> Message-ID: <20130830212951.GS84863@jibsheet.com> On Fri, Aug 30, 2013 at 02:09:16PM -0700, Landon Stewart wrote: > On 29 August 2013 13:31, Kevin Falcone <[1]falcone at bestpractical.com> wrote: > > Because Custom Fields can hold a LONGBLOB worth of data. > Go save a large text CF and look in the database. > Saving them as 1000 individual values makes 1000 records in the > database, saving them as 1 large record makes 1 record. These are > treated differently on update and display. > > If you follow the advice of the wiki article that was linked to and > reach around the API, you'll hurt yourself. > > Not recording transactions is orthogonal to the size of the data which > can be recorded. > > I'm sorry - I'm pretty sure I'm reading you correctly but I'm unable to add multiple values to > a Custom Field without creating multiple ObjectCustomFieldValue records. Maybe it's not If you have a multiple value custom field, then each value will be an OCFV. As I wrote above "Go save a large *text* CF and look in the database" (added emphasis on text). It's unclear to me how you think we could store a Custom Field with a thousand distinct values as anything other than distinct records in the database? Think particularly about searching in the context of my question. RecordTransactions => 0 does what it sounds like, it stops you from getting 1000 transactions about the updates. -kevin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available URL: From lstewart at iweb.com Fri Aug 30 17:40:54 2013 From: lstewart at iweb.com (Landon Stewart) Date: Fri, 30 Aug 2013 14:40:54 -0700 Subject: [rt-users] Most efficient way to update custom fields without creating too many transactions In-Reply-To: <20130830212951.GS84863@jibsheet.com> References: <20130827162711.GM84863@jibsheet.com> <20130829203124.GN84863@jibsheet.com> <20130830212951.GS84863@jibsheet.com> Message-ID: On 30 August 2013 14:29, Kevin Falcone wrote: > If you have a multiple value custom field, then each value will be an > OCFV. > As I wrote above "Go save a large *text* CF and look in the database" > (added emphasis on text). > > It's unclear to me how you think we could store a Custom Field with a > thousand distinct values as anything other than distinct records in > the database? > I thought it was possible simply because I was asked by someone who has experience with RT to find out how to do it. Anyway - thanks for confirming that it's not possible at least. -- Landon Stewart :: lstewart at iweb.com Lead Specialist, Abuse and Security Management Sp?cialiste principal, gestion des abus et s?curit? http://iweb.com :: +1 (888) 909-4932 -------------- next part -------------- An HTML attachment was scrubbed... URL: From hamiltontpreston at gmail.com Sat Aug 31 10:21:33 2013 From: hamiltontpreston at gmail.com (Hamilton T. Preston) Date: Sat, 31 Aug 2013 10:21:33 -0400 Subject: [rt-users] Access map Message-ID: Am I missing a tool that tells you who has access to queue and how they have access (global right, group right, user right, etc). Thanks for the a great tool. RT is really nice. HP From ruz at bestpractical.com Sat Aug 31 18:54:33 2013 From: ruz at bestpractical.com (Ruslan Zakirov) Date: Sun, 1 Sep 2013 02:54:33 +0400 Subject: [rt-users] Access map In-Reply-To: References: Message-ID: On Sat, Aug 31, 2013 at 6:21 PM, Hamilton T. Preston < hamiltontpreston at gmail.com> wrote: > Am I missing a tool that tells you who has access to queue and how they > have access (global right, group right, user right, etc). > > Thanks for the a great tool. RT is really nice. > Would the following tool help: http://search.cpan.org/~ruz/RT-Extension-Utils-0.05/sbin/rt-check-user-right-on-ticket > > HP > > > -- Best regards, Ruslan. -------------- next part -------------- An HTML attachment was scrubbed... URL: