Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS to AlmaLinux Upgrade Failed During Preupgrade Phase #400

Open
farooqjunejo opened this issue Dec 23, 2024 · 1 comment
Open

CentOS to AlmaLinux Upgrade Failed During Preupgrade Phase #400

farooqjunejo opened this issue Dec 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@farooqjunejo
Copy link

I attempted to perform a CentOS to AlmaLinux upgrade using the centos2alma tool on my Plesk server, but it failed during the preupgrade phase. Below are the details of the issue:

Error Message:

  • Command ['/usr/bin/leapp', 'preupgrade'] failed with return code 1
    
  • The upgrade process was inhibited due to conflicts detected during the preupgrade checks.
    

    Environment:

  •     Plesk Version: Plesk Obsidian 18.0.66.1
    
  •     Operating System: CentOS CentOS 7.9.2009 x86_64
    
  •     Kernel Version: Linux k2plesk1.qsoftweb.com 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
    
  •     Disk Space: 43G available
    

    Log Details: /var/log/plesk/centos2alma.log:

    [root@k2plesk1 ~]# tail -n 100 /var/log/plesk/centos2alma.log
2024-12-23 04:18:44,567 - INFO - stdout:  plesk-php81-pspell                     x86_64  8.1.31-0redhat.8.241125.1221                   alma-PLESK_17_PHP81             15 k
2024-12-23 04:18:44,567 - INFO - stdout:  plesk-php81-redis                      x86_64  6.1.0-0redhat.8.241125.1221                    alma-PLESK_17_PHP81            181 k
2024-12-23 04:18:44,567 - INFO - stdout:  plesk-php81-snmp                       x86_64  8.1.31-0redhat.8.241125.1221                   alma-PLESK_17_PHP81             27 k
2024-12-23 04:18:44,567 - INFO - stdout:  plesk-php81-soap                       x86_64  8.1.31-0redhat.8.241125.1221                   alma-PLESK_17_PHP81            124 k
2024-12-23 04:18:44,567 - INFO - stdout:  plesk-php81-sodium                     x86_64  8.1.31-0redhat.8.241125.1221                   alma-PLESK_17_PHP81             32 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php81-tidy                       x86_64  8.1.31-0redhat.8.241125.1221                   alma-PLESK_17_PHP81             24 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php81-xdebug                     x86_64  3.3.2-0redhat.8.241125.1221                    alma-PLESK_17_PHP81            142 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php81-xml                        x86_64  8.1.31-0redhat.8.241125.1221                   alma-PLESK_17_PHP81             87 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82                            x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82            485 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-bcmath                     x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             21 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-cli                        x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82            2.7 M
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-dba                        x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             27 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-enchant                    x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             16 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-fpm                        x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82            1.8 M
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-gd                         x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82            113 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-imap                       x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             38 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-intl                       x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82            142 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-ldap                       x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             36 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-mbstring                   x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82            435 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-mysql                      x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82            122 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-odbc                       x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             39 k
2024-12-23 04:18:44,568 - INFO - stdout:  plesk-php82-opcache                    x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82            338 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-pdo                        x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             75 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-pear                       noarch  1.10.15-0redhat.8.241125.1213                  alma-PLESK_17_PHP82            289 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-pgsql                      x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             66 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-process                    x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             29 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-pspell                     x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             15 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-redis                      x86_64  6.1.0-0redhat.8.241125.1213                    alma-PLESK_17_PHP82            182 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-snmp                       x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             27 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-soap                       x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82            126 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-sodium                     x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             33 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-tidy                       x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             24 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-xdebug                     x86_64  3.3.2-0redhat.8.241125.1213                    alma-PLESK_17_PHP82            143 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-php82-xml                        x86_64  8.2.26-0redhat.8.241125.1213                   alma-PLESK_17_PHP82             88 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-platform-runtime                 x86_64  1.0.5-0redhat.8.241126.0735                    alma-PLESK_18_0_66              30 k
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-py3                              x86_64  3.10.13-0redhat.8.240111.0627                  alma-plesk-ext-panel-migrator   40 M
2024-12-23 04:18:46,548 - INFO - stdout:  plesk-rdbmspp                          x86_64  2.0.5-0redhat.8.241126.0735                    alma-PLESK_18_0_66             251 k
2024-12-23 04:18:46,548 - INFO - stdout:  psa-autoinstaller                      x86_64  3.66.0-0redhat.8.241202.0748                   alma-PLESK_18_0_66             4.8 M
2024-12-23 04:18:46,548 - INFO - stdout:  python3-setuptools                     noarch  39.2.0-8.el8_10                                almalinux8-baseos              162 k
2024-12-23 04:18:46,548 - INFO - stdout:  sw-engine                              x86_64  6.66.2-0redhat.8.241126.0735                   alma-PLESK_18_0_66              11 M
2024-12-23 04:18:46,548 - INFO - stdout:  sw-engine-cli-6.66                     x86_64  6.66.2-0redhat.8.241126.0735                   alma-PLESK_18_0_66             4.8 M
2024-12-23 04:18:46,548 - INFO - stdout:  zstd                                   x86_64  1.4.4-1.el8                                    almalinux8-appstream           395 k
2024-12-23 04:18:46,548 - INFO - stdout: Enabling module streams:
2024-12-23 04:18:46,548 - INFO - stdout:  container-tools                                rhel8                                                                              
2024-12-23 04:18:46,548 - INFO - stdout:  httpd                                          2.4                                                                                
2024-12-23 04:18:46,548 - INFO - stdout:  mysql                                          8.0                                                                                
2024-12-23 04:18:46,549 - INFO - stdout:  nginx                                          1.14                                                                               
2024-12-23 04:18:46,549 - INFO - stdout:  perl                                           5.26                                                                               
2024-12-23 04:18:46,549 - INFO - stdout:  perl-FCGI                                      0.78                                                                               
2024-12-23 04:18:46,549 - INFO - stdout:  perl-IO-Socket-SSL                             2.066                                                                              
2024-12-23 04:18:46,549 - INFO - stdout:  perl-libwww-perl                               6.34                                                                               
2024-12-23 04:18:46,549 - INFO - stdout:  php                                            7.2                                                                                
2024-12-23 04:18:46,549 - INFO - stdout:  python27                                       2.7                                                                                
2024-12-23 04:18:46,549 - INFO - stdout:  python36                                       3.6                                                                                
2024-12-23 04:18:46,555 - INFO - stdout:  ruby                                           2.5                                                                                
2024-12-23 04:18:46,555 - INFO - stdout: 
2024-12-23 04:18:46,555 - INFO - stdout: Transaction Summary
2024-12-23 04:18:46,555 - INFO - stdout: ===================================================================================================================================
2024-12-23 04:18:46,555 - INFO - stdout: Install    314 Packages
2024-12-23 04:18:46,555 - INFO - stdout: Upgrade    815 Packages
2024-12-23 04:18:46,555 - INFO - stdout: Remove     165 Packages
2024-12-23 04:18:46,555 - INFO - stdout: Downgrade  136 Packages
2024-12-23 04:18:46,555 - INFO - stdout: 
2024-12-23 04:18:46,555 - INFO - stdout: Total size: 1.6 G
2024-12-23 04:18:46,555 - INFO - stdout: Total download size: 1.5 G
2024-12-23 04:18:46,555 - INFO - stdout: Downloading Packages:
2024-12-23 04:18:46,556 - INFO - stdout: Check completed.
2024-12-23 04:18:46,556 - INFO - stdout: ====> * tmp_actor_to_satisfy_sanity_checks
2024-12-23 04:18:46,594 - INFO - stdout:         The actor does NOTHING but satisfy static sanity checks
2024-12-23 04:18:46,594 - INFO - stdout: ====> * report_set_target_release
2024-12-23 04:18:46,719 - INFO - stdout:         Reports information related to the release set in the subscription-manager after the upgrade.
2024-12-23 04:18:46,719 - INFO - stdout: ====> * check_initramfs_tasks
2024-12-23 04:18:46,759 - INFO - stdout:         Inhibit the upgrade if conflicting "initramfs" tasks are detected
2024-12-23 04:18:46,759 - INFO - stdout: ====> * check_systemd_services_tasks
2024-12-23 04:18:46,802 - INFO - stdout:         Inhibit the upgrade if SystemdServicesTasks tasks are in conflict
2024-12-23 04:18:46,802 - INFO - stdout: ==> Processing phase `Reports`
2024-12-23 04:18:46,844 - INFO - stdout: ====> * verify_check_results
2024-12-23 04:18:46,844 - INFO - stdout:         Check all dialogs and notify that user needs to make some choices.
2024-12-23 04:18:46,844 - INFO - stdout: ====> * verify_check_results
2024-12-23 04:18:47,203 - INFO - stdout:         Check all generated results messages and notify user about them.
2024-12-23 04:18:47,204 - INFO - stdout: 
2024-12-23 04:18:47,232 - INFO - stdout: Debug output written to /var/log/leapp/leapp-preupgrade.log
2024-12-23 04:18:47,232 - ERROR - Command ['/usr/bin/leapp', 'preupgrade'] failed with return code 1
2024-12-23 04:18:47,232 - ERROR - Failed: doing the conversion. The reason: Command '['/usr/bin/leapp', 'preupgrade']' returned non-zero exit status 1.
2024-12-23 04:18:47,746 - DEBUG - Going to write json '/usr/local/psa/var/centos2alma/actions.json' with new data

2024-12-23 04:18:47,772 - DEBUG - Sent error report
2024-12-23 04:18:47,776 - DEBUG - Trying to send status of conversion by report-update utility '/root/parallels/report-update'
2024-12-23 04:18:48,213 - ERROR - centos2alma process has failed. Error: Failed: doing the conversion. The reason: Command '['/usr/bin/leapp', 'preupgrade']' returned non-zero exit status 1.
2024-12-23 04:18:48,214 - INFO - Going to free lockfile '/usr/local/psa/var/centos2alma/centos2alma.lock'...
2024-12-23 04:18:48,214 - INFO - Create signals handler with keep MOTD: True
2024-12-23 04:20:10,865 - INFO - Started with arguments ['./centos2alma', '--prepare-feedback']
2024-12-23 04:20:10,865 - DEBUG - Got upgrader name 'Plesk::Centos2AlmaConverter' for feedback preparation from '/usr/local/psa/var/centos2alma/resume.json'
2024-12-23 04:20:10,865 - DEBUG - Detected current OS distribution as CentOS 7
2024-12-23 04:20:10,866 - DEBUG - Current system: CentOS 7
2024-12-23 04:20:10,866 - DEBUG - Available upgraders: [Centos2AlmaConverterFactory(upgrader_name=Plesk::Centos2AlmaConverter)]
2024-12-23 04:20:10,866 - DEBUG - Looking for upgrader by the name 'Plesk::Centos2AlmaConverter'
2024-12-23 04:20:10,866 - DEBUG - Found upgraders: [Centos2AlmaConverterFactory(upgrader_name=Plesk::Centos2AlmaConverter)]
2024-12-23 04:20:10,866 - INFO - Selected upgrader: Centos2AlmaConverter (1.4.4-31bb147c)
2024-12-23 04:20:10,866 - DEBUG - Upgrader Centos2AlmaConverter support of your system: as source = True, as target = False
**Steps to Reproduce:**
  1.     Ran ./centos2alma
    
  2.     Encountered the error during the preupgrade phase.
    

    Feedback Archive: I have attached the feedback archive centos2alma_feedback.zip as requested.

Request:

Please review the feedback archive and provide guidance on resolving the issue.
centos2alma_feedback.zip

Thank you for your assistance!

Attachments:

centos2alma_feedback.zip
@farooqjunejo farooqjunejo added the bug Something isn't working label Dec 23, 2024
@SandakovMM
Copy link
Collaborator

I have noticed from /var/log/leapp/leapp-report.txt the '/var/log/leapp/answerfile.userchoices' file is missing, which causes leapp preupgrade to fail. This is unusual because centos2alma should create this file. Neither the tool nor leapp itself should remove this file, so I cannot understand why it is missing.
Could you please do the following:

  1. ./centos2alma --revert
  2. Create '/var/log/leapp/answerfile.userchoices' with the following content:
[remove_pam_pkcs11_module_check]
confirm = True
  1. Execute ./centos2alma again and see if this resolves the issue or if the file is still missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants