Cron jobs not working
Moderator: crythias
Cron jobs not working
Hi all,
I have configured cron job for daily reports but it is not executing.
Regards,
naru
I have configured cron job for daily reports but it is not executing.
Regards,
naru
Re: Cron jobs not working
Hi,
... then you did not configure the cronjobs.
or you did it wrong.
Let's see them.
Flo
... then you did not configure the cronjobs.
or you did it wrong.
Let's see them.
Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
Re: Cron jobs not working
Hi,
Configured cron job as below.
#crontab -e -u otrs
* * * * * $HOME/bin/otrs.GenerateStats.pl -n 10001 -f CSV -r username@domain.com -m "Immediate List" -F ImmediateList
correct me if configured wrongly. cron job are executing in system side but working for otrs.
Note: i have changed email id value.
Thanks,
Naru
Configured cron job as below.
#crontab -e -u otrs
* * * * * $HOME/bin/otrs.GenerateStats.pl -n 10001 -f CSV -r username@domain.com -m "Immediate List" -F ImmediateList
correct me if configured wrongly. cron job are executing in system side but working for otrs.
Note: i have changed email id value.
Thanks,
Naru
Re: Cron jobs not working
Please Check Home Directory and shell entry for the OTRS user. Also Running reports every Minute is not a good idea
"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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Cron jobs not working
What Version of OTRS are you using? The command does not fit all versions
"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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Cron jobs not working
I made every minute for immediate response. I'm using v6.0.12
Re: Cron jobs not working
Statistics should not be run every minute due to performance. Also the command is wrong. It seems that you did not try a manual run before. The stats are created by the Console command of OTRS.
Please also do an upgrade of your system as you have several Security bugs in your version.
As it seems that you have not the proper Know-how for operating Linux servers I suggest to contact a service Provider for the ((OTRS)) community edition or switch to a fully managed solution
Please also do an upgrade of your system as you have several Security bugs in your version.
As it seems that you have not the proper Know-how for operating Linux servers I suggest to contact a service Provider for the ((OTRS)) community edition or switch to a fully managed solution
"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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny superhero
- Posts: 888
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: Cron jobs not working
Hello naru,
Before you order a managed system (not quite sure how that will solve your problem) you can try this setting in the OTRS GUI.
Search the system configuration for 'Daemon::SchedulerCronTaskManager::Task' and select a disabled custom setting, like Daemon::SchedulerCronTaskManager::Task###Custom1.
There's an OTRS crontab already. You don't need to create a new one; just use the OTRS daemon.
Best regards and happy holidays
Emin
Before you order a managed system (not quite sure how that will solve your problem) you can try this setting in the OTRS GUI.
Search the system configuration for 'Daemon::SchedulerCronTaskManager::Task' and select a disabled custom setting, like Daemon::SchedulerCronTaskManager::Task###Custom1.
Code: Select all
Module: Kernel::System::Console::Command::Maint::Stats::Generate
Params: Please check a cron task for examples (Daemon::SchedulerCronTaskManager::Task###TicketDraftDeleteExpired is pretty good).
Best regards and happy holidays
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
Re: Cron jobs not working
Using the Daemon for stats generation is possible but not very useful if you need several ones. I typically use the system crontab for this
The command you have to run on the CLI is bin/otrs.Console.pl Maint::Stats::Generate
@Emin: Managed or SaaS installations helps everyone who have no knowledge on operating *nix based systems in a production environment. Which here is the case as not even a check was made if the command would run...
The command you have to run on the CLI is bin/otrs.Console.pl Maint::Stats::Generate
@Emin: Managed or SaaS installations helps everyone who have no knowledge on operating *nix based systems in a production environment. Which here is the case as not even a check was made if the command would run...
"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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny superhero
- Posts: 888
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: Cron jobs not working
Thanks for sharing your experience.
Going for up to nine statistics is no problem in the GUI.
If you need more, you can also go for an OTRS-XML which will make sure that all your OTRS-Daemons will be managed at the same place.
But that's a matter of taste.
Best regards and happy holidays
Emin
Going for up to nine statistics is no problem in the GUI.
If you need more, you can also go for an OTRS-XML which will make sure that all your OTRS-Daemons will be managed at the same place.
But that's a matter of taste.
Best regards and happy holidays
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English
Re: Cron jobs not working
Thanks Emin and jojo.
bin/otrs.Console.pl Maint::Stats::Generate worked for me.
Thanks,
Naru
bin/otrs.Console.pl Maint::Stats::Generate worked for me.
Thanks,
Naru