Fehler bei Ticketerstellung über GenericInterface

Hilfe zu OTRS Problemen aller Art
Post Reply
virusmoere
Znuny newbie
Posts: 4
Joined: 26 Mar 2012, 22:50
Znuny Version: 3.1.2

Fehler bei Ticketerstellung über GenericInterface

Post by virusmoere »

Hi,

ich versuche zur Zeit ein Ticket über das GenericInterface zu erstellen. Ich habe mit Hilfe der OTRS Dokumentation (http://doc.otrs.org/3.1/en/html/generic ... s-examples) ein Interface erstellt und versuche nun dieses mit dem Testscript aus der Dokumentation anzusprechen.

Bei der Ausführung des Scripts erscheint jedoch eine Fehlermeldung:

Code: Select all

syntax error at line 1, column 0, byte 0 at /usr/local/lib/perl/5.10.1/XML/Parser.pm line 187
Could not read input data at ./test.pl line 78
Anschließend habe ich es mit dem PHP SOAP Client versucht. Dieser funktionierte ebenfalls nicht.

Jetzt frage ich mich, ob es sich dabei um einen Fehler in OTRS oder meinem Webserver handelt...

Im Debuglog von OTRS erscheint die folgende Meldung sowohl beim Perlclient als auch beim PHP Client:

Code: Select all

Request Details
Communication sequence started (2012-03-28 00:59:12, debug)
$VAR1 = {
  'CONTENT_LENGTH' => '533',
  'CONTENT_TYPE' => 'text/xml; charset=utf-8',
  'DOCUMENT_ROOT' => '/home/otrs/otrs/var/httpd/htdocs',
  'DOCUMENT_URI' => '/otrs/nph-genericinterface.pl/Webservice/generic',
  'FCGI_ROLE' => 'RESPONDER',
  'GATEWAY_INTERFACE' => 'CGI/1.1',
  'HTTP_ACCEPT' => 'application/soap',
  'HTTP_CONNECTION' => 'TE, close',
  'HTTP_CONTENT_LENGTH' => '533',
  'HTTP_CONTENT_TYPE' => 'text/xml; charset=utf-8',
  'HTTP_HOST' => 'otrs.somedomain.com',
  'HTTP_SOAPACTION' => '"http://www.otrs.org/TicketConnector/#"',
  'HTTP_TE' => 'deflate,gzip;q=0.3',
  'HTTP_USER_AGENT' => 'SOAP::Lite/Perl/0.714',
  'QUERY_STRING' => '',
  'REMOTE_ADDR' => '1.2.3.4',
  'REMOTE_PORT' => '47536',
  'REQUEST_METHOD' => 'POST',
  'REQUEST_URI' => '/otrs/nph-genericinterface.pl/Webservice/generic',
  'SCRIPT_FILENAME' => '/home/otrs/otrs/bin/fcgi-bin/nph-genericinterface.pl',
  'SCRIPT_NAME' => '/otrs/nph-genericinterface.pl/Webservice/generic',
  'SERVER_ADDR' => '1.2.3.4',
  'SERVER_NAME' => 'otrs.somedomain.com',
  'SERVER_PORT' => '80',
  'SERVER_PROTOCOL' => 'HTTP/1.1',
  'SERVER_SOFTWARE' => 'nginx'
};
Could not read input data (2012-03-28 00:59:12, error)
No data provided
Request could not be processed (2012-03-28 00:59:12, error)
Could not read input data
Returning provider data to remote system (HTTP Code: 500) (2012-03-28 00:59:12, error)
Could not read input data
Im Webserverlog (nginx) das hier:

Code: Select all

2012/03/28 00:59:12 [error] 17371#0: *5137 FastCGI sent in stderr: "ERROR: GenericInterfaceProvider-10 Perl: 5.10.1 OS: linux Time: Wed Mar 28 00:59:12 2012

 Message: DebugLog error:  Summary: Could not read input data  Data   : No data provided.

 Traceback (9421):
   Module: Kernel::GenericInterface::Debugger::DebugLog (v1.17) Line: 241
   Module: Kernel::GenericInterface::Debugger::Error (v1.17) Line: 335
   Module: Kernel::GenericInterface::Transport::HTTP::SOAP::_Error (v1.41) Line: 667
   Module: Kernel::GenericInterface::Transport::HTTP::SOAP::ProviderProce" while reading response header from upstream, client: 1.2.3.4, server: otrs.somedomain.com, request: "POST /otrs/nph-genericinterface.pl/Webservice/generic HTTP/1.1", upstream: "fastcgi://unix:/var/run/otrs/otrs.somedomain.com.nph-genericinterface.pl.sock:", host: "otrs.somedomain.com"
2012/03/28 00:59:12 [error] 17371#0: *5137 FastCGI sent in stderr: "ssRequest (v1.41) Line: 175
   Module: Kernel::GenericInterface::Transport::ProviderProcessRequest (v1.12) Line: 144
   Module: Kernel::GenericInterface::Provider::Run (v1.22) Line: 187
   Module: /home/otrs/otrs/bin/fcgi-bin/nph-genericinterface.pl (v1.1) Line: 49

ERROR: GenericInterfaceProvider-10 Perl: 5.10.1 OS: linux Time: Wed Mar 28 00:59:12 2012

 Message: DebugLog error:  Summary: Request could not be processed  Data   : Could not read input data.

 Traceback (9421):
   Module: Kernel::Gen" while reading response header from upstream, client: 1.2.3.4, server: otrs.somedomain.com, request: "POST /otrs/nph-genericinterface.pl/Webservice/generic HTTP/1.1", upstream: "fastcgi://unix:/var/run/otrs/otrs.somedomain.com.nph-genericinterface.pl.sock:", host: "otrs.somedomain.com"
2012/03/28 00:59:12 [error] 17371#0: *5137 FastCGI sent in stderr: "ericInterface::Debugger::DebugLog (v1.17) Line: 241
   Module: Kernel::GenericInterface::Debugger::Error (v1.17) Line: 335
   Module: Kernel::GenericInterface::Provider::Run (v1.22) Line: 191
   Module: /home/otrs/otrs/bin/fcgi-bin/nph-genericinterface.pl (v1.1) Line: 49

ERROR: GenericInterfaceProvider-10 Perl: 5.10.1 OS: linux Time: Wed Mar 28 00:59:12 2012

 Message: DebugLog error:  Summary: Returning provider data to remote system (HTTP Code: 500)  Data   : Could not read input data.

 Tracebac" while reading response header from upstream, client: 1.2.3.4, server: otrs.somedomain.com, request: "POST /otrs/nph-genericinterface.pl/Webservice/generic HTTP/1.1", upstream: "fastcgi://unix:/var/run/otrs/otrs.somedomain.com.nph-genericinterface.pl.sock:", host: "otrs.somedomain.com"
2012/03/28 00:59:12 [error] 17371#0: *5137 FastCGI sent in stderr: "k (9421):
   Module: Kernel::GenericInterface::Debugger::DebugLog (v1.17) Line: 241
   Module: Kernel::GenericInterface::Transport::HTTP::SOAP::_Output (v1.41) Line: 752
   Module: Kernel::GenericInterface::Transport::HTTP::SOAP::ProviderGenerateResponse (v1.41) Line: 277
   Module: Kernel::GenericInterface::Transport::ProviderGenerateResponse (v1.12) Line: 191
   Module: Kernel::GenericInterface::Provider::_GenerateErrorResponse (v1.22) Line: 369
   Module: Kernel::GenericInterface::Provider::Run" while reading response header from upstream, client: 1.2.3.4, server: otrs.somedomain.com, request: "POST /otrs/nph-genericinterface.pl/Webservice/generic HTTP/1.1", upstream: "fastcgi://unix:/var/run/otrs/otrs.somedomain.com.nph-genericinterface.pl.sock:", host: "otrs.somedomain.com"
2012/03/28 00:59:12 [error] 17371#0: *5137 FastCGI sent in stderr: "(v1.22) Line: 196
   Module: /home/otrs/otrs/bin/fcgi-bin/nph-genericinterface.pl (v1.1) Line: 49" while reading response header from upstream, client: 1.2.3.4, server: otrs.somedomain.com, request: "POST /otrs/nph-genericinterface.pl/Webservice/generic HTTP/1.1", upstream: "fastcgi://unix:/var/run/otrs/otrs.somedomain.com.nph-genericinterface.pl.sock:", host: "otrs.somedomain.com"


Einige Eckdaten:
Ubuntu 10.04.4 amd64
Nginx + FCGI
OTRS 3.1.3 (installiert mit dieser Anleitung: http://wiki.otterhub.org/index.php?titl ... edirect=no)

Ausgabe von "otrs.CheckModules.pl":

Code: Select all

   o CGI..............................ok (v3.59)
   o Crypt::PasswdMD5.................ok (v1.3)
   o CSS::Minifier....................ok (v0.01)
   o Date::Format.....................ok (v2.23)
   o Date::Pcalc......................ok (v1.2)
   o DBI..............................ok (v1.609)
   o DBD::mysql.......................ok (v4.012)
   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! (Optional - Required to connect to a PostgreSQL database.)
   o Digest::MD5......................ok (v2.39)
   o Digest::SHA::PurePerl............ok (v5.70)
   o Digest::SHA......................ok (v5.47)
   o Encode::HanExtra.................Not installed! (Optional - Required to handle mails with several Chinese character sets.)
   o Encode::Locale...................ok (v1.02)
   o GD...............................ok (v2.39)
      o GD::Text......................ok (v0.86)
      o GD::Graph.....................ok (v1.44)
      o GD::Graph::lines..............ok (v1.15)
      o GD::Text::Align...............ok (v1.18)
   o IO::Scalar.......................ok (v2.110)
   o IO::Wrap.........................ok (v2.110)
   o JavaScript::Minifier.............ok (v1.05)
   o JSON.............................ok (v2.53)
      o JSON::PP......................ok (v2.27200)
      o JSON::XS......................Not installed! (Optional - Recommended for faster AJAX/JavaScript handling.)
   o Locale::Codes....................ok (v3.18)
   o LWP::UserAgent...................ok (v6.03)
   o Mail::Internet...................ok (v2.08)
   o Mail::POP3Client.................ok (v2.18 )
      o IO::Socket::SSL...............ok (v1.31)
   o Mail::IMAPClient.................ok (v3.21)
      o IO::Socket::SSL...............ok (v1.31)
   o MIME::Base64.....................ok (v3.08)
   o MIME::Tools......................ok (v5.428)
   o ModPerl::Util....................Not installed! (Optional - Improves Performance on Apache webservers dramatically.)
      o Apache::DBI...................ok (v1.11)
      o Apache2::Reload...............Not installed! (Optional - Should be installed on mod_perl based installations to automatically reload changed Perl files and configuration data.)
   o Net::DNS.........................ok (v0.65)
   o Net::POP3........................ok (v2.29)
   o Net::IMAP::Simple................ok (v1.2030)
      o Net::IMAP::Simple::SSL........ok (v1.3)
   o Net::SMTP........................ok (v2.31)
      o Authen::SASL..................ok (v2.15)
      o Net::SMTP::SSL................ok (v1.01)
      o Net::SMTP::TLS::ButMaintained.ok (v0.18)
   o Net::LDAP........................ok (v0.39)
   o PDF::API2........................ok (v0.73)
      o Compress::Zlib................ok (v2.02)
   o SOAP::Lite.......................ok (v0.714)
      o version.......................ok (v0.77)
      o Class::Inspector..............ok (v1.25)
   o Text::CSV........................ok (v1.21)
      o Text::CSV_PP..................ok (v1.29)
      o Text::CSV_XS..................Not installed! (Optional - Recommended for faster CSV handling.)
   o XML::Parser......................ok (v2.41)
   o HTTP::Message....................ok (v6.02)
      o HTTP::Headers.................ok (v6.00)
   o URI..............................ok (v1.59)
      o URI::Escape...................ok (v3.31)
   o Scalar::Util.....................ok (v1.21)
Ich habe auch schon in den folgenden Thread geschrieben: viewtopic.php?f=64&t=12168#p56850

Ich hoffe ihr könnt mir helfen :-)


Gruß
Daniel
virusmoere
Znuny newbie
Posts: 4
Joined: 26 Mar 2012, 22:50
Znuny Version: 3.1.2

Re: Fehler bei Ticketerstellung über GenericInterface

Post by virusmoere »

Nutzt denn niemand OTRS mit fcgi?
Bishop_DL
Znuny newbie
Posts: 59
Joined: 23 Mar 2011, 09:38
Znuny Version: 3.1.3

Re: Fehler bei Ticketerstellung über GenericInterface

Post by Bishop_DL »

installier doch mal die ganzen zusätzlichen Packages. Dann hast du dort schon mal eine Fehlerquelle ausgeschlossen. Zu der Fehlermeldung direkt: Wenn eine Dateie eine andere nicht einlesen kann, liegt das meißtens an einem Pfad oder Berrechtigungsproblem. Prüfe das. Ansonsten poste doch mal die zwei Stellen der Fehlermeldung:

Code: Select all

syntax error at line 1, column 0, byte 0 at /usr/local/lib/perl/5.10.1/XML/Parser.pm line 187
Could not read input data at ./test.pl line 78
Gruß
OTRS: 3.0.6
OS: SuSE
Module: Apache2, MySQL

Test: OTRS: 3.1.3
OS: SuSE
Module: Apache2, MySQL

Die deutsche Rechtschreibung ist Freeware, Du darfst sie kostenlos nutzen. Allerdings ist sie nicht Open Source, d.h. Du darfst sie nicht verändern oder in veränderter Form veröffentlichen.
Post Reply