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-07-25 15:30:01

ChrisSteinerMAJA
Member
Registered: 2022-07-25
Posts: 3

GLPI 10.0.2 automatic jobs don´t start

Hello,

we have upgraded our GLPI server from 0.90.1 to 10.0.2.
Since the new version, the automatic jobs no longer start.
The jobs always show "as soon as possible".
We always have to start them manuelly.

Can someone help us.
Many Thanks.

Offline

#2 2022-07-25 16:38:13

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

Re: GLPI 10.0.2 automatic jobs don´t start

Hi.

What "Run mode" do you have set? If GLPI try CLI


--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS

Offline

#3 2022-07-26 07:08:50

ChrisSteinerMAJA
Member
Registered: 2022-07-25
Posts: 3

Re: GLPI 10.0.2 automatic jobs don´t start

Hi.

Neither of the two modes worked. They just randomly work sometimes and sometimes not. These are the logs:


Datum                    Zeitaufwand    Anzahl    Beschreibung
2022-07-26 06:56    0.179 Sekunden       0    Job fertig, nichts zu tun
2022-07-26 06:53    0.121 Sekunden       0    Job fertig, nichts zu tun
2022-07-26 06:35    0.207 Sekunden       0    Job fertig, nichts zu tun
2022-07-26 06:32    0.106 Sekunden       0    Job fertig, nichts zu tun
2022-07-26 06:31    0.198 Sekunden       0    Job fertig, nichts zu tun
2022-07-26 06:25    0.213 Sekunden       0    Job fertig, nichts zu tun
2022-07-26 06:24    0.122 Sekunden       0    Job fertig, nichts zu tun
2022-07-26 06:18    0.273 Sekunden       0    Job fertig, nichts zu tun
2022-07-25 16:26    0.190 Sekunden       0    Job fertig, nichts zu tun
2022-07-25 16:25    0.113 Sekunden       0    Job fertig, nichts zu tun
2022-07-25 16:24    2.150 Sekunden       15    Job fertig, komplett ausgeführt
2022-07-25 16:11    2.036 Sekunden       20    Job fertig, teilweise ausgeführt


But for us, it's confusing that we set the timer to 1 minute and that's obviously not the case. That was the mailgate, but the queuednotification just doenst work at all. The mode is CLI and the timer is set to 1 minute, but it is still stuck on "as soon as possible" since yesterday at 16:09.

Best regards and thanks.

Offline

#4 2022-07-26 09:49:41

ChrisSteinerMAJA
Member
Registered: 2022-07-25
Posts: 3

Re: GLPI 10.0.2 automatic jobs don´t start

We have the solution. Our cron was not configured correctly, so the jobs were not started properly. For anyone having the same problem, here is the solution (for Ubuntu 22.04):
- Set a job to CLI and set the timer to 1 minute, wait one minute.
- Enter in terminal: /usr/bin/php7.4 /usr/share/glpi/front/cron.php &>/dev/null (the path and php version may differ!)
- Reload the page and the job should have been executed.
- Then go back to the terminal and type: crontab -e
- Go to the end of the file and type: */2 * * * /usr/bin/php7.4 /usr/share/glpi/front/cron.php &>/dev/nul
-> again php version and path can be different + the 2 at the beginning should be the interval in min in which cron is started.
The job should run in the interval time you set in glpi.

Offline

Board footer

Powered by FluxBB