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.

Clients not registred

Hallo,

After upgrading to the most recent version of ocs, although the clients communicate with the server, their inventory is not finally sent.

I attach the log of a client

Starting OCS Inventory NG Agent on Thursday, October 20, 2016 09:44:28.
AGENT => Running OCS Inventory NG Agent Version 2.2.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.2.0.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Inventory required
AGENT => Launching hardware and software checks
AGENT => Sending Inventory
INVENTORY => Inventory changed since last run
ERROR *** AGENT => Failed to send Inventory <HTTP Status Code #500>
AGENT =>  Communication Server ask for Package Download
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:45.

and the corresponding log from the server

root:localhost:/var/log/ocsinventory-server:1026># tail -f /var/log/ocsinventory-server/activity.log | grep POLEO-THE-20

Thu Oct 20 09:44:28 2016;14509;311;POLEO-THE-20-2016-09-28-09-29-04;10.66.106.160;OCS-NG_WINDOWS_AGENT_v2.2.0.0;session;started

Thu Oct 20 09:45:13 2016;14577;319;POLEO-THE-20-2016-09-28-09-29-04;10.66.106.160;OCS-NG_WINDOWS_AGENT_v2.2.0.0;session;found

Thu Oct 20 09:45:13 2016;14577;104;POLEO-THE-20-2016-09-28-09-29-04;10.66.106.160;OCS-NG_WINDOWS_AGENT_v2.2.0.0;inventory;incoming

Thu Oct 20 09:45:13 2016;14577;515;POLEO-THE-20-2016-09-28-09-29-04;10.66.106.160;OCS-NG_WINDOWS_AGENT_v2.2.0.0;end;error

 

Also, I have to note that the PC's that do not manage to communicate, appear in terms of records in the prolog_conntrack table in the database.

thanks in advance
in OCS Inventory NG server for Unix by (240 points)

6 Answers

0 votes
Hi

Error 500 means that you have a communication problem between ocs server and mysql. Please post the content of error_log file to validate this error.

After the update have you restarted apache?

Regards

Frank
by (88.5k points)
0 votes

Hi and thnks for the answer.

Apache has been restared several times.

It's indeed strange that the error is related to mysql password. f it is wrong, the the web interface could operate without errors?

Why other clients (inventoried before the update) keeps sending informations just fine?

Where can I check this password?In which file?

I've also noticed that in the start page I get 

Machines contacted today 0

Machines Inventoried today 0

even if i get inventories !!!!! 

Please help! 

by (240 points)
0 votes
Hi,

Please confirm that you have "Can't call method..." errors in /var/log/<httpd|apache2>/error_log file.

After upgrade z-ocsinventory-server.conf file is reset to default. This file is located in /etc/<httpd|apache2>/conf.d directory. You have to modify it to your needs and restart apache after.

Regards

Frank
by (88.5k points)
0 votes
Yes, we indeed have such errors

e.g.,

"Can''t call method "do" on an undefined value at /usr/local/share/perl5/Apache/Ocsinventory/Server/System.pm line 177.\n"

We have modified the conf file under conf.d according to our certain settings (mysql etc).
by (240 points)
0 votes
And? You have always the problem or not?

Frank
by (88.5k points)
0 votes

What you mean always? I I said before, after the upgrade, everything works ok, excpet that the inventories of new machines ends up with the error http 500 and 

Thu Oct 20 09:45:13 2016;14577;104;POLEO-THE-20-2016-09-28-09-29-04;10.66.106.160;OCS-NG_WINDOWS_AGENT_v2.2.0.0;inventory;incoming

Thu Oct 20 09:45:13 2016;14577;515;POLEO-THE-20-2016-09-28-09-29-04;10.66.106.160;OCS-NG_WINDOWS_AGENT_v2.2.0.0;end;error

any ideas?

by (240 points)
 
Powered by Question2Answer
...