[GH-ISSUE #43] cUrl error (#7): couldn't connect to host #22

Open
opened 2026-02-27 22:07:17 +03:00 by kerem · 1 comment
Owner

Originally created by @kdkaushik on GitHub (Jul 12, 2014).
Original GitHub issue: https://github.com/sibprogrammer/owp/issues/43

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 ???

Originally created by @kdkaushik on GitHub (Jul 12, 2014). Original GitHub issue: https://github.com/sibprogrammer/owp/issues/43 to debug I have added following code if ($result === FALSE) { printf("cUrl error (#%d): %s<br>\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> <description nil="true"/> <host>localhost</host> <id type="integer">1</id> <use_ssl type="boolean">false</use_ssl> <vswap type="boolean">true</vswap> </hardware_server> </hardware_servers> please help me ???
Author
Owner

@jnorell commented on GitHub (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.

<!-- gh-comment-id:48912058 --> @jnorell commented on GitHub (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 in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/owp#22
No description provided.