[rt-users] Tree queue

2015-06-16 Thread Alain Le Drezen
Hi, 

Is there a way to create tree queue. 
We will have to manage hundreds of queue and we realy need a tree. 

Thank's for your answer. 

Alain 




Re: [rt-users] RT 4.2.10 crash

2015-06-16 Thread Todd Wade

On 6/16/15 10:57 AM, Guadagnino Cristiano wrote:

unfortunately, even after completely fixing the db with rt-validator, I
still have the same problem with approvals.

I am at a loss, if anybody has something to contribute it would be very
appreciated.


Can you confirm that the Approvals templates are installed? Navigate to 
/Admin/Queues/index.html?FindDisabledQueues=1 (this is the 'Admin 
queues' page with the 'Include disabled queues in listing' checkbox 
checked), click on the __Approvals queue and then click on 'Tempates' in 
the subnav. Are there Templates listed there?


Without access to your system its very much a guess but it sounds like 
somehow the approvals infrastructure wasn't installed (or wasn't 
installed correctly) in your system during the upgrade that added it in.


Regards,



Re: [rt-users] Installation Question

2015-06-16 Thread Todd Wade

On 6/16/15 8:55 PM, Barrett, Brian wrote:

Working on setup RT on Red Hat.

My question is what are the best repos to use for Red Hat 6.6 and or Red
Hat 7.

Seen some people use epe other have used the centos.


Do you mean 'EPEL' (https://fedoraproject.org/wiki/EPEL) ?

EPEL is a set of extra packages that promises to not conflict with the 
packages provided by the base system (rhel, centos, fedora, etc), so you 
could use EPEL /within/ centos, but it wouldn't be used instead of centos.


Here are the notes I have for a centos 5 install for the system 
dependencies:


yum groupinstall 'Development tools'
yum groupinstall 'MySQL Database'
yum groupinstall 'Web Server'

yum install mysql-devel
yum install gd-devel
yum install expat-devel
yum install graphviz-devel

# add epel repo to yum
rpm -i 
http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

yum install mod_fcgid

Notice how I use the EPEL repo for the mod_fcgid package, this is only 
because it isn't available in the base packages.


Some additional system configuration I do is:

/etc/httpd/conf.d/fcgid.conf
+ FcgidMaxRequestLen 1073741824

/etc/my.cnf
+max_allowed_packet=64M

With this base the system is ready for the GENERAL INSTALLATION in the 
README.




[rt-users] Installation Question

2015-06-16 Thread Barrett, Brian
Hi,
Working on setup RT on Red Hat.
My question is what are the best repos to use for Red Hat 6.6 and or Red Hat 7.
Seen some people use epe other have used the centos.
Thanks
Brian


Re: [rt-users] rt-mailgate: Permission denied

2015-06-16 Thread Jeff Melton

I figured this out. I was using this project as an opportunity to try out 
plenv, but used /root/.plenv to set global Perl. When we set /root +x, it 
started working. Now I just need to figure out how best to fix it long-term.

Thanks, all.

On Tue, Jun 16, 2015 at 12:39:15PM -0700, Aaron C. de Bruyn wrote:

AppArmor?  (Or is that just Ubuntu?)

Also, is the postfix process running in a chroot?
Check /etc/postfix/master.cf to see if the service that is doing the
rt-mailgate delivery has a 'y' in the chroot column.

-A

On Tue, Jun 16, 2015 at 12:29 PM, Jeff Melton  wrote:

It's Debian Wheezy. No SELinux in this case.


On Tue, Jun 16, 2015 at 09:25:02PM +0200, Joop wrote:


On 16-6-2015 17:33, Jeff Melton wrote:


I'm setting up a new RT server, and I'm having some trouble getting
rt-mailgate to accept email piped from postfix.
`Command output: local: fatal: execvp /opt/rt4/bin/rt-mailgate:
Permission denied`


You don't state which OS you're using but if you're using CentOS/Rhel
base/derived you could be facing a SELinux problem. Check
/var/log/messages /var/log/audit or see what happens if you run
setenforce 0.

Regards,

Joop





Re: [rt-users] rt-mailgate: Permission denied

2015-06-16 Thread Jeff Melton

It is chrooted, but when I s/-/n for all the chrooted processes in master.cf 
and restarted postfix, it didn't make any difference. I just swapped the 
original master.cf back in.

I'll update to add that my aliases were quoted incorrectly to begin with, and 
having changed that, the full error output now reads:

Command died with status 126: "/opt/rt4/bin/rt-mailgate --queue 'Network 
Support' --action correspond --url http://rt.ifworld.com";. Command output: sh: 1: 
/opt/rt4/bin/rt-mailgate: Permission denied

On Tue, Jun 16, 2015 at 12:39:15PM -0700, Aaron C. de Bruyn wrote:

AppArmor?  (Or is that just Ubuntu?)

Also, is the postfix process running in a chroot?
Check /etc/postfix/master.cf to see if the service that is doing the
rt-mailgate delivery has a 'y' in the chroot column.

-A

On Tue, Jun 16, 2015 at 12:29 PM, Jeff Melton  wrote:

It's Debian Wheezy. No SELinux in this case.


On Tue, Jun 16, 2015 at 09:25:02PM +0200, Joop wrote:


On 16-6-2015 17:33, Jeff Melton wrote:


I'm setting up a new RT server, and I'm having some trouble getting
rt-mailgate to accept email piped from postfix.
`Command output: local: fatal: execvp /opt/rt4/bin/rt-mailgate:
Permission denied`


You don't state which OS you're using but if you're using CentOS/Rhel
base/derived you could be facing a SELinux problem. Check
/var/log/messages /var/log/audit or see what happens if you run
setenforce 0.

Regards,

Joop





Re: [rt-users] rt-mailgate: Permission denied

2015-06-16 Thread Aaron C. de Bruyn
AppArmor?  (Or is that just Ubuntu?)

Also, is the postfix process running in a chroot?
Check /etc/postfix/master.cf to see if the service that is doing the
rt-mailgate delivery has a 'y' in the chroot column.

-A

On Tue, Jun 16, 2015 at 12:29 PM, Jeff Melton  wrote:
> It's Debian Wheezy. No SELinux in this case.
>
>
> On Tue, Jun 16, 2015 at 09:25:02PM +0200, Joop wrote:
>>
>> On 16-6-2015 17:33, Jeff Melton wrote:
>>>
>>> I'm setting up a new RT server, and I'm having some trouble getting
>>> rt-mailgate to accept email piped from postfix.
>>> `Command output: local: fatal: execvp /opt/rt4/bin/rt-mailgate:
>>> Permission denied`
>>>
>> You don't state which OS you're using but if you're using CentOS/Rhel
>> base/derived you could be facing a SELinux problem. Check
>> /var/log/messages /var/log/audit or see what happens if you run
>> setenforce 0.
>>
>> Regards,
>>
>> Joop
>>
>


Re: [rt-users] rt-mailgate: Permission denied

2015-06-16 Thread Jeff Melton

It's Debian Wheezy. No SELinux in this case.

On Tue, Jun 16, 2015 at 09:25:02PM +0200, Joop wrote:

On 16-6-2015 17:33, Jeff Melton wrote:

I'm setting up a new RT server, and I'm having some trouble getting
rt-mailgate to accept email piped from postfix.
`Command output: local: fatal: execvp /opt/rt4/bin/rt-mailgate:
Permission denied`


You don't state which OS you're using but if you're using CentOS/Rhel
base/derived you could be facing a SELinux problem. Check
/var/log/messages /var/log/audit or see what happens if you run
setenforce 0.

Regards,

Joop



Re: [rt-users] rt-mailgate: Permission denied

2015-06-16 Thread Joop
On 16-6-2015 17:33, Jeff Melton wrote:
> I'm setting up a new RT server, and I'm having some trouble getting
> rt-mailgate to accept email piped from postfix.
> `Command output: local: fatal: execvp /opt/rt4/bin/rt-mailgate:
> Permission denied`
>
You don't state which OS you're using but if you're using CentOS/Rhel
base/derived you could be facing a SELinux problem. Check
/var/log/messages /var/log/audit or see what happens if you run
setenforce 0.

Regards,

Joop



Re: [rt-users] rt-mailgate: Permission denied

2015-06-16 Thread Jeff Melton

On Tue, Jun 16, 2015 at 11:54:52AM -0400, Matt Brennan wrote:

On my system, the application is world executable. I don't recall if that's
the default or I changed it. I'm sure someone here will say that's a bad
idea, security wise.

At a minimum, it needs to be executable by whatever user ID postfix is
running as. If you want to lock down the executable, you'd need to check
what user ID you have postfix running as and set the group to one which
contains that user ID (you'd also need to make sure it's group executable).


Thanks! The whole of /opt/rt4 is 755 right now, with everything executed by 
root. The postfix master process is owned by root; qmgr and pickup are owned by 
postfix. /opt/rt4 is root:www-data right now, but I've tried it root:root as 
well. I've tried adding the postfix user to the root and www-data groups, and 
that has no effect.



On Tue, Jun 16, 2015 at 11:33 AM, Jeff Melton  wrote:


I'm setting up a new RT server, and I'm having some trouble getting
rt-mailgate to accept email piped from postfix.
`Command output: local: fatal: execvp /opt/rt4/bin/rt-mailgate:
Permission denied`

Best I can tell, it's likely to be a permissions issue. What owner, group
and mode should RT be using? Are there any other gotchas I need to be
looking at? (I've configured role, group and user permissions in the RT
GUI.)

JM



Re: [rt-users] rt-mailgate: Permission denied

2015-06-16 Thread Matt Brennan
On my system, the application is world executable. I don't recall if that's
the default or I changed it. I'm sure someone here will say that's a bad
idea, security wise.

At a minimum, it needs to be executable by whatever user ID postfix is
running as. If you want to lock down the executable, you'd need to check
what user ID you have postfix running as and set the group to one which
contains that user ID (you'd also need to make sure it's group executable).


On Tue, Jun 16, 2015 at 11:33 AM, Jeff Melton  wrote:

> I'm setting up a new RT server, and I'm having some trouble getting
> rt-mailgate to accept email piped from postfix.
> `Command output: local: fatal: execvp /opt/rt4/bin/rt-mailgate:
> Permission denied`
>
> Best I can tell, it's likely to be a permissions issue. What owner, group
> and mode should RT be using? Are there any other gotchas I need to be
> looking at? (I've configured role, group and user permissions in the RT
> GUI.)
>
> JM
>


[rt-users] rt-mailgate: Permission denied

2015-06-16 Thread Jeff Melton
I'm setting up a new RT server, and I'm having some trouble getting rt-mailgate to accept email piped from postfix. 


`Command output: local: fatal: execvp /opt/rt4/bin/rt-mailgate: 
Permission denied`

Best I can tell, it's likely to be a permissions issue. What owner, group and 
mode should RT be using? Are there any other gotchas I need to be looking at? 
(I've configured role, group and user permissions in the RT GUI.)

JM


Re: [rt-users] RT 4.2.10 crash

2015-06-16 Thread Guadagnino Cristiano
Todd,
unfortunately, even after completely fixing the db with rt-validator, I 
still have the same problem with approvals.

I am at a loss, if anybody has something to contribute it would be very 
appreciated.

Cris



On 11/06/2015 11:31, Guadagnino Cristiano wrote:
> Todd, thank you very much for your reply.
>
> This is an upgrade from 4.2.9, but we have a long story with RT (since
> 2008) and we have always been upgrading without ever doing a clean install.
> I think some minor corruption may have been adding up through the years.
>
> Anyway, I just finished creating a couple of VMs, cloning the production
> server. I have been running rt-validator --check --verbose --resolve on
> the copy and now I am testing to verify that RT is still working as
> expected.
> rt-validator reported a lor of errors, but mainly due to missing
> principals (principals that existed at the time but have been delete since).
>
> In the next days, as my time permits, I'll be testing the approvals
> workflow on the copies and see if the problem is solved or at least if I
> can get a clearer debug log.
>
> Cris
>
>
>
> On 11/06/2015 03:18, Todd Wade wrote:
>> Looking at the code, that error is because a RT template didn't load.
>> ->Load probably returns an error message that should be logged, but
>> its pretty bad that your RT is crashing there.
>>
>> Is this a clean install of 4.2.10? Or did you upgrade from a previous
>> version? If so, what version?
>>
>> In general approvals are known to be working correctly, so its likely
>> something specific to the contents of your database, its somehow got
>> in to a bad state. You might want to check your database with
>> sbin/rt-validator:
>>
>> https://bestpractical.com/docs/rt/latest/rt-validator.html
>>


[rt-users] Different Calendar widgets on 'RT at a glance'

2015-06-16 Thread ARBEZ Christophe
Hi everyone,

I installed RTx::Calendar (
http://search.cpan.org/dist/RTx-Calendar/lib/RTx/Calendar.pm ) and after
some research, I wonder if it is possible to have different widgets of a
Calendar, displayed on RT at a glance.
Currently RT just allows me to have one Calendar with my own dates and
tickets ( with an other user his own tickets etc.)

I would like, for example, one Calendar which displays created tickets,
opened tickets or tickets for one specific user...
But after I specify what I want in the Query builder, it is not possible to
save many different Calendars...

 Nevertheless, I think I installed the most recent version of RTx::Calendar
and there should be a way...

Thanks



*Christophe ARBEZ | Stagiaire développement*
Syloé
803 rue de Pinville - 34000 Montpellier
Tél: +33983014518
Email: christophe.ar...@syloe.fr
www.syloe.fr  | Blog.syloe.com
 | Twitter  |
Facebook