What does this Python requests error mean?
couchbase, python
Solution
Adding my own experience for those who are experiencing this in the future.
It turns out that this was actually because I had reach the maximum number of open files on my system. It had nothing to do with failed connections, or even a DNS error as indicated.
Problem
What does this Python requests error mean? Does this mean it tries to connect to the server and couldn't? What does `[Errno 8] nodename nor servname provided, or not known` mean? File "python2.7/site-packages/requests/api.py", line 55, in get File "python2.7/site-packages/requests/api.py", line 44, in request File "python2.7/site-packages/requests/sessions.py", line 279, in request File "python2.7/site-packages/requests/sessions.py", line 374, in send File "python2.7/site-packages/requests/adapters.py", line 209, in send ConnectionError: HTTPConnectionPool(host='localhost', port=8091): Max retries exceeded with url: /pools/default (Caused by : [Errno 8] nodename nor servname provided, or not known The code generated this: http://github.com... ``` class RestConnection(object): def __init__(self, serverInfo): #serverInfo can be a json object if isinstance(serverInfo, dict): self.ip = serverInfo["ip"] self.username = serverInfo["username"] self.password = serverInfo["password"] self.port = serverInfo["port"] self.couch_api_base = serverInfo.get("couchApiBase") else: self.ip = serverInfo.ip self.username = serverInfo.rest_username self.password = serverInfo.rest_password self.port = serverInfo.port self.couch_api_base = None self.base_url = "http://{0}:{1}".format(self.ip, self.port) server_config_uri = ''.join([self.base_url, '/pools/default']) self.config = requests.get(server_config_uri).json() # if couchApiBase is not set earlier, let's look it up if self.couch_api_base is None: #couchApiBase is not in node config before Couchbase Server 2.0 self.couch_api_base = self.config["nodes"][0].get("couchApiBase") ``` FYI, This error is generated from the Couchbase Python client.