[Openstack] [openstack][swift]Got error when installing swift all in one.
tsuyuzaki.kota at lab.ntt.co.jp
Wed Sep 9 09:40:42 UTC 2015
Did you already do the setting for where shared jerasure library located?
The log message looks that Linux system doesn't have a seach path for that.
- Add /usr/local/lib path (if you installed libJerasure.so in another location, you should set the path here) into /etc/ld.so.conf
- sudo ldconfig
That helps Linux system to search shared object library.
Details is described in here. 
(2015/09/09 18:26), hao wang wrote:
> 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: 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?
More information about the Openstack