Software error - Stats button

Hilfe zu Znuny Problemen aller Art
Locked
lousek
Znuny newbie
Posts: 25
Joined: 12 Feb 2010, 10:29
Znuny Version: 2.4.7

Software error - Stats button

Post by lousek »

Guten Morgen Forum.

Ich habe ein kleines Problem mit unserem OTRS-System.
Folgende Konfiguration:
Debian Lenny (Frontend):
OTRS 2.4.7
Apache 2.2
Perl5
FreeTDS-Pakete
div. benötigte Module

Windows 2008 (Backend):
MS SQL 2008

Ein /usr/share/otrs/bin/otrs.checkModules ergibt folgendes:

Code: Select all

   o CGI............................ok (v3.49)
   o Date::Pcalc....................ok (v6.1)
   o Date::Format...................ok (v2.22)
   o DBI............................ok (v1.605)
   o DBD::mysql.....................ok (v4.007)
   o Digest::MD5....................ok (v2.36_01)
   o Crypt::PasswdMD5...............ok (v1.3)
   o LWP::UserAgent.................ok (v5.813)
   o Encode::HanExtra...............ok (v0.23)
   o IO::Scalar.....................ok (v2.110)
   o IO::Wrap.......................ok (v2.110)
   o MIME::Base64...................ok (v3.07_01)
   o Mail::Internet.................ok (v2.03)
   o MIME::Tools....................ok (v5.427)
   o Net::DNS.......................ok (v0.63)
   o Net::POP3......................ok (v2.29)
   o Mail::POP3Client...............ok (v2.17 )
      o IO::Socket::SSL.............ok (v1.16)
   o Net::IMAP::Simple..............ok (v1.17)
      o Net::IMAP::Simple::SSL......ok (v1.3)
   o Net::SMTP......................ok (v2.31)
      o Authen::SASL................ok (v2.12)
      o Net::SMTP::SSL..............ok (v1.01)
   o Net::LDAP......................ok (v0.36)
   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 PDF::API2......................ok (v0.69)
      o Compress::Zlib..............ok (v2.012)
   o SOAP::Lite.....................ok (v0.710.08)
   o XML::Parser....................ok (v2.36)
Der Zugriff auf die MS SQL-DB geschieht über den FreeTDS-Treiber:

Config.pm:

Code: Select all

        $Self->{'DatabaseUser'} = 'user';

        $Self->{'DatabasePw'} = 'pw';

        $Self->{DatabaseDSN} = "DBI:Sybase:server=111.111.111.111";

        $Self->{"Database::Type"} = "mssql";

        $Self->{DatabaseUserTable} = 'otrs';
/etc/odbcinst.ini:

Code: Select all

[FreeTDS]
Description             = FreeTDS-Driver to access MS SQL & Sybase Servers
Driver          = /usr/lib/odbc/libtdsodbc.so
UsageCount              = 1
Ein /usr/share/otrs/bin/CheckDB.pl ergibt:

Code: Select all

ERROR: No such file or directory: /usr/share/otrs/Kernel/Config/Files/ZZZAuto.pm
Setting of CS_OPT_TEXTSIZE failed. at /usr/lib/perl5/DBI.pm line 693.
It looks Ok!
Mittlerweile habe ich es geschafft, dass OTRS auf die MS SQL Datenbank zugreifen kann, alles läuft problemlos, ausser dass folgender Fehler kommt wenn man auf den "Stats button" klickt:

Code: Select all

Software error:

Can't locate object method "GetObjectName" via package "Kernel::System::Stats::Static::StateAction" at /usr/share/otrs//Kernel/System/Stats.pm line 2234.

For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error. 
Die Datei ist vorhanden; ebenso alle Dateien die hier->http://doc.otrs.org/2.4/en/html/x2606.html beschrieben sind.

1. Woher kommt dieser Error?: ERROR: No such file or directory: /usr/share/otrs/Kernel/Config/Files/ZZZAuto.pm
Das Verzeichnis /usr/share/otrs/Kernel/Config/Files sieht so aus:

Code: Select all

drwxr-xr-x 2 root root   4096 2010-02-10 16:51 .
drwxr-xr-x 3 root root   4096 2010-02-10 16:51 ..
-rw-r--r-- 1 root root 295674 2010-01-04 13:35 Framework.xml
-rw-r--r-- 1 root root 511824 2010-02-01 02:00 Ticket.xml
lrwxrwxrwx 1 root root     32 2010-02-10 16:51 ZZZAAuto.pm -> /var/lib/otrs/Config/ZZZAAuto.pm
lrwxrwxrwx 1 root root     31 2010-02-10 16:51 ZZZAuto.pm -> /var/lib/otrs/Config/ZZZAuto.pm
Und das Verzeichnis /var/lib/otrs/Config/ so:

Code: Select all

drwxr-xr-x  2 root root       4096 2010-02-10 16:51 .
drwxrwxr-x 13 otrs www-data   4096 2010-02-10 16:51 ..
-rw-rw-r--  1 root www-data 119394 2010-02-11 16:42 ZZZAAuto.pm
2. Was hat es mit diesem Fehler auf sich?: Setting of CS_OPT_TEXTSIZE failed. at /usr/lib/perl5/DBI.pm line 693.

3. Mein grosses Problem: Was hat der Fehler mit den Stats auf sich?

Edit: Noch ein Nachtrag: Erstellen der Statistik über /usr/share/otrs/bin/mkStats.pl -n 10001 -r bla.bla@bla.com -m 'test' ist möglich.

Ich hoffe, jemand kann mir weiterhelfen.

Gruss
lousek
No current setup - will use the latest one :)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Software error - Stats button

Post by jojo »

Du möchtest die Kombination:

Applikations Server: Linux
DB: Server MS SQL

?

Die geht so nicht und wird auch nicht supportet!
"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
lousek
Znuny newbie
Posts: 25
Joined: 12 Feb 2010, 10:29
Znuny Version: 2.4.7

Software error - Stats button

Post by lousek »

jojo wrote:Du möchtest die Kombination:

Applikations Server: Linux
DB: Server MS SQL

?

Die geht so nicht und wird auch nicht supportet!
So wie es aussieht geht es sehr wohl.
Ob das Problem 100%ig behoben ist, kann ich auch noch nicht sagen, aber das Problem lag an einer korrupten Statistik.
Nach dem ich die Statistik "Changes of status in a monthly overview" aus der Datenbank gelöscht habe (Admin > SQL Box > "DELETE FROM xml_storage WHERE xml_key='11';" ... natürlich muss der xml_key derjenige dieser Statistik sein) war das Problem behoben.

Was mir aufgefallen ist:
Unter Windows 2008 + MS SQL funktioniert diese Statistik ebenfalls nicht ... in Stats > Overview wird bei der Spalte "Obejct" nichts angezeigt; klickt man auf die Statistik steht bei Object "StateAction.pm".
Die FAQ-Overview hat ebenfalls kein Obejct (in der Übersicht) resp. StateAction.pm (Detailansicht).
Ob diese Statistik im Linux funktioniert habe ich jedoch noch nicht.

Der Fehler hat ja etwas mit getObject zu tun ...

Gruss
Lousek
No current setup - will use the latest one :)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Software error - Stats button

Post by jojo »

Hallo lousek es geht nicht! Du wirst ständig in neue Fehler laufen....
"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
lousek
Znuny newbie
Posts: 25
Joined: 12 Feb 2010, 10:29
Znuny Version: 2.4.7

Software error - Stats button

Post by lousek »

Wieder einen Schritt weiter: Wir hatten die Datenbank vorher kopiert (das Debian greift auf die DB otrs zu, und das Windows greift auf die DB otrs_test (original) zu); ... interessanterweise funktionieren die Statistiken wenn das Debian auf die otrs_test zugreift ...
No current setup - will use the latest one :)
lousek
Znuny newbie
Posts: 25
Joined: 12 Feb 2010, 10:29
Znuny Version: 2.4.7

Software error - Stats button

Post by lousek »

jojo wrote:Hallo lousek es geht nicht! Du wirst ständig in neue Fehler laufen....
Du hast wohl Recht ... jedes Update, neue Probleme.
Das Problem sind jetzt die Notifications und Auto Responses, die nicht vollständig gesenet werden (z.B. nur "Hi, <" und dann nichts mehr) ...

... wir haben es nun aufgegeben und nehmen einen lokalen MySQL ... wäre mir von Anfang an lieber gewesen aber ich bin nur der Lehrling :P

Gruss & Danke
Lousek
No current setup - will use the latest one :)
Locked