Bug 20254

Summary: systemd hangs in startup/shutdown of mysqld
Product: Mageia Reporter: Marc Krämer <mageia>
Component: RPM PackagesAssignee: Colin Guthrie <mageia>
Status: RESOLVED OLD QA Contact:
Severity: critical    
Priority: Normal CC: basesystem, marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: systemd-230-8.mga6.src.rpm CVE:
Status comment:

Description Marc Krämer 2017-02-07 13:17:53 CET
Description of problem:
while startup/shutdown of mysql the systemctl command is not finished (hangs). Mysql was started successful - on shutdown it hangs & process is not stopped.

Version-Release number of selected component (if applicable):
230

How reproducible:
systemctl start mysqld

I've checked strace while startup and it shows systemd is trying sth. with password verification (even this is executed as root). The relevant part is:

[pid 19784] munmap(0x7f25b8a5e000, 4096) = 0
[pid 19784] stat("/run/systemd/ask-password-block", {st_mode=S_IFDIR|0700, st_size=80, ...}) = 0
[pid 19784] mknod("/run/systemd/ask-password-block/136:1", S_IFIFO|0600) = -1 EEXIST (File exists)
[pid 19784] open("/run/systemd/ask-password-block/136:1", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_CLOEXEC) = 3
[pid 19784] stat("/run/systemd", {st_mode=S_IFDIR|0755, st_size=440, ...}) = 0
[pid 19784] mkdir("/run/systemd/ask-password", 0755) = -1 EEXIST (File exists)
[pid 19784] stat("/run/systemd/ask-password", {st_mode=S_IFDIR|0755, st_size=40, ...}) = 0
[pid 19784] inotify_init1(IN_CLOEXEC)   = 4
[pid 19784] inotify_add_watch(4, "/run/systemd/ask-password", IN_CLOSE_WRITE|IN_MOVED_TO) = 1
[pid 19784] rt_sigprocmask(SIG_SETMASK, [INT TERM], NULL, 8) = 0
[pid 19784] signalfd4(-1, [INT TERM], 8, SFD_CLOEXEC|SFD_NONBLOCK) = 5
[pid 19784] open("/run/systemd/ask-password", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 6
[pid 19784] fstat(6, {st_mode=S_IFDIR|0755, st_size=40, ...}) = 0
[pid 19784] getdents(6, /* 2 entries */, 32768) = 48
[pid 19784] getdents(6, /* 0 entries */, 32768) = 0
[pid 19784] close(6)                    = 0
[pid 19784] poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1?


if I read this correct, it waits for sth. to happen to /run/systemd/ask-password .
Comment 1 Marja Van Waes 2017-02-08 10:31:52 CET
Assigning to the registered maintainer, but CC'ing the basesystem maintainer group, in case the maintainer is unavailable.

CC: (none) => basesystem, marja11
Assignee: bugsquad => mageia

Comment 2 Marc Krämer 2019-07-13 01:17:45 CEST
closing my old bug

Resolution: (none) => OLD
Status: NEW => RESOLVED