mariadb/debian
Otto Kekäläinen af124c4f1c MDEV-33750: Make SysV init more verbose in case of MariaDB start failures
MariaDB installs/upgrades in Docker containers (and elsewhere where
systemd is not used) occasionally fail with output like:

  Starting MariaDB database server: mariadbd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
  invoke-rc.d: initscript mariadb, action "start" failed.
  dpkg: error processing package mariadb-server-10.5 (--configure):
   installed mariadb-server-10.5 package post-installation script subprocess returned error exit status 1

This is not very helpful. Thus extend the init script to try the server
start/restart one more time but with error log defined separately,
and then print out the error log contents of this single start attempt.

  ...
  Starting MariaDB database server: mariadbd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  230103 01:06:48 mysqld_safe Can't log to error log and syslog at the same time.  Remove all --log-error configuration options for --syslog to take effect.
  230103 01:06:48 mysqld_safe Logging to '/tmp/tmp.JlE4sdUMZz.err'.
  230103 01:06:49 mysqld_safe Starting mariadbd daemon with databases from /var/lib/mysql
  Running '/etc/init.d/mariadb start' failed with error log:
  230103 01:06:49 mysqld_safe Starting mariadbd daemon with databases from /var/lib/mysql
  2023-01-03  1:06:49 0 [Note] /usr/sbin/mariadbd (mysqld 10.5.18-MariaDB-0+deb11u1) starting as process 10417 ...
  2023-01-03  1:06:49 0 [Note] InnoDB: Uses event mutexes
  2023-01-03  1:06:49 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
  2023-01-03  1:06:49 0 [Note] InnoDB: Number of pools: 1
  2023-01-03  1:06:49 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
  2023-01-03  1:06:49 0 [Note] InnoDB: Using Linux native AIO
  2023-01-03  1:06:49 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
  2023-01-03  1:06:49 0 [Note] InnoDB: Completed initialization of buffer pool
  2023-01-03  1:06:49 0 [ERROR] InnoDB: Invalid flags 0x4800 in ./ibdata1
  ...
2024-07-17 14:32:50 +10:00
..
additions MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
po
source MDEV-33837: Remove autogenerated files in columnstore warnings 2024-07-17 11:25:51 +10:00
tests MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
apparmor-profile
autobake-deb.sh MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
changelog
compat MDEV-34191: Make sure that Debian respects systemd disabled 2024-07-17 13:58:44 +10:00
control MDEV-33750: Fix Lintian warnings 2024-07-17 14:32:50 +10:00
copyright MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
gbp.conf
libmariadb-dev-compat.install
libmariadb-dev-compat.links
libmariadb-dev-compat.lintian-overrides MDEV-33837: Remove conflicts warnings from lintian 2024-07-17 11:25:51 +10:00
libmariadb-dev.examples
libmariadb-dev.install
libmariadb-dev.links
libmariadb-dev.lintian-overrides MDEV-33837: Remove unneeded lintian override in libmariadb-dev 2024-07-17 11:25:51 +10:00
libmariadb-dev.README.Maintainer
libmariadb3-compat.install
libmariadb3.install
libmariadb3.lintian-overrides MDEV-33837: Remove conflicts warnings from lintian 2024-07-17 11:25:51 +10:00
libmariadb3.symbols
libmariadb3.symbols.README
libmariadbclient18.install
libmariadbd-dev.install MDEV-34456: Move mariadb.pc to not-installed 2024-07-17 12:19:08 +10:00
libmariadbd19.install
libmariadbd19.lintian-overrides MDEV-33837: Remove purposed spelling errors 2024-07-17 11:25:51 +10:00
libmysqlclient18.install
mariadb-backup.install
mariadb-backup.lintian-overrides MDEV-33837: Remove purposed spelling errors 2024-07-17 11:25:51 +10:00
mariadb-client-core.install
mariadb-client-core.lintian-overrides MDEV-33837: Remove conflicts warnings from lintian 2024-07-17 11:25:51 +10:00
mariadb-client.docs
mariadb-client.install
mariadb-client.links
mariadb-client.lintian-overrides MDEV-33837: Remove conflicts warnings from lintian 2024-07-17 11:25:51 +10:00
mariadb-client.manpages
mariadb-client.menu
mariadb-client.README.Debian
mariadb-common.dirs
mariadb-common.install
mariadb-common.lintian-overrides MDEV-33837: Suspend lintian warnings for description is synopsis 2024-07-17 11:25:51 +10:00
mariadb-common.postinst
mariadb-common.postrm
mariadb-plugin-connect.install
mariadb-plugin-cracklib-password-check.install
mariadb-plugin-gssapi-client.install
mariadb-plugin-gssapi-server.install
mariadb-plugin-hashicorp-key-management.install
mariadb-plugin-mroonga.install
mariadb-plugin-mroonga.lintian-overrides MDEV-33837: Suspend package-contains-documentation-outside-usr-share-doc warnings 2024-07-17 11:25:51 +10:00
mariadb-plugin-mroonga.postinst MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
mariadb-plugin-mroonga.prerm MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
mariadb-plugin-oqgraph.install
mariadb-plugin-provider-bzip2.install
mariadb-plugin-provider-bzip2.lintian-overrides MDEV-33837: Add and fix lintian overrides 2024-07-17 11:25:51 +10:00
mariadb-plugin-provider-lz4.install
mariadb-plugin-provider-lz4.lintian-overrides MDEV-33837: Add and fix lintian overrides 2024-07-17 11:25:51 +10:00
mariadb-plugin-provider-lzma.install
mariadb-plugin-provider-lzma.lintian-overrides MDEV-33837: Add and fix lintian overrides 2024-07-17 11:25:51 +10:00
mariadb-plugin-provider-lzo.install
mariadb-plugin-provider-lzo.lintian-overrides MDEV-33837: Add and fix lintian overrides 2024-07-17 11:25:51 +10:00
mariadb-plugin-provider-snappy.install
mariadb-plugin-provider-snappy.lintian-overrides MDEV-33837: Add and fix lintian overrides 2024-07-17 11:25:51 +10:00
mariadb-plugin-rocksdb.install
mariadb-plugin-rocksdb.lintian-overrides MDEV-33837: Remove purposed spelling errors 2024-07-17 11:25:51 +10:00
mariadb-plugin-s3.install
mariadb-plugin-spider.install
mariadb-server-core.install MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
mariadb-server-core.lintian-overrides MDEV-33837: Suspend package-contains-documentation-outside-usr-share-doc warnings 2024-07-17 11:25:51 +10:00
mariadb-server.config MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
mariadb-server.dirs
mariadb-server.install MDEV-33837: Fix spare-manual-page warnings in Debian lintian 2024-07-17 11:25:51 +10:00
mariadb-server.lintian-overrides MDEV-33837: Suspend package-contains-documentation-outside-usr-share-doc warnings 2024-07-17 11:25:51 +10:00
mariadb-server.logcheck.ignore.paranoid
mariadb-server.logcheck.ignore.server MDEV-33750: Fix Lintian warnings 2024-07-17 14:32:50 +10:00
mariadb-server.logcheck.ignore.workstation MDEV-33750: Fix Lintian warnings 2024-07-17 14:32:50 +10:00
mariadb-server.mariadb.init MDEV-33750: Make SysV init more verbose in case of MariaDB start failures 2024-07-17 14:32:50 +10:00
mariadb-server.mysql.default
mariadb-server.postinst MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
mariadb-server.postrm
mariadb-server.preinst MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
mariadb-server.README.Debian
mariadb-server.templates
mariadb-server.triggers
mariadb-test-data.install
mariadb-test-data.lintian-overrides MDEV-33837: Remove autogenerated files in columnstore warnings 2024-07-17 11:25:51 +10:00
mariadb-test.install
mariadb-test.lintian-overrides MDEV-33837: Suspend package-contains-documentation-outside-usr-share-doc warnings 2024-07-17 11:25:51 +10:00
mysql-common.dirs
mysql-common.links
mysql-common.lintian-overrides MDEV-33837: Suspend lintian warnings for description is synopsis 2024-07-17 11:25:51 +10:00
mysql-common.postrm
not-installed MDEV-34456: Move mariadb.pc to not-installed 2024-07-17 12:19:08 +10:00
rules MDEV-33750: Sync maintainer scripts etc with latest downstream 10.11.5 in Debian 2024-07-17 14:32:50 +10:00
salsa-ci.yml