Ask Your Question
0

swift gives 401 unauthorized error when clicking "link" on swift container

asked 2018-01-26 13:36:57 -0500

jcorkey gravatar image

updated 2018-01-26 13:38:13 -0500

Below is an image showing the button "Link" in the bottom right corner next to the Public access of my container created in swift:

image description

...If I click the "Link" button is opens a new tab and display this error below in my browser:

image description

below is the output of the errors that show up in swift logs when I click the "Link" that results in a 401 error:

2018-01-26T19:34:06Z    syslog.local0.err       {"Payload":"swift-proxy-server: STDERR: ERROR:root:Error connecting to memcached: 170.28.9.7:11211#012Traceback (most recent call last):#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/swift/common/memcached.py\", line 214, in _get_conns#012    fp, sock = self._client_cache[server].get()#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/swift/common/memcached.py\", line 129, in get#012    fp, sock = super(MemcacheConnPool, self).get()#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/pools.py\", line 88, in get#012    created = self.create()#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/swift/common/memcached.py\", line 125, in create#012    sock.connect(sockaddr)#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/greenio/base.py\", line 242, in connect#012    socket_checkerr(fd)#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/greenio/base.py\", line 46, in socket_checkerr#012    raise socket.error(err, errno.errorcode[err])#012error: [Errno 111] ECONNREFUSED (txn: txa0cc260693d3413d90f64-005a6b82ae)\u0000"}
2018-01-26T19:34:06Z    syslog.local0.err       {"Payload":"swift-proxy-server: STDERR: ERROR:root:Error connecting to memcached: 170.28.9.7:11211#012Traceback (most recent call last):#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/swift/common/memcached.py\", line 214, in _get_conns#012    fp, sock = self._client_cache[server].get()#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/swift/common/memcached.py\", line 132, in get#012    fp, sock = self.create()#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/swift/common/memcached.py\", line 125, in create#012    sock.connect(sockaddr)#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/greenio/base.py\", line 242, in connect#012    socket_checkerr(fd)#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/greenio/base.py\", line 46, in socket_checkerr#012    raise socket.error(err, errno.errorcode[err])#012error: [Errno 111] ECONNREFUSED (txn: txa0cc260693d3413d90f64-005a6b82ae)\u0000"}
2018-01-26T19:34:06Z    syslog.local0.err       {"Payload":"swift-proxy-server: STDERR: ERROR:root:Error connecting to memcached: 170.28.9.7:11211#012Traceback (most recent call last):#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/swift/common/memcached.py\", line 214, in _get_conns#012    fp, sock = self._client_cache[server].get()#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/swift/common/memcached.py\", line 132, in get#012    fp, sock = self.create()#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/swift/common/memcached.py\", line 125, in create#012    sock.connect(sockaddr)#012  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/greenio/base.py\", line 242, in ...
(more)
edit retag flag offensive close merge delete

Comments

Looks like the connection to memcached doesn’t work. My first guess is that it’s not running, or the configured memcached address 170.28.9.7 is incorrect.

Bernd Bausch gravatar imageBernd Bausch ( 2018-03-02 01:15:43 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2018-03-01 15:31:52 -0500

Did you get an answer to this? I am still suffering the same error.

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

Stats

Asked: 2018-01-26 13:36:57 -0500

Seen: 137 times

Last updated: Mar 01 '18