This is just a guess but it may have had something to do with the fact that 32000 is not a multiple of 1024. 32 * 1024 = 32768
Again, just a guess.

Rory

Support my 365 Challenge in aid of the Irish Cancer Society

www.365challenge.ie


2009/8/18 Lev Davidovich <l.davidovich@yahoo.co.uk>
Thank you Shawn -following your hint I added the line
 
"$Self-{'LogSystemCacheSize'} = 4*1024;"
 
which I copied from Config/Defaults.pm
 

# system log cache size for admin system log (default 4k)

# Note: use bin/CleanUp.pl before you change this

# $Self->{'LogSystemCacheSize'} = 4*1024;

 
to Config.pm and OTRS is back - thank you so much !! :-)
 
As you can see the relevant line is commented out in Defaults.pm and there is a note to use bin/CleanUp.pl before changing the parameter - can anyone shed any further light on this. And yes - on why the whole system came crashing down when all I did originally was change the parameter in the Admin sysconfig from 4096 to 32000???!!


From: Lev Davidovich <l.davidovich@yahoo.co.uk>
To: User questions and discussions about OTRS. <otrs@otrs.org>
Sent: Tuesday, 18 August, 2009 10:09:33

Subject: Re: [otrs] Software error message "Invalid argument at /opt/otrs/bi n/cgi-bin/../../Kernel/System/Log.pm line 83, <PRODUCT> line 4."

Dear Shawn

 

In response to your point on the "SSH" thread, re: why I want to change the Kernel/Config/Files/ZZZAuto.pm file, I will refer you to the following threads:

 

1)      "Software error message "Invalid argument at /opt/otrs/bi n/cgi-bin/../../Kernel/System/Log.pm line 83, <PRODUCT> line 4",

2)      “remove the shared memory segment and rebooting OTRS” and

3)      “System Log”.

 

To briefly recap, I changed the value of the "LogSystemCacheSize" parameter in the “Core::Log” sub-group of the Framework group of Sysconfig in the Admin interface from 4096 to 32000. I was told on this forum that this would allow me to see more of my system log. Ever since then, we have been unable to log in to OTRS and are confronted with the above error message ("Software error message "Invalid argument at /opt/otrs/bi n/cgi-bin/../../Kernel/System/Log.pm line 83, <PRODUCT> line 4", ) whenever we try to.

 

LQ Marshall then pointed out that admin control panel changes are stored in the “ZZZAuto.pm” file so if I could remove the line in the file relating to the LogSystemCacheSize change I might be able to have OTRS working again.

 

I decided to test this on the native version of OTRS on my Windows PC. I changed the value of the LogModule::LogFile::Date: parameter from “no” to “yes”, updated Sysconfig and logged out of OTRS. I then logged in to OTRS to check that the parameter was now “Yes” and indeed it was. I logged out again. I then went into “Kernel/Config/Files/ZZZAuto.pm” and commented out the line “$Self->{'LogModule::LogFile::Date'} =  '1';”. I saved the file, closed it and logged back into OTRS. I went into the “Core:Log” subgroup of the Framework group of the Sysconfig in the Admin interface and, sure enough, the LogModule::LogFile::Date: parameter had reverted back to “No”.

 

So clearly editing out the change made in Sysconfig from the  “ZZZAuto.pm” file DID cause that parameter to revert to the default defined in the “ZZZAAuto.pm” file.

 

Now are you saying that this is not going to work for the "LogSystemCacheSize" parameter in the version of OTRS (2.3) on our Apache server, once I have been able to SSH the changes to the “ZZZAAuto.pm” file?

 

 If so, please inform me how to make the changes I need to Kernel/Config.pm and I will be forever grateful to you.

 

Best

 

Lev

 

 


--------------------------------------------------------------------------------
From: Lev Davidovich <l.davidovich@yahoo.co.uk>
To: User questions and discussions about OTRS. <otrs@otrs.org>
Sent: Monday, 17 August, 2009 9:49:03
Subject: Re: [otrs] Software error message "Invalid argument at /opt/otrs/bi n/cgi-bin/../../Kernel/System/Log.pm line 83, <PRODUCT> line 4."


Thanks.
 
Do you mean  I should download the file, edit the downloaded file using an editor, and then upload the file using SSH from the command line (or do I need an SSH client)?

 


--------------------------------------------------------------------------------
From: Michiel Beijen <michiel@beefreeit.nl>
To: User questions and discussions about OTRS. <otrs@otrs.org>
Sent: Monday, 17 August, 2009 8:59:50
Subject: Re: [otrs] Software error message "Invalid argument at /opt/otrs/bi n/cgi-bin/../../Kernel/System/Log.pm line 83, <PRODUCT> line 4."

The file will have permissions set not allowing your FTP user to edit the file.
It would be best to use SSH or something and change the file from the command line with an editor.
--
Michiel Beijen
Software Consultant
+31 6 - 457 42 418
Bee Free IT + http://beefreeit.nl

 

On Mon, Aug 17, 2009 at 09:50, Lev Davidovich <l.davidovich@yahoo.co.uk> wrote:

Thanks a lot for giving me some hope LQ! :-)
 
I have found the ZZZAuto.pm file and it contains the line
 
$Self->{'LogSystemCacheSize'} =  '32000';
 

I am trying to delete this line but the server is not allowing me to upload the file using my ftp client. Any idea how I should go about this? Is it best to go through the command line

 

--------------------------------------------------------------------------------
From: LQ Marshall <qmarshall@inetspace.net>
To: User questions and discussions about OTRS. <otrs@otrs.org>
Sent: Saturday, 15 August, 2009 11:47:08
Subject: Re: [otrs] Software error message "Invalid argument at /opt/otrs/bi n/cgi-bin/../../Kernel/System/Log.pm line 83, <PRODUCT> line 4."


May be a day late and dollar short here but... Hand editting the file may be the solution here.

I believe that admin control panel changes are stored in the ZZZAuto.pm files? If correct you'd find  the LogModule change in the file.  Proper removing may address the problem.


--------------------------------------------------------------------------------
Lev Davidovich wrote:


Hi I would just like to recap the events of today in the hope that someone might be able to help me and also that it will be useful for anyone else running into the same problems.

 

I asked (wish I hadn’t now! ;-)) if there was a way of getting the System Log to display more logs than it does currently. Martin pointed out I should go to

 

Admin Interface -> SysConfig -> Framework -> Core::Log -> LogModule

 

Having established that I am using OTRS 2.3, which only stores 4k of sysLog data, Martin recommended I increase LogSystemCacheSize in the above module from 4k to (not above) 32k. So I clicked the element “LogSystemCacheSize” (which had been unclicked and greyed out) and changed its value from 4096 to 32000.

 

From this point on, we have been unable to log on to OTRS; every time we do so we get the “Software Error” message

 

 Invalid argument at /opt/otrs/bin/cgi-bin/../../Kernel/System/Log.pm line 83,

 

Martin suggested I look here

 

http://faq.otrs.org/otrs/public.pl?Action=PublicFAQ&ItemID=111

 

though this doesn’t make much sense to me. Is it worth trying to understand this document in order to solve this problem?

 

I found an old entry in the OTRS lists here

 

 http://lists.otrs.org/pipermail/otrs/2003-April/001346.html

 

which talks about removing the “shared memory segment” and then rebooting the server. Marco suggested I might be able to remove the shared memory segment “maybe with some sysinternals tool” – I am not sure whether to go down this road.

 

After further prompting from Marco and Michael we restarted the server, which is supposed to recreate a new shared memory segment. But this has had no effect – the same error message comes up.

 

Is there anything else we can do short of reinstalling OTRS?

 

Thank you for your patience

 

 


---------------------------------------------------------------------
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

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/




---------------------------------------------------------------------
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

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/