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.

HTTP Status Code #500

Hi there! I'm install OCS Server on virtual machine with Ubuntu and OCS Agent on virtual machine with Windows. When I try to connect to server by agent I see this information in log file:

============================================================================== 
Starting OCS Inventory NG Agent on Sunday, April 30, 2017 20:38:02. 
AGENT => Running OCS Inventory NG Agent Version 2.3.0.0 
AGENT => Using OCS Inventory NG FrameWork Version 2.3.0.0 
AGENT => Loading plug-in(s) 
DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\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 (x86)\OCS Inventory Agent\ComHTTP.dll> 
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.3.0.0> 
AGENT => Sending getLabel request 
COM SERVER => Initializing cURL library for getFile 
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 fileGet request to URL <http://10.71.34.101/ocsinventory/deploy/label> 
COM SERVER => fileGet response received <HTTP Status Code #500> 
COM SERVER => Cleaning cURL library 
AGENT => Failed to retrieve Label <HTTP Status Code #500> 
AGENT => Sending Prolog 
DID_CHECK => Read DeviceID <VIRT- 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.71.34.101/ocsinventory> 
COM SERVER => HTTP Post response received <HTTP Status Code #500>

file ocsinventory-server.conf is correct, what wrong?

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

1 Answer

+1 vote
Hi,

If you made a recent change to the ocsinventory-server.conf file, did you restart Apache service ?

What is the version of your OCS server?

If you are using an SSL certificate (cacert.pem), you should communicate with the server in https, not http...

Regards, Stéphane
by (32.6k points)
edited by
 
Powered by Question2Answer
...