Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6550

Missing dependency on Debian 7 (Wheezy) installation package

Details

    Description

      Have an issue during installation of MariaDB 10.1 to Linux Debian 7.6 64-bit virtual server, virtualized with OpenVZ.

      The problem is in missing command "logger", which is a way to talk to syslog. Syslog is installed and i am not sure which package need to be installed for command "logger" to work. I guess, that i don't have it, because OpenVZ system images usually minimalized (some tools got removed) to reduce drive space used and memory usage. The possible solution would be:
      a) Detect which package need to be installed for command "logger" to work
      b) Add this package as a dependency for .deb MariaDB package (mariadb-server).

      Log:

      Setting up mariadb-server-10.1 (10.1.0+maria-1~wheezy) ...
      [ ok ] Stopping MariaDB database server: mysqld.
      /var/lib/dpkg/info/mariadb-server-10.1.postinst: line 147: logger: command not found
      /var/lib/dpkg/info/mariadb-server-10.1.postinst: line 220: logger: command not found
      dpkg: error processing mariadb-server-10.1 (--configure):
      subprocess installed post-installation script returned error exit status 127
      dpkg: dependency problems prevent configuration of mariadb-server:
      mariadb-server depends on mariadb-server-10.1 (= 10.1.0+maria-1~wheezy); however:
      Package mariadb-server-10.1 is not configured yet.

      dpkg: error processing mariadb-server (--configure):
      dependency problems - leaving unconfigured
      Errors were encountered while processing:
      mariadb-server-10.1
      mariadb-server
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      A package failed to install. Trying to recover:
      Setting up mariadb-server-10.1 (10.1.0+maria-1~wheezy) ...
      [ ok ] Stopping MariaDB database server: mysqld.
      /var/lib/dpkg/info/mariadb-server-10.1.postinst: line 147: logger: command not found
      /var/lib/dpkg/info/mariadb-server-10.1.postinst: line 220: logger: command not found
      dpkg: error processing mariadb-server-10.1 (--configure):
      subprocess installed post-installation script returned error exit status 127
      dpkg: dependency problems prevent configuration of mariadb-server:
      mariadb-server depends on mariadb-server-10.1 (= 10.1.0+maria-1~wheezy); however:
      Package mariadb-server-10.1 is not configured yet.

      dpkg: error processing mariadb-server (--configure):
      dependency problems - leaving unconfigured
      Errors were encountered while processing:
      mariadb-server-10.1
      mariadb-server

      Attachments

        Issue Links

          Activity

            I didn't really check, but I suppose if 10.1 is affected, so should be 10.0 and 5.5, so I've added them to the list.

            elenst Elena Stepanova added a comment - I didn't really check, but I suppose if 10.1 is affected, so should be 10.0 and 5.5, so I've added them to the list.

            Most likely - yes, all versions should be affected.

            A quick fix is:

            apt-get --reinstall install bsdutils

            This command will reinstall bsdutils, which contains 'logger'. bsdutils package is cuted on some OpenVZ system templates, that's why the problem happens.

            Profforg Alexander Loginov added a comment - Most likely - yes, all versions should be affected. A quick fix is: apt-get --reinstall install bsdutils This command will reinstall bsdutils, which contains 'logger'. bsdutils package is cuted on some OpenVZ system templates, that's why the problem happens.

            Due to this bug report the package 'bsdutils' was added in the Debian control file of upstream MariaDB. I've now removed it in downstream Debian. Bsdutils is an essential package = is always installed. It does not make sense unless a particular bsdutils package version is a dependency.

            In this case it seems the problem wasn't the missing bsdutils package, but that it was hampered by the platform in question. So adding bsdutils didn't actually solve it. It would be better to file a bug against OpenVZ that logger is an universally used command and MariaDB among others should have it, an removing this binary from the system is a bug.

            http://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.0.git/commit/?id=ec360dbab90227b9a72257e698498939424e7de9

            otto Otto Kekäläinen added a comment - Due to this bug report the package 'bsdutils' was added in the Debian control file of upstream MariaDB. I've now removed it in downstream Debian. Bsdutils is an essential package = is always installed. It does not make sense unless a particular bsdutils package version is a dependency. In this case it seems the problem wasn't the missing bsdutils package, but that it was hampered by the platform in question. So adding bsdutils didn't actually solve it. It would be better to file a bug against OpenVZ that logger is an universally used command and MariaDB among others should have it, an removing this binary from the system is a bug. http://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.0.git/commit/?id=ec360dbab90227b9a72257e698498939424e7de9

            People

              serg Sergei Golubchik
              Profforg Alexander Loginov
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.