Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Swauth: Account creation failed: 500 server error

Hi all,

I've installed Swift as Swift-all-in-one as described in the

the above describes Swift installation when Swauth was part of Swift. To work with current version, I had to install Swauth as a separate component.

That went good and I'm able to get proxy server up and running along with other components.

Doing this

swauth-prep -K swauthkey -U '.super_admin' -A

works fine.

Now when I try to add users doing below:

swauth-add-user -K swauthkey -U '.super_admin' -A -a test tester testing

I get Account creation failed: 500 Server Error.

Seems like part of this command is working as when I do

swauth-list -K swauthkey -U '.super_admin' -A

I see that the account has been added:

{"accounts": [{"name": "test"}]}

Could you help me to know what I'm doing wrong.

Here is my account server configuration:

[DEFAULT] devices = /srv/1/node mount_check = false bind_port = 6012 user = swiftdemo log_facility = LOG_LOCAL2

[pipeline:main] pipeline = account-server

[app:account-server] use = egg:swift#account

[account-replicator] vm_test_mode = yes



And my proxy server configuration is:

[DEFAULT] bind_port = 443 bind_ip = cert_file = /etc/swift/cert.crt key_file = /etc/swift/cert.key user = swiftdemo log_facility = LOG_LOCAL1

[pipeline:main] pipeline = healthcheck cache swauth proxy-server

[app:proxy-server] use = egg:swift#proxy allow_account_management = true

[filter:swauth] use = egg:swauth#swauth set log_name = swauth super_admin_key = swauthkey default_swift_cluster = local#

[filter:healthcheck] use = egg:swift#healthcheck

[filter:cache] use = egg:swift#memcache

The swift.conf only has the configuration for swauthkey.

Please let me know if anything else is needed. Thanks for help, Amit