pluginsGLPI / ocsinventoryng

Plugin ocsinventoryng for GLPI
GNU General Public License v2.0
68 stars 52 forks source link

Can't import new computers to GLPI from OCS Inventory using plugin 1.7.0 #258

Closed snowliou closed 3 years ago

snowliou commented 3 years ago

Hello

I hope Google translates well... I installed GLPI and OCS on the Centos 7 server, then configured them and installed the OCS plugin (1.7.1) on GLPI After the first synchronization, the OCS computer cannot be synchronized to GLPI correctly, only the computer name is displayed on GLPI, and the detailed data is not synchronized. And after manual synchronization, there are many waiting information points that cannot be synchronized normally, and then click debug mode to appear PHP User deprecated function (16384): Use sodiumDecrypt in /var/www/html/glpi/inc/toolbox.class.php at line 632 PHP User deprecated function (16384): Use sodiumDecrypt in /var/www/html/glpi/inc/toolbox.class.php at line 632 PHP User deprecated function (16384): Use sodiumDecrypt in /var/www/html/glpi/inc/toolbox.class.php at line 632 PHP User deprecated function (16384): Use sodiumDecrypt in /var/www/html/glpi/inc/toolbox.class.php at line 632

PHP User deprecated function (16384): Use sodiumDecrypt in /var/www/html/glpi/inc/toolbox.class.php at line 632 PHP User deprecated function (16384): Use DBmysql::fetchRow() in /var/www/html/glpi/inc/toolbox.class.php at line 632

Does anyone know what's wrong? thank you for your time.

centos 7.5 OCS 2.8 GLPI 9.5.2 Plugin 1.7.0 image

snowliou commented 3 years ago

View error log: [Wed Oct 28 14:13:47.353580 2020] [php7:warn] [pid 211248:tid 140132837455616] [client XXXXX:62637] PHP Warning: mysqli::real_connect(): (HY000/1045): Access denied for user'ocs'@'localhost' (using password: NO) in /var/www/html/glpi/inc/dbmysql.class.php on line 185, referer: http://XXXX/glpi/plugins/ocsinventoryng /front/ocsng.php

tsmr commented 3 years ago

Hello Can you try to save the server configuration by resetting the password? (not change the password in mysql) - just add the password field & save the form glpi/plugins/ocsinventoryng/front/ocsserver.form.php?id=X

tsmr commented 3 years ago

& try this too : https://github.com/pluginsGLPI/ocsinventoryng/commit/a88a9f79581cf4bd0e7393d70bd554d80cfc6230

snowliou commented 3 years ago

Hello Can you try to save the server configuration by resetting the password? (not change the password in mysql) - just add the password field & save the form glpi/plugins/ocsinventoryng/front/ocsserver.form.php?id=X

Do you use the web to reset the password?

tsmr commented 3 years ago

Do not change password in database ! Just go on form : glpi/plugins/ocsinventoryng/front/ocsserver.form.php?id=X & just add the password field & save the form

snowliou commented 3 years ago

嘗試一下:a88a9f7

image image

PHP User Warning (512): Unable to extract nonce from content. It may not have been crypted with sodium functions. in /var/www/html/glpi/inc/toolbox.class.php at line 293 PHP Warning (2): mysqli::real_connect(): (HY000/1045): Access denied for user 'ocs'@'localhost' (using password: NO) in /var/www/html/glpi/inc/dbmysql.class.php at line 185 PHP User Warning (512): Unable to extract nonce from content. It may not have been crypted with sodium functions. in /var/www/html/glpi/inc/toolbox.class.php at line 293 PHP Warning (2): mysqli::real_connect(): (HY000/1045): Access denied for user 'ocs'@'localhost' (using password: NO) in /var/www/html/glpi/inc/dbmysql.class.php at line 185

PHP User Warning (512): Unable to extract nonce from content. It may not have been crypted with sodium functions. in /var/www/html/glpi/inc/toolbox.class.php at line 293 PHP Warning (2): mysqli::real_connect(): (HY000/1045): Access denied for user 'ocs'@'localhost' (using password: NO) in /var/www/html/glpi/inc/dbmysql.class.php at line 185 PHP Warning (2): mysqli::query(): invalid object or resource mysqli in /var/www/html/glpi/inc/dbmysql.class.php at line 299 SQL Error "1045": Access denied for user 'ocs'@'localhost' (using password: NO) in query "SELECT COUNT(*) FROM deleted_equiv" PHP User deprecated function (16384): Use DBmysql::fetchRow() in /var/www/html/glpi/inc/toolbox.class.php at line 632 Uncaught Exception Error: Call to a member function fetch_row() on bool in /var/www/html/glpi/inc/dbmysql.class.php at line 471

tsmr commented 3 years ago

Please test use the master version of the plugin

snowliou commented 3 years ago

Please test use the master version of the plugin

I do not quite understand you...

Blank-Vcf commented 3 years ago

Use the green code button on the project code tab. You will get zip and extract everyting as you do it in the plugin folder.

tsmr commented 3 years ago

https://github.com/pluginsGLPI/ocsinventoryng/releases/tag/1.7.3