Percona XtraDBCluster

Bug #1049105 reported by Azigui
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Invalid
Undecided
Unassigned

Bug Description

Hi,

I have a big problem since I update my Percona 5.5.24 to 5.5.27:
Error message in second and third node node is :

invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing percona-xtradb-cluster-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
percona-xtradb-cluster-server-5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)

the error log in mysql :

120911 13:57:14 [ERROR] WSREP: gcs/src/gcs_backend.c:gcs_backend_init():87: Invalid backend URI: 0
120911 13:57:14 [ERROR] WSREP: gcs/src/gcs_core.c:gcs_core_open():202: Failed to initialize backend using '0': -22 (Invalid argument)
120911 13:57:14 [ERROR] WSREP: gcs/src/gcs.c:gcs_open():1290: Failed to open channel 'my_wsrep_cluster' at '0': -22 (Invalid argument)
120911 13:57:14 [ERROR] WSREP: gcs connect failed: Invalid argument
120911 13:57:14 [ERROR] WSREP: wsrep::connect() failed: 6
120911 13:57:14 [ERROR] Aborting

And syslog :

Sep 11 13:56:44 t2-mysql02 mysqld_safe[10491]: ERROR: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE user ADD column Show_view_priv enum('N','Y') CHARACTER SET utf8 NOT ' at line 1
Sep 11 13:56:44 t2-mysql02 mysqld_safe[10491]: 120911 13:56:44 [ERROR] Aborting
Sep 11 13:56:44 t2-mysql02 mysqld_safe[10491]:
Sep 11 13:56:44 t2-mysql02 mysqld_safe[10491]: 120911 13:56:44 [Note] WSREP: Service disconnected.
Sep 11 13:56:45 t2-mysql02 mysqld_safe[10491]: 120911 13:56:45 [Note] WSREP: Some threads may fail to exit.
Sep 11 13:56:45 t2-mysql02 mysqld_safe[10491]: 120911 13:56:45 InnoDB: Starting shutdown...
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10491]: 120911 13:56:48 InnoDB: Shutdown completed; log sequence number 2549519372
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10491]: 120911 13:56:48 [Note] /usr/sbin/mysqld: Shutdown complete
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10491]:
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 [Warning] option 'wsrep_max_ws_rows': unsigned value 67108864 adjusted to 1048576
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 [Note] Flashcache bypass: disabled
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 [Note] Flashcache setup error is : ioctl failed
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]:
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 [Note] WSREP: Read nil XID from storage engines, skipping position init
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 [Note] WSREP: wsrep_load(): loading provider library 'none'
Sep 11 13:56:48 t2-mysql02 kernel: [11361.879267] mysqld: sending ioctl 4004fecd to a partition!
Sep 11 13:56:48 t2-mysql02 kernel: [11361.879272] mysqld: sending ioctl 4004fecd to a partition!
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 [Note] Plugin 'FEDERATED' is disabled.
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 InnoDB: The InnoDB memory heap is disabled
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 InnoDB: Compressed tables use zlib 1.2.3
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 InnoDB: Using Linux native AIO
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 InnoDB: Initializing buffer pool, size = 1.0G
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 InnoDB: Completed initialization of buffer pool
Sep 11 13:56:48 t2-mysql02 mysqld_safe[10544]: 120911 13:56:48 InnoDB: highest supported file format is Barracuda.
Sep 11 13:56:53 t2-mysql02 mysqld_safe[10544]: 120911 13:56:53 InnoDB: Waiting for the background threads to start
Sep 11 13:56:54 t2-mysql02 mysqld_safe[10544]: 120911 13:56:54 Percona XtraDB (http://www.percona.com) 1.1.8-rel28.1 started; log sequence number 2549519372
Sep 11 13:56:54 t2-mysql02 mysqld_safe[10544]: 120911 13:56:54 [Note] WSREP: Service disconnected.
Sep 11 13:56:55 t2-mysql02 mysqld_safe[10544]: 120911 13:56:55 [Note] WSREP: Some threads may fail to exit.
Sep 11 13:56:55 t2-mysql02 mysqld_safe[10544]: 120911 13:56:55 InnoDB: Starting shutdown...
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10544]: 120911 13:56:58 InnoDB: Shutdown completed; log sequence number 2549519372
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 [Warning] option 'wsrep_max_ws_rows': unsigned value 67108864 adjusted to 1048576
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 [Note] Flashcache bypass: disabled
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 [Note] Flashcache setup error is : ioctl failed
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]:
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 [Note] WSREP: Read nil XID from storage engines, skipping position init
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 [Note] WSREP: wsrep_load(): loading provider library 'none'
Sep 11 13:56:58 t2-mysql02 kernel: [11371.684835] mysqld: sending ioctl 4004fecd to a partition!
Sep 11 13:56:58 t2-mysql02 kernel: [11371.684839] mysqld: sending ioctl 4004fecd to a partition!
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 [Note] Plugin 'FEDERATED' is disabled.
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 InnoDB: The InnoDB memory heap is disabled
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 InnoDB: Mutexes and rw_locks use GCC atomic builtins
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 InnoDB: Compressed tables use zlib 1.2.3
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 InnoDB: Using Linux native AIO
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 InnoDB: Initializing buffer pool, size = 1.0G
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 InnoDB: Completed initialization of buffer pool
Sep 11 13:56:58 t2-mysql02 mysqld_safe[10597]: 120911 13:56:58 InnoDB: highest supported file format is Barracuda.
Sep 11 13:57:02 t2-mysql02 mysqld_safe[10597]: 120911 13:57:02 InnoDB: Waiting for the background threads to start
Sep 11 13:57:03 t2-mysql02 mysqld_safe[10597]: 120911 13:57:03 Percona XtraDB (http://www.percona.com) 1.1.8-rel28.1 started; log sequence number 2549519372
Sep 11 13:57:03 t2-mysql02 mysqld_safe[10597]: ERROR: 1050 Table 'plugin' already exists
Sep 11 13:57:03 t2-mysql02 mysqld_safe[10597]: 120911 13:57:03 [ERROR] Aborting
Sep 11 13:57:03 t2-mysql02 mysqld_safe[10597]:
Sep 11 13:57:03 t2-mysql02 mysqld_safe[10597]: 120911 13:57:03 [Note] WSREP: Service disconnected.
Sep 11 13:57:04 t2-mysql02 mysqld_safe[10597]: 120911 13:57:04 [Note] WSREP: Some threads may fail to exit.
Sep 11 13:57:04 t2-mysql02 mysqld_safe[10597]: 120911 13:57:04 InnoDB: Starting shutdown...
Sep 11 13:57:07 t2-mysql02 mysqld_safe[10597]: 120911 13:57:07 InnoDB: Shutdown completed; log sequence number 2549519372
Sep 11 13:57:07 t2-mysql02 mysqld_safe[10597]: 120911 13:57:07 [Note] /usr/sbin/mysqld: Shutdown complete

Sep 11 14:14:37 t2-mysql02 /etc/init.d/mysql[3676]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Sep 11 14:14:37 t2-mysql02 /etc/init.d/mysql[3676]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Sep 11 14:14:37 t2-mysql02 /etc/init.d/mysql[3676]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Sep 11 14:14:37 t2-mysql02 /etc/init.d/mysql[3676]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

affects: percona-server → percona-xtradb-cluster
Revision history for this message
Alex Yurchenko (ayurchen) wrote :

what is in wsrep_cluster_address and/or wsrep_urls in my.cnf?

Revision history for this message
Jervin R (revin) wrote :
Download full text (11.7 KiB)

This also affects Precise 12.04 up to PXC 5.5.28 - the problem I think is how the deb package handles reconfiguration at different times. See my log below:

root@ubuntu:~/Downloads/PXDBC5528# cat /var/lib/mysql/error.log
121205 19:21:09 [Note] WSREP: Read nil XID from storage engines, skipping position init
121205 19:21:09 [Note] WSREP: wsrep_load(): loading provider library 'none'
121205 19:21:09 [Note] WSREP: Service disconnected.
121205 19:21:10 [Note] WSREP: Some threads may fail to exit.
121205 19:21:10 [Note] WSREP: Read nil XID from storage engines, skipping position init
121205 19:21:10 [Note] WSREP: wsrep_load(): loading provider library 'none'
121205 19:21:10 [Note] WSREP: Service disconnected.
121205 19:21:11 [Note] WSREP: Some threads may fail to exit.
121205 19:21:11 [Note] WSREP: Read nil XID from storage engines, skipping position init
121205 19:21:11 [Note] WSREP: wsrep_load(): loading provider library 'none'
121205 19:21:11 [Note] Plugin 'FEDERATED' is disabled.
121205 19:21:11 InnoDB: The InnoDB memory heap is disabled
121205 19:21:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121205 19:21:11 InnoDB: Compressed tables use zlib 1.2.3
121205 19:21:11 InnoDB: Using Linux native AIO
121205 19:21:11 InnoDB: Initializing buffer pool, size = 128.0M
121205 19:21:11 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file /var/lib/mysql/innodb/ibdata1 did not exist:
InnoDB: a new database to be created!
121205 19:21:11 InnoDB: Setting file /var/lib/mysql/innodb/ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
121205 19:21:11 InnoDB: Log file /var/lib/mysql/data/ib_logfile0 did not exist: new to be created
InnoDB: Setting log file /var/lib/mysql/data/ib_logfile0 size to 256 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Progress in MB: 100 200
121205 19:21:12 InnoDB: Log file /var/lib/mysql/data/ib_logfile1 did not exist: new to be created
InnoDB: Setting log file /var/lib/mysql/data/ib_logfile1 size to 256 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Progress in MB: 100 200
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
121205 19:21:13 InnoDB: Waiting for the background threads to start
121205 19:21:14 Percona XtraDB (http://www.percona.com) 1.1.8-rel29.1 started; log sequence number 0
121205 19:21:14 [Note] WSREP: Service disconnected.
121205 19:21:15 [Note] WSREP: Some threads may fail to exit.
121205 19:21:15 InnoDB: Starting shutdown...
121205 19:21:18 InnoDB: Shutdown completed; log sequence number 1597945
121205 19:21:18 [Note] WSREP: Read nil XID from storage engines, skipping position init
121205 19:21:18 [Note] WSREP: wsrep_load(): loading provider library 'none'
121205 19:21:18 [Note] Plugin 'FEDERATED' is disabled.
121205 19:21:18 InnoDB: The InnoDB memory heap is disabled
121205 19:21:18 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121205 19:21:18 InnoDB: Compressed tables use zlib 1.2.3
121205 19:21:18 InnoDB:...

Revision history for this message
dannie (daniz) wrote :

I've always had this problem when upgrading percona xtradb.
The mysql startup seems to have a too short wait-time for the process to come back with the status that it's started and everything is ok.

I used to be able to start mysqld manually after the failed update, wait for it to sync, then run the updater again (as the startup time of mysqld would be shorter) and get a successful update. But now the database has grown to big thus the startup taking more time and the dpkg now fails every time.

I've tried raising the init.d/mysql timeout but it resulted in the error below:

changed ->
            # 6s was reported in #352070 to be too few when using ndbcluster
            for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do
                sleep 1
...

to
               sleep 3

....
Mar 4 17:02:56 localhost mysqld: 130304 17:02:56 [Note] WSREP: New cluster view: global state: 05d60806-54e8-11e2-0800-a393de22c9a7:8017907, view# 5: Primary, number of nodes: 1, my index: 0, protocol version 2
Mar 4 17:02:56 localhost mysqld: 130304 17:02:56 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
Mar 4 17:02:56 localhost mysqld: 130304 17:02:56 [Note] WSREP: Assign initial position for certification: 8017907, protocol version: 2
Mar 4 17:02:56 localhost mysqld: 130304 17:02:56 [ERROR] WSREP: async IST sender failed to serve tcp://10.41.172.66:4568: ist send failed: 1', asio error 'Connection reset by peer': 104 (Connection reset by peer)
Mar 4 17:02:56 localhost mysqld: #011 at galera/src/ist.cpp:send():744
Mar 4 17:02:56 localhost mysqld: 130304 17:02:56 [Warning] WSREP: Protocol violation. JOIN message sender 0 (ams-db1) is not in state transfer (SYNCED). Message ignored.
Mar 4 17:02:56 localhost mysqld: 130304 17:02:56 [Note] WSREP: async IST sender served
Mar 4 17:02:56 dal-db1 rsyncd[16583]: rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(549) [Receiver=3.0.9]
Mar 4 17:03:01 localhost mysqld: 130304 17:03:01 [Note] WSREP: cleaning up f6d2a1ef-84e4-11e2-0800-550ee301495a (tcp://10.41.172.66:4567)

Mar 4 17:03:29 dal-db1 /etc/init.d/mysql[17004]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Mar 4 17:03:29 dal-db1 /etc/init.d/mysql[17004]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Mar 4 17:03:29 dal-db1 /etc/init.d/mysql[17004]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)'
Mar 4 17:03:29 dal-db1 /etc/init.d/mysql[17004]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

Revision history for this message
dannie (daniz) wrote :

Any chance to get a look at this? Currently running with 1 node only cause of this.
Thanks

Changed in percona-xtradb-cluster:
status: New → Incomplete
Changed in percona-xtradb-cluster:
status: Incomplete → New
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

@Jervin

The issue you describe seems to be related to https://bugs.launchpad.net/percona-xtradb-cluster/+bug/1104720

@daniz,

Can you confirm if your issue is https://bugs.launchpad.net/bugs/1099428

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Marking this as invalid for now based on #5. Please reopen this if required.

Changed in percona-xtradb-cluster:
status: New → Invalid
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1244

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.