Hello,
OTRS was running for 2 days then slowed down to a crawl.
Now looking at the log in /var/log/httpd/error_log i h thousands of lines :
[Fri Oct 28 18:47:39 2011] -e: Use of uninitialized value $lines[-1] in length at /opt/otrs/Kernel/cpan-lib/Net/IMAP/Simple.pm line 1050.
[Fri Oct 28 18:47:39 2011] -e: Use of uninitialized value $lines[-1] in length at /opt/otrs/Kernel/cpan-lib/Net/IMAP/Simple.pm line 1050.
[Fri Oct 28 18:47:39 2011] -e: Use of uninitialized value $lines[-1] in length at /opt/otrs/Kernel/cpan-lib/Net/IMAP/Simple.pm line 1050.
[Fri Oct 28 18:47:39 2011] -e: Use of uninitialized value $lines[-1] in length at /opt/otrs/Kernel/cpan-lib/Net/IMAP/Simple.pm line 1050.
[Fri Oct 28 18:47:39 2011] -e: Use of uninitialized value $lines[-1] in length at /opt/otrs/Kernel/cpan-lib/Net/IMAP/Simple.pm line 1050.
[Fri Oct 28 18:47:39 2011] -e: Use of uninitialized value $lines[-1] in length at /opt/otrs/Kernel/cpan-lib/Net/IMAP/Simple.pm line 1050.
[Fri Oct 28 18:47:39 2011] -e: Use of uninitialized value $lines[-1] in length at /opt/otrs/Kernel/cpan-lib/Net/IMAP/Simple.pm line 1050.
[Fri Oct 28 18:47:39 2011] -e: Use of uninitialized value $lines[-1] in length at /opt/otrs/Kernel/cpan-lib/Net/IMAP/Simple.pm line 1050.
[Fri Oct 28 18:47:39 2011] -e: Use of uninitialized value $lines[-1] in length at /opt/otrs/Kernel/cpan-lib/Net/IMAP/Simple.pm line 1050.
about 50 of these lines a second. It made OTRS unusable
Looking at Simple.pm i see:
1042 sub _read_multiline {
1043 my ( $self, $sock, $count ) = @_;
1044
1045 my @lines;
1046 my $read_so_far = 0;
1047
1048 while ( $read_so_far < $count ) {
1049 push @lines, $sock->getline;
1050 $read_so_far += length( $lines[-1] );
1051 }
1052
1053 if ( $self->{debug} ) {
1054 for ( my $i = 0 ; $i < @lines ; $i++ ) {
1055 $self->_debug( caller, __LINE__, '_read_multiline', "[$i] $lines[$i]" );
1056 }
1057 }
1058
1059 return @lines;
1060 }
1061
My system is:
CentOS6
OTRS 3.0.11
64bit
anyone got any suggestions on how to fix this?
Is OTRS more stable on a different version of Centos? 5.6 maby?
[Solved]Error Use of uninitialized value $lines[-1]
Moderator: crythias
-
- Znuny newbie
- Posts: 16
- Joined: 29 Sep 2011, 18:03
- Znuny Version: 3.0.11
- Real Name: Dennis
- Company: BBH
[Solved]Error Use of uninitialized value $lines[-1]
Last edited by denniskn on 11 Nov 2011, 16:56, edited 1 time in total.
Dennis
OTRS 3.0.11 CentOS6 64Bit
OTRS 3.0.11 CentOS6 64Bit
Re: Error Use of uninitialized value $lines[-1]
CentOs 6.0 64bit / otrs 3.0.11 seems OK, we're not seeing the errors that you are.
You could try something like adding a line and try initializing the var might at least stop the error, just a thought.
my @lines;
my $lines;
or open Simple.pm and comment out the third line "use warnings;"
You could try something like adding a line and try initializing the var might at least stop the error, just a thought.
my @lines;
my $lines;
or open Simple.pm and comment out the third line "use warnings;"
CentOs 6.0 (64bit) / otrs 3.0.11
-
- Znuny newbie
- Posts: 16
- Joined: 29 Sep 2011, 18:03
- Znuny Version: 3.0.11
- Real Name: Dennis
- Company: BBH
Re: Error Use of uninitialized value $lines[-1]
Ended up just uninstalling and reinstalling.
Dennis
OTRS 3.0.11 CentOS6 64Bit
OTRS 3.0.11 CentOS6 64Bit