#411 Issue closed: REAR & Networker - Function 'iconv_open' failed

Labels: waiting for info, support / question

bastiw88 opened issue at 2014-05-09 07:53:


I tested REAR (1.15 & 1.16) in combination with EMC² Networker (V 8.1) on Ubuntu 12.04 LTS (64Bit).

"rear -v mkbackup" works fine.

"rear recovery" failed (screenshot below):

Function 'iconv_open' failed for UTF-8 to ANSI conversion. The function may be unable to determine the current locale. Verify appropriate values in environment variables LC_MESSAGES, LC_ALL and LANG.

Please help me to fix this issue!


gdha commented at 2014-05-09 09:54:

I guess you might miss some library or locales from NSR itself. Check the prep/NSR section of what been pulled into the rear rescue image

Verstuurd vanaf mijn iPhone

Op 9-mei-2014 om 09:53 heeft bastiw88 notifications@github.com het volgende geschreven:


I tested REAR (1.15 & 1.16) in combination with EMC² Networker (V 8.1) on Ubuntu 12.04 LTS (64Bit).

"rear -v mkbackup" works fine.

"rear recovery" failed:

Function 'iconv_open' failed for UTF-8 to ANSI conversion. The function may be unable to determine the current locale. Verify appropriate values in environment variables LC_MESSAGES, LC_ALL and LANG.

Please help me to fix this issue!


Reply to this email directly or view it on GitHub.

bastiw88 commented at 2014-05-09 10:17:

Do you meen this folder: /usr/share/rear/prep/NSR ?
There is only the "default" direcotry with two scripts: 40_prep_nsr.sh and 45_check_nsr_client.sh

What should I pull into the rear rescure image to run NSR correctly?

gdha commented at 2014-05-16 12:28:

@bastiw88 sorry for the delay - found something interesting: https://community.emc.com/thread/164152
Could be that we need locale and /usr/lib/locale in our recovery image? I cannot tell, I hope you have some starting points to get further? Please return some feedback, ok?

bastiw88 commented at 2014-05-16 12:46:

thanks for your feedback and help.
Sorry, I'm a newbie in using REAR. How do I add additional packages/software to my recovery image (running: rear mkbackup)?

Thanks a lot :-)

alxgu commented at 2014-05-16 13:13:

Put following line into your site.conf or local.conf:
PROGS=( "${PROGS[@]}" locale )

gdha commented at 2014-05-16 14:12:

@bastiw88 and do not forget to add COPY_AS_IS=( ${COPY_AS_IS[@]} /usr/lib/locale ) as well

gdha commented at 2014-06-16 09:10:

@bastiw88 any luck with the given suggestions?

bastiw88 commented at 2014-06-24 05:34:

sorry, I had no time to test this workaround.
I inform you, as soon as I can test rear with ubuntu 12.04. and emc networker.

chnusti commented at 2014-07-23 07:31:

I have exactly the same issue but on RHEL 5. RHEL 6 is working fine.

I put PROGS=( "${PROGS[@]}" locale ) and COPY_AS_IS=( ${COPY_AS_IS[@]} /usr/lib/locale ) into my my site.conf without success.

any other suggestions to solve this?

bastiw88 commented at 2014-07-23 08:33:

I did a test today and these two options doesn't work in Ubuntu 12.04 LTS 64Bit too.

gdha commented at 2014-08-21 15:39:

@bastiw88 @chnusti @alxgu We did the integration with NW 8.0. Therefore, I suspect that with NW 8.1 an additional library was added which wasn't there with NW 8.0. Unfortunately, I do not have access to any NW server/client environment anymore (as the integration was performed on-site of a customer).

gdha commented at 2015-06-03 11:03:

@bastiw88 @rear/contributors @chnusti Were you able to test rear-1.17.0 with NW 8.1 already? Does it work better or is it still the same?

bastiw88 commented at 2015-08-28 09:27:

Sorry for the delay.
I tryed to test it with the following Settings:

rear 1.17.1

Ubuntu 12.04.5 LTS


Same error :-(

Any idea?


bastiw88 commented at 2015-08-28 09:30:

additional information:

Relax-and-Recover 1.17.1 / Git
Using log file: /var/log/rear/rear-XXX.log.lockless
Dumping out configuration and system information
This is a 'Linux-x86_64' system, compatible with 'Linux-i386'.
System definition:
ARCH = Linux-i386
OS = GNU/Linux
OS_VENDOR = Ubuntu
OS_VERSION = 12.04
OS_VENDOR_ARCH = Ubuntu/i386
OS_VENDOR_VERSION = Ubuntu/12.04
OS_VENDOR_VERSION_ARCH = Ubuntu/12.04/i386
Configuration tree:
Linux-i386.conf : OK
GNU/Linux.conf : OK
Debian.conf : missing/empty
Debian/i386.conf : missing/empty
Debian/12.04.conf : missing/empty
Debian/12.04/i386.conf : missing/empty
Ubuntu.conf : OK
Ubuntu/i386.conf : missing/empty
Ubuntu/12.04.conf : missing/empty
Ubuntu/12.04/i386.conf : missing/empty
site.conf : OK
local.conf : OK
Backup with NSR
BACKUP_RSYNC_OPTIONS = --sparse --archive --hard-links --verbose --numeric-ids --stats
Output to ISO
ISO_DIR = /var/lib/rear/output
ISO_MKISOFS_BIN = /usr/bin/mkisofs

Your system is validated with the following details:
Version: Relax-and-Recover 1.14 / Git
Validation: Ubuntu/12.04/i386
Submitted: Andreas Lemke andreas.lemke@tu-bs.de, TU Braunschweig/Sprachenzentrum, Germany
Date: 2013-07-17
Features: PXE
Comment: We added /usr/share/rear/output/PXE/default/82_copy_to_net.sh to transfer the PXE files to the PXE server.

gdha commented at 2015-08-28 13:05:

@bastiw88 if you check the installation manual of NSR does it mention anything special? Like a package that must be present to make NSR work properly? I think we need to verify this first before doing something on the rear side...

bastiw88 commented at 2015-08-28 13:52:

@gdha Please find all depentencies in this deb package below:

new debian package, version 2.0.
size 110152288 bytes: control archive= 3707 bytes.
870 bytes, 17 lines control
5746 bytes, 235 lines * postinst #!/bin/sh
1879 bytes, 74 lines * postrm #!/bin/sh
1602 bytes, 65 lines * preinst #!/bin/sh
809 bytes, 30 lines * prerm #!/bin/sh
Package: lgtoclnt
Architecture: amd64
Section: non-free/admin
Priority: optional
Depends: ksh | pdksh, libacl1, libc6, libexpat1, libgcc1, libpam0g, libstdc++5, libx11-6, libxext6, libxml2, libxp6, libxt6, zlib1g
Recommends: libncurses5
Maintainer: EMC support support@emc.com
Description: NetWorker Client
EMC NetWorker protects the critical business data of more than 10,000
enterprise customers worldwide by simplifying, centralizing, and automating
backup and recovery operations across Unix, Windows, Linux and NetWare platforms
in DAS, NAS, and SAN storage environments. Built upon an open, highly scalable
client-server architecture, NetWorker reduces management overhead by providing
"lights out" protection of storage assets in the largest corporate data centers
and the smallest satellite branch offices.
Homepage: http://www.emc.com

Addidionally you need the package "rpcbind" in ubuntu (apt-get install rpcbind). But this is not specific for lgto 8.x. It's necessary in all version of lgto client.


bastiw88 commented at 2015-09-03 06:24:

This configuration works in /etc/rear/site.conf:

COPY_AS_IS=( ${COPY_AS_IS[@]} /usr/lib/x86_64-linux-gnu )


schlomo commented at 2015-09-03 08:16:

That will enlarge the rescue image by all the libraries in that directory. Better would be to be more specific and take only what we need. Also, the library path will be different depending on the distro etc. That is why we have the LIBS variable for libraries. The content will be resolved and searched for, not simply copied as is.

gdha commented at 2015-09-03 08:39:

@bastiw88 could you test out with ldd command which libs it actual needs?

schlomo commented at 2015-09-03 08:41:

And if ldd does not show it, please try to use strace to find out which libraries are loaded dynamically.

gdha commented at 2015-10-29 11:13:

@bastiw88 any comments or update to share? Otherwise we would like to close this issue

gdha commented at 2015-10-30 09:35:

If you have additional information please feel free to re-open this issue

[Export of Github issue for rear/rear.]