title: influxDB HTTPConnectionPool Max retries exceeded with url
body: <p>I have system that includes BLE sensors and raspberry pi. In raspi my python(v2.7) scripts get datas from BLE and create influxDB if there is not and append datas to it. influxDB is on raspberry. I added start command for python script on rc.local. For the first time it starts and everything is good. After 6~10 hr (alots of data saved on db) when i restart raspberry it could not start script becase it does not reach database when system boot. Error is:</p>
  
  <pre><code>error initializing influxDB output interface HTTPConnectionPool(host='10.1.0.66', port=8086): Max retries exceeded with url: /query?q=SHOW+DATABASES&amp;db=db_omrons (Caused by NewConnectionError('&lt;urllib3.connection.HTTPConnection object at 0x75e60670&gt;: Failed to establish a new connection: [Errno 111] Connection refused',))Exit
  </code></pre>
  
  <p>But when I connect with SSH and start script with manually on command line after this error it starts perfectly. I dont know reason exactly but my guess is that is about starting time of influxDB not enough fast for my python script control on boot. My tries are(not successed):</p>
  
  <ul>
  <li>adding sleep command at rc.local before start the python script</li>
  <li>changing urlopen function parameter (in /usr/lib/python2.7/dist-packages/urllib3/connectionpooly.py) retries=retries to retries=False and retries=1<code>return self.urlopen(
              method, redirect_location, body, headers,
              retries=retries , redirect=redirect,
              assert_same_host=assert_same_host,
              timeout=timeout, pool_timeout=pool_timeout,
              release_conn=release_conn, **response_kw)</code></li>
  <li>changing host name 'localhost' to direct raspberry IP adress '10.1.0.66' (as you can see over error)</li>
  <li>waiting network connection on boot (not relevant but just for try)</li>
  </ul>
  
  <p>successed but not usable method to solve is:</p>
  
  <ul>
  <li>remove indluxDB totaly with purge and reinstall it</li>
  </ul>