Wind River Support Network

HomeDefectsLIN1021-974
Fixed

LIN1021-974 : mariadb: serivce mysqld start fail in sysvinit mode

Created: Jul 27, 2021    Updated: Aug 25, 2021
Resolved Date: Aug 18, 2021
Found In Version: 10.21.20.3
Fix Version: 10.21.20.4
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Userspace

Description

1) setup.sh
--machine intel-x86-64 --dl-layers --templates feature/mariadb

2). ./environment-setup-x86_64-wrlinuxsdk-linux

3). ./oe-init-build-env

4) enable sysvinit
sed -i '/DISTRO_FEATURES_append = " systemd"/s//#/g' conf/local.conf
sed -i '/VIRTUAL-RUNTIME_init_manager = "systemd"/s//#/g' conf/local.conf
sed -i '/DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"/s/^/#/g' conf/local.conf
sed -i '/KERNEL_FEATURES_append = " cfg\/systemd.scc"/s/^/#/g' conf/local.conf
sed -i '/VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"/s/^/#/g' conf/local.conf

sed -i '/#DISTRO_FEATURES_append = " sysvinit"/s/^#//' conf/local.conf
sed -i '/#DISTRO_FEATURES_BACKFILL_CONSIDERED += "systemd"/s/^#//' conf/local.conf
sed -i '/#VIRTUAL-RUNTIME_init_manager = "sysvinit"/s/#//' conf/local.conf
sed -i '/#VIRTUAL-RUNTIME_initscripts = "initscripts"/s/#//' conf/local.conf

5) bitbake wrlinux-image-small
6) boot the target, run command as problem description.
$ service mysqld start
Starting MariaDB.210727 04:05:03 mysqld_safe Logging to '/var/log/mysqld.err'.
210727 04:05:03 mysqld_safe Starting mariadbd daemon with databases from /var/lib/mysql
/usr/bin/mysqld_safe_helper: Can't create/write to file '/var/log/mysqld.err' (Errcode: 13 "Permission denied")

Steps to Reproduce

1) setup.sh
--machine intel-x86-64 --dl-layers --templates feature/grpc feature/ipv6 feature/mariadb feature/nfsd feature/package-management feature/sysklogd feature/target-toolchain --layers meta-filesystems meta-security-compliance meta-virtualization --dl-layers
2). ./environment-setup-x86_64-wrlinuxsdk-linux

3). ./oe-init-build-env 

4)  enable sysvinit
    sed -i '/DISTRO_FEATURES_append = " systemd"/s/^/#/g' conf/local.conf    sed -i '/VIRTUAL-RUNTIME_init_manager = "systemd"/s/^/#/g' conf/local.conf
    sed -i '/DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"/s/^/#/g' conf/local.conf
    sed -i '/KERNEL_FEATURES_append = " cfg\/systemd.scc"/s/^/#/g' conf/local.conf
    sed -i '/VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"/s/^/#/g' conf/local.conf
 
    sed -i '/#DISTRO_FEATURES_append = " sysvinit"/s/^#//' conf/local.conf
    sed -i '/#DISTRO_FEATURES_BACKFILL_CONSIDERED += "systemd"/s/^#//' conf/local.conf
    sed -i '/#VIRTUAL-RUNTIME_init_manager = "sysvinit"/s/^#//' conf/local.conf    sed -i '/#VIRTUAL-RUNTIME_initscripts = "initscripts"/s/^#//' conf/local.conf
 
5) bitbake wrlinux-image-small
6) boot the target, run command as problem description.
Live chat
Online