[MDEV-12243] upgrade to systemd can failed with different datadir in config file Created: 2017-03-13  Updated: 2023-09-19

Status: Open
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 10.1.21
Fix Version/s: 10.5

Type: Bug Priority: Major
Reporter: VAROQUI Stephane Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: systemd, upgrade
Environment:

Debian Jessie, RPM based distros too.


Issue Links:
Relates
relates to MDEV-25177 Better indication of refusing to star... Closed

 Description   

MariaDB systemd file enforce
ProtectHome=true
That prevent to start mysqld if the datadir is set to /home/mysql/data

mariadb-service-convert does not search en enforce
ProtectHome=false
if datadir is set to non allowed path



 Comments   
Comment by Daniel Black [ 2021-03-11 ]

Can apply to upgrades from MySQL <= 5.7 too.

Some postinst script that detects config settings that write to /home and others (includes MDEV-10399)

  • datadir=/home/* -> and disabled ProtectHome

and drop like adding an extra file like:

https://mariadb.com/kb/en/systemd/#configuring-access-to-home-directories

Consider ProtectSystem directories, probably with a warning.

Comment by Daniel Black [ 2023-09-19 ]

MDEV-25177 improves the error message to hopefully be able to determine the cause a bit better.

Generated at Thu Feb 08 07:56:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.