Bug 954185 - rsync command fails with linking error "libldap-2.4.so.2: cannot open shared object file: No such file or directory"
Summary: rsync command fails with linking error "libldap-2.4.so.2: cannot open shared ...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-21 17:53 UTC by Richard W.M. Jones
Modified: 2013-10-09 16:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-09 16:04:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2013-04-21 17:53:38 UTC
Description of problem:

Possibly a Fedora packaging problem, but the guestfish
'rsync-out' command fails like this:

$ sudo guestfish --network --ro -a ubuntu.img -i rsync-out /home choo:/tmp/backup archive:true
libguestfs: error: rsync_out: '/home' to 'choo:/tmp/backup': ssh: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or directory
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync error: remote command not found (code 127) at io.c(1532) [sender=3.0.9]

Version-Release number of selected component (if applicable):

guestfish 1.21.31fedora=20,release=1.fc20,libvirt

How reproducible:

100%

Steps to Reproduce:
1. As above.

Comment 1 Richard W.M. Jones 2013-04-22 08:13:06 UTC
Using virt-rescue:

><rescue> ssh choo
ssh: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or directory
><rescue> ldd /usr/bin/ssh
[...]
	libldap-2.4.so.2 => not found
	liblber-2.4.so.2 => not found
[...]

It appears that some dependencies of ssh are really missing.

Comment 2 Richard W.M. Jones 2013-04-22 08:40:02 UTC
I "fixed" this by uninstalling and reinstalling openldap-devel.

I asked about this odd problem on the Fedora devel mailing
list.  The archive hasn't been updated, but it should
appear here:

http://lists.fedoraproject.org/pipermail/devel/2013-April/thread.html

Comment 3 Richard W.M. Jones 2013-10-09 16:04:32 UTC
The thread is here, with no particular resolution:
https://lists.fedoraproject.org/pipermail/devel/2013-April/thread.html#181719

This seems to be a Fedora problem anyhow.  There is now a
regression test for rsync commands so I expect if this happens
in future it will be caught.


Note You need to log in before you can comment on or make changes to this bug.