[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: |
|
||||||||
| 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.
I personally would have preferred to resolve 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: 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 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) |
| 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. |