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

Wanghao (S) wanghao749 at huawei.com
Thu Sep 10 06:29:46 UTC 2015


Thanks Kota! 

I copy the libJerasure.so to /usr/lib/x86_64-linux-gnu, and then 'startmain' works!

Thanks again!

-----邮件原件-----
发件人: Kota TSUYUZAKI [mailto:tsuyuzaki.kota at lab.ntt.co.jp] 
发送时间: 2015年9月9日 17:41
收件人: hao wang
抄送: openstack at lists.openstack.org
主题: Re: [Openstack] [openstack][swift]Got error when installing swift all in one.

Hi, Hao

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.

Like:
- 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. [1]

1: https://bitbucket.org/kmgreen2/pyeclib

Best
Kota

(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[2969]: liberasurecode_backend_open: dynamic linking 
> error libJerasure.so: cannot open shared object file: No such file or 
> directory 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>
>      reload_storage_policies()
>    File "/swift/swift/common/storage_policy.py", line 730, in 
> reload_storage_policies
>      _POLICIES = parse_storage_policies(policy_conf)
>    File "/swift/swift/common/storage_policy.py", line 686, in 
> parse_storage_policies
>      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__
>      ec_type=self._ec_type)
>    File "/usr/local/lib/python2.7/dist-packages/pyeclib/ec_iface.py",
> line 172, in __init__
>      chksum_type=self.chksum_type)
>    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__
>      self.algsig_chksum)
> 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?
>
> Thanks.




_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


More information about the Openstack mailing list