I just update my Ubuntu Server from 14.04LTS to 16.04LTS and OCS to 2.3, at this point everything was ok.
The ocs db was on a dedicated MySQL but I want to migrate it to the ocs web server.
Once the migration done, I changed the z-ocsinventory-server.conf et dbconfig.inc.php to point to the new server. GUI is ok but clients can't send theirs inventories.
A <HTTP Status Code #500> appears in the OCSinventory.log
When I check the Apache2 error log on the server i found this error:
Can't call method "do" on an undefined value at /usr/local/share/perl/5.22.1/Apache/Ocsinventory/Server/System.pm line 189.\n
I tested direct mysql connection and SHOW TABLES; with my db user -> OK
I hope someone could help me.