cpanel / elevate

elevate your cPanel&WHM CentOS 7 server to Almalinux 8
https://cpanel.github.io/elevate/
BSD 2-Clause "Simplified" License
45 stars 30 forks source link

ea-php71 and ea-php74 not shown as blockers (Version 11) #253

Closed philh7456 closed 9 months ago

philh7456 commented 1 year ago

Following on from #252, ea-php71 and ea-php74 are not being shown as blockers with version 11 of the script (ea-php71 was shown as a blocker with version 7).

CentOS Linux release 7.9.2009 (Core), cPanel 110.0.5

# rpm -q ea-php71 ea-php74
ea-php71-7.1.33-5.5.1.cpanel.x86_64
ea-php74-7.4.33-1.1.1.cpanel.x86_64
# /scripts/elevate-cpanel --update
* 2023-05-09 16:09:28 [INFO] Self-update of script version 11 requested.
* 2023-05-09 16:09:28 [INFO] Script is up to date.
# /scripts/elevate-cpanel --check --upgrade-to=almalinux
* 2023-05-09 16:11:58 [INFO] Successfully verified signature for cpanel (key types: release).
* 2023-05-09 16:11:59 [INFO] Checking if your system is up to date: 
* 2023-05-09 16:11:59 [INFO] Running: /usr/bin/yum clean all
* 2023-05-09 16:11:59 [INFO] 
* 2023-05-09 16:11:59 [INFO] Loaded plugins: fastestmirror, universal-hooks
* 2023-05-09 16:11:59 [INFO] Cleaning repos: EA4 EA4-experimental-c7 cpanel-addons-production-feed
* 2023-05-09 16:11:59 [INFO]               : cpanel-plugins MariaDB103 base epel extras kernelcare
* 2023-05-09 16:11:59 [INFO]               : letsencrypt-cpanel updates wp-toolkit-cpanel
* 2023-05-09 16:11:59 [INFO]               : wp-toolkit-thirdparties
* 2023-05-09 16:11:59 [INFO] Cleaning up list of fastest mirrors
* 2023-05-09 16:11:59 [INFO] Other repos take up 7.4 M of disk space (use --verbose for details)
* 2023-05-09 16:11:59 [INFO] 
* 2023-05-09 16:11:59 [INFO] Running: /usr/bin/yum check-update -q
* 2023-05-09 16:11:59 [INFO] 
* 2023-05-09 16:12:24 [INFO] 
* 2023-05-09 16:12:24 [INFO] Checking /scripts/sysup
* 2023-05-09 16:12:24 [INFO] Running: /scripts/sysup
* 2023-05-09 16:12:24 [INFO] 
* 2023-05-09 16:12:25 [INFO] checkyum version 22.3  (excludes: bind-chroot)
* 2023-05-09 16:12:26 [INFO]   All Needed Packages are already installed.
* 2023-05-09 16:12:26 [INFO] 
* 2023-05-09 16:12:28 [ERROR] 1 package(s) installed from unsupported YUM repo 'letsencrypt-cpanel' from /etc/yum.repos.d/letsencrypt.repo
* 2023-05-09 16:12:28 [INFO] Unsupported YUM repo enabled 'EA4-experimental-c$releasever' without packages installed from /etc/yum.repos.d/EA4-experimental.repo, these will be disabled before ELevation
* 2023-05-09 16:12:28 [WARN] *** Elevation Blocker detected: ***
  One or more enabled YUM repo are currently unsupported and have installed packages.
  You should disable these repositories and remove packages installed from them
  before continuing the update.

* 2023-05-09 16:12:41 [INFO] Checking EasyApache profile compatibility with AlmaLinux 8.
* 2023-05-09 16:12:41 [INFO] Running: /usr/local/bin/ea_current_to_profile --target-os=AlmaLinux_8 --output=/root/tmp/ttUiMbNtgH/ea_profile.json
* 2023-05-09 16:12:42 [INFO] Backed up EA4 profile to /root/tmp/ttUiMbNtgH/ea_profile.json
* 2023-05-09 16:12:44 [WARN] *** Elevation Blocker detected: ***
  A package providing python36 has been detected as installed.
  This can interfere with the elevation process.
  Please remove it before elevation:
  yum remove python3

* 2023-05-09 16:12:44 [WARN] Please fix the detected issues before performing the elevation process.
troglodyne commented 1 year ago

Presumably this specifically is the issue now?

* 2023-05-09 16:12:28 [ERROR] 1 package(s) installed from unsupported YUM repo 'letsencrypt-cpanel' from /etc/yum.repos.d/letsencrypt.repo
* 2023-05-09 16:12:28 [INFO] Unsupported YUM repo enabled 'EA4-experimental-c$releasever' without packages installed from /etc/yum.repos.d/EA4-experimental.repo, these will be disabled before ELevation
* 2023-05-09 16:12:28 [WARN] *** Elevation Blocker detected: ***
  One or more enabled YUM repo are currently unsupported and have installed packages.
  You should disable these repositories and remove packages installed from them
  before continuing the update.

IIRC the old letsencrypt-cpanel being marked as a blocker is already known (see issues like #209), but we don't appear to have any plans on addressing this save for advising users to reinstall it from the cpanel-plugins repository.

The experimental EA4 repo warning is somewhat interesting, I am genuinely curious about whether this should be supported or not.

Otherwise, the only other blocker was for python36, which is intentional.

philh7456 commented 1 year ago

Hi, no the issue is that ea-php71 and ea-php74 are NOT shown as blockers, even though they are installed. With version 7 of the script, ea-php71 was shown as a blocker, though ea-php74 was not.

troglodyne commented 1 year ago

Ah, ok. That makes more sense then. I did have a thought at the time with the original issue that maybe I just was lacking some context here. When I look at it, it looks like we don't even build those old EOL PHPs for 8, so this makes sense to me that this should be a blocker. Presumably a bug with the refactor in v8, as we have already had a number of bugs resulting from that.

Will debug this in that vein then, should have it figured out fairly soon I reckon

philh7456 commented 1 year ago

It seems that PHP 7.4 will be supported on RHEL 8 until 2029 under their Full Life Application Stream. Presumably this will apply to AlmaLinux and Rocky Linux and so it was correct that PHP 7.4 was not shown as a blocker under version 7 of the script, and only 7.1 should be marked as a blocker?

toddr commented 9 months ago

@philh7456, thanks for reporting this. It seems during some code refactoring, we broke the EA4 check. This will be resolved in our release on Monday.

itonix commented 9 months ago

@toddr ,Hello .I have come across a blocker :

2024-01-27 00:52:36 [WARN] *** Elevation Blocker detected: ***
  A package providing python36 has been detected as installed.
  This can interfere with the elevation process.
  Please remove it before elevation:
  yum remove python3

and upon checking, it's provided by an unsupported repo :

Can I remove this repo and packages safely?

repos.d]# yum list installed | grep @centos-sclo-rh >> 8 packages
repo contents attached

rh-python36.x86_64                            2.0-1.el7              @centos-sclo-rh
rh-python36-python.x86_64                     3.6.12-1.el7           @centos-sclo-rh
rh-python36-python-devel.x86_64               3.6.12-1.el7           @centos-sclo-rh
rh-python36-python-libs.x86_64                3.6.12-1.el7           @centos-sclo-rh
rh-python36-python-pip.noarch                 9.0.1-5.el7            @centos-sclo-rh
rh-python36-python-setuptools.noarch          36.5.0-1.el7           @centos-sclo-rh
rh-python36-python-virtualenv.noarch          15.1.0-3.el7           @centos-sclo-rh
rh-python36-runtime.x86_64                    2.0-1.el7              @centos-sclo-rh

Please help me.

toddr commented 9 months ago

We recommend you open a ticket with support or inquire in the forums