[MDEV-20789] Installation fails on non-systemd Linux Created: 2019-10-09  Updated: 2022-12-08  Resolved: 2022-12-08

Status: Closed
Project: MariaDB Server
Component/s: Platform Debian
Affects Version/s: 10.4.8
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Philip orleans Assignee: Faustin Lammler
Resolution: Won't Fix Votes: 0
Labels: installation
Environment:

Ubuntu 18.04


Issue Links:
Problem/Incident
is caused by MDEV-15526 SysV init service deployed file '/etc... Closed

 Description   

There is a very popular version of Ubuntu 18.0.4 where we cannot install Mariadb, because it does not use systemd, and there is no services script provided (it goes in /etc/init.d). This version is the one shipped with Windows server. It happens that we are using this version for business very often. Installation should identify that there is no systemd and instead use a script to start and stop mariadb.



 Comments   
Comment by Sergei Golubchik [ 2019-10-10 ]

as a workaround you can manually copy mysql.init from /usr/share/mysql to /etc/init.d

Comment by Faustin Lammler [ 2020-02-25 ]

otto, I see you assigned me this issue.

MDEV-15526 was resolved by this commit https://github.com/MariaDB/server/commit/a4cc6fb91f3855e0ed803a6e1762440cfcf8cb5c. So I believe there is no better workaround to this problem than what serg already suggested.

I personally would have preferred to resolve MDEV-15526 with https://github.com/MariaDB/server/pull/1172 so for now I can not see any better solution.

philip_38 can you please mention what is the "popular version of Ubuntu 18.04" you are speaking of so I can maybe do some tests?

Comment by Philip orleans [ 2020-02-25 ]

The version that millions of engineers are using is the one that comes with Windows 10 and the Subsystem for Linux. It can see the Windows disks and shares memory and network. It comes handy when we need to develop some database objects. It has no systemd.

Comment by Faustin Lammler [ 2020-02-25 ]

Ok, thank you philip_38, this seems to be the version:
https://www.microsoft.com/en-us/p/ubuntu-1804-lts/9n9tngvndl3q?activetab=pivot:overviewtab

Unfortunately I have no way of testing this. Did you managed to start mariadb with the workaround suggested by serg?

Comment by Philip orleans [ 2020-02-25 ]

Yes, I did, but millions of users will not have any idea. Please add a test
for Systemd and if not present, deploy classic version.

On Tue, Feb 25, 2020 at 6:34 AM Faustin Lammler (Jira) <jira@mariadb.org>

Comment by Otto Kekäläinen [ 2020-02-25 ]

philip_38 Which is the exact MariaDB version you are now talking about? The Windows subsystem inherits from Ubuntu, right? What does dpkg -l | grep -iE 'maria|mysql|galera' show on this system?

Comment by Otto Kekäläinen [ 2020-02-25 ]

There is a /etc/init.d/mysql shipped in https://packages.ubuntu.com/bionic/amd64/mariadb-server-10.1/filelist at least..

Comment by Philip orleans [ 2020-02-25 ]

ii default-libmysqlclient-dev:amd64 1.0.4 amd64 MySQL database development files (metapackage)
ii galera-3 25.3.28-bionic amd64 Replication framework for transactional applications
ii libdbd-mysql-perl 4.046-1 amd64 Perl5 database interface to the MariaDB/MySQL database
ii libmariadb3:amd64 1:10.3.21+maria~bionic amd64 MariaDB database client library
ii libmysqlclient-dev 5.7.28-0ubuntu0.18.04.4 amd64 MySQL database development files
ii libmysqlclient20:amd64 5.7.28-0ubuntu0.18.04.4 amd64 MySQL database client library
ii mariadb-client-10.3 1:10.3.21+maria~bionic amd64 MariaDB database client binaries
ii mariadb-client-core-10.3 1:10.3.21+maria~bionic amd64 MariaDB database core client binaries
ii mariadb-common 1:10.3.21+maria~bionic all MariaDB database common files (e.g. /etc/mysql/conf.d/mariadb.cnf)
ii mariadb-plugin-rocksdb 1:10.3.21+maria~bionic amd64 RocksDB storage engine for MariaDB
ii mariadb-server 1:10.3.21+maria~bionic all MariaDB database server (metapackage depending on the latest version)
ii mariadb-server-10.3 1:10.3.21+maria~bionic amd64 MariaDB database server binaries
ii mariadb-server-core-10.3 1:10.3.21+maria~bionic amd64 MariaDB database core server files
ii mysql-common 1:10.3.21+maria~bionic all MariaDB database common files (e.g. /etc/mysql/my.cnf)
ii python-mysqldb 1.3.10-1build1 amd64 Python interface to MySQL

Comment by Faustin Lammler [ 2020-02-25 ]

So I believe you are using MariaDB repositories because Ubuntu 18.04 ships by default 10.1.

Comment by Philip orleans [ 2020-02-25 ]

Yes I am.

On Tue, Feb 25, 2020 at 12:55 PM Faustin Lammler (Jira) <jira@mariadb.org>

Comment by Faustin Lammler [ 2022-11-04 ]

Unfortunately, we do not have resources to test such installations and I am not even sure this would be feasible within our build and test platform (buildbot.mariadb.org).

Also, for such a use case, I would recommend our docker images https://github.com/docker-library/docs/blob/master/mariadb/README.md?

serg what do you think we should do about it?

Comment by Daniel Black [ 2022-12-05 ]

Systemd has been supported in WSL now https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/ for a few months.

So at the moment I'm thinking WONTFIX.

Generated at Thu Feb 08 09:02:11 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.