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 2022-06-14 13:19:47

maroua
Member
Registered: 2022-05-25
Posts: 20

notification queue problem

hello,
when i add a new ticket ,the technicien don't recieve a mail, the emails keep stayin in notifications queue so after i search i knew that i have to do cron the problem is I am using Xampp and i don't what should I put in the .bat file , i found an old post where a member of this forum put this config but it didn't work for me

Le script script_cron.bat :
                    start "C:\Program Files (x86)\Internet Explorer\iexplore.exe" http://ip_server/glpi/front/cron.php

                    ping -n 10 localhost >NUL

                    taskkill /F /IM iexplore.exe

- Tâche planifiée Windows :
           - Trigger : Repeat task every : 1 minute for a duration of : Indefinitely
           - Action : Start a program
                         Program/Script : E:\script_cron.bat
                         Arguments : cmd /C E:\xampp\php\php.exe -f E:\xampp\htdocs\lutece_v2\front\cron.php
(La tâche est exécutée avec un compte administrateur)

if someone has any idea of what should I change in this config I'll be grateful

Offline

#2 2022-06-14 14:52:03

supertramp4
Member
Registered: 2022-06-13
Posts: 28

Re: notification queue problem

HI,
You should not need the script_cron.bat calling internet explorer.
In Windows task scheduler, in the Action :
Program/script : php.exe ( or in your case E:\xampp\php\php.exe)
Arguments : c:\Apache24\htdocs\glpi\front\cron.php ( or in your case E:\xampp\htdocs\lutece_v2\front\cron.php)

you might also need to "run whether user is logged in or not", and also  "Run with highest privileges" with a suitable user account

Offline

#3 2022-06-14 16:04:00

maroua
Member
Registered: 2022-05-25
Posts: 20

Re: notification queue problem

thanks for your respond, I did what you said but the email still in the notification queue and every time i have to click on send

Offline

#4 2022-06-14 16:32:42

supertramp4
Member
Registered: 2022-06-13
Posts: 28

Re: notification queue problem

check in Setup -> Automatic actions
Look for queuednotification, and check what run frequency it is set to. Also try changing "run mode" to CLI

Offline

#5 2022-06-14 16:34:46

maroua
Member
Registered: 2022-05-25
Posts: 20

Re: notification queue problem

for the frequency i chose 1minute ,run mode = CLI

Offline

#6 2022-06-14 16:38:04

maroua
Member
Registered: 2022-05-25
Posts: 20

Re: notification queue problem

the creation date = send date but it didn't send
Creation date    14-06-2022 15:28    Expected send date    14-06-2022 15:28

Offline

#7 2022-06-14 23:22:10

maroua
Member
Registered: 2022-05-25
Posts: 20

Re: notification queue problem

update
in task scheduler I have to execute the task every time to send ticket to emails even i configure the task to be executed every minute/every day
the task should always be running

Offline

#8 2022-06-15 09:42:57

supertramp4
Member
Registered: 2022-06-13
Posts: 28

Re: notification queue problem

Hi,
The only thing i can add now its probably down to permissions of the Windows scheduled task.

Without starting the task manually, Does the Task show the Last Run result "The operation completed successfully (0x0)"
Look in E:\xampp\htdocs\lutece_v2\files\_logs, and look for the cron.log. If the scheduled task is running correctly, you will see the actions GLPI takes in cron.log

If you can manually run the scheduled task ( and the cron.log entries show accordingly) , then that confirms that the Task Action is correct, so its down to the permissions of the user in the Task general tab.

You could also open a CMD prompt and run the "E:\xampp\php\php.exe E:\xampp\htdocs\lutece_v2\front\cron.php" manually, then repeat the task with an CMD run as admin, ( or as the user name you re setting in task manager.

After that, sorry - Im out of idea's

Last edited by supertramp4 (2022-06-15 09:43:16)

Offline

#9 2022-06-15 15:47:11

jefy.casteller
Member
Registered: 2022-06-15
Posts: 2

Re: notification queue problem

Bom dia! Acabei de resolver esse problema, abaixo segue os passos

GLPI Versão 10
1 - Criei um arquivo.bat com o conteudo abaixo (Atualiza e-mails e Notificaçoes), com o nome de atualizafila e coloquei o arquivo no caminho do XAMPP "C:\xampp\php"

php C:\xampp\htdocs\glpi\front\cron.php --force mailgate
php C:\xampp\htdocs\glpi\front\cron.php --force queuednotification

2 - Realizei a criação de uma JOB Básica do windows com o programa C:\xampp\php\atualizafila.bat e em iniciar em coloquei "C:\xampp\php".

E tudo rodou

Offline

#10 2022-06-29 09:48:59

Tomy
Member
Registered: 2022-06-27
Posts: 4

Re: notification queue problem

Same issues but can't execute the command , got Parse error everytimes ( on debian )

Offline

Board footer

Powered by FluxBB