# Primary XtraDB crashed

**URL:** <https://forums.percona.com/t/primary-xtradb-crashed/3123>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [November 27, 2013, 5:04am UTC](https://forums.percona.com/t/primary-xtradb-crashed/3123 "2013-11-27T05:04:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![evrynet](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@evrynet](https://forums.percona.com/u/evrynet)\
**Post date:** [November 27, 2013, 5:04am UTC](https://forums.percona.com/t/primary-xtradb-crashed/3123/1 "2013-11-27T05:04:16Z")

</div>

Hi,

One of the members of the custer crashed unexpectedly. Log file as follows:

……  
131124 5:28:14 [Note] WSREP: (a89f58b5-3fc0-11e3-88e2-42a6d4c067ed, ‘ssl://0.0.0.0:4567’) turning message relay requesting on, nonlive peers: ssl://192.168.133.137:4567  
05:28:14 UTC - mysqld got signal 11 ;  
This could be because you hit a bug. It is also possible that this binary  
or one of the libraries it was linked against is corrupt, improperly built,  
or misconfigured. This error can also be caused by malfunctioning hardware.  
We will try our best to scrape up some info that will hopefully help  
diagnose the problem, but since we have already crashed,  
something is definitely wrong and this may fail.  
Please help us make Percona Server better by reporting any  
bugs at [url][System Dashboard - Percona JIRA](http://bugs.percona.com/%5B/url%5D)

key\_buffer\_size=8388608  
read\_buffer\_size=131072  
max\_used\_connections=13  
max\_threads=153  
thread\_count=2  
connection\_count=2  
It is possible that mysqld could use up to  
key\_buffer\_size + (read\_buffer\_size + sort\_buffer\_size)\*max\_threads = 343054 K bytes of memory  
Hope that’s ok; if not, decrease some variables in the equation.

Thread pointer: 0x0  
Attempting backtrace. You can use the following information to find out  
where mysqld died. If you see no messages after this, something went  
terribly wrong…  
stack\_bottom = 0 thread\_stack 0x40000  
/usr/sbin/mysqld(my\_print\_stacktrace+0x35)[0x7d8405]  
/usr/sbin/mysqld(handle\_fatal\_signal+0x4b4)[0x6b0804]  
/lib64/libpthread.so.0[0x348940f500]  
/usr/lib64/libgalera\_smm.so(\_ZN4asio6detail8write\_opINS\_3ssl6streamINS\_19basic\_stream\_socketINS\_2ip3tcpENS\_21stream\_socket\_serviceIS6\_EEEENS2\_14stream\_serviceEEEN5boost5arrayINS\_12const\_bufferELm2EEENS0\_14transfer\_all\_tENSC\_3\_bi6bind\_tIvNSC\_4\_mfi3mf2IvN5gcomm13AsioTcpSocketERKNS\_10error\_codeEmEENSH\_5list3INSH\_5valueINSC\_10shared\_ptrISM\_EEEEPFNSC\_3argILi1EEEvEPFNSW\_ILi2EEEvEEEEEEclESP\_mi+0x1d1)[0x7f5e4d618f61]  
/usr/lib64/libgalera\_smm.so(\_ZN4asio3ssl6detail22openssl\_stream\_service10io\_handlerINS\_19basic\_stream\_socketINS\_2ip3tcpENS\_21stream\_socket\_serviceIS6\_EEEENS\_6detail8write\_opINS0\_6streamIS9\_NS0\_14stream\_serviceEEEN5boost5arrayINS\_12const\_bufferELm2EEENSA\_14transfer\_all\_tENSF\_3\_bi6bind\_tIvNSF\_4\_mfi3mf2IvN5gcomm13AsioTcpSocketERKNS\_10error\_codeEmEENSK\_5list3INSK\_5valueINSF\_10shared\_ptrISP\_EEEEPFNSF\_3argILi1EEEvEPFNSZ\_ILi2EEEvEEEEEEEE12handler\_implESS\_m+0x15)[0x7f5e4d619235]  
/usr/lib64/libgalera\_smm.so(\_ZN4asio3ssl6detail22openssl\_stream\_service12base\_handlerINS\_19basic\_stream\_socketINS\_2ip3tcpENS\_21stream\_socket\_serviceIS6\_EEEEE7do\_funcERKNS\_10error\_codeEm+0x18)[0x7f5e4d60e428]  
/usr/lib64/libgalera\_smm.so(\_ZN4asio3ssl6detail17openssl\_operationINS\_19basic\_stream\_socketINS\_2ip3tcpENS\_21stream\_socket\_serviceIS5\_EEEEE18async\_user\_handlerENS\_10error\_codeEi+0x27)[0x7f5e4d60e367]  
/usr/lib64/libgalera\_smm.so(\_ZNK5boost9function2IiRKN4asio10error\_codeEiEclES4\_i+0x18)[0x7f5e4d60e3d8]  
/usr/lib64/libgalera\_smm.so(\_ZN4asio3ssl6detail17openssl\_operationINS\_19basic\_stream\_socketINS\_2ip3tcpENS\_21stream\_socket\_serviceIS5\_EEEEE19async\_write\_handlerEbiRKNS\_10error\_codeEm+0x6e)[0x7f5e4d60e9ae]  
/usr/lib64/libgalera\_smm.so(_ZN4asio6detail14strand\_service8dispatchINS0\_7binder2IN5boost3\_bi6bind\_tIvNS4\_4\_mfi3mf4IvNS\_3ssl6detail17openssl\_operationINS\_19basic\_stream\_socketINS\_2ip3tcpENS\_21stream\_socket\_serviceISE\_EEEEEEbiRKNS\_10error\_codeEmEENS5\_5list5INS5\_5valueIPSI\_EENSO\_IbEENSO\_IiEEPFNS4\_3argILi1EEEvEPFNST\_ILi2EEEvEEEEESJ\_mEEEEvRPNS1\_11strand\_implET_+0xc9)[0x7f5e4d60bd79]  
/usr/lib64/libgalera\_smm.so(_ZN27asio\_handler\_invoke\_helpers6invokeIN4asio6detail17rewrapped\_handlerINS2\_7binder2INS2\_8write\_opINS1\_19basic\_stream\_socketINS1\_2ip3tcpENS1\_21stream\_socket\_serviceIS8\_EEEENS1\_17mutable\_buffers\_1ENS2\_14transfer\_all\_tENS2\_15wrapped\_handlerINS1\_10io\_service6strandEN5boost3\_bi6bind\_tIvNSH\_4\_mfi3mf4IvNS1\_3ssl6detail17openssl\_operationISB\_EEbiRKNS1\_10error\_codeEmEENSI\_5list5INSI\_5valueIPSP\_EENSV\_IbEENSV\_IiEEPFNSH\_3argILi1EEEvEPFNS10\_ILi2EEEvEEEEEEEEESQ\_mEES18\_EES1C\_EEvRKT\_RT0_+0x174)[0x7f5e4d611184]  
/usr/lib64/libgalera\_smm.so(_ZN4asio6detail14strand\_service8dispatchINS0\_17rewrapped\_handlerINS0\_7binder2INS0\_8write\_opINS\_19basic\_stream\_socketINS\_2ip3tcpENS\_21stream\_socket\_serviceIS8\_EEEENS\_17mutable\_buffers\_1ENS0\_14transfer\_all\_tENS0\_15wrapped\_handlerINS\_10io\_service6strandEN5boost3\_bi6bind\_tIvNSH\_4\_mfi3mf4IvNS\_3ssl6detail17openssl\_operationISB\_EEbiRKNS\_10error\_codeEmEENSI\_5list5INSI\_5valueIPSP\_EENSV\_IbEENSV\_IiEEPFNSH\_3argILi1EEEvEPFNS10\_ILi2EEEvEEEEEEEEESQ\_mEES18\_EEEEvRPNS1\_11strand\_implET_+0x492)[0x7f5e4d6134f2]  
/usr/lib64/libgalera\_smm.so(\_ZN4asio6detail23reactive\_socket\_send\_opINS\_17mutable\_buffers\_1ENS0\_8write\_opINS\_19basic\_stream\_socketINS\_2ip3tcpENS\_21stream\_socket\_serviceIS6\_EEEES2\_NS0\_14transfer\_all\_tENS0\_15wrapped\_handlerINS\_10io\_service6strandEN5boost3\_bi6bind\_tIvNSE\_4\_mfi3mf4IvNS\_3ssl6detail17openssl\_operationIS9\_EEbiRKNS\_10error\_codeEmEENSF\_5list5INSF\_5valueIPSM\_EENSS\_IbEENSS\_IiEEPFNSE\_3argILi1EEEvEPFNSX\_ILi2EEEvEEEEEEEEEE11do\_completeEPNS0\_15task\_io\_serviceEPNS0\_25task\_io\_service\_operationESN\_m+0x1d5)[0x7f5e4d613775]  
/usr/lib64/libgalera\_smm.so(\_ZN4asio6detail15task\_io\_service3runERNS\_10error\_codeE+0x459)[0x7f5e4d62b009]  
/usr/lib64/libgalera\_smm.so(\_ZN5gcomm12AsioProtonet10event\_loopERKN2gu8datetime6PeriodE+0x1d6)[0x7f5e4d622f56]  
/usr/lib64/libgalera\_smm.so(\_ZN9GCommConn3runEv+0x57)[0x7f5e4d63d5d7]  
/usr/lib64/libgalera\_smm.so(\_ZN9GCommConn6run\_fnEPv+0x9)[0x7f5e4d640ea9]  
/lib64/libpthread.so.0[0x3489407851]  
/lib64/libc.so.6(clone+0x6d)[0x3488ce894d]  
You may download the Percona Server operations manual by visiting  
[url][http://www.percona.com/software/percona-server/[/url]](http://www.percona.com/software/percona-server/%5B/url%5D). You may find information  
in the manual which will help you identify the cause of the crash.  
131124 05:28:14 mysqld\_safe Number of processes running now: 0  
131124 05:28:14 mysqld\_safe WSREP: not restarting wsrep node automatically  
131124 05:28:14 mysqld\_safe mysqld from pid file /var/lib/mysql/primary.mysql.com.pid ended  
[root@primary mysql]#

[root@primary mysql]# service mysqld start  
mysqld: unrecognized service  
[root@primary mysql]# service mysql start  
ERROR! MySQL (Percona XtraDB Cluster) is not running, but PID file exists  
[root@primary mysql]# service mysql restart  
Shutting down MySQL (Percona XtraDB Cluster) ERROR! MySQL (Percona XtraDB Cluster) server process #14393 is not running!  
Starting MySQL (Percona XtraDB Cluster)… SUCCESS!  
[root@primary mysql]#

Any idea why could it happened?

Thanks

---

<div class="post-metadata">

**Author:** ![evrynet](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@evrynet](https://forums.percona.com/u/evrynet)\
**Post date:** [November 27, 2013, 5:04am UTC](https://forums.percona.com/t/primary-xtradb-crashed/3123/2 "2013-11-27T05:04:50Z")

</div>

After the restart all looks good:

[root@primary mysql]# tail -n 50 primary.mysql.com.err  
131127 10:38:05 [Note] WSREP: New cluster view: global state: 9f9985f1-345e-11e3-bb4d-ee083db0a078:52822, view# 55: Primary, number of nodes: 3, my index: 2, protocol version 2  
131127 10:38:05 [Warning] WSREP: Gap in state sequence. Need state transfer.  
131127 10:38:07 [Note] WSREP: Running: ‘wsrep\_sst\_xtrabackup --role ‘joiner’ --address ‘192.168.133.136’ --auth ‘sstuser:Mucha3G698QqWkR’ --datadir ‘/var/lib/mysql/’ --defaults-file ‘/etc/my.cnf’ --parent ‘2893’’  
WSREP\_SST: [INFO] Streaming with xbstream (20131127 10:38:07.364)  
WSREP\_SST: [INFO] Using socat as streamer (20131127 10:38:07.370)  
WSREP\_SST: [INFO] Evaluating socat -u TCP-LISTEN:4444,reuseaddr stdio | xbstream -x; RC=( ${PIPESTATUS[@]} ) (20131127 10:38:07.406)  
131127 10:38:07 [Note] WSREP: Prepared SST request: xtrabackup|192.168.133.136:4444/xtrabackup\_sst  
131127 10:38:07 [Note] WSREP: wsrep\_notify\_cmd is not defined, skipping notification.  
131127 10:38:07 [Note] WSREP: Assign initial position for certification: 52822, protocol version: 2  
131127 10:38:07 [Note] WSREP: IST receiver using ssl  
131127 10:38:07 [Note] WSREP: Prepared IST receiver, listening at: ssl://192.168.133.136:4568  
131127 10:38:07 [Note] WSREP: Node 2 ([primary.mysql.com](http://primary.mysql.com)) requested state transfer from ‘_any_’. Selected 0 ([secondary.mysql.com](http://secondary.mysql.com))(SYNCED) as donor.  
131127 10:38:07 [Note] WSREP: Shifting PRIMARY → JOINER (TO: 52822)  
131127 10:38:07 [Note] WSREP: Requesting state transfer: success, donor: 0  
WSREP\_SST: [INFO] xtrabackup\_ist received from donor: Running IST (20131127 10:38:07.861)  
WSREP\_SST: [INFO] Total time on joiner: 0 seconds (20131127 10:38:07.869)  
WSREP\_SST: [INFO] Removing the sst\_in\_progress file (20131127 10:38:07.875)  
131127 10:38:07 [Note] WSREP: SST complete, seqno: 41803  
131127 10:38:07 [Note] Plugin ‘FEDERATED’ is disabled.  
131127 10:38:07 InnoDB: The InnoDB memory heap is disabled  
131127 10:38:07 InnoDB: Mutexes and rw\_locks use GCC atomic builtins  
131127 10:38:07 InnoDB: Compressed tables use zlib 1.2.3  
131127 10:38:07 InnoDB: Using Linux native AIO  
131127 10:38:07 InnoDB: Initializing buffer pool, size = 128.0M  
131127 10:38:07 InnoDB: Completed initialization of buffer pool  
131127 10:38:07 InnoDB: highest supported file format is Barracuda.  
InnoDB: The log sequence number in ibdata files does not match  
InnoDB: the log sequence number in the ib\_logfiles!  
131127 10:38:07 InnoDB: Database was not shut down normally!  
InnoDB: Starting crash recovery.  
InnoDB: Reading tablespace information from the .ibd files…  
InnoDB: Restoring possible half-written data pages from the doublewrite  
InnoDB: buffer…  
131127 10:38:08 InnoDB: Waiting for the background threads to start  
131127 10:38:09 Percona XtraDB ([http://www.percona.com](http://www.percona.com)) 5.5.33-rel31.0 started; log sequence number 51365190  
131127 10:38:09 [Note] Event Scheduler: Loaded 0 events  
131127 10:38:09 [Note] WSREP: Signalling provider to continue.  
131127 10:38:09 [Note] WSREP: SST received: 9f9985f1-345e-11e3-bb4d-ee083db0a078:41803  
131127 10:38:09 [Note] /usr/sbin/mysqld: ready for connections.  
Version: ‘5.5.33’ socket: ‘/var/lib/mysql/mysql.sock’ port: 3306 Percona XtraDB Cluster (GPL), wsrep\_23.7.6.r3915  
131127 10:38:09 [Note] WSREP: Receiving IST: 11019 writesets, seqnos 41803-52822  
131127 10:38:17 [Note] WSREP: IST received: 9f9985f1-345e-11e3-bb4d-ee083db0a078:52822  
131127 10:38:17 [Note] WSREP: 0 ([secondary.mysql.com](http://secondary.mysql.com)): State transfer to 2 ([primary.mysql.com](http://primary.mysql.com)) complete.  
131127 10:38:17 [Note] WSREP: 2 ([primary.mysql.com](http://primary.mysql.com)): State transfer from 0 ([secondary.mysql.com](http://secondary.mysql.com)) complete.  
131127 10:38:17 [Note] WSREP: Shifting JOINER → JOINED (TO: 52822)  
131127 10:38:17 [Note] WSREP: Member 0 ([secondary.mysql.com](http://secondary.mysql.com)) synced with group.  
131127 10:38:17 [Note] WSREP: Member 2 ([primary.mysql.com](http://primary.mysql.com)) synced with group.  
131127 10:38:17 [Note] WSREP: Shifting JOINED → SYNCED (TO: 52822)  
131127 10:38:17 [Note] WSREP: Synchronized with group, ready for connections  
131127 10:38:17 [Note] WSREP: wsrep\_notify\_cmd is not defined, skipping notification.  
[root@primary mysql]# cat /etc/my.cnf  
[mysqld]

ssl-cipher=DHE-RSA-AES256-SHA  
ssl-ca=/etc/mysql/ca-cert-mysql-client.pem  
ssl-cert=/etc/mysql/server-cert-mysql-client.pem  
ssl-key=/etc/mysql/server-key-mysql-client.pem

datadir=/var/lib/mysql  
user=mysql

# Max connections

max\_connect\_errors=1844674407370954751

# SSL configuration

wsrep\_provider\_options=“socket.ssl\_cert=/etc/mysql/cert.pem; socket.ssl\_key=/etc/mysql/key.pem”

# Path to Galera library

wsrep\_provider=/usr/lib64/libgalera\_smm.so

# Cluster connection URL contains the IPs of nodes

wsrep\_cluster\_address=gcomm://192.168.133.136,192.168.133.137,192.168.132.4

# In order for Galera to work correctly binlog format should be ROW

binlog\_format=ROW

# MyISAM storage engine has only experimental support

default\_storage\_engine=InnoDB

# This is a recommended tuning variable for performance

innodb\_locks\_unsafe\_for\_binlog=1

# This changes how InnoDB autoincrement locks are managed and is a requirement for Galera

innodb\_autoinc\_lock\_mode=2

# Node #1 address

wsrep\_node\_address=192.168.133.136

# SST method

wsrep\_sst\_method=xtrabackup

# Cluster name

wsrep\_cluster\_name=mysql\_cluster

# Authentication for SST method

wsrep\_sst\_auth=“sstuser:Mucha3G698QqWkR”  
[root@primary mysql]#

---

<div class="post-metadata">

**Author:** ![evrynet](https://avatars.discourse-cdn.com/v4/letter/e/ebca7d/32.png) [@evrynet](https://forums.percona.com/u/evrynet)\
**Post date:** [November 27, 2013, 11:24am UTC](https://forums.percona.com/t/primary-xtradb-crashed/3123/3 "2013-11-27T11:24:08Z")

</div>

Well it’s not really resolved because we don’t know why it happened…. so why it happened?🙂
