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

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

<HTTP Status Code #500>

Hello, I updated my OCS and I've an error on Server (Apache) and an error on Agent.

Log of the agent, in Windows7:

Starting OCS Inventory NG Agent on Monday, October 26, 2015 05:05:23.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.3
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.0.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
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:38.

 

Log of Server (Apache), in Ubuntu Server:

DBD::mysql::db do failed: Duplicate entry '21776-0' for key 1 at /usr/local/share/perl/5.8.8/Apache/Ocsinventory/Server/Inventory/Update.pm line 117.
DBD::mysql::db do failed: Duplicate entry '18661-0' for key 1 at /usr/local/share/perl/5.8.8/Apache/Ocsinventory/Server/Inventory/Update.pm line 117.
DBD::mysql::db do failed: Duplicate entry '22096-0' for key 1 at /usr/local/share/perl/5.8.8/Apache/Ocsinventory/Server/Inventory/Update.pm line 117.

 

Log of OCS-Server:

Mon Oct 26 09:00:04 2015;11428;103;HP-2015-07-09-19-31-07;10.0.9.82;OCS-NG_WINDOWS_AGENT_v2.1.0.3;prolog;new_deviceid
Mon Oct 26 09:00:04 2015;11428;100;HP-2015-07-09-19-31-07;10.0.9.82;OCS-NG_WINDOWS_AGENT_v2.1.0.3;prolog;accepted
Mon Oct 26 09:00:04 2015;11428;311;HP-2015-07-09-19-31-07;10.0.9.82;OCS-NG_WINDOWS_AGENT_v2.1.0.3;session;started
Mon Oct 26 09:00:13 2015;11439;319;HP-2015-07-09-19-31-07;10.0.9.82;OCS-NG_WINDOWS_AGENT_v2.1.0.3;session;found
Mon Oct 26 09:00:13 2015;11439;104;HP-2015-07-09-19-31-07;10.0.9.82;OCS-NG_WINDOWS_AGENT_v2.1.0.3;inventory;incoming
Mon Oct 26 09:00:13 2015;11439;528;HP-2015-07-09-19-31-07;10.0.9.82;OCS-NG_WINDOWS_AGENT_v2.1.0.3;accountinfos;missing
Mon Oct 26 09:00:13 2015;11439;515;HP-2015-07-09-19-31-07;10.0.9.82;OCS-NG_WINDOWS_AGENT_v2.1.0.3;end;error

 

Thanks in advance.

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

1 Answer

0 votes

please search for the number 2147483647 in the whole Database.
use adimer to do this

https://www.adminer.org/en/
2147483647 ist the biggest value a signed int field can store.
It can happen that a int field overflows. Change the type to bigint.

Now you should be able to use OCS Inventory without problems (hopefully)

by (12.8k points)
 
Powered by Question2Answer
...