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

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

Agents can’t send inventory



My agents can’t send inventory to the server -  they get http error 500:

                COM SERVER => Initializing cURL library for sendRequest

                COM SERVER => Using cURL without server authentication

                COM SERVER => Disabling cURL proxy support

                COM SERVER => Disabling cURL SSL server validation support

                COM SERVER => Sending HTTP Post request to URL <http://ocsinventory-ng/ocsinventory>

                COM SERVER => HTTP Post response received <HTTP Status Code #500>

                COM SERVER => Cleaning cURL library


Apache access log:

XX.XX.XX.XX - - [02/Jul/2015:09:40:03 +0200] "POST /ocsinventory HTTP/1.1" 500 649 "-" "OCS-NG_WINDOWS_AGENT_v2.1.1.1"

Apache error log:

[Thu Jul 02 09:32:37.889241 2015] [perl:error] [pid 459] [client XX.XX.XX.XX:57432] Failed to open log file : Permission denied (/var/log/ocsinventory-server)\n

Permission to directory and file are ok:

drwxrwxrwx.  2 apache        apache            4096 Jun  2 10:19 ocsinventory-server

-rwxrwxrwx.  1 apache apache    2 Jul  2 09:07 activity.log

My sql user can connect to database:

[root@XX ocsinventory-server]# mysql -u ocs -p

Enter password:

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 26711

Server version: 5.5.41-MariaDB MariaDB Server

Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


MariaDB [(none)]> use ocsweb;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

I have correct values in z-ocsinventory-server.conf and dbconfig.inc.php.

Any ideas what’s wrong?


PS. My system in Centos 7 x64  with latest updates. I install OCS from tar archive.

in OCS Inventory NG server for Unix by (280 points)

1 Answer

0 votes
Disable SELinux resolve problem. Now I must add right context to /var/log/ocsinventory-server.
by (280 points)
Powered by Question2Answer