Proxy : No section 'auth' (prefixed by 'filter')

Asked by Bob

Hi,

I followed the docs and am getting the following :

Starting proxy-server...(/etc/swift/proxy-server.conf)
Traceback (most recent call last):
  File "/usr/bin/swift-proxy-server", line 22, in <module>
    run_wsgi(conf_file, 'proxy-server', default_port=8080, **options)
  File "/usr/lib/pymodules/python2.7/swift/common/wsgi.py", line 128, in run_wsgi
    app = loadapp('config:%s' % conf_file, global_conf={'log_name': log_name})
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 204, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 224, in loadobj
    global_conf=global_conf)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 248, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 278, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 405, in get_context
    global_additions=global_additions)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 503, in _pipeline_app_context
    for name in pipeline[:-1]]
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 363, in get_context
    object_type, name=name)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 528, in find_config_section
    self.filename))
LookupError: No section 'auth' (prefixed by 'filter') found in config /etc/swift/proxy-server.conf

# cat /etc/swift/proxy-server.conf
[DEFAULT]
cert_file = /etc/swift/XXXXXXXX.crt
key_file = /etc/swift/XXXXXXXXXXXX.key
bind_port = 8080
workers = 8
user = swift

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

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

[filter:swauth]
user = egg:swift#swauth
# Highly recommended to change this.
super_admin_key =XXXXXXXXXXX

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

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

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
clayg
Solved:
Last query:
Last reply:
Revision history for this message
clayg (clay-gerrard) said :
#1

that error means you don't have a section titled "filter:auth" - and that seems to be because you're using "swauth"

in your pipeline:main section, change "auth" to "swauth"

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

Revision history for this message
Bob (rclocal) said :
#2

Nope... tried that already.. ;-p

Starting proxy-server...(/etc/swift/proxy-server.conf)
Traceback (most recent call last):
  File "/usr/bin/swift-proxy-server", line 22, in <module>
    run_wsgi(conf_file, 'proxy-server', default_port=8080, **options)
  File "/usr/lib/pymodules/python2.7/swift/common/wsgi.py", line 128, in run_wsgi
    app = loadapp('config:%s' % conf_file, global_conf={'log_name': log_name})
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 204, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 224, in loadobj
    global_conf=global_conf)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 248, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 278, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 405, in get_context
    global_additions=global_additions)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 503, in _pipeline_app_context
    for name in pipeline[:-1]]
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 413, in get_context
    section)
  File "/usr/lib/pymodules/python2.7/paste/deploy/loadwsgi.py", line 455, in _context_from_explicit
    "No loader given in section %r" % section)
LookupError: No loader given in section 'filter:swauth'

# cat proxy-server.conf
[DEFAULT]
cert_file = /etc/swift/XXXXXXXXXXXXX.crt
key_file = /etc/swift/XXXXXXXXXXXXXXX.key
bind_port = 8080
workers = 8
user = swift

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

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

[filter:swauth]
user = egg:swift#swauth
# Highly recommended to change this.
super_admin_key =XXXXXXXXXXXXXXX

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

[filter:cache]
use = egg:swift#memcache
memcache_servers = XXXXXXXXXXXXXX:11211

Revision history for this message
Best clayg (clay-gerrard) said :
#3

oh, didn't catch that first time, the entry point line in the filter:swauth section should be keyed on "use" not "user"

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

^ note the missing "r"

Revision history for this message
Bob (rclocal) said :
#4

Perfrect !

Serves me right for copy pasting from the documentation.

I'm off to leave a comment on the docs !!!!!!!!

Thank you !!!!!!

Revision history for this message
Bob (rclocal) said :
#5

Thanks clayg, that solved my question.