Account HEAD failed: 500 Internal Error

asked 2015-02-06 20:25:12 -0500

elijahpaul gravatar image

updated 2015-02-07 12:56:56 -0500

Am tearing my hair out on this one!

OS: CentOS 7

I've installed OpenStack (Juno -, with a separate Keystone ( and Proxy Server ( along with 3 storage nodes (so far).

As far as I can tell, Keystone is operating normally. The demo user has '_member_' role, and the endpoint is correctly configured.

However running swift stat results in the a 500 Internal Error on the proxy server, and I cannot figure out why?

Any ideas/help greatly appreciated.

# swift --debug -V 2.0 -A -U demo:demo -K PASS stat
ERROR:swiftclient:Account HEAD failed: 500 Internal Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/swiftclient/", line 443, in stat
    raise SwiftError('Account not found', exc=err)
swiftclient.service.SwiftError: 'Account not found'


bind_port = 8080

swift_dir = /etc/swift
user = swift

pipeline = healthcheck cache authtoken keystoneauth proxy-logging catch_errors gatekeeper container_sync bulk tempurl ratelimit tempauth container-quotas account-quotas slo dlo proxy-server

use = egg:swift#proxy

allow_account_management = true

account_autocreate = true

use = egg:swift#tempauth

user_admin_admin = admin .admin .reseller_admin
user_test_tester = testing .admin
user_test2_tester2 = testing2 .admin
user_test_tester3 = testing3

paste.filter_factory = keystonemiddleware.auth_token:filter_factory

auth_uri =
identity_uri =
admin_tenant_name = service
admin_user = swift
admin_password = PASS
delay_auth_decision = true

use = egg:swift#keystoneauth

operator_roles = admin,_member_

use = egg:swift#healthcheck

use = egg:swift#memcache

memcache_servers =

use = egg:swift#ratelimit

use = egg:swift#domain_remap

use = egg:swift#catch_errors


use = egg:swift#cname_lookup

use = egg:swift#staticweb

use = egg:swift#tempurl

use = egg:swift#formpost

use = egg:swift#name_check

use = egg:swift#list_endpoints

use = egg:swift#proxy_logging

use = egg:swift#bulk

use = egg:swift#container_quotas

use = egg:swift#slo

use = egg:swift#dlo

use = egg:swift#account_quotas

use = egg:swift#gatekeeper

use = egg:swift#container_sync

use = egg:swift#xprofile

This is the error I see in my /var/log/messages file on the proxy server:

Feb  7 18:47:04 localhost proxy-server: ERROR Unhandled exception in request: #012Traceback (most recent call last):#012  File "/usr/lib/python2.7/site-packages/swift/proxy/", line 359, in handle_request#012    resp = req.environ['swift.authorize'](req)#012  File "/usr/lib/python2.7/site-packages/swift/common/middleware/", line 384, in authorize#012    user_groups = (req.remote_user or '').split(',')#012AttributeError: 'tuple' object has no attribute 'split' (txn: tx21bb4f26bce340e3bee4f-0054d65da8) (client_ip:

Feb  7 18:47:04 localhost proxy-server: 07/Feb/2015/18/47 ...
edit retag flag offensive close merge delete


You're getting a 500 response from the swift server. So the first place to look is the swift server log to see if there is anything there that points at the problem, and potentially also at the Keystone server log.

larsks gravatar imagelarsks ( 2015-02-07 09:23:10 -0500 )edit

Have looked at the logs on the proxy (swift) server, but they say the same thing, i.e. 500 Internal error. I also changed the log level on the proxy server to 'DEBUG' but it still hasn't given me anything meaningful in the logs. I'll edit the question to include these logs in a sec.

elijahpaul gravatar imageelijahpaul ( 2015-02-07 09:43:11 -0500 )edit

added my proxy & keystone server logs. Hope this helps someone spot my mistake(s).

elijahpaul gravatar imageelijahpaul ( 2015-02-07 12:59:04 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-07 22:54:53 -0500

bala2014 gravatar image

Can you please try once with tempauth removed from proxy-server.conf and restart the service? Otherwise, you may debug with curl to see what is causing problem?

edit flag offensive delete link more


Thank you!!! This actually worked. Can you possibly provide any insight as to why tempauth causes this issue/behaviour?

elijahpaul gravatar imageelijahpaul ( 2015-02-08 14:01:50 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-02-06 20:20:13 -0500

Seen: 1,762 times

Last updated: Feb 07 '15