You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2020-09-16 08:18:41

joaquinllano
Member
Registered: 2020-09-09
Posts: 10

Problem with Automatic action Closeticket

Hi, sorry for my English

We are on 9.4.2 version from REMI repo on Centos 7.

Actually we have problems with closeticket

It has set on CLI mode and this is our cron line in OS:
* * * * * apache /usr/bin/php /usr/share/glpi/front/cron.php

On web interface it shows las execution on 02-09 and today 09-15) it continues on execution. Tickets are not closing automatically.

Is there any way to debug this?

Can someone give me advice?

Thanks!

Offline

#2 2020-09-16 08:37:55

WebGreg
Member
Registered: 2020-02-27
Posts: 727

Re: Problem with Automatic action Closeticket

Maybe try reset taskscheduler automatic action.


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#3 2020-09-18 04:11:31

bendodge
Member
Registered: 2015-01-23
Posts: 21

Re: Problem with Automatic action Closeticket

I have a similar issue: 9.4.2, using cron, and closeticket will close a few tickets tickets (1-3) and then say "Running" indefinitely until I manually stop the tab. No logs at all under the Logs tab.

Please let me know if I should start a new thread instead of replying to this one!

**Correction**
All tickets are actually being closed appropriately. However, the emails are not being sent. They are piled up in Administration > Notification queue (about 2,000 emails). Each time the task runs, a few more are sent.

Last edited by bendodge (2020-09-18 04:15:59)

Offline

#4 2020-09-18 12:21:00

joaquinllano
Member
Registered: 2020-09-09
Posts: 10

Re: Problem with Automatic action Closeticket

WebGreg wrote:

Maybe try reset taskscheduler automatic action.

Hi, how I can reset taskscheduler automatic action?

You mean a task named Fusioninventory-taskscheduler?

Best regards

Offline

#5 2020-09-18 12:22:11

joaquinllano
Member
Registered: 2020-09-09
Posts: 10

Re: Problem with Automatic action Closeticket

bendodge wrote:

I have a similar issue: 9.4.2, using cron, and closeticket will close a few tickets tickets (1-3) and then say "Running" indefinitely until I manually stop the tab. No logs at all under the Logs tab.

Please let me know if I should start a new thread instead of replying to this one!

**Correction**
All tickets are actually being closed appropriately. However, the emails are not being sent. They are piled up in Administration > Notification queue (about 2,000 emails). Each time the task runs, a few more are sent.

Hi, I just reviewed it and only has 4 emails, I send them manually and ok, but the problem with closetickets is still present.

Offline

#6 2020-09-18 13:32:46

WebGreg
Member
Registered: 2020-02-27
Posts: 727

Re: Problem with Automatic action Closeticket

joaquinllano wrote:
WebGreg wrote:

Maybe try reset taskscheduler automatic action.

Hi, how I can reset taskscheduler automatic action?


Home> Setup > Automatic actions > set checkbox for taskscheduler > actions button > choose Reset last run action.

I didn't have the same problem as you, but also some tasks did not perform properly and after this action they started. Maybe it will help you too.


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#7 2020-09-21 07:52:10

joaquinllano
Member
Registered: 2020-09-09
Posts: 10

Re: Problem with Automatic action Closeticket

WebGreg wrote:
joaquinllano wrote:
WebGreg wrote:

Maybe try reset taskscheduler automatic action.

Hi, how I can reset taskscheduler automatic action?


Home> Setup > Automatic actions > set checkbox for taskscheduler > actions button > choose Reset last run action.

I didn't have the same problem as you, but also some tasks did not perform properly and after this action they started. Maybe it will help you too.

Hi, I tried it but same result, also tried to run php /usr/share/glpi/front/cron.php from a terminal.

I launched the command on friday and today (monday) it continues executing but has no messages on terminal.

Offline

#8 2020-10-13 07:46:05

joaquinllano
Member
Registered: 2020-09-09
Posts: 10

Re: Problem with Automatic action Closeticket

Hi, finally I tried closing tickets changing its state on database. Afther closing them manually the automatic action worked again.

This is the sentence I've used

UPDATE glpi_tickets
SET
    STATUS = 6,closedate=NOW()
WHERE
    STATUS = 5
AND
    SOLVEDATE < (CURDATE() - INTERVAL 5 DAY);

Offline

Board footer

Powered by FluxBB