auto closed successfull +/- are not working

Moderator: crythias

Locked
inderjohar2287
Znuny newbie
Posts: 48
Joined: 12 Sep 2014, 19:11
Znuny Version: 3.3.8
Real Name: Inder
Company: QAS

auto closed successfull +/- are not working

Post by inderjohar2287 »

Hi,

When I set the date and time for auto closed successfully or unsuccessfully into any ticket than after reached date and time ticket doesn't close. As per documentation this option is given to close the ticket as scheduler.
Please suggest what I would be missing?
OTRS 3.3.8 (private) on Linux with MySQL database.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: auto closed successfull +/- are not working

Post by jojo »

might be:

- missing cronjob
- not waited till the cronjob runs
- renamed any closed or pending auto state
- cron not running
"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
inderjohar2287
Znuny newbie
Posts: 48
Joined: 12 Sep 2014, 19:11
Znuny Version: 3.3.8
Real Name: Inder
Company: QAS

Re: auto closed successfull +/- are not working

Post by inderjohar2287 »

Nothing happening for cron. I mean I have not set anything for Cronjob
Please let me know what I have to do with cron
Any code needs to copy paste or from admin panel some settings to be enabled?
OTRS 3.3.8 (private) on Linux with MySQL database.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: auto closed successfull +/- are not working

Post by jojo »

read the INSTALL.md file for setting up cron
"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
inderjohar2287
Znuny newbie
Posts: 48
Joined: 12 Sep 2014, 19:11
Znuny Version: 3.3.8
Real Name: Inder
Company: QAS

Re: auto closed successfull +/- are not working

Post by inderjohar2287 »

I have read the document for it but problem is that I am not getting right thing that needs to enable or put into it. I will appreciate if you can provide and same I have copy payer into it for working of auto closed
OTRS 3.3.8 (private) on Linux with MySQL database.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: auto closed successfull +/- are not working

Post by jojo »

what is the output of

Code: Select all

 crontab -l otrs
"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
inderjohar2287
Znuny newbie
Posts: 48
Joined: 12 Sep 2014, 19:11
Znuny Version: 3.3.8
Real Name: Inder
Company: QAS

Re: auto closed successfull +/- are not working

Post by inderjohar2287 »

Please find the attached output of OTRS cronjob
otrs cron.txt
.... and install.md
INSTALL.txt
Kindly suggest after reading it what I need to change for working on auto closed+/-
You do not have the required permissions to view the files attached to this post.
OTRS 3.3.8 (private) on Linux with MySQL database.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: auto closed successfull +/- are not working

Post by jojo »

the cronjobs seem to run. Did you change any state name?
"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
inderjohar2287
Znuny newbie
Posts: 48
Joined: 12 Sep 2014, 19:11
Znuny Version: 3.3.8
Real Name: Inder
Company: QAS

Re: auto closed successfull +/- are not working

Post by inderjohar2287 »

No, I have not changed any of the default name. Using all the default states.
OTRS 3.3.8 (private) on Linux with MySQL database.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: auto closed successfull +/- are not working

Post by jojo »

check if:

- the target time is reached
- cron itself is running
- are there any errors in the logs
"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
inderjohar2287
Znuny newbie
Posts: 48
Joined: 12 Sep 2014, 19:11
Znuny Version: 3.3.8
Real Name: Inder
Company: QAS

Re: auto closed successfull +/- are not working

Post by inderjohar2287 »

Even though it was reaching but let me try it one more time and i will share the report.
Meantime you may refer the screen-shot for state.
state management.JPG
You do not have the required permissions to view the files attached to this post.
OTRS 3.3.8 (private) on Linux with MySQL database.
inderjohar2287
Znuny newbie
Posts: 48
Joined: 12 Sep 2014, 19:11
Znuny Version: 3.3.8
Real Name: Inder
Company: QAS

Re: auto closed successfull +/- are not working

Post by inderjohar2287 »

Once again I have done the testing and found the same result. After choose time ticket start showing pending till instead of closing it.
Please find the attached screen shot.
autoclose.JPG
You do not have the required permissions to view the files attached to this post.
OTRS 3.3.8 (private) on Linux with MySQL database.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: auto closed successfull +/- are not working

Post by jojo »

the cron job runs every 2 hours at 45 e.g. 2:45, 4:45, 6:45

so actually it seems to be OK
"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
inderjohar2287
Znuny newbie
Posts: 48
Joined: 12 Sep 2014, 19:11
Znuny Version: 3.3.8
Real Name: Inder
Company: QAS

Re: auto closed successfull +/- are not working

Post by inderjohar2287 »

Right now status of cron is running.
Ok, If I will restart the cronjob now then will this ticket be closed?

Also, all the commented points are not running so is it ok? I mean with default configuration will it works?
OTRS 3.3.8 (private) on Linux with MySQL database.
inderjohar2287
Znuny newbie
Posts: 48
Joined: 12 Sep 2014, 19:11
Znuny Version: 3.3.8
Real Name: Inder
Company: QAS

Re: auto closed successfull +/- are not working

Post by inderjohar2287 »

yeah it is working fine on the test ticket
Now If I want to change from every two hours to 15 minutes then What changes I need to perform?
OTRS 3.3.8 (private) on Linux with MySQL database.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: auto closed successfull +/- are not working

Post by crythias »

https://github.com/OTRS/otrs/blob/rel-3 ... _jobs.dist

Code: Select all

45 */2 * * *    $HOME/bin/otrs.PendingJobs.pl >> /dev/null
change to

Code: Select all

*/15 * * * *    $HOME/bin/otrs.PendingJobs.pl >> /dev/null
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
inderjohar2287
Znuny newbie
Posts: 48
Joined: 12 Sep 2014, 19:11
Znuny Version: 3.3.8
Real Name: Inder
Company: QAS

Re: auto closed successfull +/- are not working

Post by inderjohar2287 »

Perfect. It's working fine.
Thank you!!!!
OTRS 3.3.8 (private) on Linux with MySQL database.
Locked