Error while upgrading RedHat Satellite or Capsule: "mv: inter-device move failed: ‘/usr/share/foreman-proxy/.ssh’ to ‘/var/lib/foreman-proxy/ssh/.ssh’; unable to remove target: Directory not empty"

Solution Verified - Updated -

Issue

  • Error upgrading Satellite / capsule during the installation of the rubygem-smart_proxy_remote_execution_ssh.noarch package:

    [root@example01 ~]# yum update
    Loaded plugins: aliases, changelog, enabled_repos_upload, kabi, langpacks,
                  : package_upload, product-id, search-disabled-repos, subscription-
                  : manager, tmprepo, verify, versionlock
    Loading support for Red Hat kernel ABI
    Resolving Dependencies
    --> Running transaction check
    ---> Package rubygem-smart_proxy_remote_execution_ssh.noarch 0:0.2.0-3.el7sat will be updated
    ---> Package rubygem-smart_proxy_remote_execution_ssh.noarch 0:0.2.1-2.el7sat will be an update
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package   Arch   Version        Repository                                Size
    ================================================================================
    Updating:
     rubygem-smart_proxy_remote_execution_ssh
               noarch 0.2.1-2.el7sat rhel-7-server-satellite-capsule-6.6-rpms  25 k
    
    Transaction Summary
    ================================================================================
    Upgrade  1 Package
    
    Total download size: 25 k
    
    Is this ok [y/d/N]: y
    Downloading packages:
    No Presto metadata available for rhel-7-server-satellite-capsule-6.6-rpms
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    mv: inter-device move failed: ‘/usr/share/foreman-proxy/.ssh’ to ‘/var/lib/foreman-proxy/ssh/.ssh’; unable to remove target: Directory not empty
    error: %pre(rubygem-smart_proxy_remote_execution_ssh-0.2.1-2.el7sat.noarch) scriptlet failed, exit status 1
    Error in PREIN scriptlet in rpm package rubygem-smart_proxy_remote_execution_ssh-0.2.1-2.el7sat.noarch
    Uploading Package Profile
    Loaded plugins: kabi, langpacks, product-id, subscription-manager, versionlock
    Loading support for Red Hat kernel ABI
    rubygem-smart_proxy_remote_execution_ssh-0.2.0-3.el7sat.noarch was supposed to be removed but is not!
      Verifying  : rubygem-smart_proxy_remote_execution_ssh-0.2.0-3.el7sat.no   1/2
      Verifying  : rubygem-smart_proxy_remote_execution_ssh-0.2.1-2.el7sat.no   2/2
    
    Failed:
      rubygem-smart_proxy_remote_execution_ssh.noarch 0:0.2.0-3.el7sat
      rubygem-smart_proxy_remote_execution_ssh.noarch 0:0.2.1-2.el7sat
    

Environment

  • Red Hat Satellite 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content