Thank you for taking the time to report this bug and helping to make Ubuntu better.
Hans' race seems valid. I don't think it's necessarily the case that Maris had exactly the same problem. There's not enough detail in the logs to determine that for sure. But to make progress, I think it's OK to assume this is the case. As Lars said, this is fixed in 18.04 onwards. I don't think a fix to 16.04 is warranted due to the regression risk. The workaround for anyone affected was described by Hans in comment 3. If anyone disagrees, please start by addressing Lars' concern in comment 4 with a specific patch. ** Changed in: mysql-5.7 (Ubuntu) Status: New => Fix Released ** Also affects: mysql-5.7 (Ubuntu Xenial) Importance: Undecided Status: New ** Changed in: mysql-5.7 (Ubuntu Xenial) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863318 Title: mysql-server-5.7.postinst races daemon start with mysql_upgrade To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1863318/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs