Giter Club home page Giter Club logo

Comments (6)

mgogoulos avatar mgogoulos commented on May 25, 2024 2

Hi rickhull, indeed this seems a bug related to an updated gevent version. It is encountered in Debian jessie, not in wheezy or earlier versions.

The solution (as in https://github.com/gevent/gevent/pull/517/files)
is inside your virtualenv, edit file ssl.py

mist@buildout-test:~/mist.io$ pwd
/home/mist/mist.io
mist@buildout-test:~/mist.io$ vi eggs/gevent-1.0.1-py2.7-linux-x86_64.egg/gevent/ssl.py

and change

def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv3, ca_certs=None):

to

def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv23, ca_certs=None):

then all services start

mist@buildout-test:~/mist.io$ ./bin/supervisorctl status
celery                           RUNNING   pid 21949, uptime 0:03:41
haproxy                          RUNNING   pid 21946, uptime 0:03:41
memcache                         RUNNING   pid 21951, uptime 0:03:41
rabbitmq                         RUNNING   pid 21950, uptime 0:03:41
socketio                         RUNNING   pid 21947, uptime 0:03:41
uwsgi                            RUNNING   pid 21948, uptime 0:03:41

Cheers

from mist-ce.

rickhull avatar rickhull commented on May 25, 2024

Did some research, and it looks like Debian wankery has broken python-gevent for python 2.7.x in this respect. Perhaps this is specific to Jessie (testing) at this moment and maybe not an issue in Wheezy or Sid.

docker-library/python#29
gevent/gevent#513
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770616

Some specifics from my machine:

rwh@search-docker:~/workspace/mist.io (master)$ apt-cache policy python-gevent
python-gevent:
  Installed: (none)
  Candidate: 1.0.1-2
  Version table:
     1.0.1-2 0
        500 http://mirrors.ocf.berkeley.edu/debian/ jessie/main amd64 Packages
rwh@search-docker:~/workspace/mist.io (master)$ apt-cache policy python2.7
python2.7:
  Installed: 2.7.9-2
  Candidate: 2.7.9-2
  Version table:
 *** 2.7.9-2 0
        500 http://mirrors.ocf.berkeley.edu/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status

Notice that I don't have python-gevent Debian package installed, so I must be using an upstream python package. Note that I am pretty fuzzy on python packaging. I'm guessing that Debian's python-gevent may work, but I'm not sure how to make virtualenv (or whatever) use it.

from mist-ce.

rickhull avatar rickhull commented on May 25, 2024

While I expect this is fixed in Debian's python-gevent package, this has also been fixed in upstream gevent, but the fix has not been released:

gevent/gevent#517

from mist-ce.

rickhull avatar rickhull commented on May 25, 2024

Confirmed that this works, thanks! Feel free to close or tag this issue however is appropriate.

from mist-ce.

mgogoulos avatar mgogoulos commented on May 25, 2024

Nice, let us know about your experience in mist.io, issues you've found, ideas etc.

from mist-ce.

ceremcem avatar ceremcem commented on May 25, 2024

Thank you mgogoulos.

from mist-ce.

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.