[debian-mysql] Bug#773282: mariadb-server-10.0: init script returns failure on success

Frédéric Brière fbriere at fbriere.net
Tue Dec 16 12:04:50 UTC 2014


Package: mariadb-server-10.0
Version: 10.0.15-2
Severity: normal

Upgrading from 10.0.15-1 to -2:

  Setting up mariadb-server-10.0 (10.0.15-2) ...
  [ ok ] Stopping MariaDB database server: mysqld.
  [ ok ] Starting MariaDB database server: mysqld.
  invoke-rc.d: initscript mysql, action "start" failed.
  dpkg: error processing package mariadb-server-10.0 (--configure):
   subprocess installed post-installation script returned error exit status 1

Hmm.

  # service mysql restart; echo $?
  [ ok ] Stopping MariaDB database server: mysqld.
  [ ok ] Starting MariaDB database server: mysqld.
  1

The problem lies with line 122: /etc/mysql/debian-start no longer
outputs anything (at least for me), so the expression evaluates to 1,
hence the statement (because of &&), hence the script (because this is
the last statement).  Shell scripting is such a pain...

Using "if" (which returns 0) or appending "|| true" does the trick.


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.16.0-4-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages mariadb-server-10.0 depends on:
ii  adduser                   3.113+nmu3
ii  debconf [debconf-2.0]     1.5.55
ii  libaio1                   0.3.110-1
ii  libc6                     2.19-13
ii  libdbi-perl               1.631-3+b1
ii  libpam0g                  1.1.8-3.1
ii  libstdc++6                4.9.2-8
ii  lsb-base                  4.1+Debian13+nmu1
ii  mariadb-client-10.0       10.0.15-2
ii  mariadb-common            10.0.15-2
ii  mariadb-server-core-10.0  10.0.15-2
ii  passwd                    1:4.2-3
ii  perl                      5.20.1-3
ii  psmisc                    22.21-2
ii  zlib1g                    1:1.2.8.dfsg-2+b1

Versions of packages mariadb-server-10.0 recommends:
ii  libhtml-template-perl  2.95-1

Versions of packages mariadb-server-10.0 suggests:
ii  bsd-mailx [mailx]  8.1.2-0.20140825cvs-1
pn  mariadb-test       <none>
pn  tinyca             <none>

-- Configuration Files:
/etc/init.d/mysql changed [not included]

-- debconf information:
  mariadb-server-10.0/really_downgrade: false
  mysql-server-10.0/postrm_remove_databases: false
* mysql-server/password_mismatch:
  mysql-server/error_setting_password:
  mysql-server/no_upgrade_when_using_ndb:
  mysql-server-10.0/nis_warning:
* mariadb-server/oneway_migration: true



More information about the pkg-mysql-maint mailing list