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

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

/ocsinventory route gives me Internal Server Error [closed]

HI,

I set up an OCS Server (latest 2.3 version) using an Ubuntu 14.04 machine following the steps in: http://wiki.ocsinventory-ng.org/index.php?title=Documentation:Server.

The web client (/ocsreports) seems to work well, however the /ocsinventory route only returns an Internal Server Error, code 500, with no specific details on the error.

/var/log/apache2/error.log doesn't output any relevant errors.

/var/log/apache2/error.log outputs:

[Mon Feb 06 16:46:13.339244 2017] [perl:error] [pid 1733] [client 192.168.1.1:54770] Can't call method "do" on an undefined value at /usr/local/share/perl/5.18.2/Apache/Ocsinventory/Server/System.pm line 189.\n

During installation I got a warning I could not solve:

Checking for Apache2::SOAP PERL module...
*** Warning: PERL module Apache2::SOAP is not installed !
This module is only required by OCS Inventory NG SOAP Web Service.

However the module IS installed, so I don't get it why it can't detect it. Is this relevant?

Do you have any idea what could have gone wrong? Where else could I look for errors?

Did I miss any configuration to get the /ocsinventory endpoint working?

Thanks in advance

closed with the note: Solution by frankb
in OCS Inventory NG server for Unix by (160 points)
closed by

1 Answer

+1 vote
 
Best answer
Hi,

Change mysql ocs password and/or mysql ocs user in z-ocsinventory-server.conf file according to what you have declared during installation then restart apache.

Regards

Frank
by (90.4k points)
selected by
 
Powered by Question2Answer
...