Reputation: 684
Trying to make 'FILTER=app cap deploy', but getting this error. It raises on one notebook, but another deploys successfully.
What it could be?
options: os-x, rails, mongo, ec2, rubber.
[deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: app.uncoverage.com (SocketError: getaddrinfo: nodename nor servname provided, or not known) connection failed for: app.uncoverage.com (SocketError: getaddrinfo: nodename nor servname provided, or not known) Vyacheslavs-MacBook-Air:uncoverage vekozlov$ git reset --hard HEAD
UPD I added hosts to /etc/hosts and it works fine.
Upvotes: 1
Views: 2954
Reputation: 1263
This could sounds really stupid, but in my case it was a blank space at the end ip like:
sever 'xxx.xxx.xxx.xxx '
Upvotes: 5
Reputation: 16505
There are two main reasons in getting the exception SocketError: getaddrinfo: nodename nor servname provided, or not known
. The first is the loss connection, or invalid connection setup to DNS resolver, and the second invalid settings of current DNS. Please make sure that nslookup app.uncoverage.com
command correctly resolves the specified URI by verifying that the DNS is accessible and gives correct IP.
Upvotes: 1