[MDEV-8956] systemd loses MariaDB service after disable / enable Created: 2015-10-16 Updated: 2022-11-05 Resolved: 2022-11-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging, Platform Debian, Platform RedHat |
| Affects Version/s: | 10.1 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Faustin Lammler |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | foundation, systemd, upstream | ||
| Description |
|
That's the notorious problem with "inactive (dead)", I'm filing it to track upstream bugs further, and also hopefully to have a workaround by the next release. It has been observed on Ubuntu Vivid, Debian Sid, Fedora 22. Quoting my email from earlier:
Unfortunately, it happens not only when a user stops/starts the server quickly, but also apparently when installation process does the same. My experiments above were performed when MariaDB was already installed, and the machine was rebooted; but it also happens right after installation, and then it's not necessary to stop/start server manually, the sequence is
It means that a user has no control over the situation, which makes it more important. |
| Comments |
| Comment by Elena Stepanova [ 2015-11-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
svoj, While there is still time, could you please try to add a few second delays in installation/upgrade scripts, wherever the server is restarted? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-11-03 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
It turns out that the server restart (quick or not) is irrelevant. It was not obvious because the problem happens sporadically, so after adding a delay the test was passing by pure chance.
If it only happens after disable/enable, it makes the problem much less important, since it is not a common scenario. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-11-03 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
danblack, I added a comment to https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1506206, could you please repost it to https://bugzilla.redhat.com/show_bug.cgi?id=1271832 ? I don't have an account there. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2015-11-03 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
done | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2018-04-01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I attempted reproduce this on systemd 237 with a timed out service that still had a process active. Performing the enable/disable. Showing the status and then killing of the process. Seems to not result in systemd aborts and a fairly sane behaviour.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Faustin Lammler [ 2018-05-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi elenst,
Gives no error after various reboot.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Faustin Lammler [ 2022-11-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi elenst do you think we should close this? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2022-11-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I guess so. Both upstream bugs are closed as won't fix, so there is nothing more to track. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Faustin Lammler [ 2022-11-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
thanks!! |