Ask Your Question

there are accounts in your auth.db that do not begin with your new reseller prefix of "auth"

asked 2011-03-14 01:37:31 -0500

duran-ihep gravatar image

I found a message in my /var/log/syslog , it says:

Mar 9 19:31:23 ubuntuswift swift CRITICAL: THERE ARE ACCOUNTS IN YOUR auth.db THAT DO NOT BEGIN WITH YOUR NEW RESELLER PREFIX OF "AUTH". YOU HAVE A FEW OPTIONS: 1) RUN "swift-auth-update-reseller-prefixes /tmp/swift_test_auth_2bba374d0b7d4699875e443a24abbbf5/auth.db AUTH", "swift-init auth-server restart", AND "swift-auth-recreate-accounts -K ..." TO CREATE FRESH ACCOUNTS. OR 2) REMOVE /tmp/swift_test_auth_2bba374d0b7d4699875e443a24abbbf5/auth.db, RUN "swift-init auth-server restart", AND RUN "swift-auth-add-user ..." TO CREATE BRAND NEW ACCOUNTS THAT WAY. OR 3) ADD "reseller_prefix = " (WITHOUT THE QUOTES) TO YOUR proxy-server.conf IN THE [filter:auth] SECTION AND TO YOUR auth-server.conf IN THE [app:auth-server] SECTION AND RUN "swift-init proxy-server restart" AND "swift-init auth-server restart" TO REVERT BACK TO YOUR PREVIOUS RESELLER PREFIX. SINCE YOUR PREVIOUS RESELLER PREFIX WAS AN EMPTY STRING, IT IS NOT RECOMMENDED TO PERFORM OPTION 3 AS THAT WOULD MAKE SUPPORTING MULTIPLE RESELLERS MORE DIFFICULT.

but when I tried the above methods, it returned the following messages:

Updating /tmp/swift_test_auth_2bba374d0b7d4699875e443a24abbbf5/auth.db Traceback (most recent call last): File "/usr/local/bin/swift-auth-update-reseller-prefixes", line 7, in <module> execfile(__file__) File "/home/bella/swift/trunk/bin/swift-auth-update-reseller-prefixes", line 32, in <module> conn = get_db_connection(db) File "/home/bella/swift/trunk/swift/common/", line 147, in get_db_connection timeout=timeout) swift.common.db.DatabaseConnectionError: DB connection error (/tmp/swift_test_auth_2bba374d0b7d4699875e443a24abbbf5/auth.db, 30): Traceback (most recent call last): File "/home/bella/swift/trunk/swift/common/", line 129, in get_db_connection factory=GreenDBConnection, timeout=timeout) File "/home/bella/swift/trunk/swift/common/", line 68, in __init__ sqlite3.Connection.__init__(self, args, *kwargs) OperationalError: unable to open database file then I tried the second method , and found that the file /tmp/swift_test_auth_2bba374d0b7d4699875e443a24abbbf5/auth.db dosen't exist.

what should I do next? By the way,what is reseller prefix? did I mis-config something? thanks a lot.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2011-03-14 21:08:07 -0500

gholt gravatar image

Duplicate of (

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-03-14 01:37:31 -0500

Seen: 37 times

Last updated: Mar 14 '11