Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

"update modern mariadb" removes MariaDB packages with no revert action; --revert then fails on roundcube

未关闭
#141 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
mariadb, python

调研方向

Start with the convert-phase action that runs rpm -e --nodeps on the MariaDB packages and see whether it defines any revert step. Then look at the --revert path that reinstalls Roundcube through plesk installer. The fix is a revert step that reinstalls the same MariaDB version and restores the .rpmsave configs before Roundcube runs; verify it by running --revert after a simulated failure.

由索引模型根据 Issue 内容生成。

描述

Environment

  • cloudlinux7to8 v1.2.1
  • CloudLinux 7.9 (TuxCare ELS), Plesk Obsidian 18.0.81.3
  • MariaDB 10.5.26 from the upstream MariaDB repository (/etc/yum.repos.d/mariadb.repo present)

Describe the bug
In the convert phase, the "update modern mariadb" action removes the MariaDB packages (MariaDB-server, -client, -common, -compat, -shared) with rpm -e --nodeps, so they can be reinstalled from the el8 repository after the upgrade. Modified configuration files are saved as .rpmsave (/etc/my.cnf.rpmsave, /etc/my.cnf.d/server.cnf.rpmsave).

The conversion later failed in leapp preupgrade (unrelated reason). When running ./cloudlinux7to8 --revert, MariaDB was not reinstalled, because the action has no revert step. The revert then failed while reinstalling Roundcube:

ERROR while trying to detect MySQL service name
...
ERROR - Command ['/usr/sbin/plesk', 'installer', 'add', '--components', 'roundcube'] failed with return code 1
ERROR - Failed: re-installing roundcube plesk components.

The data directory /var/lib/mysql was intact, but the server was left without MariaDB installed and with default configuration once the packages were reinstalled.

Expected behavior
On revert, the action should reinstall the removed MariaDB packages (same version, from the same repository) and restore the original configuration files, before any step that needs the database (such as the Roundcube reinstall).

Workaround
Manually reinstall the same version (yum install MariaDB-server-10.5.26 MariaDB-client-10.5.26 ...), restore my.cnf and my.cnf.d/ from a backup, start MariaDB and run --revert again.

主要语言
Python
星标
7
派生
5
平均合并
11 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

plesk/cloudlinux7to8 的其他 Issue

查看 plesk/cloudlinux7to8 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。