You are not logged in.
Pages: 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
Offline
automatically with cron system ?
No, with visual option over plugin.
Offline
Offline
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
Xavier Caillaud
Blog GLPI Infotel
Offline
I didn'n see nothing over sync process.
Offline
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
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
Pages: 1