Invalid argument at <PATH>/Kernel/System/Log.pm line 132.

Hi, I've been trying to install the latest version of OTRS on my Debian (stable) system and I appear to have hit a showstopper. I've managed to tinker with it to get the installer working, and it's all configured and appears to be working fine, but as soon as you try to login on the login page with the default root details you get hit with an Error 500 and apache drops the following to the error log: Invalid argument at /<my path>/otrs/bin/cgi-bin/../../Kernel/System/Log.pm line 132. I've looked but I'm afraid my Perl isn't advanced enough to see whats causing the problem - the -> way of doing things just makes me go crosseyed as it is. I've checked the syntax of index.pl, and it's not reporting any errors, and I'm pretty sure all the required perl modules are installed - AND I've dug around on the archives but not found anything relevant. For easy reference, the block of code around line 132 is: # -- # write shm cache log # -- if ($Priority !~ /debug/i && $Self->{IPC}) { $Priority = lc($Priority); my $Data = localtime().";;$Priority;;$Self->{LogPrefix};;$Subroutine2;;$Line1;;$Message ;;\n"; my $String = $Self->GetLog(); shmwrite($Self->{Key}, $Data.$String, 0, $Self->{IPCSize}) || die $!; } Line 132 is the last line before the closing brace. Any thoughts on what could be causing this? What exactly is this block of code trying to do (this may help me troubleshoot the issue by myself)? Regards, Phil

I thought I might have worked around the issue by changing the Auth type to
DB and doing a hack job by removing the 'or die' from the end of the Log.pm
lines causing me trouble, but the system still doesn't seem quite right -
maybe Im missing the point here somewhere :|
That's ignoring the fact that it looks a bit over complex :/
Any thoughts appreciated.
Phil
----- Original Message -----
From: "Phillip Baker"
Hi,
I've been trying to install the latest version of OTRS on my Debian (stable) system and I appear to have hit a showstopper.
I've managed to tinker with it to get the installer working, and it's all configured and appears to be working fine, but as soon as you try to login on the login page with the default root details you get hit with an Error 500 and apache drops the following to the error log:
Invalid argument at /<my path>/otrs/bin/cgi-bin/../../Kernel/System/Log.pm line 132.
I've looked but I'm afraid my Perl isn't advanced enough to see whats causing the problem - the -> way of doing things just makes me go crosseyed as it is.
I've checked the syntax of index.pl, and it's not reporting any errors, and I'm pretty sure all the required perl modules are installed - AND I've dug around on the archives but not found anything relevant.
For easy reference, the block of code around line 132 is:
# -- # write shm cache log # -- if ($Priority !~ /debug/i && $Self->{IPC}) { $Priority = lc($Priority); my $Data =
localtime().";;$Priority;;$Self->{LogPrefix};;$Subroutine2;;$Line1;;$Message
;;\n"; my $String = $Self->GetLog(); shmwrite($Self->{Key}, $Data.$String, 0, $Self->{IPCSize}) || die $!; }
Line 132 is the last line before the closing brace.
Any thoughts on what could be causing this? What exactly is this block of code trying to do (this may help me troubleshoot the issue by myself)?
Regards, Phil
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Hi Phil, On Tue, Aug 26, 2003 at 02:40:08AM +0100, Phillip Baker wrote:
I thought I might have worked around the issue by changing the Auth type to DB and doing a hack job by removing the 'or die' from the end of the Log.pm lines causing me trouble, but the system still doesn't seem quite right - maybe Im missing the point here somewhere :|
The stuff is for IPC (shared memory). We do need mur info from you. Perl, Kernel and OTRS version. Please go to http://bugs.otrs.org/ and create a bug report. Thanks! :)
Phil
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- "Security is a process, not a product." - Bruce Schneier

It's possible that the shared memory stuff isn't working due to my secured
kernel - I've got openwall on my 2.2 kernel on this box which is probably
messing with things.
It seems to work now, but I'm not getting any log events at all despite
changing the log type - oh well ;)
Still want me to file a bug report?
Regards,
Phillip Baker
LC Host Administrator
phil@lchost.co.uk
----- Original Message -----
From: "Martin Edenhofer"
Hi Phil,
On Tue, Aug 26, 2003 at 02:40:08AM +0100, Phillip Baker wrote:
I thought I might have worked around the issue by changing the Auth type to DB and doing a hack job by removing the 'or die' from the end of the Log.pm lines causing me trouble, but the system still doesn't seem quite right - maybe Im missing the point here somewhere :|
The stuff is for IPC (shared memory). We do need mur info from you.
Perl, Kernel and OTRS version. Please go to http://bugs.otrs.org/ and create a bug report. Thanks! :)
Phil
Martin
-- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- "Security is a process, not a product." - Bruce Schneier
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Hi Phillip, On Wed, Aug 27, 2003 at 08:16:07PM +0100, Phillip Baker, Low Cost Host wrote:
It's possible that the shared memory stuff isn't working due to my secured kernel - I've got openwall on my 2.2 kernel on this box which is probably messing with things.
It seems to work now, but I'm not getting any log events at all despite changing the log type - oh well ;)
Still want me to file a bug report?
Just if you want the IPC stuff running on your system! ,-) But I think you can answer it by your self! .-)
Regards, Phillip Baker LC Host Administrator
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- "There are two major products that come out of Berkeley: LSD and Unix. We don't believe this to be a coincidence." -- Jeremy S. Anderson
participants (3)
-
Martin Edenhofer
-
Phillip Baker
-
Phillip Baker, Low Cost Host