Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 7. Troubleshooting conversions
This chapter lists troubleshooting resources and tips.
7.1. Troubleshooting resources Copier lienLien copié sur presse-papiers!
To help you troubleshoot issues that can occur during the conversion process, review the log messages that are printed to the console and log files.
Console Output
By default, only info, warning, error, and critical log level messages are printed to the console output by the Convert2RHEL utility. To also print debug messages, use the --debug option with the convert2rhel command.
Logs
-
The
/var/log/convert2rhel/convert2rhel.logfile lists debug, info, warning, error, and critical messages. -
The
/var/log/convert2rhel/rpm_va.logfile lists all package files on the unconverted system that a user has modified. This output is generated by therpm -Vacommand, which is run automatically unless the--no-rpm-vaoption is used with theconvert2rhelcommand.
7.2. Fixing dependency errors Copier lienLien copié sur presse-papiers!
During a conversion from a different Linux distribution to RHEL, certain packages might be installed without some of their dependencies.
Prerequisites
- You have successfully completed the conversion to RHEL. See Converting to a RHEL system for more information.
Procedure
Identify dependencies errors:
yum check dependencies
# yum check dependenciesCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the command displays no output, no further actions are required.
-
To fix dependency errors, reinstall the affected packages. During this operation, the
yumutility automatically installs missing dependencies. If the required dependencies are not provided by repositories available on the system, install those packages manually.
7.3. Troubleshooting issues with Red Hat Lightspeed conversions Copier lienLien copié sur presse-papiers!
The following issues might occur when using Red Hat Lightspeed to convert to RHEL.
7.3.1. Missing systems in pre-conversion analysis task Copier lienLien copié sur presse-papiers!
When running the Pre-conversion analysis for converting to RHEL task in Red Hat Lightspeed, CentOS Linux 7 systems that appeared correctly in RHEL Inventory might not appear in the list of available systems to run the pre-conversion analysis on. This issue occurs when the Remote Host Configuration (RHC) is disconnected.
Procedure
- Log in to the Red Hat Hybrid Cloud Console and go to Red Hat Lightspeed > RHEL > Inventory > Systems.
- Select the affected system from the table.
In the General Information tab, go to the System Status card and verify the RHC status:
- If the RHC status is Connected, RHC is connected correctly.
- If the RHC status is Not available, RHC is disconnected. Proceed to the next step to reconnect RHC.
Unregister the system in your terminal:
rhc disconnect
# rhc disconnectCopy to Clipboard Copied! Toggle word wrap Toggle overflow To help with troubleshooting, set the
RHC systemdservice (rhcd) logging to the highest level:sed -ie 's%error%trace%' /etc/rhc/config.toml
# sed -ie 's%error%trace%' /etc/rhc/config.tomlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Register your system with Red Hat Lightspeed and re-enable RHC in your terminal:
insights-client --register rhc connect -a <activation_key> -o <organization_ID>
# insights-client --register # rhc connect -a <activation_key> -o <organization_ID>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace activation_key and organization_ID with the activation key and organization ID from the Red Hat Customer Portal.
Verification
Verify that you can select the system in the Pre-conversion analysis for converting to RHEL task.
If the system still does not appear correctly, review error messages from
rhcdand theinsights-clienttool:journalctl -u rhcd less /var/log/insights-client/insights-client.log
# journalctl -u rhcd # less /var/log/insights-client/insights-client.logCopy to Clipboard Copied! Toggle word wrap Toggle overflow
7.3.2. Pre-conversion analysis task fails to complete Copier lienLien copié sur presse-papiers!
After running the Pre-conversion analysis for converting to RHEL task, one or more of the systems can fail to generate a report with the error message Task failed to complete for an unknown reason. Retry this task at a later time. If this issue occurs, complete the steps below to troubleshoot.
Procedure
- Verify if the affected system is unavailable, for example because of a network accessibility issue or because the system is shut off.
Review the
RHC systemdservice (rhcd) for errors:Stop rhcd in your terminal:
systemctl stop rhcd
# systemctl stop rhcdCopy to Clipboard Copied! Toggle word wrap Toggle overflow Set
rhcdlogging to the highest level:sed -ie 's%error%trace%' /etc/rhc/config.toml
# sed -ie 's%error%trace%' /etc/rhc/config.tomlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Restart
rhcd:systemctl start rhcd
# systemctl start rhcdCopy to Clipboard Copied! Toggle word wrap Toggle overflow Review error messages posted by
rhcd:journalctl -u rhcd
# journalctl -u rhcdCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Review the
rhc-worker-scriptlog file for errors:less /var/log/rhc-worker-script/rhc-worker-script.log
# less /var/log/rhc-worker-script/rhc-worker-script.logCopy to Clipboard Copied! Toggle word wrap Toggle overflow
7.4. Known issues and limitations Copier lienLien copié sur presse-papiers!
The following issues and limitations are known to occur during the conversion:
Systems that connect to the Internet using an HTTP proxy server cannot convert using Red Hat CDN or Satellite through RHSM by using the command line. To work around this problem, enable HTTP proxy for yum and then configure the HTTP proxy for RHSM:
- Configure yum to use an HTTP proxy. For more information, see the Red Hat Knowledgebase solution How to enable proxy settings for yum command on RHEL?
Install the
subscription-managerpackage:Download the Red Hat GPG key:
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://security.access.redhat.com/data/fd431d51.txt
# curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://security.access.redhat.com/data/fd431d51.txtCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install a repository file for the
client-toolsrepository that contains thesubscription-managerpackage:conversions to RHEL 7:
curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-7-server.repo
# curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-7-server.repoCopy to Clipboard Copied! Toggle word wrap Toggle overflow For conversions to RHEL 8:
curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-8.repo
# curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-8.repoCopy to Clipboard Copied! Toggle word wrap Toggle overflow For conversions to RHEL 9:
curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-9.repo
# curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-9.repoCopy to Clipboard Copied! Toggle word wrap Toggle overflow
If you are converting to an earlier version of RHEL 8, for example, RHEL 8.5, update the
$releasevervalue in the client-tools repository:sed -i 's%\$releasever%<release_version>%' /etc/yum.repos.d/client-tools.repo
# sed -i 's%\$releasever%<release_version>%' /etc/yum.repos.d/client-tools.repoCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace release_version with the correct release version, for example
8.5or8.10.Install the following subscription-manager packages:
yum -y install subscription-manager subscription-manager-rhsm-certificates
# yum -y install subscription-manager subscription-manager-rhsm-certificatesCopy to Clipboard Copied! Toggle word wrap Toggle overflow
- Configure HTTP proxy for RHSM. For more information, see the Red Hat Knowledgebase solution How to configure HTTP Proxy for Red Hat Subscription Management.
Register the system with RHSM:
subscription-manager register --org <organization_id> --activationkey <activation_key>
# subscription-manager register --org <organization_id> --activationkey <activation_key>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace organization_id and activation_key with the organization ID and activation key from the Red Hat Customer Portal.
-
Remove the organization ID and activation key from the
/etc/convert2rhel.inifile. Perform the conversion to RHEL:
convert2rhel
# convert2rhelCopy to Clipboard Copied! Toggle word wrap Toggle overflow
UEFI systems with Secure Boot enabled are not supported for conversion. To work around this issue, complete the following steps:
- Disable Secure Boot before the conversion. For more information, see the Red Hat Knowledgebase solution convert2rhel fails on UEFI systems with Secure Boot enabled.
- Perform the conversion to RHEL.
If converting from Oracle Linux 7 or Alma Linux 8, install the
shim-x64package:yum install -y shim-x64
# yum install -y shim-x64Copy to Clipboard Copied! Toggle word wrap Toggle overflow Re-enable Secure Boot.
- If you are converting by using Red Hat Lightspeed, running two RHC daemon (rhcd) processes simultaneously prevents the pre-conversion analysis from running as expected. To prevent this issue, run only one rhcd process at a time. (HMS-2629)
7.5. Obtaining support Copier lienLien copié sur presse-papiers!
If you experience problems during the conversion, notify Red Hat so that these problems can be addressed.
If you are experiencing problems during the conversion, raise a Support case of Severity 3 or Severity 4 level only. For more details, see Production Support Terms of Service.
Prerequisites
-
The
sospackage is installed. You must use this package to generate ansosreportthat is required when opening a support case for the Red Hat Support team.
Procedure
To obtain support, perform either of the following steps:
Open a support case:
-
Select the appropriate version of RHEL as the product, and provide an
sosreportfrom your system. Generate an
sosreporton your system:sosreport
# sosreportCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note that you can leave the case ID empty.
-
Select the appropriate version of RHEL as the product, and provide an
Submit a bug report:
-
Open a bug, select the appropriate version of RHEL as the product, and select
convert2rhelas the component.
-
Open a bug, select the appropriate version of RHEL as the product, and select
For details on generating an sosreport, For more information, see the Red Hat Knowledgebase solution What is an sosreport and how to create one in Red Hat Enterprise Linux?.
For more information about opening and managing a support case on the Customer Portal, see the article How do I open and manage a support case on the Customer Portal?.
For information about Red Hat’s support policy for Linux distribution conversions, see Convert2RHEL Support Policy.