Exception: Could not create account AUTH_admin for user admin:admin

Asked by shuo JIA

After I install the Swift all in one in a virtual machine, and successfully run the unitest, but when I use the command
curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0 to Get an X-Storage-Url and X-Auth-Token,
About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /auth/v1.0 HTTP/1.1
> User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Host: 127.0.0.1:8080
> Accept: */*
> X-Storage-User: test:tester
> X-Storage-Pass: testing
>
< HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain
< Content-Length: 647
< Date: Thu, 30 Jun 2011 20:26:52 GMT
< Connection: close
<
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/eventlet/wsgi.py", line 336, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/home/shuojia/swift/trunk/swift/common/middleware/healthcheck.py", line 38, in __call__
    return self.app(env, start_response)
  File "/home/shuojia/swift/trunk/swift/common/middleware/memcache.py", line 32, in __call__
    return self.app(env, start_response)
  File "/home/shuojia/swift/trunk/swift/common/middleware/tempauth.py", line 132, in __call__
    '%s' % (account_id, key))
Exception: Could not create account AUTH_admin for user admin:admin
* Closing connection #0

Does anybody know the reason, thank you so much.

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Marcelo Martins (btorch) said :
#1

What version have you installed ? I see that you are using the "tempauth" auth system which should really only be used for dev work. Check out https://github.com/gholt/swauth for Auth

Revision history for this message
Doug Weimer (dweimer) said :
#2

I was having the same error with an SAIO instance. It was because the /srv/1/node/sdb1, /srv/2/node/sdb2, /srv/3/node/sdb3, and /srv/4/node/sdb4 directories were owned by root and could not be written to by the account-server processes.

The issue was caused because I had run ~/bin/resetswift as root and the 'mkdir -p /srv/1/node/sdb1 /srv/2/node/sdb2 /srv/3/node/sdb3 /srv/4/node/sdb4' command was executed as root.

Revision history for this message
xifeng (xifeng) said :
#3

I just have the same question, and solve it by changing the permissions of /srv/[1..4]/.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.