The upgrade fails because the LD_LIBRARY_PATH is not set during the eDirectory upgrade.
To workaround this issue, set the LD_LIBRARY_PATH with the eDirectory lib directories and then start the upgrade.