RT 4 on Amazon EC2

Hi,

I have restored a production instance of RT to an Amazon EC2 t2.small
virtual machine. It has 2 Gig of RAM.

I can’t get Apache with Mod_FCGI to work but RT will run ok when using the
stand alone server.

There are no error message to help.

One particularity of EC2 is that is does not have a memory Swap file
configured. I wonder if this can cause the issue.

Has anyone successful at running RT 4 on EC2?

Thanks in advance,

[image: VuWall] https://vuwall.com François MEEHAN
IT Administrator
Administrateur TI T: +1 514-505-4436
Skype: VuWall-Support

I had this issue the other day using Amazon Linux AMI. Stand alone server would run, but httpd would spike to 100+% cpu, no error, no logs, no output… eventually I gave up and used the Centos7 AMI, worked like a dream first time. I now run rt4 in aws.

Andrew HuddlestonOn 22 Feb 2017, at 6:12 am, François Meehan <fmeehan@vuwall.commailto:fmeehan@vuwall.com> wrote:

Hi,

I have restored a production instance of RT to an Amazon EC2 t2.small virtual machine. It has 2 Gig of RAM.

I can’t get Apache with Mod_FCGI to work but RT will run ok when using the stand alone server.

There are no error message to help.

One particularity of EC2 is that is does not have a memory Swap file configured. I wonder if this can cause the issue.

Has anyone successful at running RT 4 on EC2?

Thanks in advance,

[VuWall]https://vuwall.com François MEEHAN
IT Administrator
Administrateur TI T: +1 514-505-4436
Skype: VuWall-Support

IMPORTANT NOTICE: This email, including any attachments, may contain privileged, confidential, and/or proprietary information, or may be subject to copyright. This email is intended only to be seen and used by the named addressee(s). If you are not the intended recipient of this email, you must not disclose or use the information contained in this email. If you have received this email in error, please notify the sender immediately, and permanently delete the original and any copies. We do not guarantee that this email and any attachments are free from virus or other errors. We will not be responsible for loss or damage resulting (either directly or indirectly) from any such virus or error. The content of and opinions expressed in this email are not necessarily the opinions held by Hillsong Church. If you believe this message is classified as a commercial electronic message in accordance with the Spam Act, you may indicate that you do not wish to receive further commercial electronic messages from us by sending an email to privacy@hillsong.com . Please consider the environmental impact before printing this email.

Hi François,
I just recently moved back to RT after three years of coping with ConnectWise and Autotask. I am presently running RT/Apache on a t2 nano and Postgres on another t2 nano instance. I have not noticed the behavior you reported, but have noticed that, sometime in the last week or so, apache2ctl restart no longer works, but /etc/init.d/apache2ctl restart does. I haven’t had time to investigate this yet.
Best,
Peter

Peter Nikolaidis, CISSP, GCFE, GCIH, GPPA, GSNA
http://ParadigmCC.com
Ph: 617.517.2940From: François Meehan fmeehan@vuwall.com
Sent: Tuesday, February 21, 2017 2:11 PM
Subject: [rt-users] RT 4 on Amazon EC2
To: rt-users@lists.bestpractical.com

Hi,
I have restored a production instance of RT to an Amazon EC2 t2.small virtual machine. It has 2 Gig of RAM.
I can’t get Apache with Mod_FCGI to work but RT will run ok when using the stand alone server.

There are no error message to help.
One particularity of EC2 is that is does not have a memory Swap file configured. I wonder if this can cause the issue.
Has anyone successful at running RT 4 on EC2?
Thanks in advance,

                                                                                                                                                                            François MEEHAN

IT Administrator
Administrateur TI T: +1 514-505-4436
Skype: VuWall-Support

Sorry- too quick with the send button. I did have to add a separate swap partition because my instance was indeed running out of memory. I also was not able to quickly get fcgi working, so I just moved on with standard Apache2. I am using the Amazon Ubuntu AMI.
Peter

Peter Nikolaidis, CISSP, GCFE, GCIH, GPPA, GSNA
http://ParadigmCC.com
Ph: 617.517.2940On Tue, Feb 21, 2017 at 2:11 PM -0500, “François Meehan” fmeehan@vuwall.com wrote:

Hi,
I have restored a production instance of RT to an Amazon EC2 t2.small virtual machine. It has 2 Gig of RAM.
I can’t get Apache with Mod_FCGI to work but RT will run ok when using the stand alone server.

There are no error message to help.
One particularity of EC2 is that is does not have a memory Swap file configured. I wonder if this can cause the issue.
Has anyone successful at running RT 4 on EC2?
Thanks in advance,

                    François MEEHAN

IT Administrator
Administrateur TI

                    T: +1 514-505-4436

Skype: VuWall-Support

Sorry- too quick with the send button. I did have to add a separate swap partition because my instance was indeed running out of memory. I also was not able to quickly get fcgi working, so I just moved on with standard Apache2. I am using the Amazon Ubuntu AMI.

Is there any interesting output from the command ‘dmesg’? Interesting messages might include ‘signal 13’ or other things related to memory issues.

Also what multi-processing module are you using? Check the output of ‘httpd -V’ for the ‘Server MPM’ line. It should be prefork and you should tune the configuration of that to use less resources if not already done.

Landon Stewart
Lead Analyst - Abuse and Security Management
INTERNAP ®
:e-mail: lstewart@internap.commailto:lstewart@internap.com
:earth_africa: www.internap.comhttp://www.internap.com

I found a work around, instead of Apache I use NGINX and that works.

Little did I know that sending mail from an EC2 instance is problematic to
say the least.

Thanks all for your help.On Tue, Feb 21, 2017 at 2:11 PM, François Meehan fmeehan@vuwall.com wrote:

Hi,

I have restored a production instance of RT to an Amazon EC2 t2.small
virtual machine. It has 2 Gig of RAM.

I can’t get Apache with Mod_FCGI to work but RT will run ok when using the
stand alone server.

There are no error message to help.

One particularity of EC2 is that is does not have a memory Swap file
configured. I wonder if this can cause the issue.

Has anyone successful at running RT 4 on EC2?

Thanks in advance,

[image: VuWall] https://vuwall.com François MEEHAN
IT Administrator
Administrateur TI T: +1 514-505-4436 <(514)%20505-4436>
Skype: VuWall-Support

[image: VuWall] https://vuwall.com François MEEHAN
IT Administrator
Administrateur TI T: +1 514-505-4436
Skype: VuWall-Support

Related to this, I just configured my RT EC2’s Postfix to send through SES to make me look less spammy. The process was very straightforward, and probably worth the effort.

Peter

Thanks for the info Peter!

I am trying that also, still waiting for Domain Verification by Amazon.
Takes a long time…

Regards,

My AWS setup; Centos7 on a t2.micro. RDS using MariaDB also on a t2.micro, fronted by an elastic LB. Security Groups only allow ec2 and rds to talk to each other on private subnets, the world connects to elb. I also use cloudfront to offload ssl, security and all of its goodness.

We use Office365 so I setup a transport connector for non spammy mail flow.

The key for me was the Linux distro, I tried and tried to get aws Linux Ami to run RT but had problems, switching to centos fixed everything.

Next I’ll send my logging off to elastic search for some pretty visuals and reporting.

Ps as one of the previous comments mentioned ses, I would recommend that as well if you don’t already have mailflow sorted.

Hi Andrew,

This is very, very interesting. I have put the project on hold on our side
because of the difficulties of using SES.

We have some Office365 accounts, the transport connector seem to be a very
interesting option. We are not using Office365 for our email
communications, so I will have to try how this works. Is it easy to setup?

I will also read on Cloudfront.

Thanks a million for sharing this info!

Hi again, yeah the mail flow bit.

For incoming I simply use fetchmail to pop my email out of O365, however this could be any mailbox on any system.

For outgoing I use postfix configured to use O365 as a relay. In O365 I can use the connected to accept mail from my RT host (IP Address) and treat it as valid non spam email.

!! Oh in AWS I associate an Elastic IP to my RT ec2 so that the IP doesn’t change. !!

^^ regarding this you can basically replace O365 with your mail system, I’m pretty sure they all work similar and have these capabilities, they will just have different terminology, names.

In my RT_SiteConfig.pm $mailcommand is sendmailpipe