Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cUrl error (#7): couldn't connect to host #43

Open
kdkaushik opened this issue Jul 12, 2014 · 1 comment
Open

cUrl error (#7): couldn't connect to host #43

kdkaushik opened this issue Jul 12, 2014 · 1 comment

Comments

@kdkaushik
Copy link

to debug I have added following code

if ($result === FALSE) {
printf("cUrl error (#%d): %s
\n", curl_errno($ch),
htmlspecialchars(curl_error($ch)));
}

Just before line - curl_close($ch);

It give me following error

cUrl error (#7): couldn't connect to host

When I manually try to connect at $host/api/hardware_servers/list it ask me password and username via a popup window. I provide the credentials and got the detail as -

<hardware_servers type="array">
<hardware_server>
<daemon_port type="integer">7767</daemon_port>
<default_os_template>centos-5</default_os_template>
<default_server_template>vswap-256m</default_server_template>

localhost
1
<use_ssl type="boolean">false</use_ssl>
true
</hardware_server>
</hardware_servers>

please help me ???

@jnorell
Copy link
Contributor

jnorell commented Jul 14, 2014

I'm half guessing, but that sounds like owp can't connect to your hardware daemon?

Is the hardware daemon running on your machine (eg. does "netstat -tna | grep 7767" show something listening on port 7767?)

If so, maybe check firewall rules, and make sure you can connect to 7767 on localhost addr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants