I have checked the file z-ocsinventory-server.conf and dbconfig.inc.php and the user and password used to connect are correct.
In fact, there are some computers that are inventoried and some not.
But its OCSinventory.log show a error 500 in all.
That happens since I installed version 2.5 with the same bd as version 2.4
..............................................
..........................................
COM SERVER => Disabling cURL SSL server validation support
COM SERVER => Sending HTTP Post request to URL <https://xxx.xxxxxxxxx.es/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #500>
COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Inventory <HTTP Status Code #500>
AGENT => Communication Server ask for Package Download
DOWNLOAD => Found OCS Inventory Agent Setup result file <C:\ProgramData\OCS Inventory NG\Agent\download\OCSNG-Windows-Agent-Setup_done>
ERROR *** DOWNLOAD => Found result code <SUCCESS> for OCS Inventory Agent Setup package but no package ID specified, so remove all packages to avoid running Agent setup in loop !
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Download disabled by server
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:16.
==============================================================================
All the computers show all the information except software list.
But, if I install client with the option "Do not install for scaned software " the inventory is correct.
==============================================================================
..........................
INVENTORY => XML Update common Device properties
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL with server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Disabling cURL SSL server validation support
COM SERVER => Sending HTTP Post request to URL <https://oxxx.xxxxxxxxx.es/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
AGENT => Inventory successfully sent
INVENTORY => Writing new inventory state
AGENT => Communication Server asked for Package Download
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Download disabled by server
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:51.
Log of apache:
[Tue Oct 02 13:15:45.936406 2018] [:error] [pid 15839] [] PHP Warning: in_array() expects parameter 2 to be array, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 1803, referer: https://xxx.xxxxxxxxx.es/ocsreports/index.php?function=computer&head=1&systemid=489441&cat=other
[Tue Oct 02 13:15:45.936411 2018] [:error] [pid 15839] [] PHP Warning: in_array() expects parameter 2 to be array, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 1803, referer: https://xxx.xxxxxxxxx.es/ocsreports/index.php?function=computer&head=1&systemid=489441&cat=other
[Tue Oct 02 13:15:45.936416 2018] [:error] [pid 15839] [] PHP Warning: in_array() expects parameter 2 to be array, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 1803, referer: https://xxx.xxxxxxxxx.ess/ocsreports/index.php?function=computer&head=1&systemid=489441&cat=other