Ask Your Question

Unable to connect to server. Got error: [Errno 111] ECONNREFUSED

asked 2011-10-07 10:39:07 -0500

moeketsi-christopher gravatar image

I am trying to get glance working with swift. These are the commands that I ran to make sure that swift is running - which it is ! :-). curl -k -v -H 'X-Storage-User: system:root' -H 'X-Storage-Pass: testpass' * About to connect() to port 8080 (#0) * Trying connected * Connected to ( port 8080 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS handshake, Server finished (14): * SSLv3, TLS handshake, Client key exchange (16): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSL connection using AES256-SHA * Server certificate: * subject: C=SA; ST=gautang; L=johannesburg; O= ; OU=cns; CN=; emailAddress=** * start date: 2011-10-04 08:03:36 GMT * expire date: 2011-11-03 08:03:36 GMT * common name: (matched) * issuer: C=SA; ST=gautang; L=johannesburg; O=wits; OU=cns; CN=; emailAddress=* * SSL certificate verify result: self signed certificate (18), continuing anyway.

GET /auth/v1.0 HTTP/1.1 User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/ libidn/1.18 Host: Accept: / X-Storage-User: system:root X-Storage-Pass: testpass

< HTTP/1.1 200 OK < X-Storage-Url: ( < X-Storage-Token: AUTH_tk7b8f180d01ef4be8ada6635cc50a0f8e < X-Auth-Token: AUTH_tk7b8f180d01ef4be8ada6635cc50a0f8e < Content-Length: 0 < Date: Fri, 07 Oct 2011 09:37:33 GMT < * Connection #0 to host left intact * Closing connection #0 * SSLv3, TLS alert, Client hello (1)

I have uploaded a couple of files and swift works.

The problem that I am now having is when I try and upload a file using glance into swift I get Unable to connect to server. Got error: [Errno 111] ECONNREFUSED.

The glance settings are .


Show more verbose log output (sets INFO log level output)

verbose = True

Show debugging output in logs (sets DEBUG log level output)

debug = true

Which backend store should Glance use by default is not specified

in a request to add a new image to Glance? Default: 'file'

Available choices are 'file', 'swift', and 's3'

default_store = swift

Address to bind the API server

bind_host =

Port the bind the API server to

bind_port = 9292

Address to find the registry server

registry_host =

Port the registry server is listening on

registry_port = 9191

Log to this file. Make sure you do not set the same log

file for both the API and registry servers!

log_file = /var/log/glance/api.log

Send logs to syslog (/dev/log) instead of to file specified by log_file

use_syslog = False

============ Filesystem Store Options ========================

Directory that the Filesystem backend store ...

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2011-10-07 13:26:10 -0500

moeketsi-christopher gravatar image

I forgot to change the registry port to 9191. When O changed it I got an authentication error.

edit flag offensive delete link more

answered 2011-10-07 13:31:29 -0500

jaypipes gravatar image

Try setting your swift_store_auth_url option to this:

swift_store_auth_address =

In other words, don't include the https://

Cheers, -jay

edit flag offensive delete link more

answered 2013-01-25 08:14:10 -0500

may be this cause by the lacking of [paste_deploy] flavor = keystone

in glance-api.conf and glance-registry.conf

Please recheck your config files

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-10-07 10:39:07 -0500

Seen: 564 times

Last updated: Jan 25 '13