[MCOL-4616] Uninstall may fail if MariaDB is uninstalled first Created: 2021-03-16  Updated: 2023-12-31

Status: Open
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: 6.1.1
Fix Version/s: Icebox

Type: Task Priority: Major
Reporter: David Hall (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Ubuntu, Debian



 Description   

apt remove <columnstore pkg> will fail if MariaDB is already removed
In mariadb-plugin-columnstore.postrm, we find

# Automatically restart MariaDB after ColumnStore plugin has been removed
case "$1" in
  purge|remove|disappear)
    if [ -d /run/systemd/system ]; then
      # If systemd
      deb-systemd-invoke restart mariadb.service >/dev/null
    elif [ -x "/etc/init.d/mariadb" ]; then
      # Fall-back to SysV init
      invoke-rc.d mariadb restart || exit $?
    fi
  ;;
esac

If MariaDB is not functional, this fails and apt remove is aborted, making it impossible to remove the package



 Comments   
Comment by Christopher [ 2023-12-31 ]

Thank you for the TIP

commented out the restart function and finally got mariadb uninstalled

was unable to do any updates / installations because apt / dpkg was stuck uninstalling disfunctional "mariadb-plugin-columnstore" package

it should at least have a check to see if mariadb is even running !!!

Generated at Thu Feb 08 02:51:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.