[Openstack] [openstack][swift]Got error when installing swift all in one.

hao wang sxmatch1986 at gmail.com
Wed Sep 9 09:26:59 UTC 2015

Hi, all

I was installing swift all-in-one in my virtual machine, OS is ubuntu 14.04.

But I got errors when I start the swift service by using "startmain" script:

liberasurecode[2969]: liberasurecode_backend_open: dynamic linking
error libJerasure.so: cannot open shared object file: No such file or
Traceback (most recent call last):
  File "/usr/local/bin/swift-object-server", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/swift/bin/swift-object-server", line 19, in <module>
    from swift.common.wsgi import run_wsgi
  File "/swift/swift/common/wsgi.py", line 39, in <module>
    from swift.common.storage_policy import BindPortsCache
  File "/swift/swift/common/storage_policy.py", line 738, in <module>
  File "/swift/swift/common/storage_policy.py", line 730, in
    _POLICIES = parse_storage_policies(policy_conf)
  File "/swift/swift/common/storage_policy.py", line 686, in
    policy = policy_cls.from_config(policy_index, config_options)
  File "/swift/swift/common/storage_policy.py", line 251, in from_config
    return cls(policy_index, **policy_options)
  File "/swift/swift/common/storage_policy.py", line 387, in __init__
  File "/usr/local/lib/python2.7/dist-packages/pyeclib/ec_iface.py",
line 172, in __init__
  File "/usr/local/lib/python2.7/dist-packages/pyeclib/utils.py", line
73, in create_instance
    instance = object_class(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pyeclib/core.py", line
61, in __init__
pyeclib.Error: Invalid arguments passed to liberasurecode_instance_create

I'm sure the libjerasure2 has been installed.  So is there a solution
to fix this issue?

Best Wishes For You!

More information about the Openstack mailing list