Code Monkey home page Code Monkey logo

Comments (5)

jwerak avatar jwerak commented on July 4, 2024

Another info, after timeout traceback was:

Traceback (most recent call last):
  File "scripts/etcd_test.py", line 9, in <module>
    print client.write('/writetest', 'TESTSTRING')
  File "/usr/lib/python2.7/site-packages/python_etcd-0.3.2-py2.7.egg/etcd/client.py", line 272, in write
    response = self.api_execute(path, method, params=params)
  File "/usr/lib/python2.7/site-packages/python_etcd-0.3.2-py2.7.egg/etcd/client.py", line 581, in api_execute
    self._base_uri = self._next_server()
  File "/usr/lib/python2.7/site-packages/python_etcd-0.3.2-py2.7.egg/etcd/client.py", line 539, in _next_server
    raise etcd.EtcdException('No more machines in the cluster')
etcd.EtcdException: No more machines in the cluster

so it has troubles in writing to etcd db for some reason. Is this library tested with etcd 0.4.6?

from python-etcd.

chadlung avatar chadlung commented on July 4, 2024

Per the readme it looks like the client is only supporting the 2.0 release candidate versions and up now: "Install etcd (0.2.rc1 or later). This version of python-etcd will only work correctly with the etcd API version 2".

I wonder with you using 0.4.6 if that is the issue? I tested with the latest python-etcd source code, etcd 2.0.0 RC1 and Python 3.4.2 and didn't have any issues.

from python-etcd.

cameronmaske avatar cameronmaske commented on July 4, 2024

I'm encountering a similar problem.
I think it has something to do with etcd 0.4.6 returning a 307 (HTTP/1.1 307 Temporary Redirect) and urllib3 not following that on a PUT request.

@veverjak Were you running python-etcd through an SSH tunnel?

from python-etcd.

jwerak avatar jwerak commented on July 4, 2024

Nope, it was called from docker container running on CoreOS host.
I was connecting to etcd running on CoreOS.

from python-etcd.

lavagetto avatar lavagetto commented on July 4, 2024

The library is tested with 0.4.6 and failure to write while you can still read means your etcd cluster has lost quorum, most probably.

from python-etcd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.