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.

OCS Agent doesn`t work

Hi guys :)

I`m new to ocsinventory and i have a problem now:

first of all, I`ve successfully set up the OCS Server and deployed over 250 Agents, all these agents are working fine.

but recently I reinstalled the agent on my PC and deleted the host on the server, then here comes the problem.

I kept receiving errors in Windows log, as I posted here:


Service encounter error <Failed to load/parse last inventory state>.


I`m not sure if this is the reason but I do cannot see the same mistake on other computers that is working fine.

and also, I`ll POST part of ocsinventory.log smiley:


INVENTORY => XML Update 5 Printer(s)
INVENTORY => XML Update 457 Software
INVENTORY => XML Update 0 Registry Value(s)
INVENTORY => XML Update Administrative Information(s)
INVENTORY => XML Update common Device properties
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending HTTP Post request to URL <http://10.243.16.76:8080/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #500>
COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Inventory <HTTP Status Code #500>
AGENT =>  Communication Server ask for Package Download
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Download disabled by server
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:15.

as you can see I have a HTTP Status Code #500 error here. So I`ll just Also POST Apache Error.log here :)


Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db handle database=ocsweb;host=10.243.16.83;port=3306 at C:/xampp/perl/site/lib/Apache/Ocsinventory.pm line 64.
Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db handle database=ocsweb;host=10.243.16.83;port=3306 at C:/xampp/perl/site/lib/Apache/Ocsinventory.pm line 64.
Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db handle database=ocsweb;host=10.243.16.83;port=3306 at C:/xampp/perl/site/lib/Apache/Ocsinventory.pm line 64.

I can see thousands of the same error above.

But since all other agents are working fine(Saying working fine, I mean I can even see these computers still contacting server just now.),I believe there is something wrong with my computer istead of the server.

ahmmm...I almost forget, here is my ocsinventory.ini :)


[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=0
HKCU=0
NoTAG=1
IpDisc=
[HTTP]
Server=http://10.243.16.76:8080/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
PROLOG_FREQ=1
OLD_PROLOG_FREQ=1
TTO_WAIT=900

any advice will be helpful.

 

Thanks all you guys in advance!

:)

 

in OCS Inventory NG agent for Windows by (120 points)

1 Answer

0 votes
If you delete the old computer and relaunch the inventory ? Is it working again ?
by (22k points)
Thanks for your response Kapouik :)

 

Unfortunately not working.

Actually that`s exactily what i have done.I deleted the host in the ocsreports and re-install the agen on my computer.

I`ve done it many times and Still  doesn`t work.

 

but I`ve added two triggers in the mysql database. after i removed the triggers, it`s workin again.I don`t know if this is the reason.

 

Thank you for your reply!

:)
 
Powered by Question2Answer
...