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

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

[SOLVED] Computers won't show up on OCS Server

Hi Everyone,

Just did a fresh install of OCS server on Ubuntu server 18.04

Installed agent on windows machine but nothing shows up on OCS reports

Thanks for your help, if you have any idea

Windows OCS agent log:

==============================================================================

Starting OCS Inventory NG Agent on Sunday, February 02, 2020 13:58:59.

AGENT => Running OCS Inventory NG Agent Version 2.6.0.0

AGENT => Using OCS Inventory NG FrameWork Version 2.6.0.0

AGENT => Loading plug-in(s)

DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>

DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found

AGENT => Using network connection with Communication Server

COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>

AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.6.0.0>

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <DESKTOP-EVRB4T9-2020-02-02-13-27-06> and MACs <00:D8:61:9C:65:5E0A:00:27:00:00:0700:15:5D:5D:57:A9> in file <ocsinventory.dat>

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://192.168.1.22/ocsinventory>

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

COM SERVER => Cleaning cURL library

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

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:00.

Apache error log

[Sun Feb 02 11:45:49.023236 2020] [mpm_prefork:notice] [pid 4895] AH00169: caught SIGTERM, shutting down

[Sun Feb 02 11:45:49.363371 2020] [mpm_prefork:notice] [pid 5075] AH00163: Apache/2.4.29 (Ubuntu) mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations

[Sun Feb 02 11:45:49.363412 2020] [core:notice] [pid 5075] AH00094: Command line: '/usr/sbin/apache2'

[Sun Feb 02 11:45:52.097793 2020] [php7:warn] [pid 5083] [client 192.168.1.25:62566] PHP Warning:  require_once(/usr/share/ocsinventory-reports/ocsreports/vendor/autoload.php): failed to open stream: No such file or directory in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 31, referer: http://192.168.1.22/ocsreports/install.php

[Sun Feb 02 11:45:52.097823 2020] [php7:error] [pid 5083] [client 192.168.1.25:62566] PHP Fatal error:  require_once(): Failed opening required '/usr/share/ocsinventory-reports/ocsreports/vendor/autoload.php' (include_path='.:/usr/share/php') in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 31, referer: http://192.168.1.22/ocsreports/install.php

[Sun Feb 02 11:48:26.077525 2020] [mpm_prefork:notice] [pid 5075] AH00169: caught SIGTERM, shutting down

[Sun Feb 02 11:48:26.404163 2020] [mpm_prefork:notice] [pid 5117] AH00163: Apache/2.4.29 (Ubuntu) mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations

[Sun Feb 02 11:48:26.404192 2020] [core:notice] [pid 5117] AH00094: Command line: '/usr/sbin/apache2'

[Sun Feb 02 11:49:23.506664 2020] [php7:warn] [pid 5125] [client 192.168.1.25:62780] PHP Warning:  require_once(/usr/share/ocsinventory-reports/ocsreports/vendor/autoload.php): failed to open stream: No such file or directory in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 31, referer: http://192.168.1.22/ocsreports/install.php

[Sun Feb 02 11:49:23.506693 2020] [php7:error] [pid 5125] [client 192.168.1.25:62780] PHP Fatal error:  require_once(): Failed opening required '/usr/share/ocsinventory-reports/ocsreports/vendor/autoload.php' (include_path='.:/usr/share/php') in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 31, referer: http://192.168.1.22/ocsreports/install.php

[Sun Feb 02 12:11:22.018153 2020] [mpm_prefork:notice] [pid 5117] AH00169: caught SIGTERM, shutting down

[Sun Feb 02 12:11:22.369161 2020] [mpm_prefork:notice] [pid 5562] AH00163: Apache/2.4.29 (Ubuntu) mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations

[Sun Feb 02 12:11:22.369198 2020] [core:notice] [pid 5562] AH00094: Command line: '/usr/sbin/apache2'

[Sun Feb 02 12:14:29.387730 2020] [mpm_prefork:notice] [pid 5562] AH00169: caught SIGTERM, shutting down

[Sun Feb 02 12:14:29.719268 2020] [mpm_prefork:notice] [pid 5638] AH00163: Apache/2.4.29 (Ubuntu) mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations

"error.log" 94L, 22605C 

in OCS Inventory NG agent for Windows by (320 points)
edited by

2 Answers

0 votes

Got something new:

/var/log/ocsinventory-server$ sudo vim activity.log

Sun Feb  2 19:19:47 2020;2342;521;NA;192.168.1.25;OCS-NG_WINDOWS_AGENT_v2.6.0.0;database_connect;Access denied for user 'ocs'@'localhost' (using password: YES)

Sun Feb  2 19:19:47 2020;2342;505;NA;192.168.1.25;OCS-NG_WINDOWS_AGENT_v2.6.0.0;handler;Database connection

WTF i made sure in mariadb to grant all privileges to ocs user O_o
by (320 points)
0 votes

Aaaand for my case i found the solution myself:

I don't know why but it was filled with the wrong database user and password in file 

z-ocsinventory-server.conf 

located in folder /etc/apache2/conf-available

Modify the file then restart apache2 service:  sudo /etc/init.d/apache2 restart

by (320 points)
 
Powered by Question2Answer
...