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.9.1 available

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

/ocsinventory HTTP 500 Error [closed]

I am trying to setup a little OCS Inventory system, to upload a few manually scanned agents.  I have the .ocs files from the agent systems.  I am able to login to the /ocsreports UI, and I go to Manage->Local Import, select the .ocs file, and click Send.  This returns an Error 500.  

There is nothing written to the ocsinventory-server log, and the Apache log states perl::error Cant call method "do" on an undefined value at /usr/local/share/perl5/Apache/Ocsinventory/Server/System.pm.

When I did the setup, I had an issue where I googled the answer to copy the Ocsinventory and Ocsinventory.pm files to the /usr/share/perl5/Apache location.  Perhaps thats causing an issue?   (http://ask.ocsinventory-ng.org/4615/apache-dont-start-cant-locate-apache-pm)

This is all based on the latest versions from github, which I downloaded and installed yesterday.
closed with the note: solved
in OCS Inventory NG server for Unix by (180 points)
closed by

1 Answer

0 votes
figured it out.  My MySQL server is set to only accept connections from 127.0.01, so the localhost entry in the z-ocsinventory.conf file was the issue.

This post lead me to the answer.

http://ask.ocsinventory-ng.org/1/i-got-an-error-500-when-my-agent-contact-the-server?show=1#q1
by (180 points)
 
Powered by Question2Answer
...