Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#141 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
mariadb, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
7
Fork
5
Merge medio
11m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di plesk/cloudlinux7to8

Tutte le issue di plesk/cloudlinux7to8

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.