← Back to team overview

openstack team mailing list archive

Re: [Swift]

 

Hi,
You may have two version of Swift. I think you should check your current
swift version and remove the old one.

$ python
>> import swift
>> swift.__version__
>> swift.__path__




2013/3/8 Tomáš Šoltys <tomas.soltys@xxxxxxxxx>

> Hi,
>
> I am trying to setup a swift proxy server and I got stuck with following
> message when I try to execute 'swift-init proxy start'
>
>
> --------------------------------------------------------------------------------------------------------------------------------
> os_admin@osvm01:~$ sudo 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 122,
> in run_wsgi
>     loadapp('config:%s' % conf_file, global_conf={'log_name': log_name})
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
> 247, in loadapp
>     return loadobj(APP, uri, name=name, **kw)
>   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line
> 271, in loadobj
>     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/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/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/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 'proxy_logging' not found in egg 'swift' (dir:
> /usr/lib/python2.7/dist-packages; protocols: paste.filter_factory,
> paste.filter_app_factory; entry_points: )
>
> --------------------------------------------------------------------------------------------------------------------------------
>
> Here is my proxy-server.conf
>
>
> --------------------------------------------------------------------------------------------------------------------------------
> [DEFAULT]
> bind_port = 8080
> user = os_admin
> log_facility = LOG_LOCAL1
> eventlet_debug = true
>
> [pipeline:main]
> pipeline = healthcheck cache tempauth proxy-logging proxy-server
>
> [app:proxy-server]
> use = egg:swift#proxy
> allow_account_management = true
> account_autocreate = true
>
> [filter:tempauth]
> use = egg:swift#tempauth
> user_admin_admin = admin .admin .reseller_admin
> user_test_tester = testing .admin
> user_test2_tester2 = testing2 .admin
> user_test_tester3 = testing3
>
> [filter:healthcheck]
> use = egg:swift#healthcheck
>
> [filter:cache]
> use = egg:swift#memcache
>
> [filter:proxy-logging]
> use = egg:swift#proxy_logging
>
> --------------------------------------------------------------------------------------------------------------------------------
>
>
>
> Does anybody knows what am I missing?
>
> Thanks,
> Tomas
>
> --
> Tomáš Šoltys
> tomas.soltys@xxxxxxxxx
> http://www.range-software.com
> (+420) 776-843-663
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
  杨雨
  Email:       alex890714@xxxxxxxxx
GitHub:       https://github.com/AlexYangYu
    Blog:        http://alexyang.sinaapp.com
 Weibo:       http://www.weibo.com/alexyangyu

References