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

Missing dependency on Debian 7 (Wheezy) installation package

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5.39, 10.0.13, 10.1.0
    • Fix Version/s: 5.5.40, 10.0.15
    • Component/s: Platform Debian
    • Labels:
    • Environment:
      Linux Debian 7.6 64-bit on OpenVZ virtual server

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              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.

              Show
              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.
              Hide
              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.

              Show
              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.
              Hide
              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

              Show
              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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 5 minutes
                    5m