"update modern mariadb" removes MariaDB packages with no revert action; --revert then fails on roundcube
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 22/100
调研方向
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.repopresent)
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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
plesk/cloudlinux7to8 的其他 Issue
-
难度 3/5 半天 新手友好度 45/100
plesk/cloudlinux7to8#145 ·
-
难度 3/5 半天 新手友好度 55/100
plesk/cloudlinux7to8#144 ·
-
Legacy GRUB 0.97 system passes precheck; leapp system_facts crashes on missing /boot/grub2/grub.cfg未关闭
难度 4/5 3-5 天 新手友好度 25/100
plesk/cloudlinux7to8#143 ·
-
难度 3/5 1-2 天 新手友好度 45/100
plesk/cloudlinux7to8#142 ·
-
难度 3/5 1-2 天 新手友好度 35/100
plesk/cloudlinux7to8#140 ·
查看 plesk/cloudlinux7to8 的全部 Issue
相似的 Issue
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 78/100
yunaremaia/proto-drift#22 ·
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 82/100
yunaremaia/memwatch#96 ·
-
bug good first issue
难度 1/5 1 小时以内 新手友好度 91/100
yunaremaia/ci-gate-watch#34 ·
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 85/100
yunaremaia/agent-capability-attestation#64 ·
维护者通常 1 天内回复
-
bug good first issue
难度 1/5 1 小时以内 新手友好度 86/100
yunaremaia/agent-call-graph#43 ·
维护者通常 1 天内回复