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

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

failed to send http post request <couldn'nt resolve host name>

Hello Everyone,

i am new here and i am in charge to deploy ocs on my compagny.i am facing a problem which i think come from my ocs server. in my ocsinventory.log file i have the message failed to send http post request < couldn't resolve host name>

when i open the error.log file on Apache, i see the error saying : can't call method "do" on an undefined value at c:/xampp/perl/site/lib/Apache/Ocsinventory/Server/System.pm line 177.

ocsserver version 2.3.0.0

ocs agent version 2.3.0.0

when i open the file i can't undrstand what the problem is.

please it is about a couple of day i am trying to solve this issue, that is the reason why i register here to beg for your help

thanks
in OCS Inventory NG server for Windows by (160 points)
edited by

3 Answers

0 votes
Hi,

The password for mysql user defined in ocsinventory-server.conf is not correct. By default this is set to ocs. Change it and restart apache after modifications.

Regards

Frank
by (90.2k points)
0 votes
hello,

thank frank for taking his time to answer my question. i have been looking the file ocsinventory-server.conf for several days now. i can see that i have changed the line number 32 written PerlSetVar OCS_BD_PWD by another password. that means i am no more using the default password. meanwhile i still have the same error couldn't resolve host name.

please if someone else can propose something i will be thankfull

Regards
by (160 points)
0 votes
I faced similar problem, i used password with $ sign due to which the connectivity problem. so i changed the password without using the '$' in the new password, it worked. please try and see.
by (160 points)
 
Powered by Question2Answer
...