Internal server error

Moderator: crythias

Locked
tsaler
Znuny newbie
Posts: 8
Joined: 27 Jan 2015, 07:52
Znuny Version: 4.0.5
Real Name: Alexey
Company: Jilfond

Internal server error

Post by tsaler »

Sorry for my bad English:)
After upgrading 3.3 OTRS to the 4.0.5 i have problems.
I got INSTERNAL SERVER ERROR after auth.
Then i upgraded ITSM and another packages. And it worked. BUUUUUT
In the ticket screen anything i do(closing ticket, changing priority, setting owner...) following to the INTERNAL SERVER ERROR screen!
tickets closes and owner sets, but this screen makes me very angry

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.22 (CentOS) mod_rpaf/0.6 mod_fcgid/2.3.9 PHP/5.3.26 mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Internal server error

Post by reneeb »

tsaler wrote:[...]
More information about this error may be available in the server error log.
What does the error log say?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
tsaler
Znuny newbie
Posts: 8
Joined: 27 Jan 2015, 07:52
Znuny Version: 4.0.5
Real Name: Alexey
Company: Jilfond

Re: Internal server error

Post by tsaler »

reneeb wrote:
tsaler wrote:[...]
More information about this error may be available in the server error log.
What does the error log say?
ERROR: OTRS-CGI-10 Perl: 5.10.1 OS: linux Time: Tue Jan 27 09:45:02 2015

Message: The field configuration is invalid

Traceback (26596):
Module: Kernel::System::DynamicField::Backend::PossibleValuesGet Line: 2079
Module: Kernel::Modules::AgentTicketActionCommon::Run Line: 1080
Module: Kernel::System::Web::InterfaceAgent::Run Line: 986
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 41
Module: (eval) (v1.99) Line: 204
Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31

[Tue Jan 27 09:45:02 2015] -e: (in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/FS.pm line 547.
[Tue Jan 27 09:45:02 2015] -e: (in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/EventHandler.pm line 170.
tsaler
Znuny newbie
Posts: 8
Joined: 27 Jan 2015, 07:52
Znuny Version: 4.0.5
Real Name: Alexey
Company: Jilfond

Re: Internal server error

Post by tsaler »

Any ideas on my problem?
tsaler
Znuny newbie
Posts: 8
Joined: 27 Jan 2015, 07:52
Znuny Version: 4.0.5
Real Name: Alexey
Company: Jilfond

Re: Internal server error

Post by tsaler »

Somebody, please...(((
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: Internal server error

Post by EXG133 »

tsaler wrote:
reneeb wrote:
tsaler wrote:[...]
More information about this error may be available in the server error log.
What does the error log say?
ERROR: OTRS-CGI-10 Perl: 5.10.1 OS: linux Time: Tue Jan 27 09:45:02 2015

Message: The field configuration is invalid

Traceback (26596):
Module: Kernel::System::DynamicField::Backend::PossibleValuesGet Line: 2079
Module: Kernel::Modules::AgentTicketActionCommon::Run Line: 1080
Module: Kernel::System::Web::InterfaceAgent::Run Line: 986
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 41
Module: (eval) (v1.99) Line: 204
Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31

[Tue Jan 27 09:45:02 2015] -e: (in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/FS.pm line 547.
[Tue Jan 27 09:45:02 2015] -e: (in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/EventHandler.pm line 170.
It looks like you have corrupt Dynamic Field configuration. This is the file generating the error: /opt/otrs/Kernel/System/DynamicField/Backend.pm

This is the part of the code:

# check DynamicFieldConfig (general)
if ( !IsHashRefWithData( $Param{DynamicFieldConfig} ) ) {
$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'error',
Message => "The field configuration is invalid",
);
return;
}

If possible check all your Dynamic Fields.
tsaler
Znuny newbie
Posts: 8
Joined: 27 Jan 2015, 07:52
Znuny Version: 4.0.5
Real Name: Alexey
Company: Jilfond

Re: Internal server error

Post by tsaler »

EXG133 wrote: If possible check all your Dynamic Fields.
I didn't add any Dynamic fields....
But I've checked all config in the web interface, and all dynamic fields configurations are dafault :(
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Internal server error

Post by reneeb »

Can you post the configuraton as stored in the database? And with version of YAML or YAML::XS do you have?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
tsaler
Znuny newbie
Posts: 8
Joined: 27 Jan 2015, 07:52
Znuny Version: 4.0.5
Real Name: Alexey
Company: Jilfond

Re: Internal server error

Post by tsaler »

reneeb wrote:Can you post the configuraton as stored in the database? And with version of YAML or YAML::XS do you have?
YAML::XS.........................ok (v0.38)
YAML.............................ok (v1.09)

What do you mean as "the configuraton as stored in the database"? I don't get it :(
Do you mean file config.pm?
Or maybe ZZZAuto.pm

Thanks
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Internal server error

Post by reneeb »

No, dynamic fields are stored in the database. Do a

Code: Select all

select * from dynamic_field;
in your database client.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
tsaler
Znuny newbie
Posts: 8
Joined: 27 Jan 2015, 07:52
Znuny Version: 4.0.5
Real Name: Alexey
Company: Jilfond

Re: Internal server error

Post by tsaler »

reneeb wrote:No, dynamic fields are stored in the database. Do a

Code: Select all

select * from dynamic_field;
in your database client.
mysql> select * from dynamic_field;
+----+-----------------------------+-----------------------------+-------------+------------+-------------+---------------------------------------------------------------------------------------------------------+----------+---------------------+-----------+---------------------+-----------+----------------+
| id | name | label | field_order | field_type | object_type | config | valid_id | create_time | create_by | change_time | change_by | internal_field |
+----+-----------------------------+-----------------------------+-------------+ ------------+-------------+----------------------------------------------------- ----------------------------------------------------+----------+---------------- -----+-----------+---------------------+-----------+----------------+
| 1 | ProcessManagementProcessID | ProcessManagementProcessID | 1 | Text | Ticket | ---
DefaultValue: ''
Link: ''
RegExList: []
| 3 | 2013-02 -02 13:53:15 | 1 | 2015-01-27 17:13:57 | 2 | 1 |
| 2 | ProcessManagementActivityID | ProcessManagementActivityID | 2 | Text | Ticket | ---
DefaultValue: ''
Link: ''
RegExList: []
| 3 | 2013-02 -02 13:53:15 | 1 | 2015-01-27 17:14:04 | 2 | 1 |
| 8 | MasterSlave | Master Ticket | 3 | Dropdown | Ticket | ---
DefaultValue: ''
PossibleNone: 1
PossibleValues:
Master: New Master Ticket
TranslatableValues: 1
| 1 | 2015-01-28 18:09:37 | 1 | 2015-01-29 09:10:36 | 19 | 1 |
+----+-----------------------------+-----------------------------+-------------+ ------------+-------------+----------------------------------------------------- ----------------------------------------------------+----------+---------------- -----+-----------+---------------------+-----------+----------------+
3 rows in set (0.00 sec)
tsaler
Znuny newbie
Posts: 8
Joined: 27 Jan 2015, 07:52
Znuny Version: 4.0.5
Real Name: Alexey
Company: Jilfond

Re: Internal server error

Post by tsaler »

Still have same problem. Anybody help,please
joliverITI
Znuny newbie
Posts: 1
Joined: 22 Apr 2015, 22:06
Znuny Version: 4.0.7
Real Name: James Oliver
Company: Intermap Technologies, Inc

Re: Internal server error

Post by joliverITI »

Alexey - I ran into this same problem when upgrading from 3.3.12 to 4.0.7 and ended up needing to uninstall all ITSM extensions and reinstalling them to make the problem you referenced go away. I used the otrs.PackageManager.pl script from the command line to install the ITMS-4.0.7 package rather than doing it from the web console and noticed that it created a couple of foreign keys in the database that were missing when I performed the upgrade of the OTRS service.

This thread pointed me in the right direction: viewtopic.php?t=27744 (thread is in German).
Locked