Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.6 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

"Rollback" fail at System.pm line 282.

Hey there,

I installed the Server on Ubuntu 18.4 LTS.

so far so good, the System is running and the setup has been completed, after I figured out that I had to change the DB information in the z-ocsinventory-server.conf. before that I got an HTTP 500 on webbrowser while trying to start the install.php.

but now my problem is as follows:

I installed the 2.6 Version of the Agent on my Windows 10 System.

while the installation process I entered the IP for the OCS Server and the admin password (I don't know if this is necessary) but no data is showing up in the Server.

I had a look into the apache2/error.log:

Can't call method "rollback" on an undefined value at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Server/System.pm line 282.

the access.log shows the following line:

"POST /ocsinventory HTTP/1.1" 500 804 "-" "OCS-NG_WINDOWS_AGENT_v2.6.0.0

the OCS activity.log this:

OCS-NG_WINDOWS_AGENT_v2.6.0.0;database_connect;Access denied for user 'ocs'@'localhost' (using password: YES)

OCS-NG_WINDOWS_AGENT_v2.6.0.0;handler;Database connection

 The Agent OCSInventory.log on Client came up with this:

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>

I double and triplechecked the z-ocsinventory-server.conf and dbconfig.inc.php...

all provided usernames, Databasenames and passwords are correct there.
Does anyone have an idea, what I can do?

I'm using MariaDB 10.4.12 apache 2.4 and PHP7.2

It is a fresh installed system just for this service. And the first ocs Server I ever installed.

So I really need some help on this.

in OCS Inventory NG agent for Windows by (200 points)

4 Answers

0 votes

Don't forget to restart apache after modifications.

by (73.7k points)
0 votes
well, that didn't help. I also restarted the whole server several times. Always with the same result. As I wrote in the first place. all four log files still say the same.

any other suggestions?
by (200 points)
0 votes
User and password are not correct in z-ocsinventory-server.conf file. Verify and restart apache.

by (73.7k points)
0 votes
As I already wrote, I put the correct user inside the z-ocsinventory-server.conf. Otherwise I wasn't able to load the install.php because of HTTP 500 error. After I corrected this, I was able to finalize the installation.

So the data in this file, as well as in the dbconfig.ing.php is obviously correct.

But the clients can't send their data. The four errors in the logfiles are still present.
by (200 points)
edited by
Powered by Question2Answer