Red Hat Capsule upgrade failed with `change from 'absent' to 'directory' failed: Cannot create /home/u19518/.ssh/id_rsa.pub; parent directory /home/u19518/.ssh does not exist` error

Solution Verified - Updated -

Issue

  • Red Hat Capsule upgrade failed with the following error:

    Procedures::Installer::Upgrade: 2024-10-08 11:59:49 [NOTICE] [root] Loading installer configuration. This will take some time.
    2024-10-08 11:59:53 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
    2024-10-08 11:59:53 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
    2024-10-08 11:59:59 [WARN  ] [pre] Skipping system checks.
    2024-10-08 11:59:59 [WARN  ] [pre] Skipping system checks.
    2024-10-08 12:00:02 [NOTICE] [configure] Starting system configuration.
    2024-10-08 12:00:12 [NOTICE] [configure] 250 configuration steps out of 1747 steps complete.
    2024-10-08 12:00:18 [NOTICE] [configure] 500 configuration steps out of 1751 steps complete.
    2024-10-08 12:00:19 [NOTICE] [configure] 750 configuration steps out of 1752 steps complete.
    2024-10-08 12:00:21 [NOTICE] [configure] 1000 configuration steps out of 1756 steps complete.
    2024-10-08 12:00:21 [NOTICE] [configure] 1250 configuration steps out of 1757 steps complete.
    2024-10-08 12:00:21 [ERROR ] [configure] Cannot create /home/u19518/.ssh/id_rsa.pub; parent directory /home/u19518/.ssh does not exist
    2024-10-08 12:00:21 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Plugin::Remote_execution::Ssh/File[/home/u19518/.ssh/id_rsa.pub]/ensure: change from 'absent' to 'directory' failed: Cannot create /home/u19518/.ssh/id_rsa.pub; parent directory /home/u19518/.ssh does not exist
    2024-10-08 12:00:21 [NOTICE] [configure] 1500 configuration steps out of 1757 steps complete.
    2024-10-08 12:00:32 [NOTICE] [configure] 1750 configuration steps out of 1758 steps complete.
    2024-10-08 12:00:35 [NOTICE] [configure] System configuration has finished.
    
    There were errors detected during install.
    Please address the errors and re-run the installer to ensure the system is properly configured.
    Failing to do so is likely to result in broken functionality.
    
    The full log is at /var/log/foreman-installer/capsule.log
                                      [FAIL]
    Failed executing LANG=en_US.utf-8 foreman-installer  --disable-system-checks, exit status 6
    

Environment

  • Red Hat Capsule 6.11

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