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-01-18 14:39:48

ecanton
Member
Registered: 2016-10-18
Posts: 55

OCS error with v9.1

Hi!

I'm try to do a automatic sync with both.

Manually it works, but if i configure it automaticly, it not works.

I'm using glpi 9.1 with ocsplugin 1.2.3

Regards.

Offline

#2 2017-01-18 14:51:44

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: OCS error with v9.1

automatically with cron system ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#3 2017-01-18 18:41:51

ecanton
Member
Registered: 2016-10-18
Posts: 55

Re: OCS error with v9.1

tsmr wrote:

automatically with cron system ?

No, with visual option over plugin.

Offline

#4 2017-01-19 10:21:52

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: OCS error with v9.1

With automatic actions ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#5 2017-01-19 11:33:58

ecanton
Member
Registered: 2016-10-18
Posts: 55

Re: OCS error with v9.1

Yes, I'd like this action will be automatic.

Manually it's woks right. Over Glpi, Tools->OCS Inventory NG -> Inventory Imports -> Synchronize already imported computers, and show all computer  pending synchronization.

But, it not works alone, it needs i push the button.

Explain me?

Regards!

Offline

#6 2017-01-19 11:49:32

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: OCS error with v9.1


Xavier Caillaud
Blog GLPI Infotel

Offline

#7 2017-01-19 12:33:01

ecanton
Member
Registered: 2016-10-18
Posts: 55

Re: OCS error with v9.1

I didn'n see nothing over sync process.

Offline

#8 2017-01-19 13:04:11

ecanton
Member
Registered: 2016-10-18
Posts: 55

Re: OCS error with v9.1

Ok:

It's extrange. My ocs conection is ocs/ocs (user/password) and not is ocs/ocsinventory (default), but when i connect to mysql over ocs_server it needs ocs/ocsinventory to connect, and not connect with ocs/ocs. Do i explain?

then, i do a manual sync over glpi server:

sh /var/www/tecnologias/plugins/ocsinventoryng/scripts/ocsng_fullsync.sh --thread_nbr=10 --server_id=1

It's working good appearly, because not report error. Later i see ocs log:

tail -100 ocsng_fullsync.log

and i look at the last 100 lines:  $tail -100 ocsng_fullsync.log and obtain ti:

Stack trace:
#0 /var/www/tecnologias/inc/dbmysql.class.php(81): DBmysql->connect(NULL)
#1 /var/www/tecnologias/inc/dbconnection.class.php(197): DBmysql->__construct()
#2 /var/www/tecnologias/inc/dbconnection.class.php(277): DBConnection::switchToMaster()
#3 /var/www/tecnologias/config/config.php(76): DBConnection::establishDBConnection(0, 1)
#4 /var/www/tecnologias/inc/includes.php(58): include_once('/var/www/tecnol...')
#5 /var/www/tecnologias/plugins/ocsinventoryng/scripts/ocsng_fullsync.php(50): include('/var/www/tecnol...')
#6 {main}
  thrown in /var/www/tecnologias/inc/dbmysql.class.php on line 111
cleaning up.

i look at this file with error on 111 line and i find it:

$this->dbh = @new mysqli($host, $this->dbuser, rawurldecode($this->dbpassword),$this->dbdefault);


What can i do? I'm crazy to try to resolve it.

Thanks.

Offline

#9 2017-01-20 17:35:20

ecanton
Member
Registered: 2016-10-18
Posts: 55

Re: OCS error with v9.1

Any Idea?

Manually it's woks right. Over Glpi, Tools->OCS Inventory NG -> Inventory Imports -> Synchronize already imported computers, and show all computer  pending synchronization But, it not works alone, it needs i push the button.

Offline

Board footer

Powered by FluxBB