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.

fileGet response received <HTTP Status Code #500>

Hi.

Finally I install the OCS Inventory in Linyux, I am using Centos 7 and ussing rpm distribution of OCS. When finally install the server, I see the ocsagent 2.3.1.1 never report with OCS Sever.

I attach the error log, really I apprecite your help.

==============================================================================
Starting OCS Inventory NG Agent on Monday, February 19, 2018 21:39:31.
AGENT => Running OCS Inventory NG Agent Version 2.3.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.3.1.1
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.1.1>
    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 => Disabling cURL SSL server validation support
    COM SERVER => Sending fileGet request to URL <http://192.168.8.132/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 <GCAMACHO-2018-02-19-17-35-08> and MACs <54:8C:54:5A:3A:1154:8C:54:5A:3A:1154:8C:54:5A:3A:11E8:2A:EA:27:64:B954:8C:54:5A:3A:11E8:2A:EA:27:64:B5> 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.8.132/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.

in OCS Inventory NG agent for Unix by (160 points)

3 Answers

+1 vote
 
Best answer
Hi,

Take a look at apache error log file, you'll see this message "Can't call method "do" ..." This error is produced with a wrong mysql password set in /etc/httpd/conf.d/z-ocsinventory-server.conf file. Verify this file. If wrong change, save file and restart apache.

Kind regards

Frank
by (88.5k points)
selected by
0 votes
hola, tuve el mismo problema con el servidor ocs inventory 2.5 y el agente 2.4; estuve dando vueltas por la red y todos los foros indican que se deben cambiar las credenciales de acceso a la base de datos en los dos archivos de configuracion:

z-ocsinventory-server.conf

dbconfig.inc.php

di privilegios y cree un nuevo usuario para la base de datos pero se repetia el error, luego repise los privilegios para el usuario ocs (el usuario por defecto) y lo coloque en los archivos  correspondientes y tras reiniciar httpd, funciono.
by (220 points)
0 votes
Hi

Use english language to explain your problem.

Regards

Frank
by (88.5k points)
 
Powered by Question2Answer
...