Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-16655

[Bug] Rear fails with "/usr/lib64/systemd/libsystemd-core-252.so requires additional libraries"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.3.0
    • rear
    • Normal
    • sst_cs_system_management
    • ssg_core_services
    • 5
    • False
    • Hide

      None

      Show
      None
    • Red Hat Enterprise Linux
    • x86_64

      What were you trying to do that didn't work?

      Rear mkbackup displays below error in creating backup on RHEL 9.3 : 
      ~~~

      $ rear mkbackup
      Cannot include default keyboard mapping (no 'defkeymap.*' found in /lib/kbd/keymaps)
      To log into the recovery system via ssh set up /root/.ssh/authorized_keys or specify SSH_ROOT_PASSWORD
      There are binaries or libraries in the ReaR recovery system that need additional libraries
      /usr/lib64/systemd/libsystemd-core-252.so requires additional libraries
          libsystemd-shared-252.so => not found
      ReaR recovery system in '/var/tmp/rear.ry4DCgGppGcipRL/rootfs' needs additional libraries, check /var/log/rear/rear-rhel9.log for details
      ~~~

      Please provide the package NVR for which bug is seen:

      Rear : rear-2.6-19.el9.x86_64
      Systemd : systemd-252-18.el9.x86_64

      How reproducible:

      Always

      Steps to reproduce

       On RHEL 9.3 system , creating rear backup with systemd package of version '252-18.el9.x86_64'.
      ~~~

      $ rear mkbackup
      ~~~

      Expected results

      Rear backup should succeed without Error display.

      Actual results

      • Rear Backup displays above error in CLI (Though it creates a backup)
      • Library itself is pointing to "not found" in RHEL 9.3  systemd (providing the library).
        ~~~
        $ ldd /usr/lib64/systemd/libsystemd-core-252.so
          linux-vdso.so.1 (0x00007ffe307e1000)
          libsystemd-shared-252.so => not found
        ...
        ~~~

      Workaround

      • Use LD_PRELOAD to temporarily load library '/usr/lib64/systemd/libsystemd-shared-252.so'.
        ~~~
        /// To Verify :
        $ LD_PRELOAD=/usr/lib64/systemd/libsystemd-shared-252.so  ldd /usr/lib64/systemd/libsystemd-core-252.so
          linux-vdso.so.1 (0x00007ffef4373000)
          /usr/lib64/systemd/libsystemd-shared-252.so (0x00007f7918400000)
        ...

                 /// To take rear backup without issue being displayed.
                 $ LD_PRELOAD=/usr/lib64/systemd/libsystemd-shared-252.so  rear mkbackup
                 ~~~

            rhn-support-pcahyna Pavel Cahyna
            rhn-support-ppaddhar Paras Paddhariya
            Pavel Cahyna Pavel Cahyna
            rhel-cs-system-management-subsystem-qe Bot rhel-cs-system-management-subsystem-qe Bot
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: