[rt-users] problems attaching files

2016-04-26 Thread Liam Forbes
We are using RT 4.4.0 and appear to be having problems attaching files over 
some size around 100k. If we try to send an email with a larger attachment, the 
mail message just drops on the floor. If we try to attach a file through the 
web interface, the icon has an X over it and an error message appears when the 
mouse hovers over it, plus the attachment is dropped if we try to save the 
edit. 

Looking in the log I don’t see any messages being generated in either case. I 
do see messages generated when a file is successfully attached though. Our 
current attachment size settings should allow larger files than ~100k.

Set($MaxAttachmentSize, 10485760);  # 10MB
Set($TruncateLongAttachments, "true");

I’m not sure what else to look at to determine what’s happening or where things 
are failing. Have I somehow mis-set the config, or could this be a bug in 4.4.0?

Regards,
-liam

-There are uncountably more irrational fears than rational ones. -P. Dolan
Liam Forbes lofor...@alaska.edu ph: 907-450-8618 fax: 907-450-8601
UAF Research Computing Systems Senior HPC EngineerLPIC1, CISSP

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] (no subject)

2016-04-26 Thread Andrea Caputto
Apache versión is 2.4 , Apache + mod perl

I am upgrading from 4.2.1 to 4.4
El El mar, 26 de abr. de 2016 a las 16:02, Thiago Cristino dos Santos <
thiago.crist...@gmail.com> escribió:

> Hi,
> Andrea, please tell more about your environment :
> What's your Apache version ?
> RT was running over Apache + mod_perl, apache + fastcgi or apache +
> fastcgi + suexec?
>
>
>
>
> 2016-04-26 15:40 GMT-03:00 Andrea Caputto :
>
>> Hi, i was doing the upgrade, and everything was right, but now when i try
>> to start apache :
>>
>> Logs begin at mar 2016-04-26 12:22:54 UYT, end at mar 2016-04-26 13:30:01
>> UYT. --
>> abr 26 13:29:36 rt. . httpd[7736]: AH00526:
>> Syntax error on line 25 of /etc/httpd/conf.d/rt.conf:
>> abr 26 13:29:36 rt. .httpd[7736]: *Can't
>> locate Scope/Upper.pm in @INC (@INC contains: /opt/rt4/sbin/../local/li*
>> abr 26 13:29:36 rt. ... systemd[1]:
>> httpd.service: main process exited, code=exited, status=1/FAILURE
>> abr 26 13:29:36 rt.. ... kill[7739]: kill:
>> cannot find process ""
>> abr 26 13:29:36 rt.. . systemd[1]:
>> httpd.service: control process exited, code=exited status=1
>> abr 26 13:29:36 rt.  systemd[1]: Failed to
>> start The Apache HTTP Server.
>>
>>
>> [root@rt sbin]# perl -MCPAN -e 'install Scope::Upper'
>> Reading '/root/.local/share/.cpan/Metadata'
>>   Database was generated on Tue, 26 Apr 2016 16:17:02 GMT
>> Scope::Upper is up to date (0.28).
>>
>>
>> and testdeps seems ok.
>> --
>> Andrea Caputto
>>
>> -
>> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
>> * Washington DC - May 23 & 24, 2016
>>
>>
> --
Andrea Caputto
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] (no subject)

2016-04-26 Thread Thiago Cristino dos Santos
Hi,
Andrea, please tell more about your environment :
What's your Apache version ?
RT was running over Apache + mod_perl, apache + fastcgi or apache + fastcgi
+ suexec?




2016-04-26 15:40 GMT-03:00 Andrea Caputto :

> Hi, i was doing the upgrade, and everything was right, but now when i try
> to start apache :
>
> Logs begin at mar 2016-04-26 12:22:54 UYT, end at mar 2016-04-26 13:30:01
> UYT. --
> abr 26 13:29:36 rt. . httpd[7736]: AH00526:
> Syntax error on line 25 of /etc/httpd/conf.d/rt.conf:
> abr 26 13:29:36 rt. .httpd[7736]: *Can't
> locate Scope/Upper.pm in @INC (@INC contains: /opt/rt4/sbin/../local/li*
> abr 26 13:29:36 rt. ... systemd[1]:
> httpd.service: main process exited, code=exited, status=1/FAILURE
> abr 26 13:29:36 rt.. ... kill[7739]: kill:
> cannot find process ""
> abr 26 13:29:36 rt.. . systemd[1]:
> httpd.service: control process exited, code=exited status=1
> abr 26 13:29:36 rt.  systemd[1]: Failed to
> start The Apache HTTP Server.
>
>
> [root@rt sbin]# perl -MCPAN -e 'install Scope::Upper'
> Reading '/root/.local/share/.cpan/Metadata'
>   Database was generated on Tue, 26 Apr 2016 16:17:02 GMT
> Scope::Upper is up to date (0.28).
>
>
> and testdeps seems ok.
> --
> Andrea Caputto
>
> -
> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
> * Washington DC - May 23 & 24, 2016
>
>
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


[rt-users] (no subject)

2016-04-26 Thread Andrea Caputto
Hi, i was doing the upgrade, and everything was right, but now when i try
to start apache :

Logs begin at mar 2016-04-26 12:22:54 UYT, end at mar 2016-04-26 13:30:01
UYT. --
abr 26 13:29:36 rt. . httpd[7736]: AH00526:
Syntax error on line 25 of /etc/httpd/conf.d/rt.conf:
abr 26 13:29:36 rt. .httpd[7736]: *Can't
locate Scope/Upper.pm in @INC (@INC contains: /opt/rt4/sbin/../local/li*
abr 26 13:29:36 rt. ... systemd[1]:
httpd.service: main process exited, code=exited, status=1/FAILURE
abr 26 13:29:36 rt.. ... kill[7739]: kill: cannot
find process ""
abr 26 13:29:36 rt.. . systemd[1]:
httpd.service: control process exited, code=exited status=1
abr 26 13:29:36 rt.  systemd[1]: Failed to
start The Apache HTTP Server.


[root@rt sbin]# perl -MCPAN -e 'install Scope::Upper'
Reading '/root/.local/share/.cpan/Metadata'
  Database was generated on Tue, 26 Apr 2016 16:17:02 GMT
Scope::Upper is up to date (0.28).


and testdeps seems ok.
-- 
Andrea Caputto
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to access /rt4 on this server

2016-04-26 Thread Rachel
Hi Yanni,
In order to even see mod_fastcgi, you'll need to `yum install 
epel-release.noarch`.  Then, when you yum search for `fcgid` you should see the 
package `mod_fcgid.x86_64`, or something close to it, since you are using 
CentOS 7.

Thank you,
Rachel Kelly
Best Practical


> On Apr 26, 2016, at 4:14 AM, Martin Wheldon 
>  wrote:
> 
> Hi,
> 
> The thing that stands out is that you seem to be trying to access the site 
> using https on port 8000,
> however you haven't configured apache for https.
> 
> Could you also post the ./configure that you used with rt to the list too 
> please.
> 
> 
> Best Regards
> 
> Martin
> 
> On 2016-04-26 09:40, Yanni wrote:
>> Thanks Martin
>> I thought I had to point "DocumentRoot" to where the RT login page is.
>> I tried to install "mod_fastcgi" as you suggested but is not available with 
>> yum.
>> --
>> [root@jimmy opt]# yum -y install mod_fastcgi
>> Loaded plugins: fastestmirror
>> Loading mirror speeds from cached hostfile
>> * base: mirror.vorboss.net
>> * epel: mirror.1000mbps.com
>> * extras: mirror.vorboss.net
>> * rpmforge: miroir.univ-paris13.fr
>> * updates: centos.serverspace.co.uk
>> No package mod_fastcgi available
>> -
>> I also installed "rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm" and
>> tried to install it that way:
>> "yum --enablerepo=rpmforge install mod_fastcgi " but it's still not
>> available. There is a website called: www.fastcgi.com but I think is
>> not being maintained anymore. I also found out that with Apache 2.4,
>> the official module to use is "mod_proxy_fcgi". It looks like with
>> Centos7 I have 2 options. Either use Apache with "mod_fcgid" or go
>> with nginx.
>> I went with "mod_fcgid" and installed it with yum. I've got
>> "mod_fcgid-2.3.9-4.el7.x86_64".
>> Then:
>> 1. I renamed the /opt/rt4 directory and re-run "make-install" so I can
>> get back all the default file permissions of rt4 directory, as Todd
>> suggested.
>> 2. re-run "make initialize-database" with no errors.
>> 3. Copied the "mod_fcgid" section from "bestpractical.com" to my
>> "httpd.conf" and restarted "httpd".
>> 4. Made the changes described in "Running RT at rt rather than /" section.
>> 5. Restarted "httpd" and tried to access the RT login page
>> (https://jimmy.ad.biosci.ac.uk/rt4:8000) but I get:
>> 
>>  Internal Server Error
>>  The server encountered an internal error or misconfiguration and was
>> unable to complete your request.
>>  Please contact the server administrator at root@localhost to inform
>> them of the time this error occurred, and the actions you performed
>>  just before this error.
>>  More information about this error may be available in the server error log.
>> 
>> 6. I had a look at the "error.log" file and I can see the following:
>> -
>> RT couldn't load RT config file /opt/rt4/etc/RT_Config.pm as:
>>user: apache
>>group: apache
>> The file is owned by user root and group www.
>> This usually means that the user/group your webserver is running
>> as cannot read the file.  Be careful not to make the permissions
>> on this file too liberal, because it contains database passwords.
>> You may need to put the webserver user in the appropriate group
>> (www) or change permissions be able to run succesfully.
>> Can't locate RT_Config.pm in @INC (@INC contains: /opt/rt4/local/etc
>> /opt/rt4/etc /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib
>> /usr/local/lib64/perl5 /usr/local/share/perl5
>> /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
>> /usr/lib64/perl5 /usr/share/perl5 .) at
>> /opt/rt4/sbin/../lib/RT/Config.pm line 1238.
>> -
>> As the error message says "apache" can not read RT_Config.pm so I
>> added "apache" to the "www" group like this:
>> usermod -a -G www apache
>> 7. Restart "httpd" and tried to visit the login page
>> (https://jimmy.ad.biosci.ac.uk/rt4:8000). I get the same Internal
>> Server error.
>> Below are my full "httpd.conf" and "RT_SiteConfig.pm" files. When you
>> have time could you please have a look, I believe I've got the correct
>> "ScriptAlias" and "Location" now.
>> httpd.conf: http://pastebin.com/NMtxapR5
>> RT_SiteConfig.pm: http://pastebin.com/ekQEzdcw
>> Many thanks
>> -
>> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
>> * Washington DC - May 23 & 24, 2016
> -
> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
> * Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


[rt-users] rt 4.2 to 4.4

2016-04-26 Thread Andrea Caputto
Hi, i was doing the upgrade, and everithing was right, but now when i try
to start apache :

Logs begin at mar 2016-04-26 12:22:54 UYT, end at mar 2016-04-26 13:30:01
UYT. --
abr 26 13:29:36 rt.sonda.com.uy httpd[7736]: AH00526: Syntax error on line
25 of /etc/httpd/conf.d/rt.conf:
abr 26 13:29:36 rt.sonda.com.uy httpd[7736]: *Can't locate Scope/Upper.pm
in @INC (@INC contains: /opt/rt4/sbin/../local/li*
abr 26 13:29:36 rt.sonda.com.uy systemd[1]: httpd.service: main process
exited, code=exited, status=1/FAILURE
abr 26 13:29:36 rt.sonda.com.uy kill[7739]: kill: cannot find process ""
abr 26 13:29:36 rt.sonda.com.uy systemd[1]: httpd.service: control process
exited, code=exited status=1
abr 26 13:29:36 rt.sonda.com.uy systemd[1]: Failed to start The Apache HTTP
Server.


[root@rt sbin]# perl -MCPAN -e 'install Scope::Upper'
Reading '/root/.local/share/.cpan/Metadata'
  Database was generated on Tue, 26 Apr 2016 16:17:02 GMT
Scope::Upper is up to date (0.28).


and testdeps seems ok.

what i am doing wrong??

Thanks!
-- 
Andrea Caputto
-- 
Andrea Caputto
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to access /rt4 on this server

2016-04-26 Thread Martin Wheldon

Hi,

The thing that stands out is that you seem to be trying to access the 
site using https on port 8000,

however you haven't configured apache for https.

Could you also post the ./configure that you used with rt to the list 
too please.



Best Regards

Martin

On 2016-04-26 09:40, Yanni wrote:

Thanks Martin

I thought I had to point "DocumentRoot" to where the RT login page is.

I tried to install "mod_fastcgi" as you suggested but is not available 
with yum.


--
[root@jimmy opt]# yum -y install mod_fastcgi
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.vorboss.net
 * epel: mirror.1000mbps.com
 * extras: mirror.vorboss.net
 * rpmforge: miroir.univ-paris13.fr
 * updates: centos.serverspace.co.uk
No package mod_fastcgi available
-

I also installed "rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm" and
tried to install it that way:
"yum --enablerepo=rpmforge install mod_fastcgi " but it's still not
available. There is a website called: www.fastcgi.com but I think is
not being maintained anymore. I also found out that with Apache 2.4,
the official module to use is "mod_proxy_fcgi". It looks like with
Centos7 I have 2 options. Either use Apache with "mod_fcgid" or go
with nginx.

I went with "mod_fcgid" and installed it with yum. I've got
"mod_fcgid-2.3.9-4.el7.x86_64".

Then:

1. I renamed the /opt/rt4 directory and re-run "make-install" so I can
get back all the default file permissions of rt4 directory, as Todd
suggested.
2. re-run "make initialize-database" with no errors.
3. Copied the "mod_fcgid" section from "bestpractical.com" to my
"httpd.conf" and restarted "httpd".
4. Made the changes described in "Running RT at rt rather than /" 
section.

5. Restarted "httpd" and tried to access the RT login page
(https://jimmy.ad.biosci.ac.uk/rt4:8000) but I get:


  Internal Server Error
  The server encountered an internal error or misconfiguration and was
unable to complete your request.
  Please contact the server administrator at root@localhost to inform
them of the time this error occurred, and the actions you performed
  just before this error.
  More information about this error may be available in the server 
error log.



6. I had a look at the "error.log" file and I can see the following:
-
RT couldn't load RT config file /opt/rt4/etc/RT_Config.pm as:
user: apache
group: apache

The file is owned by user root and group www.

This usually means that the user/group your webserver is running
as cannot read the file.  Be careful not to make the permissions
on this file too liberal, because it contains database passwords.
You may need to put the webserver user in the appropriate group
(www) or change permissions be able to run succesfully.

Can't locate RT_Config.pm in @INC (@INC contains: /opt/rt4/local/etc
/opt/rt4/etc /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib
/usr/local/lib64/perl5 /usr/local/share/perl5
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5 .) at
/opt/rt4/sbin/../lib/RT/Config.pm line 1238.
-
As the error message says "apache" can not read RT_Config.pm so I
added "apache" to the "www" group like this:
usermod -a -G www apache

7. Restart "httpd" and tried to visit the login page
(https://jimmy.ad.biosci.ac.uk/rt4:8000). I get the same Internal
Server error.

Below are my full "httpd.conf" and "RT_SiteConfig.pm" files. When you
have time could you please have a look, I believe I've got the correct
"ScriptAlias" and "Location" now.

httpd.conf: http://pastebin.com/NMtxapR5
RT_SiteConfig.pm: http://pastebin.com/ekQEzdcw

Many thanks
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to access /rt4 on this server

2016-04-26 Thread Yanni

Thanks Martin

I thought I had to point "DocumentRoot" to where the RT login page is.

I tried to install "mod_fastcgi" as you suggested but is not available 
with yum.


--
[root@jimmy opt]# yum -y install mod_fastcgi
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.vorboss.net
 * epel: mirror.1000mbps.com
 * extras: mirror.vorboss.net
 * rpmforge: miroir.univ-paris13.fr
 * updates: centos.serverspace.co.uk
No package mod_fastcgi available
-

I also installed "rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm" and tried 
to install it that way:
"yum --enablerepo=rpmforge install mod_fastcgi " but it's still not 
available. There is a website called: www.fastcgi.com but I think is not 
being maintained anymore. I also found out that with Apache 2.4, the 
official module to use is "mod_proxy_fcgi". It looks like with Centos7 I 
have 2 options. Either use Apache with "mod_fcgid" or go with nginx.


I went with "mod_fcgid" and installed it with yum. I've got 
"mod_fcgid-2.3.9-4.el7.x86_64".


Then:

1. I renamed the /opt/rt4 directory and re-run "make-install" so I can 
get back all the default file permissions of rt4 directory, as Todd 
suggested.

2. re-run "make initialize-database" with no errors.
3. Copied the "mod_fcgid" section from "bestpractical.com" to my 
"httpd.conf" and restarted "httpd".

4. Made the changes described in "Running RT at rt rather than /" section.
5. Restarted "httpd" and tried to access the RT login page 
(https://jimmy.ad.biosci.ac.uk/rt4:8000) but I get:



  Internal Server Error
  The server encountered an internal error or misconfiguration and was 
unable to complete your request.
  Please contact the server administrator at root@localhost to inform 
them of the time this error occurred, and the actions you performed

  just before this error.
  More information about this error may be available in the server 
error log.



6. I had a look at the "error.log" file and I can see the following:
-
RT couldn't load RT config file /opt/rt4/etc/RT_Config.pm as:
user: apache
group: apache

The file is owned by user root and group www.

This usually means that the user/group your webserver is running
as cannot read the file.  Be careful not to make the permissions
on this file too liberal, because it contains database passwords.
You may need to put the webserver user in the appropriate group
(www) or change permissions be able to run succesfully.

Can't locate RT_Config.pm in @INC (@INC contains: /opt/rt4/local/etc 
/opt/rt4/etc /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib 
/usr/local/lib64/perl5 /usr/local/share/perl5 
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl 
/usr/lib64/perl5 /usr/share/perl5 .) at 
/opt/rt4/sbin/../lib/RT/Config.pm line 1238.

-
As the error message says "apache" can not read RT_Config.pm so I added 
"apache" to the "www" group like this:

usermod -a -G www apache

7. Restart "httpd" and tried to visit the login page 
(https://jimmy.ad.biosci.ac.uk/rt4:8000). I get the same Internal Server 
error.


Below are my full "httpd.conf" and "RT_SiteConfig.pm" files. When you 
have time could you please have a look, I believe I've got the correct

"ScriptAlias" and "Location" now.

httpd.conf: http://pastebin.com/NMtxapR5
RT_SiteConfig.pm: http://pastebin.com/ekQEzdcw

Many thanks
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016