LookupError: Entry point 'gatekeeper' not found in egg 'swift'

Bug #1273985 reported by Anton

This bug report was converted into a question: question #243513: LookupError: Entry point 'gatekeeper' not found in egg 'swift'.

12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Invalid
Undecided
Unassigned

Bug Description

Hi, after update to latest version (1.12.0), proxy not runing:

root@proxy:/usr/lib/python2.7/dist-packages/swift# swift-init proxy start
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/python2.7/dist-packages/swift/common/wsgi.py", line 386, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 313, in loadapp
    ctx = loadcontext(loadwsgi.APP, conf_file, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 305, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 59, in get_context
    object_type, name=name, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
    global_additions=global_additions)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context
    for name in pipeline[:-1]]
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 59, in get_context
    object_type, name=name, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 454, in get_context
    section)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 59, in get_context
    object_type, name=name, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 406, in get_context
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 620, in get_context
    object_type, name=name)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 659, in find_egg_entry_point
    for prot in protocol_options] or '(no entry points)'))))
LookupError: Entry point 'gatekeeper' not found in egg 'swift' (dir: /usr/lib/python2.7/dist-packages; protocols: paste.filter_factory, paste.filter_app_factory; entry_points: )

Middlewares:

root@proxy:/usr/lib/python2.7/dist-packages/swift# ls common/middleware/
account_quotas.py bulk.py cname_lookup.py container_sync.py domain_remap.py gatekeeper.py __init__.py list_endpoints.py name_check.py ratelimit.py slo.py tempauth.py
acl.py catch_errors.py container_quotas.py crossdomain.py formpost.py healthcheck.py keystoneauth.py memcache.py proxy_logging.py recon.py staticweb.py tempurl.py

I do not understand where is problem, hepl please

Revision history for this message
clayg (clay-gerrard) wrote :

i hate setuptools so much and continue to blame pbr for everything that goes wrong.

What linux distribution (version) are you installing on?

How do you install swift (pre-built package, build your own)?

I so desperately wish that someone could just understand this failure mode and explain to me WHAT is broken rather than "after running some random set of setuptools/pip/apt commands that other people mentioned when they ran into this same problem - IT WORKED!"

Revision history for this message
Samuel Merritt (torgomatic) wrote :

I've only seen this happen when someone (usually me) has run "python setup.py develop" to install stuff, and then I pull in new code without rerunning setup.py. Then I have new code in dist-packages/site-packages/whatever talking about this new entry point, but the stuff in my swift-blah.egg-info/entry_points.txt doesn't have the new entry point listed.

If you're installing from packages, bug your package maintainers; their stuff's busted.

Revision history for this message
Anton (hettbox) wrote :

Thanks!
We have custom swift, and needed to add new middleware in egg-info/entry_points.txt
We using ubuntu 13.04

Tell me please, where can I get information on how to install from source Swift right?

Revision history for this message
Anton (hettbox) wrote :
Anton (hettbox)
Changed in swift:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.