Statistics Error

Moderator: crythias

Post Reply
Phate
Znuny newbie
Posts: 2
Joined: 01 Nov 2021, 13:59
Znuny Version: 5.0.17
Real Name: Max

Statistics Error

Post by Phate »

Hi,
is there a way to find out which statistic an error mail refers to?

Code: Select all

ERROR: OTRS-otrs.Console.pl-Maint::Stats::Dashboard::Generate-24 Perl: 5.20.2 OS: linux Time: Mon Nov  1 16:27:34 2021

 Message: This statistic contains configuration errors, skipping.

 Traceback (43993): 
   Module: Kernel::System::Stats::StatsResultCacheCompute Line: 1703
   Module: Kernel::System::Console::Command::Maint::Stats::Dashboard::Generate::Run Line: 146
   Module: (eval) Line: 460
   Module: Kernel::System::Console::BaseCommand::Execute Line: 454
   Module: (eval) Line: 150
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 129
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 250
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: /opt/otrs//bin/otrs.Daemon.pl Line: 138

Error:         Stat calculation was not successful.
I thought "Generate-24" might refer to statistics ID 24, so I recreated it an deleted the old statistic with this ID. But it didn't help, I still get this mail.

Syslog doesn't help either.

Code: Select all

Nov  1 16:27:34 otrs2 OTRS-otrs.Console.pl-Maint::Stats::Dashboard::Generate-24[43993]: [Error][Kernel::System::Stats::StatsResultCacheCompute][Line:1703]: This statistic contains configuration errors, skipping.
Nov  1 16:27:34 otrs2 OTRS-otrs.Console.pl-Maint::Stats::Dashboard::Generate-24[43993]: [Error][Kernel::System::Daemon::DaemonModules::BaseTaskWorker::_HandleError][Line:51]: There was an error executing Execute() in Kernel::System::Console::Command::Maint::Stats::Dashboard::Generate: ERROR: OTRS-otrs.Console.pl-Maint::Stats::Dashboard::Generate-24 Perl: 5.20.2 OS: linux Time: Mon Nov  1 16:27:34 2021#012#012 Message: This statistic contains configuration errors, skipping.#012#012 Traceback (43993): #012   Module: Kernel::System::Stats::StatsResultCacheCompute Line: 1703#012   Module: Kernel::System::Console::Command::Maint::Stats::Dashboard::Generate::Run Line: 146#012   Module: (eval) Line: 460#012   Module: Kernel::System::Console::BaseCommand::Execute Line: 454#012   Module: (eval) Line: 150#012   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 129#012   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 250#012   Module: (eval) Line: 316#012   Module: main::Start Line: 316#012   Module: /opt/otrs//bin/otrs.Daemon.pl Line: 138#012#012Error:         Stat calculation was not successful.
root
Administrator
Posts: 3954
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Statistics Error

Post by root »

Hi,

Maybe executing the command

Code: Select all

bin/otrs.Console.pl Maint::Stats::Dashboard::Generate
reveals the number?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Phate
Znuny newbie
Posts: 2
Joined: 01 Nov 2021, 13:59
Znuny Version: 5.0.17
Real Name: Max

Re: Statistics Error

Post by Phate »

After executing this command, the error message appeared directly after a specific stat. After I configured this stat again, and executed this command a second time, the error didn't appear again. I'll have to wait if OTRS will send another email, but my guess would be, the problem is solved.

Thank you!
Post Reply