Closed carletes closed 9 years ago
Seems it's connected with a versions of python in 14.04 & 14.10. ssl
package was changed between them.
Python requests of your version rely on the fact that ssl
package from standart library hasn't got SSLContext
:
https://github.com/kennethreitz/requests/blob/v2.3.0/requests/packages/urllib3/util/ssl_.py#L95
But it was backported from python 3.2+ to python 2.7.9.
So the bottom line is you can try to update python requests :-)
Thanks, @noxiouz! I tried running it with several versions of requests
, but to no avail :( I'm running it now in a container, anyway, so problem bypassed.
For anybody else who runs into this, it appears that running gunicorn with eventlet workers instead of gevent may be a viable workaround.
e.g.
gunicorn --access-logfile - --error-logfile - -k eventlet -b 0.0.0.0:5000 \
-w 4 --max-requests 100 docker_registry.wsgi:application
Why it's closed? Problem persists.
@akaspin the OP closed it himself.
The recommended way to run the registry is from a container.
This type of situation is exactly why running directly on your system is not recommended.
Nevertheless:
This bug also manifests itself if you're using an S3 storage backend, for what it's worth. Probably also any other boto-driven backend where SSL is involved. My solution was, as you recommended, to run it from the docker image.
I'm running
docker-registry
in mirror mode under Ubuntu 14.10. When I do adocker pull <image name>
, I see the following error in the logs ofdocker-registry
, and then the Docker daemon fetches the image from the Internet instead:I'm running Ubuntu 14.10 64-bit, and using the official Docker repositories. The output of
docker version
is the following:I have set up the Docker daemon to use my
docker-registry
instance by using this/etc/default/docker
:The
docker-registry
instance is started like this (usingdaemontools
):The configuration file I'm using for
docker-registry
is the following:The Python virtualenv
docker-registry
runs under is the following (this is the output ofpip freeze
):OpenSSL comes from the Ubuntu installation (don't know whether this is relevant), and its version number is:
Interestingly, I'm running the same setup under Ubuntu 14.04 LTS on another system, and things work perfectly well there.
Any hints?