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 2013-08-23 20:32:27

punkdali
Guest
Registered: 2008-03-18
Posts: 17

OCS automatic action hangs (glpi v.84 and OCS Ver. 2.0.1 )

Our ocsng automatic action works a few times, then the fails.  If I can provide any more details please let me know.

regards
-paul

Debug Mode Error
PHP Notice: Undefined variable: conn in /usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php at line 5762
Fatal error: Call to a member function delete() on a non-object in /usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php on line 5762


below is the error from php-errors.log

2013-08-23 14:22:33
Notice(8): Undefined variable: conn
Backtrace :
/usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php:5762        Toolbox::userErrorHandlerNormal()
/usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php:2175        PluginOcsinventoryngOcsServer::importPrinter()
/usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php:1522        PluginOcsinventoryngOcsServer::updateComputer()
/usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php:5023        PluginOcsinventoryngOcsServer::processComputer()
/usr/share/glpi/inc/crontask.class.php:755        call_user_func()
/usr/share/glpi/front/crontask.form.php:46        CronTask::launch()

2013-08-23 14:23:00
Notice(8): Undefined variable: conn
Backtrace :
/usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php:5762        Toolbox::userErrorHandlerNormal()
/usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php:2175        PluginOcsinventoryngOcsServer::importPrinter()
/usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php:1522        PluginOcsinventoryngOcsServer::updateComputer()
/usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php:5023        PluginOcsinventoryngOcsServer::processComputer()
/usr/share/glpi/inc/crontask.class.php:755        call_user_func()
/usr/share/glpi/front/crontask.form.php:46        CronTask::launch()

Last edited by punkdali (2013-08-23 20:34:55)

Offline

#2 2013-08-26 13:51:13

jaraigon
Guest
Registered: 2013-08-26
Posts: 5

Re: OCS automatic action hangs (glpi v.84 and OCS Ver. 2.0.1 )

Hi all,

We have the same issue with GLPI v0.84 and OCS Plugin 1.01 (OCS Server runs 2.1RC1).

The automatic action "ocsng" has worked for 59 times, then it has been "running" for days. When we cancel the running task and launch it again, it keeps running all the time. Normally, it should take just two seconds to end.

I tried to run syncrhonization manually but it results in a white screen of the death. Apache error log shows this error:

PHP Fatal error:  Call to a member function delete() on a non-object in /usr/share/glpi/plugins/ocsinventoryng/inc/ocsserver.class.php on line 5762, referer: http://server_name/glpi/plugins/ocsinventoryng/front/ocsng.sync.php

Could it be a bug on the ocsinventory plugin?

Offline

#3 2013-08-26 14:50:49

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: OCS automatic action hangs (glpi v.84 and OCS Ver. 2.0.1 )

I have fixed some hours ago: https://forge.indepnet.net/issues/4453


Support / dev / installation / configuration GLPI : dcs.glpi@dcsit-group.com
DCS : expert GLPI & FusionInventory / Développeur du plugin FusionInventory
IRC #glpi sur freenode.net

Offline

#4 2013-08-26 17:37:04

punkdali
Guest
Registered: 2008-03-18
Posts: 17

Re: OCS automatic action hangs (glpi v.84 and OCS Ver. 2.0.1 )

I've updated my server with the new file from https://forge.indepnet.net/issues/4453
and am happy to report the ocsng automatic action has been running successfully .

Offline

#5 2013-08-26 18:01:05

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: OCS automatic action hangs (glpi v.84 and OCS Ver. 2.0.1 )

Nice wink


Support / dev / installation / configuration GLPI : dcs.glpi@dcsit-group.com
DCS : expert GLPI & FusionInventory / Développeur du plugin FusionInventory
IRC #glpi sur freenode.net

Offline

#6 2013-08-27 09:45:00

jaraigon
Guest
Registered: 2013-08-26
Posts: 5

Re: OCS automatic action hangs (glpi v.84 and OCS Ver. 2.0.1 )

It also works for us.

Thanks a lot!

Offline

Board footer

Powered by FluxBB