[SOLVED]index.pl is being downloaded

Moderator: crythias

Post Reply
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

[SOLVED]index.pl is being downloaded

Post by paulosergio »

Hi,

I have problems with otrs 3.0.9 installled on debian 6 system, the file index.pl is being downloaded always, i need restart the apache2 , see below the syslog.


-e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.


Thanks.

Regards
Last edited by paulosergio on 15 Aug 2011, 20:34, edited 1 time in total.
renee
Znuny expert
Posts: 241
Joined: 06 Feb 2009, 11:15
Znuny Version: 3.0.x
Company: Perl-Services.de
Contact:

Re: index.pl is being downloaded

Post by renee »

Which user is running OTRS? What permissions does the logfile (or the directory in which the logfile is created) have?
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

i think It´s runnig with root, what log file ?
renee
Znuny expert
Posts: 241
Joined: 06 Feb 2009, 11:15
Znuny Version: 3.0.x
Company: Perl-Services.de
Contact:

Re: index.pl is being downloaded

Post by renee »

I assume that you have configured OTRS to log into a file. You can check this in SysConfig at "Framework -> Core::Log"...
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
renee
Znuny expert
Posts: 241
Joined: 06 Feb 2009, 11:15
Znuny Version: 3.0.x
Company: Perl-Services.de
Contact:

Re: index.pl is being downloaded

Post by renee »

My assumptions were wrong. I just "grep"ped the OTRS sources and there is no LOG filehandle. Did you change anything in the OTRS codes? What OTRS version do you use?
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

I´m using the syslog and i didnt change the code and i´m using 3.0.9 version.

Thanks

Regards.
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: index.pl is being downloaded

Post by ferrosti »

This error typically comes from a misconfigured apache. It seems that apache does not know how to handle .pl files correctly. Is mod_perl installed and configured in apache?

Never ever run apache with root permissions!
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

Hi,

This error only happens sometimes, i think if the problem was the mod_perl, the error will be happen always.

Thanks
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: index.pl is being downloaded

Post by ferrosti »

Ah, I totally forgot about this one:
http://forums.otrs.org/viewtopic.php?f= ... 01&p=31719
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

Sorry, Guys i was working hardly, but the problem was not solved, there is someone mor ideias ?

Thanks

Regards
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

hello,

someone to help me?

Thanks

Regards.
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: index.pl is being downloaded

Post by ferrosti »

Did you read the link that I have posted?
What have you tried so far?
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

Hi Ferrosti ,

Yes, i have tried,if the test would be to change de syslog to a log file, is right ? but the problem continues.

Thanks.
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

Hello,

the problem continues, there is somente can help me ?



[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:42 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:42 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:42 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:42 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:42 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:42 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: index.pl is being downloaded

Post by jojo »

your system is broken. Please follow the installation guidelines
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

Hi jojo,

see the installation manual i see the command ./otrs.CheckModules.pl | grep Not and the result is :


o Encode::HanExtra...............Not installed! (Optional - Required to handle mails with several Chinese character sets.)
o JSON::XS....................Not installed! (Optional - Install it for faster AJAX/JavaScript handling.)
o Net::LDAP......................Not installed! (Optional - Required for directory authentication.)

Is it a problem ?

Thanks
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: index.pl is being downloaded

Post by ferrosti »

You should install at least the first two of those, despite the matter that it will not solve the problem you have.
Net::LDAP is only needed when fetching or authenticating customer or agents information from some LDAP server.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

Hello,

I've updated, but the problem continues, I saw many articles on syslog, what do you think? this log can be disabled?
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: index.pl is being downloaded

Post by ferrosti »

Some posts above you have written that you already disabled logging to syslog? So what exactly did you do?
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

Hi Ferrosti,

I tried to switch to syslog, and the local file, but did not work. My question is, if possible, disable all OTRS logs, log off the test if I no longer have the problem

Thanks
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

Hi guys,

I do not know if it's something to consider, but look below to log in the number of erroneous lines and decreased in comparison with my previous post


[Wed Aug 10 12:38:06 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Wed Aug 10 12:38:06 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Wed Aug 10 12:38:06 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Wed Aug 10 12:38:06 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Wed Aug 10 12:38:06 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.


[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
[Tue Aug 9 09:00:41 2011] -e: print() on closed filehandle LOG at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1545.
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

someone else to help?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: index.pl is being downloaded

Post by jojo »

your system seems to be really misconfigured. Do you run any hardening software which prevents the usage of shared memory segments in apache? Is your syslogd running?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

Re: index.pl is being downloaded

Post by paulosergio »

Jojo,

I do not know if I have this software that prevents the use of shared memory segments in Apache, the only other software I have is OCS inventory,and my apache runs on port 81, a problem with that?

Yes this is my syslog.
cmks
Znuny newbie
Posts: 1
Joined: 12 Aug 2011, 16:28
Znuny Version: 3.0.8

Re: index.pl is being downloaded

Post by cmks »

We are facing the same problem: Most of the time it is working, but occasionally the server sends an empty page. In error.log I find the same message as paulosergio.

It seems to be the bug described here:
http://bugs.otrs.org/show_bug.cgi?id=5338

According to this bugreport, it can be solved by using cgi instead of mod_perl. Currently I cannot try this on our server.

More information:
- OTRS version here is 3.0.8 on Debian
- Occurs when logging to file or syslog, tried both today.
- As paulosergio, OCS inventory is installed on the same machine
- Error did not occur until a Debian dist-upgrade which also included an update on OCS inventory
- No apache restart required to solve the problem. The next click on any OTRS-link or button is working.
- Permissions on OTRS files have been reset with the perl script described in INSTALL readme file.
paulosergio
Znuny newbie
Posts: 35
Joined: 28 Jul 2011, 19:43
Znuny Version: 3.0.9
Real Name: Paulo Sergio Ueda Braghetto
Company: Rio branco

[SOLVED]Re: index.pl is being downloaded

Post by paulosergio »

cmks wrote:We are facing the same problem: Most of the time it is working, but occasionally the server sends an empty page. In error.log I find the same message as paulosergio.

It seems to be the bug described here:
http://bugs.otrs.org/show_bug.cgi?id=5338

According to this bugreport, it can be solved by using cgi instead of mod_perl. Currently I cannot try this on our server.

More information:
- OTRS version here is 3.0.8 on Debian
- Occurs when logging to file or syslog, tried both today.
- As paulosergio, OCS inventory is installed on the same machine
- Error did not occur until a Debian dist-upgrade which also included an update on OCS inventory
- No apache restart required to solve the problem. The next click on any OTRS-link or button is working.
- Permissions on OTRS files have been reset with the perl script described in INSTALL readme file.

Hi,

really worked with this change.

Thanks
mk4L
Znuny newbie
Posts: 2
Joined: 01 Dec 2011, 11:07
Znuny Version: 3.0.11

Re: [SOLVED]index.pl is being downloaded

Post by mk4L »

http://bugs.otrs.org/show_bug.cgi?id=5338

Yes, that was it. Disabling mod_perl did it. Thank you so much.
TitovLab
Znuny newbie
Posts: 7
Joined: 18 Apr 2015, 15:17
Znuny Version: 5.0.17
Real Name: Alexander Titov
Company: IT PC help

Re: [SOLVED]index.pl is being downloaded

Post by TitovLab »

The problem is in OCS Inventory.
Just comment two strings in /usr/share/perl5/vendor_perl/Apache/Ocsinventory/Server/System.pm (or another dir there OCS-Server is installed):
# select(LOG);
# $|=1;
And restart web-server.
P.S.: OCS logs will continue work.
tbote
Znuny newbie
Posts: 14
Joined: 18 Apr 2015, 18:57
Znuny Version: 4 patch 7

Re: [SOLVED]index.pl is being downloaded

Post by tbote »

TitovLab wrote:The problem is in OCS Inventory.
Just comment two strings in /usr/share/perl5/vendor_perl/Apache/Ocsinventory/Server/System.pm (or another dir there OCS-Server is installed):
# select(LOG);
# $|=1;
And restart web-server.
P.S.: OCS logs will continue work.
Same problem here, OTRS 4 patch 7+OCSInventory 2.1.2 in same server (Ubuntu 12.04), random index.pl download.

I've applyed your solution and now works fine.

Thanks!
tbote
Znuny newbie
Posts: 14
Joined: 18 Apr 2015, 18:57
Znuny Version: 4 patch 7

Re: [SOLVED]index.pl is being downloaded

Post by tbote »

Well...not really solved, the problem is still there, I've was testing deeper and the problem with index.pl continues.

I'll try disabling mod_perl...
Post Reply