Re: [rt-users] share dashboard with a group

2012-10-08 Thread Asanka Gunasekera
Hi Glenn, ran in to a bit of problem while shearing the dash in to a group 
below is the procedure as below

1. Gave my self to create, delete, view etc dashboards
2. And got my self assigned to the group the I am going to share
3. Created the new dash with the selection of the group to share the dash

As soon as I tell it to save the sash disappeared from my account, and unable 
to find this any ware in the system

Appreciate any help that you can give

Thanks and Best Regards





 From: Asanka Gunasekera asanka_gunasek...@yahoo.co.uk
To: Glenn E. Sieb gs...@efashionsolutions.com; 
rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com 
Sent: Friday, 5 October 2012, 22:39
Subject: Re: [rt-users] share dashboard with a group
 

hi Glenn, is seem when the person who trying to create the dash for the group 
needs to be in that group for it to appear under Privacy

Thanks and Best Regards





 From: Asanka Gunasekera asanka_gunasek...@yahoo.co.uk
To: Glenn E. Sieb gs...@efashionsolutions.com; 
rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com 
Sent: Friday, 5 October 2012, 22:14
Subject: Re: [rt-users] share dashboard with a group
 

Hi Glenn I am using RT 4 and I am trying to create group dash boards using root 
account and I am unable to see any option as you mentioned attached is an 
screen print


Thanks and Best Regards





 From: Glenn E. Sieb gs...@efashionsolutions.com
To: rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com 
Sent: Thursday, 4 October 2012, 0:26
Subject: Re: [rt-users] share dashboard with a group
 
On 10/03/2012 02:07 PM, Asanka Gunasekera wrote:
 Hi Albert, this document does not tell you how to create the shared dashboard 
 :(
 
Save it as a dashboard for that group.

When you click Home/New Dashboard see Privacy? That's the important bit. If 
you have rights to create dashboards for that group, you should see it in the 
dropdown list.

--Glenn

-- Glenn E. Sieb
System Administrator
+1 201 809-4958

eFashionSolutions
80 Enterprise Avenue South
Secaucus, NJ 07094



Final RT training for 2012 in Atlanta, GA - October 23  24
http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs

Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] Can't fork at Mailer.pm

2012-10-08 Thread Martin Drasar
On 5.10.2012 19:05, Thomas Sibley wrote:
 On 10/05/2012 02:31 AM, Martin Drasar wrote:
 after upgrading to RT 4.0.6 I am having problems with mail sending. This
 line starts to appear in log:

 Scrip Commit 6 died. - Can't fork at /usr/share/perl5/Mail/Mailer.pm
 line 145

 and no mail can be sent until I restart the Apache.

 Do you have any idea why it is happening? And more importantly - how can
 I solve this so it does not happen again?
 
 Can't fork means your operating system is dangerously out of memory.
 You should tune Apache and anything else on the box (your database
 server?) to coexist peacefully.
 
 What MailCommand are you using in RT?

Hi Thomas,

I am using sendmail as a mail command, but you are most likely right
about insufficient memory. I have checked the logs and Apache processes
were dying of memory starvation. I have doubled the memory (it was only
1 gig) and will check if it keeps happening.

Thanks,
Martin


Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] Can't fork at Mailer.pm

2012-10-08 Thread Tim Cutts

On 8 Oct 2012, at 09:42, Martin Drasar dra...@ics.muni.cz wrote:

 On 5.10.2012 19:05, Thomas Sibley wrote:
 On 10/05/2012 02:31 AM, Martin Drasar wrote:
 after upgrading to RT 4.0.6 I am having problems with mail sending. This
 line starts to appear in log:
 
 Scrip Commit 6 died. - Can't fork at /usr/share/perl5/Mail/Mailer.pm
 line 145
 
 and no mail can be sent until I restart the Apache.
 
 Do you have any idea why it is happening? And more importantly - how can
 I solve this so it does not happen again?
 
 Can't fork means your operating system is dangerously out of memory.
 You should tune Apache and anything else on the box (your database
 server?) to coexist peacefully.
 
 What MailCommand are you using in RT?
 
 Hi Thomas,
 
 I am using sendmail as a mail command, but you are most likely right
 about insufficient memory. I have checked the logs and Apache processes
 were dying of memory starvation. I have doubled the memory (it was only
 1 gig) and will check if it keeps happening.

Make sure you have plenty of swap allocated; you may not need the memory as 
physical.  I run the RT web server on a machine with only 2GB of RAM, and it's 
fine.  I don't run the database on the same machine, though.  You have to 
remember that when Apache/perl forks to exec the sendmail binary, temporarily 
you double the virtual memory requirement of the Apache/perl setup.  You either 
have to have virtual memory overcommit turned on (which I think is the default 
on most Linux systems these days) or to have enough swap allocated to cope.  

vm.overcommit_memory = 0

in /etc/sysctl.conf is probably what you want.  You probably actively don't 
want it to be set to 2.

Tim

-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 


Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] Can't fork at Mailer.pm

2012-10-08 Thread Martin Drasar
On 8.10.2012 10:53, Tim Cutts wrote:
 Make sure you have plenty of swap allocated; you may not need the memory as 
 physical.  I run the RT web server on a machine with only 2GB of RAM, and 
 it's fine.  I don't run the database on the same machine, though.  You have 
 to remember that when Apache/perl forks to exec the sendmail binary, 
 temporarily you double the virtual memory requirement of the Apache/perl 
 setup.  You either have to have virtual memory overcommit turned on (which I 
 think is the default on most Linux systems these days) or to have enough swap 
 allocated to cope.  
 
 vm.overcommit_memory = 0
 
 in /etc/sysctl.conf is probably what you want.  You probably actively don't 
 want it to be set to 2.
 
 Tim
 

Hi Tim,

thank you for the tips, I was not aware about doubling the virtual
memory requirements. I will look into it.

Martin


Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] Can't fork at Mailer.pm

2012-10-08 Thread Tim Cutts

On 8 Oct 2012, at 10:03, Martin Drasar dra...@ics.muni.cz wrote:

 thank you for the tips, I was not aware about doubling the virtual
 memory requirements. I will look into it.

It's only for a split second, and the memory isn't used.  UNIX doesn't just 
start an application in one go, it uses two steps:

1)  fork

This duplicates the current process, and both processes continue executing.
UNIX does this with so-called copy-on-write, so the pages aren't actually 
duplicated until they're modified, but nevertheless, the potential exists for 
both copies to be completely required, so if you have vm.overcommit_memory set 
to 2, you need all that virtual memory to be available just in case.

2)  exec

the newly forked process usually immediately executes the exec() system call, 
which replaces the current process' virtual memory image with the desired 
program.  At this point, the virtual memory requirements go back down again 
(assuming the new process is something small, which in  the case of sendmail, 
it is).

Apologies if there are errors and oversimplifications in the above, I'm not 
exactly a total UNIX beardy type.

We've seen this bite us on some of our HPC clusters at work - there, we do have 
vm.overcommit_memory set to 2, because we want programs allocating too much 
memory to die immediately, without risk of the kernel's out of memory killer 
zapping the wrong thing.  A common problem on such machines is very large 
computational jobs trying to start sub-processes - as soon as they do, their 
virtual memory requirement doubles and the fork() fails with an out of memory 
error.

It just seemed to me that it might be the case with your system.  Try the 
output of:

cat /proc/sys/vm/overcommit_memory

if it's 2, then this is probably your problem.
Tim



-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 


Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] Can't fork at Mailer.pm

2012-10-08 Thread Martin Drasar
On 8.10.2012 11:29, Tim Cutts wrote:
 It's only for a split second, and the memory isn't used.  UNIX doesn't just 
 start an application in one go, it uses two steps:
 
 1)  fork
 
 This duplicates the current process, and both processes continue executing.
 UNIX does this with so-called copy-on-write, so the pages aren't actually 
 duplicated until they're modified, but nevertheless, the potential exists for 
 both copies to be completely required, so if you have vm.overcommit_memory 
 set to 2, you need all that virtual memory to be available just in case.
 
 2)  exec
 
 the newly forked process usually immediately executes the exec() system call, 
 which replaces the current process' virtual memory image with the desired 
 program.  At this point, the virtual memory requirements go back down again 
 (assuming the new process is something small, which in  the case of sendmail, 
 it is).
 
 Apologies if there are errors and oversimplifications in the above, I'm not 
 exactly a total UNIX beardy type.
 
 We've seen this bite us on some of our HPC clusters at work - there, we do 
 have vm.overcommit_memory set to 2, because we want programs allocating too 
 much memory to die immediately, without risk of the kernel's out of memory 
 killer zapping the wrong thing.  A common problem on such machines is very 
 large computational jobs trying to start sub-processes - as soon as they do, 
 their virtual memory requirement doubles and the fork() fails with an out of 
 memory error.
 
 It just seemed to me that it might be the case with your system.  Try the 
 output of:
 
 cat /proc/sys/vm/overcommit_memory
 
 if it's 2, then this is probably your problem.
 Tim

I have checked the overcommit settings and it is zero. It seems that the
problem was purely in RT and postgres running with mostly default
settings on one machine with not enough memory. It was good enough for
RT 3.8.7, but it is not for 4.0.6. Although now I remember a few times
when processes were killed because of insufficient memory back then. But
it happened so little that we did not pay attention. I will not be
making the same mistake again...

I will ask some greybeard to check the settings for me or throw memory
at it, until the problem goes away :-)

Anyway, thanks a lot for your help.

Martin


Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


[rt-users] RT 4.0.4 CAS LDAP LDAPImport - Problem Privileged/Unprivileged users

2012-10-08 Thread Jan Niezbędny
Hey everybody. I’m new with RT and please for a little patience if I
said some stupid things and sorry for my English
I’m setting up new instance RT 4.0.4 on CentOS 6. For auth I’m using
CAS to implement SSO on a few applications. CAS using LDAP which
stands on AD Win Ser 2008.

I implement CAS in RT using mod_auth_cas and WebExternalAuth. To get
groups and users form LDAP I used LDAPImport. And almost everything
works fine but I have problem with Unprivileged users. For example I
wanna set up mapping for 3 groups from LDAP:  external (users who can
only write ticket and check status of them),  internal (users who
manage tickets from external users and other stuff) and admin. I want
this grups in RT, and it’s not problem to make configuration for
internal and admin groups but for all 3 grups it’s not that easy (at
least for me ). I think the best configuration for external users is
to be Unprivileged because this is the simplest way to close that
group in some place. This group only need to login, make ticket and
check status

The question is, it’s possible to resolve problem with Privileged
(internal, admin) and Unprivileged (external) groups of users using
some steps or changing configuration? To send 2 groups with Privileged
users and others with Unprivileged users?

Some my thoughts: It’s obvious that if I use LDAPImport and put
Set($LDAPCreatePrivileged, 1); in RT_SiteConfig, all new users
imported to RT will be Privileged, and when if I put 0 all users will
be Unprivileged. I thing it’s possible to use
Set($LDAPCreatePrivileged, 1); and default settings of RT to get a
solution of this problem. Because if you make a user in LDAP and as a
first step you try to login in RT, not using LDAPImport but login
directly in RT the user will be create with Unprivileged rights. This
is some solution but in settings of this user we don’t have email
which is required to make and see  own tickets.
If you have some thoughts or ideas, I will be very grateful

Regards,
Jan


Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


[rt-users] RT 4.0.4 CAS LDAP LDAPImport - Problem Privileged/Unprivileged users

2012-10-08 Thread Jan Niezbędny
Hey everybody. I’m new with RT and please for a little patience if I
said some stupid things and sorry for my English
I’m setting up new instance RT 4.0.4 on CentOS 6. For auth I’m using
CAS to implement SSO on a few applications. CAS using LDAP which
stands on AD Win Ser 2008.

I implement CAS in RT using mod_auth_cas and WebExternalAuth. To get
groups and users form LDAP I used LDAPImport. And almost everything
works fine but I have problem with Unprivileged users. For example I
wanna set up mapping for 3 groups from LDAP:  external (users who can
only write ticket and check status of them),  internal (users who
manage tickets from external users and other stuff) and admin. I want
this grups in RT, and it’s not problem to make configuration for
internal and admin groups but for all 3 grups it’s not that easy (at
least for me ). I think the best configuration for external users is
to be Unprivileged because this is the simplest way to close that
group in some place. This group only need to login, make ticket and
check status

The question is, it’s possible to resolve problem with Privileged
(internal, admin) and Unprivileged (external) groups of users using
some steps or changing configuration? To send 2 groups with Privileged
users and others with Unprivileged users?

Some my thoughts: It’s obvious that if I use LDAPImport and put
Set($LDAPCreatePrivileged, 1); in RT_SiteConfig, all new users
imported to RT will be Privileged, and when if I put 0 all users will
be Unprivileged. I thing it’s possible to use
Set($LDAPCreatePrivileged, 1); and default settings of RT to get a
solution of this problem. Because if you make a user in LDAP and as a
first step you try to login in RT, not using LDAPImport but login
directly in RT the user will be create with Unprivileged rights. This
is some solution but in settings of this user we don’t have email
which is required to make and see  own tickets.
If you have some thoughts or ideas, I will be very grateful

Regards,
Jan


Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] relations between reminder and ticket

2012-10-08 Thread Asanka Gunasekera
any one have came across this :(







 From: Asanka Gunasekera asanka_gunasek...@yahoo.co.uk
To: rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com 
Sent: Tuesday, 25 September 2012, 13:06
Subject: Re: [rt-users] relations between reminder and ticket
 

Hi I am trying find why this is hapening Couldn't find Ticket for reminder 
2087. Please contact administrator. since I have put the cleanup scripts and 
they workes when I do testing. But once in a while I get this error on the dash 
board. What I do is log in to the DB and make it resolved

I have been going through the DB and unable to find the relation between the 
ticks and treminders

Thanks and Best Regards




 From: Asanka Gunasekera asanka_gunasek...@yahoo.co.uk
To: rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com 
Sent: Thursday, 20 September 2012, 14:14
Subject: [rt-users] relations between reminder and ticket
 

Hi anyone can tell me where RT keeps the relationship between a ticket and a 
reminder

Thanks and Regards



Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs

Final RT training for 2012 in Atlanta, GA - October 23  24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs