Dashboard, Fehlermeldung im Logfile

Hilfe zu Znuny Problemen aller Art
Locked
ghuerkam
Znuny newbie
Posts: 30
Joined: 25 Jun 2006, 08:26

Dashboard, Fehlermeldung im Logfile

Post by ghuerkam »

Dashboard: Fehlermeldung in Logfile, genaugenommen 7

[Mon Nov 2 14:51:07 2009][Error][Kernel::System::Ticket::TicketSearch][4752] ORA-01861: literal does not match format string (DBD ERROR: error possibly near <*> indicator at char 249 in 'SELECT DISTINCT count(*) FROM ticket st, queue sq , ticket_history th WHERE sq.id = st.queue_id AND st.id = th.ticket_id AND sq.group_id IN (2, 3, 4, 21, 42, 162) AND th.history_type_id IN (1, 27) AND th.state_id IN (2, 3) AND th.create_time <= <*>'2009-11-02 23:59:59' AND th.history_type_id IN (1, 27) AND th.state_id IN (2, 3) AND th.create_time >= '2009-11-02 00:00:00''), SQL: 'SELECT DISTINCT count(*) FROM ticket st, queue sq , ticket_history th WHERE sq.id = st.queue_id AND st.id = th.ticket_id AND sq.group_id IN (2, 3, 4, 21, 42, 162) AND th.history_type_id IN (1, 27) AND th.state_id IN (2, 3) AND th.create_time <= '2009-11-02 23:59:59' AND th.history_type_id IN (1, 27) AND th.state_id IN (2, 3) AND th.create_time >= '2009-11-02 00:00:00''

In der 7 Tage Statistik werden nur die erstellen Tickets angezeigt, nicht die geschlossenen Tickets.

Ich habe mal das Support Assessment ausgführt:

Check existing framework tables.
69 tables checked. OK
Check NLS_DATE_FORMAT.
Your NLS_DATE_FORMAT setting is YYYY-MM-DD HH24:MI:SS. OK
Check ORACLE_HOME configuration.
Your ORACLE_Home configuration is /opt/oracle/product/10gClient. OK
Check NLS_LANG.
Your NLS_LANG configuration is german_germany.utf8. OK
Check NLS_DATE_FORMAT by using SELECT statement.
09.12.2005 14:12:24 is not the right format 'yyyy-mm-dd hh:mm::ss' (please check $ENV{NLS_DATE_FORMAT}). Failed


Ich habe aber in der Config.pm den folgenden Eintrag gemacht:

$Self->{DatabaseDSN} = "DBI:Oracle:sid=P2R1;host=10.214.32.82;port=1521;";
# if needed, oracle env settings
$ENV{ORACLE_HOME} = '/opt/oracle/product/10gClient';
$ENV{PATH} = '$PATH:/opt/oracle/product/10gClient/bin';
$ENV{LD_LIBRARY_PATH} = '/opt/oracle/product/10gClient/lib:/opt/oracle/product/10gClient/ctx/lib';

$ENV{NLS_DATE_FORMAT} = 'YYYY-MM-DD HH24:MI:SS';
$ENV{NLS_LANG} = "german_germany.utf8";


Ist das ein Bug oder habe ich die falschen Einstellungen gemacht?

PS: Otrs 2.4.5 mit Bugfix 4433 mit Oracle 10.2.0.4 auf Sles10

Gruß Günter
FIRMA:SLES10, OTRS 4.0.14, Oracle 11.2.0.3.0, LDAP Auth,
Joyner
Znuny expert
Posts: 185
Joined: 08 Feb 2008, 14:49
Znuny Version: 2.2.8
Location: Berlin

Dashboard, Fehlermeldung im Logfile

Post by Joyner »

Hallo,

in deiner NLS_DATE_FORMAT ist das Format "YYYY-MM-DD HH24:MI:SS". Erwartet wird aber "yyyy-mm-dd hh:mm::ss".

Was passiert, wenn du $ENV{NLS_DATE_FORMAT} = 'yyyy-mm-dd hh:mm::ss'; verwendest?

mfg
Sebastian
Produktiv: OTRS 2.4.7, CiCS 3.1.5, Eigenentwicklungen
β-Testing/Mirror: OTRS 2.4.7, ITSM 2.0.2, CiCS(::ITSM) 3.1.5 (2.1.6), Eigenentwicklungen OS: Win2003, XAMPP, Apache2.2/MySQL 5, Trac/SVN
ghuerkam
Znuny newbie
Posts: 30
Joined: 25 Jun 2006, 08:26

Dashboard, Fehlermeldung im Logfile

Post by ghuerkam »

Check existing framework tables.
69 tables checked. OK
Check NLS_DATE_FORMAT.
Need format 'YYYY-MM-DD HH24:MI:SS' for NLS_DATE_FORMAT (not yyyy-mm-dd hh:mm::ss). Failed
Check ORACLE_HOME configuration.
Your ORACLE_Home configuration is /opt/oracle/product/10gClient. OK
Check NLS_LANG.
Your NLS_LANG configuration is german_germany.utf8. OK
Check NLS_DATE_FORMAT by using SELECT statement.
09.12.2005 14:12:24 is not the right format 'yyyy-mm-dd hh:mm::ss' (please check $ENV{NLS_DATE_FORMAT}). Failed


Fehlermeldung im Logfile:
[Wed Nov 4 12:31:57 2009][Error][Kernel::System::Ticket::TicketSearch][4752] ORA-01861: literal does not match format string (DBD ERROR: error possibly near <*> indicator at char 249 in 'SELECT DISTINCT count(*) FROM ticket st, queue sq , ticket_history th WHERE sq.id = st.queue_id AND st.id = th.ticket_id AND sq.group_id IN (2, 3, 4, 21, 42, 162) AND th.history_type_id IN (1, 27) AND th.state_id IN (2, 3) AND th.create_time <= <*>'2009-10-29 23:59:59' AND th.history_type_id IN (1, 27) AND th.state_id IN (2, 3) AND th.create_time >= '2009-10-29 00:00:00''), SQL: 'SELECT DISTINCT count(*) FROM ticket st, queue sq , ticket_history th WHERE sq.id = st.queue_id AND st.id = th.ticket_id AND sq.group_id IN (2, 3, 4, 21, 42, 162) AND th.history_type_id IN (1, 27) AND th.state_id IN (2, 3) AND th.create_time <= '2009-10-29 23:59:59' AND th.history_type_id IN (1, 27) AND th.state_id IN (2, 3) AND th.create_time >= '2009-10-29 00:00:00''
FIRMA:SLES10, OTRS 4.0.14, Oracle 11.2.0.3.0, LDAP Auth,
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Dashboard, Fehlermeldung im Logfile

Post by ferrosti »

Schau mal hier rein:
http://faq.otrs.org/otrs/public.pl?Acti ... &ItemID=59

Wenn die Umgebungsvariablen dem System nicht bekannt sind wird das so nichts. Du musst sie über die bash auch exportieren.
Daran sollte es eigentlich nicht liegen, aber ich habe schon Pferde vor der Apotheke kotzen sehen... setz die NLS Variablen mal über die anderen im Config File.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
ghuerkam
Znuny newbie
Posts: 30
Joined: 25 Jun 2006, 08:26

Dashboard, Fehlermeldung im Logfile

Post by ghuerkam »

ferrosti wrote: setz die NLS Variablen mal über die anderen im Config File.
Danke für den Tipp, ich hab jetzt die NLS Variablen mal so gesetzt
OK:
$ENV{NLS_DATE_FORMAT} = 'YYYY-MM-DD HH24:MI:SS';
$ENV{NLS_LANG} = "german_germany.utf8";

# if needed, oracle env settings
$ENV{ORACLE_HOME} = '/opt/oracle/product/10gClient';
$ENV{PATH} = '$PATH:/opt/oracle/product/10gClient/bin';
$ENV{LD_LIBRARY_PATH} = '/opt/oracle/product/10gClient/lib:/opt/oracle/product/10gClient/ctx/lib';

$ENV{NLS_DATE_FORMAT} = 'YYYY-MM-DD HH24:MI:SS';
$ENV{NLS_LANG} = "german_germany.utf8";
Nicht ok:
# if needed, oracle env settings
$ENV{ORACLE_HOME} = '/opt/oracle/product/10gClient';
$ENV{PATH} = '$PATH:/opt/oracle/product/10gClient/bin';
$ENV{LD_LIBRARY_PATH} = '/opt/oracle/product/10gClient/lib:/opt/oracle/product/10gClient/ctx/lib';

$ENV{NLS_DATE_FORMAT} = 'YYYY-MM-DD HH24:MI:SS';
$ENV{NLS_LANG} = "german_germany.utf8";
Keine Ahnung warum das so ist, aber jetzt funktioniert es. Es gibt eine Statistik für erstellte und geschlossene Tickets und keine Fehlermeldung mehr im Logfile.

Danke und Gruß
Günter
FIRMA:SLES10, OTRS 4.0.14, Oracle 11.2.0.3.0, LDAP Auth,
Locked