[Openstack] 401 unauthorized swift authentication

Kuo Hugo tonytkdk at gmail.com
Thu Apr 17 06:18:39 UTC 2014


For information in your memcached.conf :

# Specify which IP address to listen on. The default is to listen on all IP
addresses
# This parameter is one of the only security measures that memcached has,
so make sure
# it's listening on a firewalled interface.
-l 192.168.2.21

You need to set the memcache server address in proxy-server.conf. Hence the
default value is 127.0.0.1. But your memcached server is listening on
192.168.2.21

# memcache_servers = 127.0.0.1:11211


https://github.com/HugoKuo/swift/blob/master/etc/proxy-server.conf-sample#L306

Please correct it and restart your proxy server daemons.

Regards // Hugo Kuo


2014-04-17 4:40 GMT+08:00 Shrinand Javadekar <shrinand at maginatics.com>:

> Can you make sure that memcached is running on your machine? If not,
> make sure you install and run it.
>
> Also, I believe it is required that memcached be started first before
> starting swift. You might have to do:
>
> $ sudo service memcached stop
> $ swift-init all stop
> $ sudo service memcached start
> $ swift-init all start
>
> Hope that helps...
> -Shri
>
>
> On Wed, Apr 16, 2014 at 5:50 AM, Mayur Patil <ram.nath241089 at gmail.com>
> wrote:
> > Hi Kuo,
> >
> > This what I got from /var/log/syslog
> >
> > computenode  proxy-server STDOUT: ERROR:root:Error connecting to
> memcached:
> > 127.0.0.1:11211#012Traceback (most recent call last):#012  File
> > "/usr/lib/python2.7/dist-packages/swift/common/memcached.py", line 208,
> in
> > _get_conns#012    fp, sock = self._client_cache[server].get()#012  File
> > "/usr/lib/python2.7/dist-packages/swift/common/memcached.py", line 126,
> in
> > get#012    fp, sock = self.create()#012  File
> > "/usr/lib/python2.7/dist-packages/swift/common/memcached.py", line 119,
> in
> > create#012    sock.connect((host, int(port)))#012  File
> > "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 194, in
> > connect#012    socket_checkerr(fd)#012  File
> > "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 46, in
> > socket_checkerr#012    raise socket.error(err,
> > errno.errorcode[err])#012error: [Errno 111] ECONNREFUSED (txn:
> > tx4238af7ef0174fd78ef75-00534e7a1f) (client_ip: 172.114.25.2)
> >
> >
> >
> >
> >> Hi All,
> >>>
> >>>
> >>>      I am experimenting to install swift on single machine.
> >>>
> >>>      I am following this guide :
> >>>
> http://docs.openstack.org/havana/install-guide/install/apt/content/general-installation-steps-swift.html
> >>>
> >>>     What I have done is:
> >>>
> >>>     1. Created keystone endpoint using proxy-server IP i.e. machine on
> >>> which I am
> >>>
> >>>         installing all the swift services, for ex, 172.114.25.2.
> >>>
> >>>     2. Created Storage and proxy nodes as said in the guide.
> >>>
> >>>    then why I am getting the error ?
> >>>
> >>>  thanks!!
> >
> >
> > _______________________________________________
> > Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > Post to     : openstack at lists.openstack.org
> > Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140417/d6855e36/attachment.html>


More information about the Openstack mailing list