Re: [rt-users] Running 3.8.11 and 4.0.5 on the same box?

2012-02-21 Thread Ruslan Zakirov
On Mon, Feb 20, 2012 at 23:18, Jeff Blaine jbla...@kickflop.net wrote:
 We want to install 4.0.5 alongside our working 3.8.11
 setup, and keep 3.8.11 working while some folks check
 out 4.0.5.

Depends on how 3.8.10 is installed. If instance is separated from perl
@INC then it's easier.

 Does anyone know if the deps for 4.0.5 will screw up
 a running 3.8.10 instance?

Shouldn't, but it's possible and happened before with older versions.

 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 * Boston  March 5  6, 2012



-- 
Best regards, Ruslan.

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

Re: [rt-users] No transaction content

2012-02-21 Thread Ruslan Zakirov
On Sun, Feb 19, 2012 at 18:21, Jim Tambling jim.tambl...@datatote.co.uk wrote:
 Despite having {$Transaction-Content()} on the Resolved template,
 whenever I resolve a ticket the requestor gets an email with the blurb
 that is in the template, but instead of a summary of the last comment on
 the ticket, it displays: This transaction appears to have no content.

 Any ideas?

http://requesttracker.wikia.com/wiki/FAQ#Templates



 Regards, Jim
 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 * Boston  March 5  6, 2012



-- 
Best regards, Ruslan.

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

Re: [rt-users] Multiple RT instances and Undeliverable or Bounced mail

2012-02-21 Thread Ruslan Zakirov
Hi,

This address is Return-Path, controlled with -f argument of your
sendmail program. There are several options in the config to control
this, read about OverrideOutgoingMailFrom, SetOutgoingMailFrom and
SendmailBounceArguments options.

Recently we fixed a bug in how these options cope with each other.

On Mon, Feb 20, 2012 at 18:33, Boli b...@itss.co.tz wrote:
 Hi All,

 Can anyone offer any insight into how to deal with multiple RT
 instances, such that bounce messages get picked up by the correct RT
 instance?

 Currently I have 2 RT instances, but bounces from either instance are
 almost always sent back to the user of the apache process
 (www-d...@my.host.here) and not to one of the addresses that RT would
 pick up on.

 Is there something I am missing with regard to correctly setting the
 from or reply-to address?

 Thanks for any assistance

 --
 Jon 'Boli' Copeland
 Network Engineer
 IT Sales  Services Ltd
 b...@itss.co.tz
 +255 (0) 685 374780
 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 * Boston  March 5  6, 2012



-- 
Best regards, Ruslan.

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

Re: [rt-users] Adding Queue Custom Field To Email From Field

2012-02-21 Thread Ruslan Zakirov
On Mon, Feb 20, 2012 at 17:04, David Thorpe da...@whitestores.co.uk wrote:
 Hi Guys,

 Installed the latest production build of RT last week. Absolutely loving it
 and it has increased productivity massively. In the queue settings, we use
 the description field to describe the list in about a paragraph so that we
 can list all queues and their use on our intranet. It appears that when
 emails are sent out to people creating tickets, the FROM field contains this
 description, we end up with a  long string of text that makes it hard to
 understand who the email is from.

 My question is, I want to add a custom field into each Queue which isn't a
 problem, this is done and is called my Email From field. I want this field
 to appear as the From Field in emails to people when they submit a ticket.
 But I want the current from ADDRESS to stay automatic as it does. Am I
 missing something, is this simple to do?

I don't see this in the code. RT doesn't put queue's description into
email by default. Have you checked your templates?






 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 * Boston — March 5  6, 2012



-- 
Best regards, Ruslan.

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

Re: [rt-users] Searching on Custom Fields

2012-02-21 Thread Ruslan Zakirov
Hi,

A few screenshots would be helpful to better understand situation and
try to reproduce.


On Sat, Feb 18, 2012 at 03:06, Jason Marshall jas...@kelman.com wrote:
 Hi all, I looked through the archives as best I could and didn't see
 anything specifically about this issue.

 RT 3.8.8

 I've got a queue with 2 custom fields associated with it (they're not global
 custom fields).

 Click on Tickets, then New Search.

 Select the queue, and hit Add These Terms, and one of the two custom fields
 shows up in the Add Criteria section, but not both.

 Smells like a bug.  Anyone know if this works right in a later 3.x release?
  Or is this happening only to me?

 Thanks in advance!

 ---
 Jason Marshall
 IT Manager
 Kelman Data Management
 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 * Boston  March 5  6, 2012



-- 
Best regards, Ruslan.

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

Re: [rt-users] RT integration into Liferay-Portal

2012-02-21 Thread Kevin Falcone
On Sun, Feb 19, 2012 at 06:33:44PM +0100, w...@yellowhippy.com wrote:
 I would like to integrate RT into our Liferay-Portal. Has anyone
 done something similar? Where would be a good point to start?

You'll probably get better answers if you explain what you're hoping
to achieve with your integration.  I'm afraid I'm not familiar with
the product you're using, so I can't offer any pointers to existing
solutions.  If you can list out what you're looking for, list members
can tell you if they've done similar things with their own portals.

-kevin


pgpKhQomV8ozZ.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] Searching on Custom Fields

2012-02-21 Thread Jason Marshall

Can I post those to the list without getting yelled at?


A few screenshots would be helpful to better understand situation and
try to reproduce.


On Sat, Feb 18, 2012 at 03:06, Jason Marshall jas...@kelman.com wrote:

Hi all, I looked through the archives as best I could and didn't see
anything specifically about this issue.

RT 3.8.8

I've got a queue with 2 custom fields associated with it (they're not global
custom fields).

Click on Tickets, then New Search.

Select the queue, and hit Add These Terms, and one of the two custom fields
shows up in the Add Criteria section, but not both.

Smells like a bug.  Anyone know if this works right in a later 3.x release?
 Or is this happening only to me?

Thanks in advance!

---
Jason Marshall
IT Manager
Kelman Data Management

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012




--
Best regards, Ruslan.




---
Jason Marshall
IT Manager
Kelman Data Management
403.294.7557
RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] Adding Queue Custom Field To Email From Field

2012-02-21 Thread Kevin Falcone
On Tue, Feb 21, 2012 at 04:20:53PM +0400, Ruslan Zakirov wrote:
 On Mon, Feb 20, 2012 at 17:04, David Thorpe da...@whitestores.co.uk wrote:
  Hi Guys,
 
  Installed the latest production build of RT last week. Absolutely loving it
  and it has increased productivity massively. In the queue settings, we use
  the description field to describe the list in about a paragraph so that we
  can list all queues and their use on our intranet. It appears that when
  emails are sent out to people creating tickets, the FROM field contains this
  description, we end up with a  long string of text that makes it hard to
  understand who the email is from.
 
  My question is, I want to add a custom field into each Queue which isn't a
  problem, this is done and is called my Email From field. I want this field
  to appear as the From Field in emails to people when they submit a ticket.
  But I want the current from ADDRESS to stay automatic as it does. Am I
  missing something, is this simple to do?
 
 I don't see this in the code. RT doesn't put queue's description into
 email by default. Have you checked your templates?

Autoreply uses the Queue's Description (normal Correspond/Comment uses
the user's FriendlyName).

I'd actually love to see a refactoring of Autoreply.pm to call
Queue-FriendlyName like Notify calls User-FriendlyName which would
make this an easier override.

As to the original question, David, you'll need to tweak the Template
to say From: { $self-TicketObj-QueueObj-FirstCustomFieldValue() } {
code that checks the Queue's Correspond and Comment address and falls
back to the globally defined ones).

What are you using the Description for?  You might find it easier to
just switch that to be the name you want going out in emails.  The
only other place it should be used is in Self Service when picking a
Queue to create at ticket in.

-kevin


pgpCcjRQhDyGp.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] Searching on Custom Fields

2012-02-21 Thread Kevin Falcone
On Tue, Feb 21, 2012 at 08:33:17AM -0700, Jason Marshall wrote:
 Can I post those to the list without getting yelled at?

As long as they're small.  Otherwise you could host them somewhere and
post a link.

In particular, seeing the Query Builder *and* the configuration of the
Custom Field in question would be helpful.

-kevin

 A few screenshots would be helpful to better understand situation and
 try to reproduce.
 
 
 On Sat, Feb 18, 2012 at 03:06, Jason Marshall jas...@kelman.com wrote:
 Hi all, I looked through the archives as best I could and didn't see
 anything specifically about this issue.
 
 RT 3.8.8
 
 I've got a queue with 2 custom fields associated with it (they're not global
 custom fields).
 
 Click on Tickets, then New Search.
 
 Select the queue, and hit Add These Terms, and one of the two custom fields
 shows up in the Add Criteria section, but not both.
 
 Smells like a bug.  Anyone know if this works right in a later 3.x release?
  Or is this happening only to me?


pgpGKhHwz6lm2.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] Adding Queue Custom Field To Email From Field

2012-02-21 Thread Thomas Sibley
On 02/20/2012 08:04 AM, David Thorpe wrote:
 My question is, I want to add a custom field into each Queue which isn't
 a problem, this is done and is called my Email From field. I want this
 field to appear as the From Field in emails to people when they submit a
 ticket. But I want the current from ADDRESS to stay automatic as it
 does. Am I missing something, is this simple to do?

It may make more sense for you to use the Description field as the part
you want going out on autoreplies and add a queue CF for your internal
descriptions of what queues are used for.  That'll be less overriding of
template headers for you.

If you want to see your internal descriptions in RT's admin queue list,
you can include the CF in the relevant format string with the
$AdminSearchResultFormat config option.

Thomas

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


[rt-users] GnuPG problems with message decryption

2012-02-21 Thread Martin Drasar
Hello,

I have a question for anyone experienced with using gpg with gpg agent.

My situation is as follows:
- I have configured the RT and GPG according to this manual:
http://wiki.rediris.es/rtirwg/Public_GPGConfig
- The RT is able to verify signatures on incoming mail and is able to
sign mails
- It is however not able to decrypt incoming mails, which is strange
considering the signing and the decryption are practically identical
processes

I have this in the log:
 [Tue Feb 21 15:34:09 2012] [debug]: Found encrypted inline part 
 (/home/RT/RT-4.0.5/sbin/../lib/RT/Crypt/GnuPG.pm:906)
 [Tue Feb 21 15:34:09 2012] [debug]: [GNUPG:] ENC_TO 26B34A0AE44C6E92 1 0
 [GNUPG:] USERID_HINT 26B34A0AE44C6E92 CSIRT-MU DEVEL 
 r...@rt-devel.ics.muni.cz
 [GNUPG:] NEED_PASSPHRASE 26B34A0AE44C6E92 023D741AB8EF2A3A 1 0
 [GNUPG:] MISSING_PASSPHRASE
 [GNUPG:] BAD_PASSPHRASE 26B34A0AE44C6E92
 [GNUPG:] ENC_TO 110B534B28C8D875 1 0
 [GNUPG:] NO_SECKEY 110B534B28C8D875
 [GNUPG:] BEGIN_DECRYPTION
 [GNUPG:] DECRYPTION_FAILED
 [GNUPG:] END_DECRYPTION (/home/RT/RT-4.0.5/sbin/../lib/RT/Crypt/GnuPG.pm:1417)
 [Tue Feb 21 15:34:09 2012] [error]: gpg: cancelled by user
 gpg: encrypted with 2048-bit RSA key, ID 28C8D875, created 2010-12-30
   Martin Drasar dra...@ics.muni.cz
 gpg: encrypted with 2048-bit RSA key, ID E44C6E92, created 2012-02-21
   CSIRT-MU DEVEL r...@rt-devel.ics.muni.cz
 gpg: public key decryption failed: bad passphrase
 gpg: decryption failed: secret key not available 
 (/home/RT/RT-4.0.5/sbin/../lib/RT/Crypt/GnuPG.pm:1419)
 [Tue Feb 21 15:34:09 2012] [debug]: Found GnuPG protected parts 
 (/home/RT/RT-4.0.5/sbin/../lib/RT/Interface/Email/Auth/GnuPG.pm:240)
 [Tue Feb 21 15:34:09 2012] [debug]: Error during verify/decrypt operation 
 (/home/RT/RT-4.0.5/sbin/../lib/RT/Interface/Email/Auth/GnuPG.pm:244)
 [Tue Feb 21 15:34:09 2012] [error]: Had a problem during decrypting and 
 verifying (/home/RT/RT-4.0.5/sbin/../lib/RT/Interface/Email/Auth/GnuPG.pm:102)

This is happening with RT-4.0.5 as well as 3.8.7.

Any thoughts?

Thank you,
Martin

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


[rt-users] preventing ParseNewMessageForTicketCcs abuse

2012-02-21 Thread Roedel, Mark
Has anybody made any tweaks to keep ParseNewMessageForTicketCcs from being 
abused (say, by restricting the number of Ccs or limiting the accounts that can 
add Ccs in that manner)?

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] preventing ParseNewMessageForTicketCcs abuse

2012-02-21 Thread k...@rice.edu
On Tue, Feb 21, 2012 at 04:04:01PM +, Roedel, Mark wrote:
 Has anybody made any tweaks to keep ParseNewMessageForTicketCcs from being 
 abused (say, by restricting the number of Ccs or limiting the accounts that 
 can add Ccs in that manner)?


Yes. Here is the bit we added to local/lib/RT/Interface/Email.pm for 3.8.5:

*** Email.pm_limitCcs   2011-03-04 09:43:40.0 -0600
--- Email.pm2010-02-24 16:18:22.0 -0600
***
*** 851,874 
  
  push @res, $address;
  }
- 
- #
- # Limit the number of Cc addresses that we add to a
- # ticket during the initial create to minimize damage
- # to our Email reputation when SPAM slips through DSPAM.
- 
- $RT::Logger-debug($#res Ccs);
- if ( $#res  4 ) {
- my @riceCc;
- my @nonriceCc;
- @riceCc = grep /rice.edu/i, @res;
- @nonriceCc = grep !/rice.edu/i, @res;
- $RT::Logger-debug($#riceCc riceCcs, $#nonriceCc nonriceCcs);
- if ($#nonriceCc  3) {
- @res = (@riceCc, @nonriceCc[0..3]);
- }
- }
- 
  return @res;
  }
  
--- 851,856 

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


[rt-users] (Installing RT 4.0.5) Fixdeps unable to make HTML::Mason

2012-02-21 Thread Walid Haider
Hi,

I am trying to install RT 4.0.5 on FC 12, when I make fixdeps, I am getting:

...

HTML-Mason-1.48/inc/Mason/Build.pm
  '/usr/bin/perl Makefile.PL' returned status 512, won't make
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install

...

Any ideas what could be going wrong, and how to resolve this issue?

Thanks in anticipation.

Walid



RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] Searching on Custom Fields

2012-02-21 Thread Jason Marshall
1.  http://scrambling.ca/crap/rt-users_1_list-of-cfs.png shows the list of 
cf's associated with this queue (Systems).


2.  http://scrambling.ca/crap/rt-users_2_show-two-cfs.png shows a random 
ticket's CF's (ticket is in Systems queue).


3.  http://scrambling.ca/crap/rt-users_3_query-builder.png shows the query 
builder after specifying the Queue='Systems'.  Note that IT Category shows 
up, but Center does not.


4.  http://scrambling.ca/crap/rt-users_4_it-category-config.png IT 
Category config.


5.  http://scrambling.ca/crap/rt-users_5_it-category-appliesto.png IT 
Category applies-to list.


6.  http://scrambling.ca/crap/rt-users_6_center-config.png Center config.

7.  http://scrambling.ca/crap/rt-users_7_center-applies-to.png Center 
applies-to.


Let me know if it would be helpful to see any other stuff!  Thanks all!




A few screenshots would be helpful to better understand situation and
try to reproduce.


On Sat, Feb 18, 2012 at 03:06, Jason Marshall jas...@kelman.com wrote:

Hi all, I looked through the archives as best I could and didn't see
anything specifically about this issue.

RT 3.8.8

I've got a queue with 2 custom fields associated with it (they're not global
custom fields).

Click on Tickets, then New Search.

Select the queue, and hit Add These Terms, and one of the two custom fields
shows up in the Add Criteria section, but not both.

Smells like a bug. ??Anyone know if this works right in a later 3.x release?
??Or is this happening only to me?

Thanks in advance!

---
Jason Marshall
IT Manager
Kelman Data Management

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston ??March 5  6, 2012




--
Best regards, Ruslan.




---
Jason Marshall
IT Manager
Kelman Data Management
403.294.7557
RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

[rt-users] Am I missing a right?

2012-02-21 Thread Jeff Blaine

Using RT 4.0.4

If a ticket is owned already, I cannot re-assign it unless
I set the owner to Nobody, then assign it.

Is this normal behavior?

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


[rt-users] Installing ExtUtil::MakeMaker hangs

2012-02-21 Thread Jaime Kikpole
When using make fixdeps, CPAN appears to hang on ExtUtil::MakeMaker.
 I know very little about CPAN and installing these things by hand.
I've seen some advise on the web about disabling a line of code and
then the compile works, but I don't know where to find the source code
to modify.  Nor do I know if this is even all that great of an idea.

What happens looks like this:

[...]
Manifying blib/man3/CPAN::Meta::Prereqs.3
Manifying blib/man3/Version::Requirements.3
Manifying blib/man3/File::Temp.3
Manifying blib/man3/CPAN::Meta::Validator.3
Manifying blib/man3/version.3
Manifying blib/man3/ExtUtils::MM_Any.3
  MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-MExtUtils::Command::MM -e test_harness(0, 'blib/lib',
'blib/arch') t/*.t
t/00compile.t . ok
t/arch_check.t  ok
t/backwards.t . ok
t/basic.t . ok
t/build_man.t . ok
t/cd.t  ok
t/config.t  ok
t/dir_target.t  ok
t/FIRST_MAKEFILE.t  ok
t/fix_libs.t .. ok
t/fixin.t . ok
t/hints.t . ok
t/INST.t .. ok
t/INST_PREFIX.t ... ok
t/INSTALL_BASE.t .. 1/20

Then it hangs there indefinitely.  There is more data here:
http://www.perlmonks.org/?node_id=918598

Any advise?

Thanks,
Jaime

-- 
Network Administrator
Cairo-Durham Central School District
http://cns.cairodurham.org

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


Re: [rt-users] Am I missing a right?

2012-02-21 Thread Christopher Lasater
Hey Jeff
You are not allowed to Take a ticket that is owned by someone, you have 
to steal it, which is in the Actions tab and is a different right.
Chris

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


Re: [rt-users] Am I missing a right?

2012-02-21 Thread Thomas Sibley
On 02/21/2012 12:52 PM, Jeff Blaine wrote:
 Using RT 4.0.4
 
 If a ticket is owned already, I cannot re-assign it unless
 I set the owner to Nobody, then assign it.
 
 Is this normal behavior?

Yes.  To assign a ticket you someone, the ticket either needs to be
unowned or owned by you.  So you could also Take the ticket (making
yourself the Owner) and then give it to someone.

RT uses Owner as the only form of ticket locking.

Thomas

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


Re: [rt-users] (Installing RT 4.0.5) Fixdeps unable to make HTML::Mason

2012-02-21 Thread Kevin Falcone
On Tue, Feb 21, 2012 at 04:24:05PM +, Walid Haider wrote:
I am trying to install RT 4.0.5 on FC 12, when I make fixdeps, I am 
 getting:
 
...
 
HTML-Mason-1.48/inc/Mason/Build.pm
  '/usr/bin/perl Makefile.PL' returned status 512, won't make
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
 
...
 
Any ideas what could be going wrong, and how to resolve this issue?

Is that the full output of make fixdeps around that module?
What happens if you run cpan HTML::Mason outside make fixdeps?

-kevin


pgp7s5OvSdyYi.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] Running 3.8.11 and 4.0.5 on the same box?

2012-02-21 Thread Jeff Blaine

So, if I build my own separate Perl for RT 4.0.5,
how do I make Red Hat's mod_perl 2 use *that* Perl?

Seems like a very dark and long rabbit hole...

On 2/20/2012 2:18 PM, Jeff Blaine wrote:

We want to install 4.0.5 alongside our working 3.8.11
setup, and keep 3.8.11 working while some folks check
out 4.0.5.

Does anyone know if the deps for 4.0.5 will screw up
a running 3.8.10 instance?


RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


[rt-users] linking to saved search results by name or ID

2012-02-21 Thread Sam Hanes
I have a large collection of saved searches and occasionally I need to
ask someone else to look at one of them. Currently I have to send them
the Show Results link, which is very long and unwieldy. It would be
much more convenient if I could link to a saved search by name or ID.
For example, Bugzilla saved search links look like this:
http://bugs.example.com/buglist.cgi?cmdtype=runnamednamedcmd=All%20My%20Boogs

I've tried searching the bug tracker and mailing list archives. All I
turned up was this rt-users thread from last year where they ended up
using the Show Results link:
http://www.gossamer-threads.com/lists/rt/users/98865

In 4.0.1 Search/Results.html declares a Mason argument SavedSearchId
but it doesn't seem to be used anywhere in that file. Trying to use it
like this returns an empty results page:
http://bugs.example.com/Search/Results.html?SavedSearchId=28

Is there some way to do this that I'm missing? If not, are there any
plans to implement it?

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


[rt-users] 4.0.5 FastCGI nightmare

2012-02-21 Thread Jeff Blaine

Well now.  What a total waste of 4 hours so far :(  It's
a shame this is what web app deployment is in 2012 still.
I remember this same old sort of crap from a decade ago.

If anyone has any ideas, please share.

I'm choosing FastCGI so that I can use my own Perl build,
and not Red Hat's built into mod_perl.

I've read docs/web_deployment.pod.  It includes an Apache
snippet, doesn't mention suexec configuration like the wiki
does, doesn't mention the suexec DocumentRoot restriction,
etc...  Not a very useful document here so far.

Here's rt-server.fcgi below, copied into the spot where Red Hat's
suexec *must* find it located (under the compiled-in
DocumentRoot).  As you can see, it is owned by the
suexec-destination user and group so suexec is happy:

[root@rtdev1 httpd]#
[root@rtdev1 ~]# cd /var/www
[root@rtdev1 www]# ls -ld .
drwxr-xr-x 7 root root 4096 Feb 21 20:05 ./
[root@rtdev1 www]# ls -ld fcgi/
dr-xr-xr-x 2 rt rt 4096 Feb 21 20:12 fcgi//
[root@rtdev1 www]# ls -ld fcgi/rt-server.fcgi
-r-xr-xr-x 1 rt rt 8043 Feb 21 20:12 fcgi/rt-server.fcgi*
[root@rtdev1 www]#

LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiWrapper /usr/sbin/suexec
FastCgiServer /var/www/fcgi/rt-server.fcgi -processes 5 -idle-timeout 
300 -user rt -group rt

VirtualHost 1xx.xx.xx.xx:443
DocumentRoot /apps/rt4/share/html
AddDefaultCharset UTF-8

Alias /NoAuth/images/ /apps/rt4/share/html/NoAuth/images/
ScriptAlias / /var/www/fcgi/rt-server.fcgi/
SuexecUserGroup rt rt
Location /
Options +ExecCGI
AddHandler fastcgi-script fcgi
Order allow,deny
Allow from all
/Location
/VirtualHost

suexec.log states everything is fine:

[2012-02-21 20:29:03]: uid: (rt/rt) gid: (rt/rt) cmd: rt-server.fcgi

Apache reports this:

[Tue Feb 21 20:33:40 2012] [warn] FastCGI: server 
/var/www/fcgi/rt-server.fcgi has failed to remain running for 30 
seconds given 3 attempts, its restart interval has been backed off to 
600 seconds


And the browser just spins for a LONG time, then finally
throws a 500 Internal Server Error.

Testing shows this:

[root@rtdev1 httpd]# sudo -u apache /var/www/fcgi/rt-server.fcgi --port 
WARNING: RT couldn't start up a web server on port .
This is often the case if the port is already in use or you're running 
/var/www/fcgi/rt-server.fcgi

as someone other than your system's root user.  You may also specify a
temporary port with: /var/www/fcgi/rt-server.fcgi --port port
Please check your system configuration or choose another port

I get the same exact error if I run rt-server.fcgi as root,
so it's not a permissions problem.


RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


Re: [rt-users] linking to saved search results by name or ID

2012-02-21 Thread Kevin Falcone
On Tue, Feb 21, 2012 at 02:45:48PM -0800, Sam Hanes wrote:
 I have a large collection of saved searches and occasionally I need to
 ask someone else to look at one of them. Currently I have to send them
 the Show Results link, which is very long and unwieldy. It would be
 much more convenient if I could link to a saved search by name or ID.
 For example, Bugzilla saved search links look like this:
 http://bugs.example.com/buglist.cgi?cmdtype=runnamednamedcmd=All%20My%20Boogs
 
 I've tried searching the bug tracker and mailing list archives. All I
 turned up was this rt-users thread from last year where they ended up
 using the Show Results link:
 http://www.gossamer-threads.com/lists/rt/users/98865
 
 In 4.0.1 Search/Results.html declares a Mason argument SavedSearchId
 but it doesn't seem to be used anywhere in that file. Trying to use it
 like this returns an empty results page:
 http://bugs.example.com/Search/Results.html?SavedSearchId=28
 
 Is there some way to do this that I'm missing? If not, are there any
 plans to implement it?

There isn't currently a way to do this, there's a feature request bug
open about it:

http://issues.bestpractical.com/Ticket/Display.html?id=19320

-kevin


pgpk6d7QrxwnG.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] 4.0.5 FastCGI nightmare

2012-02-21 Thread Kevin Falcone
On Tue, Feb 21, 2012 at 08:49:23PM -0500, Jeff Blaine wrote:
 I've read docs/web_deployment.pod.  It includes an Apache
 snippet, doesn't mention suexec configuration like the wiki
 does, doesn't mention the suexec DocumentRoot restriction,
 etc...  Not a very useful document here so far.

It includes two working FastCGI configs (we're using one of them in
production). It doesn't document every possible way to deploy RT, just
several standard and tested solutions.

 Apache reports this:
 
 [Tue Feb 21 20:33:40 2012] [warn] FastCGI: server
 /var/www/fcgi/rt-server.fcgi has failed to remain running for 30
 seconds given 3 attempts, its restart interval has been backed off
 to 600 seconds
 
 And the browser just spins for a LONG time, then finally
 throws a 500 Internal Server Error.
 
 Testing shows this:
 
 [root@rtdev1 httpd]# sudo -u apache /var/www/fcgi/rt-server.fcgi --port 

Try running

sudo -u apache plackup --server FCGI /var/www/fcgi/rt-server.fcgi

rt-server.fcgi depends a lot on proper environment.  If you want to
run it outside of mod_fastcgi/mod_fcgid you'll need to do it more
explicitly.  I believe there's a bug open to untangle it.

-kevin


pgplAq3vBfDYj.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012