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 upon creating server #66

Closed
BentHaase opened this issue Mar 6, 2016 · 2 comments
Closed

Curl error upon creating server #66

BentHaase opened this issue Mar 6, 2016 · 2 comments

Comments

@BentHaase
Copy link

When creating a server I get this error:

An error occured while attempting to create the server: cURL error 7: Failed to connect to node.example.com port 5800: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

The reason for this is that curl is allowed to use ipv6 which ends in no connection to the daemon which is listening on ipv4. Please make sure to force ipv4 in all curl requests that the panel sends.

Testing from cmd on the same server :

Using curl node.example.com:5800 instead:

* Rebuilt URL to: node.example.com:5800/
*   Trying someIPv6...
* connect to someIPv6 port 5800 failed: Connection refused
* Failed to connect to node.example.com port 5600: Connection refused
* Closing connection 0
curl: (7) Failed to connect to node.example.com port 5800: Connection refused

Using curl -4 node.example.com:5800 instead:

* Rebuilt URL to: node.example.com:5800/
*   Trying someIPv4...
* Connected to node.example.com (someIPv4) port 5800 (#0)
> GET / HTTP/1.1
> Host: node.example.com:5800
> User-Agent: curl/7.43.0
> Accept: */*
> 
* Empty reply from server
* Connection #0 to host node.example.com left intact
curl: (52) Empty reply from server
@BentHaase
Copy link
Author

For me the issue was that the /etc/hosts file contained an entry for the hostname which resolved to an ipv6. But as long as the daemon does not accept ipv6 I think forcing ipv4 shall be the way to go.

@DaneEveritt
Copy link
Member

This seems more like a cURL/PHP/Host configuration issue more so than something the panel should be dealing with.

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