Bug 954185

Summary: rsync command fails with linking error "libldap-2.4.so.2: cannot open shared object file: No such file or directory"
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, mbooth
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-09 16:04:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.