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 2017-09-27 08:36:20

fricketo
Member
From: Germany
Registered: 2014-07-16
Posts: 71

Automatic Tasks sometimes remains in "Running" Mode

Hi everyone,

hope someone can help. Searched for a solution allready in this forum, but couldnt find a solution for my problem:

We are using GLPI 9.1 on a Windows Server 2008R2 with Xampp and we activate mailgate for opening tickets via mail and OCSNG for import PCs from OCS and update them from the OCS Database, both in CLI Mode.

On the server we are running a Windows- Task (C:\xampp\php\php.exe -f cron.php) every 5 Minutes to activate the cron job. Most of the time it runs without problems, but sometimes the mailgate and OCSNG Tasks remaining in Status "running". After that, we have to stop the automatic task manualy (click on the cross) and than it works again. 

In the cron.log is no problem logged.

Some ideas or a solution for this???


---------------------------------------------------
GLPI 9.1 on Windows Server 2008R2 with XAMPP
---------------------------------------------------

Offline

#2 2017-09-27 15:35:29

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Automatic Tasks sometimes remains in "Running" Mode

It's this append when you make a database save?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2017-09-28 08:24:07

fricketo
Member
From: Germany
Registered: 2014-07-16
Posts: 71

Re: Automatic Tasks sometimes remains in "Running" Mode

No...at the moment we don't really do a database save, cause we don't found a good way to safe the database on Windows with Xampp (any proposals for this?). GLPI is running on a Virtual Hyper-V Server, so at the moment we just save the whole Server.

Today it happend again. When I look at the automatic tasks, 5 Minutes ago, the mailgate Task is in running mode since 5'o clock.


---------------------------------------------------
GLPI 9.1 on Windows Server 2008R2 with XAMPP
---------------------------------------------------

Offline

#4 2017-09-28 13:29:15

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Automatic Tasks sometimes remains in "Running" Mode

Have you some error in crontask log? MySQL can't be connect? MySQL fully?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#5 2017-09-28 16:11:53

fricketo
Member
From: Germany
Registered: 2014-07-16
Posts: 71

Re: Automatic Tasks sometimes remains in "Running" Mode

I searched in the file cron.log and found no errors. But u can see that the mailgate didn't start when its allready in state "Running" -->

Extern #1: Starte mailgate
2017-09-28 06:30:00 [@CHM-OCSGLPI]
Extern #2: Starte planningrecall
2017-09-28 06:35:00 [@CHM-OCSGLPI]
Extern #1: Starte mailgate
2017-09-28 06:35:01 [@CHM-OCSGLPI]
Extern #2: Starte planningrecall
2017-09-28 06:40:00 [@CHM-OCSGLPI]
Extern #1: Starte mailgate                                                   --> After that it first starts again, when i manualy click on the cross for cancel the "running"- State
2017-09-28 06:40:00 [@CHM-OCSGLPI]
Extern #1: Starte planningrecall
2017-09-28 06:45:00 [@CHM-OCSGLPI]
Extern #1: Starte planningrecall
2017-09-28 06:50:00 [@CHM-OCSGLPI]
Extern #1: Starte planningrecall
2017-09-28 06:55:00 [@CHM-OCSGLPI]
Extern #1: Starte planningrecall
2017-09-28 07:00:00 [@CHM-OCSGLPI]
Extern #1: Starte planningrecall
2017-09-28 07:05:00 [@CHM-OCSGLPI]
Extern #1: Starte planningrecall
2017-09-28 07:10:00 [@CHM-OCSGLPI]
Extern #1: Starte planningrecall
2017-09-28 07:15:00 [@CHM-OCSGLPI]
Extern #1: Starte planningrecall
2017-09-28 07:15:00 [@CHM-OCSGLPI]
Extern #2: Starte ocsng

Last edited by fricketo (2017-09-28 16:13:08)


---------------------------------------------------
GLPI 9.1 on Windows Server 2008R2 with XAMPP
---------------------------------------------------

Offline

#6 2017-09-28 22:46:56

LucaC
Member
Registered: 2012-04-10
Posts: 44

Re: Automatic Tasks sometimes remains in "Running" Mode

I faced the same issue some time ago. Since GLPI tasks are simple "batches" and not "daemons" I ended up creating a simple script that update the task status in db when tasks run for more than 1 hour.
I'm sure I've seen a specific GLPI task that unlocks cron jobs, but cannot cleary remember the details.
HTH

Offline

#7 2017-09-29 16:08:12

fricketo
Member
From: Germany
Registered: 2014-07-16
Posts: 71

Re: Automatic Tasks sometimes remains in "Running" Mode

@LucaC Do you still have the script? Couldn't find a task in GLPI 9.1 that unlocks job...u remember the name of this task?


---------------------------------------------------
GLPI 9.1 on Windows Server 2008R2 with XAMPP
---------------------------------------------------

Offline

#8 2017-10-16 08:56:08

fricketo
Member
From: Germany
Registered: 2014-07-16
Posts: 71

Re: Automatic Tasks sometimes remains in "Running" Mode

Any one else an idea???

Tasks still stocked in running mode sometimes.... sad


---------------------------------------------------
GLPI 9.1 on Windows Server 2008R2 with XAMPP
---------------------------------------------------

Offline

Board footer

Powered by FluxBB