[MDEV-10105] Mariadb initialize a shut down just after starting Created: 2016-05-23 Updated: 2016-09-22 Resolved: 2016-09-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.1.14 |
| Fix Version/s: | 10.1.18 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Yoann PANIER | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian GNU/Linux 8.4 (jessie) |
||
| Issue Links: |
|
||||||||
| Description |
|
Hello, I've just encountered an issue with my setup and don't understand what happen... I've made a fresh install some days ago, tweak some settings, restart mariadb, and started to import thousands of tables through ssh because I had a problem with xtrabackup. My import process finished, i decided to shutdown mariadb to change the bind-adress et try to restart it ..... CRASH My first doubt was when i was watching the log and seen it hang on the message :"Highest supported file format is Barracuda." After 5min, the process has continued but starts a shutdown just after the message : "/usr/sbin/mysqld: ready for connections." I've tried to restart it multiple times with the same result..... See bellow the log:
And this is my.cnf:
I hope you will have good news for me because I've spent many hours for this migration :-/ Best regards, |
| Comments |
| Comment by Yoann PANIER [ 2016-05-24 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I tried to reinstall mariadb-server but a new problem has come... apt-get purge mariadb-server
apt-get autoremove
apt-get install mariadb-server
There is a MySQL server running, but we failed in our attempts to stop it. But i can't find a Mysql process.... lsof | grep mysql --> return nothing Best regards, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Yoann PANIER [ 2016-05-24 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I've moved temporarily the file /etc/init.d/mysql to complete the install.... and the problem still remain I used this stap script provided by the percona blog :
and I discover that the process who kill MySQL is systemd ..... So I managed to bypass this problem by add "TimeoutStartSec=10m" to the service file but I'm feeling guilty to apply this trick. Is there any reasons who justify than my Mariadb server take so long to start ? Best regards, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-05-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
If you paste the error log which relates to the 10-min startup, we might see what exactly takes so long (not only the one from the file, but whatever relates to mysqld in the journal). Initializing 80G buffer pool and creating 8 logs 1G each might take long, I guess it depends on the machine whether it takes this long. If the logs took most of the time, the problem should be gone after the first startup – logs have already been created, so restarts should be faster. If it's the buffer pool to blame, then it will be happening every time. If it's something else, we need to see what exactly it is. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Yoann PANIER [ 2016-05-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I already restarted it a few times and it takes every time a few minutes (~7min the last one) Mysql Error log for the last restart:
From journalctl:
I don't find other information related to mysqld in /var/log | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-06-10 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
So, the delay is here:
It must be | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2016-09-22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
commit 2bedc3978b90bf5abe1029df393c63ced1849bed |