Ask Your Question
0

Cannot start auth-server

asked 2011-04-01 13:56:05 -0500

rtb gravatar image

Following SAIO instructions for swift 1.2 I am stuck getting the auth-server started: the log (admittedly after commenting out 'capture_stdio(logger)' in swift-1.2.0-py2.6.egg/swift/common/wsgi.py as otherwise it all goes to /var/log/messages, truncated after a few lines of traceback) speaks about DatabaseConnectionError and 'OperationalError: near "DELETE": syntax error'.

Any hint where that comes from?

./swift-auth-server /etc/swift/auth-server.conf

Traceback (most recent call last): File "./swift-auth-server", line 22, in <module> run_wsgi(conf_file, 'auth-server', default_port=11000, *options) File "/usr/lib/python2.6/site-packages/swift-1.2.0-py2.6.egg/swift/common/wsgi.py", line 126, in run_wsgi app = loadapp('config:%s' % conf_file, global_conf={'log_name': log_name}) File "/usr/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in loadapp return loadobj(APP, uri, name=name, *kw) File "/usr/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 224, in loadobj return context.create() File "/usr/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create return self.object_type.invoke(self) File "/usr/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 163, in invoke app = context.app_context.create() File "/usr/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in create return self.object_type.invoke(self) File "/usr/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 109, in invoke return fix_call(context.object, context.global_conf, *context.local_conf) File "/usr/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call val = callable(args, *kw) File "/usr/lib/python2.6/site-packages/swift-1.2.0-py2.6.egg/swift/auth/server.py", line 694, in app_factory return AuthController(conf) File "/usr/lib/python2.6/site-packages/swift-1.2.0-py2.6.egg/swift/auth/server.py", line 111, in __init__ self.conn = get_db_connection(self.db_file, okay_to_create=True) File "/usr/lib/python2.6/site-packages/swift-1.2.0-py2.6.egg/swift/common/db.py", line 147, in get_db_connection timeout=timeout) swift.common.db.DatabaseConnectionError: DB connection error (/etc/swift/auth.db, 30): Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/swift-1.2.0-py2.6.egg/swift/common/db.py", line 142, in get_db_connection conn.execute('PRAGMA journal_mode = DELETE') File "/usr/lib/python2.6/site-packages/swift-1.2.0-py2.6.egg/swift/common/db.py", line 81, in execute return self._timeout(lambda: sqlite3.Connection.execute( File "/usr/lib/python2.6/site-packages/swift-1.2.0-py2.6.egg/swift/common/db.py", line 74, in _timeout return call() File "/usr/lib/python2.6/site-packages/swift-1.2.0-py2.6.egg/swift/common/db.py", line 82, in <lambda> self, *args, *kwargs)) OperationalError: near "DELETE": syntax error

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2011-04-01 18:22:08 -0500

gholt gravatar image

Hmm, that traceback shows it erroring when running: PRAGMA journal_mode = DELETE

What version of SQLite are you using? Swift is known to work with 3.6.22.

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: 2011-04-01 13:56:05 -0500

Seen: 6 times

Last updated: Apr 01 '11