[debian-mysql] Bug#1037556: mariadb-server-10.5: mariadb should restart automatically upon crashing

mariadb martin.monperrus at gmail.com
Wed Jun 14 08:32:04 BST 2023


Package: mariadb-server-10.5
Version: 1:10.5.19-0+deb11u2
Severity: normal

Dear Maintainer,

   * What led up to the situation?

I'm running mariadb on a production server for Wordpress.

   * expected behavior

I expect mariadb to stay up on running for a long time (say months)

   * actual behavior

mariadb crashes once in a while, say every other week, then the Wordpress site is down until I manually restart

   * Possible solution

Add `Restart=always` in the systemd config file `/system/multi-user.target.wants/mariadb.service`



-- System Information:
Debian Release: 11.7
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-19-cloud-amd64 (SMP w/1 CPU thread)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mariadb-server-10.5 depends on:
ii  adduser                   3.118
ii  debconf [debconf-2.0]     1.5.77
ii  galera-4                  26.4.11-0+deb11u1
ii  gawk                      1:5.1.0-1
ii  iproute2                  5.10.0-4
ii  libc6                     2.31-13+deb11u6
ii  libdbi-perl               1.643-3+b1
ii  libpam0g                  1.4.0-9+deb11u1
ii  libssl1.1                 1.1.1n-0+deb11u5
ii  libstdc++6                10.2.1-6
ii  lsb-base                  11.1.0
ii  lsof                      4.93.2+dfsg-1.1
ii  mariadb-client-10.5       1:10.5.19-0+deb11u2
ii  mariadb-common            1:10.5.19-0+deb11u2
ii  mariadb-server-core-10.5  1:10.5.19-0+deb11u2
ii  passwd                    1:4.8.1-1
ii  perl                      5.32.1-4+deb11u2
ii  procps                    2:3.3.17-5
ii  psmisc                    23.4-2
ii  rsync                     3.2.3-4+deb11u1
ii  socat                     1.7.4.1-3
ii  zlib1g                    1:1.2.11.dfsg-2+deb11u2

Versions of packages mariadb-server-10.5 recommends:
ii  libhtml-template-perl  2.97-1.1

Versions of packages mariadb-server-10.5 suggests:
pn  mailx           <none>
pn  mariadb-test    <none>
pn  netcat-openbsd  <none>

-- debconf information:
  mariadb-server-10.5/nis_warning:
  mariadb-server-10.5/old_data_directory_saved:
  mariadb-server-10.5/postrm_remove_databases: false



More information about the pkg-mysql-maint mailing list