[SOLVED] OTRS 4: AgentTicketPending = Internal Server Error

Moderator: crythias

Post Reply
sergioma
Znuny newbie
Posts: 19
Joined: 09 Dec 2014, 16:01
Znuny Version: 4.0.2

[SOLVED] OTRS 4: AgentTicketPending = Internal Server Error

Post by sergioma »

Hi,

I upgraded from 3.3.10 to 4.0.2 in CentOS 6. All work right but I have problem with AgentTicketPending, AgentTicketPhoneOutbound and AgentTicketPhoneInbound in the view AgentTicketZoom, when I try used I get the next problem:
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.15 (CentOS) Server at ******************* Port 80
I prove to reinstall and I have the same problem:

Code: Select all

rpm -Uvh --force otrs-4.0.2-01.noarch.rpm
and I try set the permission:

Code: Select all

bin/otrs.SetPermissions.pl --web-group=apache
and rebuild the configuration:

Code: Select all

su -c "bin/otrs.RebuildConfig.pl" -s /bin/bash otrs
But nothing work. Anyone have the same problem? I wish anyone can help me. Thanks.
Last edited by sergioma on 24 Feb 2015, 14:25, edited 4 times in total.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by RStraub »

Please post us the apache error log.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
sergioma
Znuny newbie
Posts: 19
Joined: 09 Dec 2014, 16:01
Znuny Version: 4.0.2

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by sergioma »

RStraub wrote:Please post us the apache error log.
The error_log:

Code: Select all

[Tue Dec 16 11:31:46 2014] -e: Malformed UTF-8 character (unexpected end of string) in substitution (s///) at /opt/otrs//Kernel/Config/Defaults.pm line 1970.
[Tue Dec 16 11:31:46 2014] -e: Malformed UTF-8 character (unexpected end of string) in substitution (s///) at /opt/otrs/Kernel/cpan-lib/JSON/PP.pm line 468.
[Tue Dec 16 11:31:46 2014] -e: Malformed UTF-8 character (unexpected end of string) in substitution (s///) at /opt/otrs/Kernel/cpan-lib/JSON/PP.pm line 470.
[Tue Dec 16 11:31:47 2014] -e:  (in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.
[Tue Dec 16 11:31:47 2014] [error] Malformed UTF-8 character (fatal) at /opt/otrs/Kernel/cpan-lib/JSON/PP.pm line 468.\n\t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.\n
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by RStraub »

Which DB with which charset do you use?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
sergioma
Znuny newbie
Posts: 19
Joined: 09 Dec 2014, 16:01
Znuny Version: 4.0.2

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by sergioma »

RStraub wrote:Which DB with which charset do you use?
I think UTF8:

Code: Select all

mysql> show variables like "character_set_database";
+------------------------+-------+
| Variable_name          | Value |
+------------------------+-------+
| character_set_database | utf8  |
+------------------------+-------+
1 row in set (0.00 sec)

mysql> show variables like "collation_database";
+--------------------+-----------------+
| Variable_name      | Value           |
+--------------------+-----------------+
| collation_database | utf8_general_ci |
+--------------------+-----------------+
1 row in set (0.00 sec)
Jalke
Znuny newbie
Posts: 6
Joined: 25 Sep 2014, 13:39
Znuny Version: 3.3.6

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by Jalke »

We have the same problem. Pending, merge, new phone ticket, note ... well, almost everything that should open some kind of form gives an internal server error message instead.
OTRS 4
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: OTRS 4: AgentTicketPending = Internal Server Error

Post by reneeb »

What do the logs say? In which environment does the OTRS run (Apache? nginx? mod_perl? CGI? FastCGI?)
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
sergioma
Znuny newbie
Posts: 19
Joined: 09 Dec 2014, 16:01
Znuny Version: 4.0.2

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by sergioma »

reneeb wrote:What do the logs say? In which environment does the OTRS run (Apache? nginx? mod_perl? CGI? FastCGI?)
I use Apache 2.2.15 with mod_perl 2.0.8

Code: Select all

DOCUMENT_ROOT	/var/www/html
GATEWAY_INTERFACE	CGI/1.1
HTTP_CONNECTION	keep-alive
HTTP_HOST	*****************
MOD_PERL	mod_perl/2.0.8
MOD_PERL_API_VERSION	2
PATH	/sbin:/usr/sbin:/bin:/usr/bin
REMOTE_ADDR	*****************
SCRIPT_FILENAME	/opt/otrs/bin/cgi-bin/index.pl
SERVER_ADDR	*****************
SERVER_ADMIN	*****************
SERVER_NAME	*****************
SERVER_PORT	80
SERVER_PROTOCOL	HTTP/1.1
SERVER_SIGNATURE	<address>Apache/2.2.15 (CentOS) Server at ***************** 80</address>
SERVER_SOFTWARE	Apache/2.2.15 (CentOS)
In the Service Center is all correct, all in green.
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: OTRS 4: AgentTicketPending = Internal Server Error

Post by reneeb »

@sergioma: Did you try to run it with JSON::XS? The error messages come from JSON::PP...

Please try to install the module, restart the apache and check AgentTicketPending. If there is still an error, please post the logs.
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
sergioma
Znuny newbie
Posts: 19
Joined: 09 Dec 2014, 16:01
Znuny Version: 4.0.2

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by sergioma »

reneeb wrote:@sergioma: Did you try to run it with JSON::XS? The error messages come from JSON::PP...

Please try to installed the module, restart the apache and check AgentTicketPending. If there is still an error, please post the logs.
I have install the JSON:XS. How can I know if it's activate? or How can I change from PP to XS?

Code: Select all

# /opt/otrs/bin/otrs.CheckModules.pl
  o Apache2::Reload..................ok (v0.12)
  o Archive::Tar.....................ok (v1.58)
  o Archive::Zip.....................ok (v1.30)
  o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
  o Crypt::SSLeay....................ok (v0.57)
  o Date::Format.....................ok (v2.22)
  o DBI..............................ok (v1.609)
  o DBD::mysql.......................ok (v4.013)
  o DBD::ODBC........................Not installed! (optional - Required to connect to a MS-SQL database.)
  o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................Not installed! Use: 'yum install "perl(DBD::Pg)"' (optional - Required to connect to a PostgreSQL database.)
  o Encode::HanExtra.................ok (v0.23)
  o GD...............................ok (v2.44)
    o GD::Text.......................ok (v0.86)
    o GD::Graph......................ok (v1.44)
  o IO::Socket::SSL..................ok (v1.31)
  o JSON::XS.........................ok (v2.27)
  o List::Util::XS...................ok (v1.21)
  o LWP::UserAgent...................ok (v6.06)
  o Mail::IMAPClient.................ok (v3.34)
    o IO::Socket::SSL................ok (v1.31)
  o ModPerl::Util....................ok (v2.000008)
  o Net::DNS.........................ok (v0.65)
  o Net::LDAP........................ok (v0.40)
  o PDF::API2........................ok (v2.021)
  o Template.........................ok (v2.22)
  o Template::Stash::XS..............ok (undef)
  o Text::CSV_XS.....................ok (v0.85)
  o Time::HiRes......................ok (v1.9721)
  o Time::Piece......................ok (v1.15)
  o XML::Parser......................ok (v2.36)
  o YAML::XS.........................ok (v0.38)
sergioma
Znuny newbie
Posts: 19
Joined: 09 Dec 2014, 16:01
Znuny Version: 4.0.2

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by sergioma »

I had done:

Code: Select all

# perl -MCPAN -e shell
cpan> force install JSON::XS
And the error isn't resolved. I 'm going crazy with this problem :(
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by crythias »

we still haven't seen anything /var/log/apache2/error.log
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
sergioma
Znuny newbie
Posts: 19
Joined: 09 Dec 2014, 16:01
Znuny Version: 4.0.2

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by sergioma »

crythias wrote:we still haven't seen anything /var/log/apache2/error.log
I posted in my second entry:
viewtopic.php?p=110829#p110619
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by crythias »

viewtopic.php?t=25882

Apparently this appears to be a poorly encoded *something* in the database that JSON can't parse as UTF8
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
sergioma
Znuny newbie
Posts: 19
Joined: 09 Dec 2014, 16:01
Znuny Version: 4.0.2

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by sergioma »

Now my apache error_log have changed:

Code: Select all

[Thu Dec 18 16:51:22 2014] -e: Malformed UTF-8 character (unexpected end of string) in substitution (s///) at /opt/otrs//Kernel/Config/Defaults.pm line 1970.
[Thu Dec 18 16:51:22 2014] -e:  (in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.
[Thu Dec 18 16:51:22 2014] [error] malformed or illegal unicode character in string [\xf3n], cannot convert to JSON at /opt/otrs//Kernel/System/JSON.pm line 97.\n\t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/DB.pm line 583.\n
After reinstall JSON::XS

EDIT:
The line 583 in DB.pm is:
my $DBObject = $Kernel::OM->Get('Kernel::System::DB');

and line 97 JSON.pm is:
my $JSONEncoded = $JSONObject->encode( $Param{Data} ) || '""';
sergioma
Znuny newbie
Posts: 19
Joined: 09 Dec 2014, 16:01
Znuny Version: 4.0.2

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by sergioma »

anyone can help me with this. I'm stopped :(
TobiKri
Znuny newbie
Posts: 6
Joined: 29 Aug 2011, 17:46
Znuny Version: 3.3.8

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by TobiKri »

We have same problem with external customer Data (MSSQL 2008) FreeTDS 8.0, OTRS 4.0.5.
Is there any way to open a bug ticket?
NiceTeam
Znuny newbie
Posts: 1
Joined: 16 Feb 2015, 11:28
Znuny Version: 4.0.5

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by NiceTeam »

Same issue here on 4.0.5, impossible to reply or forward any tickets

Code: Select all

[error] malformed or illegal unicode character in string [\xec squa], cannot convert to JSON at /opt/otrs//Kernel/System/JSON.pm line 97.\n\t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs//Kernel/System/AuthSession/FS.pm line 547.\n
This is definitely a critical and annoying bug ...
sergioma
Znuny newbie
Posts: 19
Joined: 09 Dec 2014, 16:01
Znuny Version: 4.0.2

Re: OTRS 4: AgentTicketPending = Internal Server Error

Post by sergioma »

I could solve the problem. The problem was in the Calendar characters. In the Upgrade from 3 to 4 some character in the Calendar had some rare symbols. I changed the text and now work correctly.
ugob
Znuny newbie
Posts: 52
Joined: 29 Jul 2011, 22:15
Znuny Version: 3.0

Re: [SOLVED] OTRS 4: AgentTicketPending = Internal Server Error

Post by ugob »

Thanks a lot for your solution! :)
Post Reply