[MDEV-5540] MariaDB reports failure to start Created: 2014-01-18 Updated: 2015-07-20 Resolved: 2014-04-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.36, 10.0.6 |
| Fix Version/s: | 5.5.37, 10.0.11 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Philip orleans | Assignee: | Sergei Golubchik |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | memory, timeout | ||
| Environment: |
debian 7 64 bits |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
but in fact if you wait 60 seconds, and try "mysql", the software is up.
|
| Comments |
| Comment by Sergei Golubchik [ 2014-01-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I don't know what we can do here. I suppose one can always create a configuration where MariaDB will take a lot of time to start. I'm not sure it's possible in all cases to distinguish that from a hanged or locked up server (caused by some bug in MariaDB or even the Linux kernel). Perhaps all you need to do is to increase MYSQLD_STARTUP_TIMEOUT, like in
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Philip orleans [ 2014-01-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The solution did not work. I exported a new variable with 90, but it
Maybe we should change it at least to 60? Also, the innodb stat tables do not get created, on a brand new but maybe we should fix this in the product. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2014-01-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
about 30 vs. 60. vs 90 — I think an appropriate solution would be to source /etc/default/mysql and let MYSQLD_STARTUP_TIMEOUT to be set there. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Ingvoldstad [ 2014-03-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sourcing /etc/default/mysql would be very welcome, yes. See below for example code based on /etc/init.d/skeleton. But IMHO, this should be solved differently, by permitting an upgrade of the package without enforcing a restart of the daemon at postinst. As an example, one of my test cases uses a few minutes to start. This would be nice to do at a different time than package upgrade. The work-around is to hold the mariadb-server packages and only upgrade these manually, rather than automatically.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Ingvoldstad [ 2014-03-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
On second thought: don't load /lib/init/vars.sh, since that will break service mysql [start|stop], at least as it stands now. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Ingvoldstad [ 2014-03-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Here's a patch:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2014-04-10 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fixed in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Nils Meyer [ 2015-07-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The fix in |