Re: Ceph built from source gives Rados import error

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

 



Henry,
The last mail output was a Hammer installation.

$ ceph -v

ceph version 0.94.3 (95cefea9fd9ab740263bf8bb4796fd864d9afe2b)


This is the output in Jewel

root@ceph01:~# ceph -v

ceph version 10.2.6 (656b5b63ed7c43bd014bcafd81b001959d5f089f)

root@ceph01:~# (strace ceph -s > myout) >& myerror

root@ceph01:~# cat myerror | grep librados

open("/usr/lib/librados.so.2", O_RDONLY|O_CLOEXEC) = 4


None are compiled installations.

Best.


On Fri, Apr 21, 2017 at 5:28 PM, Alvaro Soto <alsotoes@xxxxxxxxx> wrote:
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.



--

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