<div dir="ltr"><div>For information in your memcached.conf : </div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><font color="#cccccc"># Specify which IP address to listen on. The default is to listen on all IP addresses</font><br>
<font color="#cccccc"># This parameter is one of the only security measures that memcached has, so make sure</font><br><font color="#cccccc"># it's listening on a firewalled interface.</font><br><font color="#ff0000">-l 192.168.2.21</font><br>
<br></blockquote>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<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre;background-color:rgb(255,255,204)"># memcache_servers = <a href="http://127.0.0.1:11211">127.0.0.1:11211</a></span></div>
</blockquote><div><br></div><div><a href="https://github.com/HugoKuo/swift/blob/master/etc/proxy-server.conf-sample#L306">https://github.com/HugoKuo/swift/blob/master/etc/proxy-server.conf-sample#L306</a><br></div><div><br>
</div><div>Please correct it and restart your proxy server daemons. </div><div><br></div><div>Regards // Hugo Kuo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-17 4:40 GMT+08:00 Shrinand Javadekar <span dir="ltr"><<a href="mailto:shrinand@maginatics.com" target="_blank">shrinand@maginatics.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you make sure that memcached is running on your machine? If not,<br>
make sure you install and run it.<br>
<br>
Also, I believe it is required that memcached be started first before<br>
starting swift. You might have to do:<br>
<br>
$ sudo service memcached stop<br>
$ swift-init all stop<br>
$ sudo service memcached start<br>
$ swift-init all start<br>
<br>
Hope that helps...<br>
-Shri<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Apr 16, 2014 at 5:50 AM, Mayur Patil <<a href="mailto:ram.nath241089@gmail.com">ram.nath241089@gmail.com</a>> wrote:<br>
> Hi Kuo,<br>
><br>
> This what I got from /var/log/syslog<br>
><br>
> computenode  proxy-server STDOUT: ERROR:root:Error connecting to memcached:<br>
> <a href="http://127.0.0.1:11211#012Traceback" target="_blank">127.0.0.1:11211#012Traceback</a> (most recent call last):#012  File<br>
> "/usr/lib/python2.7/dist-packages/swift/common/memcached.py", line 208, in<br>
> _get_conns#012    fp, sock = self._client_cache[server].get()#012  File<br>
> "/usr/lib/python2.7/dist-packages/swift/common/memcached.py", line 126, in<br>
> get#012    fp, sock = self.create()#012  File<br>
> "/usr/lib/python2.7/dist-packages/swift/common/memcached.py", line 119, in<br>
> create#012    sock.connect((host, int(port)))#012  File<br>
> "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 194, in<br>
> connect#012    socket_checkerr(fd)#012  File<br>
> "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 46, in<br>
> socket_checkerr#012    raise socket.error(err,<br>
> errno.errorcode[err])#012error: [Errno 111] ECONNREFUSED (txn:<br>
> tx4238af7ef0174fd78ef75-00534e7a1f) (client_ip: 172.114.25.2)<br>
><br>
><br>
><br>
><br>
>> Hi All,<br>
>>><br>
>>><br>
>>>      I am experimenting to install swift on single machine.<br>
>>><br>
>>>      I am following this guide :<br>
>>> <a href="http://docs.openstack.org/havana/install-guide/install/apt/content/general-installation-steps-swift.html" target="_blank">http://docs.openstack.org/havana/install-guide/install/apt/content/general-installation-steps-swift.html</a><br>

>>><br>
>>>     What I have done is:<br>
>>><br>
>>>     1. Created keystone endpoint using proxy-server IP i.e. machine on<br>
>>> which I am<br>
>>><br>
>>>         installing all the swift services, for ex, 172.114.25.2.<br>
>>><br>
>>>     2. Created Storage and proxy nodes as said in the guide.<br>
>>><br>
>>>    then why I am getting the error ?<br>
>>><br>
>>>  thanks!!<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
</div></div></blockquote></div><br></div>