Re: Ceph built from source gives Rados import error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Henry,
Because you compiled the sources, don't know where the librados is, but you cant find when is it called and go for there, maybe the error is not that is not properly imported, maybe is not where is suppose to be.

$ (strace ceph -s > myout) >& myerror

$ cat myerror | grep librados.so.2

The output in my case of the second command is the next, but I didn't build from source.

open("/usr/lib/x86_64-linux-gnu/librados.so.2", O_RDONLY|O_CLOEXEC) = 3


Did you try to find the library in your system? to see if is other location?, my system output:

$ locate librados.so.2

/usr/lib/x86_64-linux-gnu/librados.so.2

/usr/lib/x86_64-linux-gnu/librados.so.2.0.0


Best.


On Fri, Apr 21, 2017 at 5:00 PM, Henry Ngo <henry.ngo@xxxxxxxx> wrote:
Hi all,

I built from source and proceeded to do a manual deployment starting on the Mon. I'm getting the error shown below and it appears that Rados has not been properly imported. How do I fix this?

Best,
Henry N.

cephadmin@node1:/var/lib/ceph/mon/ceph-node1$ sudo /etc/init.d/ceph start mon.node1

cephadmin@node1:/var/lib/ceph/mon/ceph-node1$ ceph osd lspools

Traceback (most recent call last):

  File "/usr/local/bin/ceph", line 106, in <module>

    import rados

ImportError: librados.so.2: cannot open shared object file: No such file or directory

cephadmin@node1:/var/lib/ceph/mon/ceph-node1$ which rados

/usr/local/bin/rados

cephadmin@node1:/var/lib/ceph/mon/ceph-node1$ ceph -v

Traceback (most recent call last):

  File "/usr/local/bin/ceph", line 106, in <module>

    import rados

ImportError: librados.so.2: cannot open shared object file: No such file or directory

cephadmin@node1:/var/lib/ceph/mon/ceph-node1$ 




_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




--

ATTE. Alvaro Soto Escobar

----------------------------------------------------------
Great people talk about ideas,
average people talk about things,
small people talk ... about other people.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux