Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.4.5
-
None
Description
After the fix for MDEV-10797, RPMs no longer install the init script on systems that use systemd. However, the RPM preun script still tries to erase the init script. See here:
https://github.com/MariaDB/server/blob/mariadb-10.4.5/support-files/rpm/server-preun.sh#L12
This leads to the following problem:
$ rpm -e MariaDB-server
|
error: %preun(MariaDB-server-10.4.5-1.el7.centos.x86_64) scriptlet failed, exit status 1
|
error: MariaDB-server-10.4.5-1.el7.centos.x86_64: erase failed
|
More verbose output shows:
+ '[' -x /sbin/chkconfig ']'
|
+ /sbin/chkconfig --del mysql
|
D: %preun(MariaDB-server-10.4.5-1.el7.centos.x86_64): waitpid(3107) rc 3107 status 100
|
error: %preun(MariaDB-server-10.4.5-1.el7.centos.x86_64) scriptlet failed, exit status 1
|
error: MariaDB-server-10.4.5-1.el7.centos.x86_64: erase failed
|
Attachments
Issue Links
- is caused by
-
MDEV-10797 RPM includes init script and a systemd unit
-
- Closed
-
- relates to
-
MDEV-11046 systemd loses control of running daemon after RPM upgrade
-
- Closed
-
-
MDEV-15526 SysV init service deployed file '/etc/init.d/mysql' prevents systemctl disable command to work correctly (mariadb|mysql naming support) (debian/ubuntu)
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is caused by |
Link |
This issue relates to |
Link |
This issue relates to |
Priority | Major [ 3 ] | Critical [ 2 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Fix Version/s | 10.4.6 [ 23412 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Component/s | Platform RedHat [ 11302 ] |
Workflow | MariaDB v3 [ 97394 ] | MariaDB v4 [ 156324 ] |
Zendesk Related Tickets | 128778 |
Currently you can work around the error by suppressing the problem script:
rpm -e --noscripts MariaDB-server