Error randomly appearing after upgrade to OTRS 3.x

Moderator: crythias

Locked
mducharme
Znuny newbie
Posts: 8
Joined: 14 Jul 2010, 18:00
Znuny Version: 2.4.7

Error randomly appearing after upgrade to OTRS 3.x

Post by mducharme »

Hello,

We have upgraded to OTRS 3.x and, while everything works, we are randomly getting an error message, it is quite annoying. It seems to come up when doing any operation - if we try that operation again though it seems to work, though occasionally we have gotten the error twice in a row.

Code: Select all

Software error:

Attempt to reload /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm aborted.
Compilation failed in require at /opt/otrs//Kernel/Config/Defaults.pm line 2137.

For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.
It appears from doing something as simple as viewing the dashboard or adding a note to a ticket, or even just viewing a note, where the error message appears instead of the ticket note. If we try viewing the same note again it works with no error, or if we try viewing the dashboard again it works with no error, but then the error comes up again a bit later on something else..

How can we fix this?
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Error randomly appearing after upgrade to OTRS 3.x

Post by Wolfgangf »

run

Code: Select all

perl -c /opt/otrs//Kernel/Config/Defaults.pm 
and see what's the problem
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
kmdot
Znuny newbie
Posts: 68
Joined: 16 Dec 2010, 18:46
Znuny Version: 3

[SOLVED]Re: Error randomly appearing after upgrade to OTRS 3

Post by kmdot »

I have this error too! HELP

perl -c /opt/otrs/Kernel/Config/Defaults.pm
/opt/otrs/Kernel/Config/Defaults.pm syntax OK

perl -c /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm
/opt/otrs/Kernel/Config/Files/ZZZAAuto.pm syntax OK

perl -c /opt/otrs//Kernel/Config/Defaults.pm
/opt/otrs//Kernel/Config/Defaults.pm syntax OK

any ideas?

UPDATE

Here is the code from that block

# if require is usable, use it (because of better performance,
# if not, use do to do it on runtime)
if ( $Require ) {
##LINE 2137## if (! require $File ) {
die "ERROR: $!\n";
}
}
else {
if (! do $File ) {
die "ERROR: $!\n";
}
}

LINE 2137 IS THE SECOND IF STATEMENT
mducharme
Znuny newbie
Posts: 8
Joined: 14 Jul 2010, 18:00
Znuny Version: 2.4.7

Re: Error randomly appearing after upgrade to OTRS 3.x

Post by mducharme »

Wolfgangf wrote:run

Code: Select all

perl -c /opt/otrs//Kernel/Config/Defaults.pm 
and see what's the problem
I did this and it just says "syntax OK", how does that tell me what the problem is?
kmdot
Znuny newbie
Posts: 68
Joined: 16 Dec 2010, 18:46
Znuny Version: 3

[SOLVED] Re: Error randomly appearing after upgrade to OTRS

Post by kmdot »

I stopped OTRS, Perl, Cron, Apache, etc, and started them all again and all was well
ekungurov
Znuny newbie
Posts: 1
Joined: 13 Jan 2011, 08:28
Znuny Version: 3.0.x

Re: Error randomly appearing after upgrade to OTRS 3.x

Post by ekungurov »

Same here after upgrading from 3.0.2 to 3.0.4. Hasn't report a bug, will investigate at re-ocurrence.
cjseriy
Znuny newbie
Posts: 27
Joined: 05 Jan 2011, 22:03
Znuny Version: 3.04

Re: Error randomly appearing after upgrade to OTRS 3.x

Post by cjseriy »

Have the same error. Did you find a solution?
OTRS 3.0.4, FreeBSD, using not for IT but as a service desk only to effectively process customer's requests.
ckullmann
Znuny newbie
Posts: 3
Joined: 08 Jun 2009, 15:00
Znuny Version: 3.0.5

Re: Error randomly appearing after upgrade to OTRS 3.x

Post by ckullmann »

Usually not one to hijack other peoples threads, i think i will make an exception in this case.
We just upgraded from 2.3.4 to 3.0.5. So far everything was running smooth but i just added another freetextkey with some 20 datasets as freetextvalues.
After adding about 18 datasets said error started to appear so i guess the reason is some kind of memory issue.

I am saying "some kind of" as obviously the "in your face" memory error message is missing and i am by no means any kind of perl expert.
But the behavior is similar to an "i'm running low on memory", especially since said scripts all seem to be in order and did not produce any problems so far.

So anyone coming up with a solution i would be grateful ... and hopefully my input helps.

Kind Regards
Christian
MasterLee
Znuny newbie
Posts: 4
Joined: 01 Mar 2011, 16:02
Znuny Version: 3.0.5

Re: Error randomly appearing after upgrade to OTRS 3.x

Post by MasterLee »

Hi, Christian:

Sorry I couldn't answer your question. However, Since I got problem when I upgraded from 2.4.4 to 3.0.5, I just wondering if you can help me a bit. My question is, after I upgraded to new version, any thing relate to 'Customer' keep hanging. No matter what I click 'Customers' menu or 'Customer' in Admin menu or Status View in Ticket or click any ticket in DashBoard, they all keep hanging.

I tried to find solution for days and I found out, if I remove 'Customer_User_ID' entries in Ticket table for all my old tickets, at least I can click ticket in Dashboard and Status View in Tickets. Still, all the thing relate to 'Customer' not work.

Could you please give me some hint if you know about this. Or could you please let me know your successful procedures to upgrade your OTRS system, please...
Locked