Internal Server Error while accessing Index.pl

Moderator: crythias

Locked
hrban
Znuny advanced
Posts: 109
Joined: 06 Sep 2013, 10:56
Znuny Version: 3.2.10
Real Name: Chris
Company: bitc

Internal Server Error while accessing Index.pl

Post by hrban »

Hello,

we have 2 Systems with OTRS 4.0.10 (Ubuntu/MySql).
Yesterday we've experienced a strange Failure on one of these Systems. It worked propperly and with no Errors. I've answered a Ticket and ended in a "500 Internal Server Error". Fun thing is - the Error only appears while trying to Login/work on "index.pl". Customer.pl works fine.
After 2 Hours of trying i thought i've solved the problem - i had set the User Rights on the Agent-Skin CSS-Cache Folder and Files. Afterwards it worked like before - no Errors.

I have to say we did NO updates, upgrades, system changes, db changes since June 2nd. So i'm still confused why this happened.


BUT my recent Problem is:

The second System worked fine till 8:30a.m. today - since 8:31a.m. i got an Internal Server Error while accessing the Index.pl. Customer.pl still works fine. We did no changes like on the other system since June 2nd. Everything's up to date, DB is reachable, User Rights are set but the Index.pl is still down.

We get following Error Message from OTRS and Apache Log (same Message appeared yesterday on the other system):


OTRS:

Code: Select all

[Fri Jun 17 09:44:43 2016][Error][Kernel::System::ObjectManager::_DieWithError][534] Kernel::System::Package does not declare its object dependencies!
Apache:

Code: Select all

[Fri Jun 17 09:44:43 2016] -e: 	(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs/Kernel/System/AuthSession/DB.pm line 583.
 
[Fri Jun 17 09:44:43.481355 2016] [:error] [pid 3422] Kernel::System::Package does not declare its object dependencies! at /opt/otrs/Kernel/System/ObjectManager.pm line 538.\n\tKernel::System::ObjectManager::_DieWithError('Kernel::System::ObjectManager=HASH(0x556ae7d683d0)', 'Error', 'Kernel::System::Package does not declare its object dependenc...') called at /opt/otrs/Kernel/System/ObjectManager.pm line 213\n\tKernel::System::ObjectManager::_ObjectBuild('Kernel::System::ObjectManager=HASH(0x556ae7d683d0)', 'Package', 'Kernel::System::Package') called at /opt/otrs/Kernel/System/ObjectManager.pm line 181\n\tKernel::System::ObjectManager::Get('Kernel::System::ObjectManager=HASH(0x556ae7d683d0)', 'Kernel::System::Package') called at /opt/otrs/Kernel/System/OTRSBusiness.pm line 818\n\tKernel::System::OTRSBusiness::_GetOTRSBusinessPackageFromRepository('Kernel::System::OTRSBusiness=HASH(0x556ae7d228f0)') called at /opt/otrs/Kernel/System/OTRSBusiness.pm line 105\n\tKernel::System::OTRSBusiness::OTRSBusinessIsInstalled('Kernel::System::OTRSBusiness=HASH(0x556ae7d228f0)') called at /opt/otrs//Kernel/Output/HTML/NotificationAgentOTRSBusiness.pm line 44\n\tKernel::Output::HTML::NotificationAgentOTRSBusiness::Run('Kernel::Output::HTML::NotificationAgentOTRSBusiness=HASH(0x55...', 'Type', 'Dashboard', 'Config', 'HASH(0x556ae92c1e20)') called at /opt/otrs/Kernel/Output/HTML/Layout.pm line 2774\n\tKernel::Output::HTML::Layout::NavigationBar('Kernel::Output::HTML::Layout=HASH(0x556ae91b8658)') called at /opt/otrs/Kernel/Modules/AgentDashboardCommon.pm line 728\n\tKernel::Modules::AgentDashboardCommon::Run('Kernel::Modules::AgentDashboard=HASH(0x556ae93deef0)') called at /opt/otrs/Kernel/System/Web/InterfaceAgent.pm line 996\n\tKernel::System::Web::InterfaceAgent::Run('Kernel::System::Web::InterfaceAgent=HASH(0x556ae7fc62f0)') called at /opt/otrs/bin/cgi-bin/index.pl line 41\n\tModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler('Apache2::RequestRec=SCALAR(0x556ae7dd1e00)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 206\n\teval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 206\n\tModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x556ae7fa2388)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 172\n\tModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x556ae7fa2388)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31\n\tModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x556ae7dd1e00)') called at -e line 0\n\teval {...} called at -e line 0\n
I've deleted the Cache, rebuilded Config, set permissions, checked if every dependency is where it should be. EVERYTHING is like it was before the error appeared. What causes this Problem and how can i solve this?

Thank you for every Help!!!!
hrban
Znuny advanced
Posts: 109
Joined: 06 Sep 2013, 10:56
Znuny Version: 3.2.10
Real Name: Chris
Company: bitc

Re: Internal Server Error while accessing Index.pl

Post by hrban »

Problem solved....

The "Package.pm" under $home/Kernel/System was corrupted but i don't understand why.
In the same directory there's a "Package.pm.save" - just renamed the save file to "Package.pm" and the corrupt file to "Package_COR.pm".

Afterwards a system reboot and everything was fine again.


would be interesting why the "Package.pm" was corrupted without any updates or whatever.......
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Internal Server Error while accessing Index.pl

Post by jojo »

did you installed or updated any OTRS modules?
"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
Locked