WSREP: 3.0: State transfer to 1.0 failed: -1 (Operation not permitted)
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.6 |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I can't initialize new node, I am getting the same error all the time:
State transfer to 1.0 (10.1.160.11) failed: -1 (Operation not permitted)
Thank you in advance for any help.
root@primysql11
-------
* Stale sst_in_progress file in datadir mysqld
* Starting MySQL (Percona XtraDB Cluster) database server mysqld
* State transfer in progress, setting sleep higher mysqld
* The server quit without updating PID file (/data01/
donor
-------
2015-06-30 16:56:59 7281 [Note] WSREP: New cluster view: global state: 146797dd-
2015-06-30 16:57:00 7281 [Note] WSREP: REPL Protocols: 7 (3, 2)
2015-06-30 16:57:00 7281 [Note] WSREP: Service thread queue flushed.
2015-06-30 16:57:00 7281 [Note] WSREP: Assign initial position for certification: 37116929, protocol version: 3
2015-06-30 16:57:00 7281 [Note] WSREP: Service thread queue flushed.
2015-06-30 16:57:00 7281 [Note] WSREP: Member 1.0 (10.1.160.11) requested state transfer from '10.1.160.
2015-06-30 16:57:00 7281 [Note] WSREP: Shifting SYNCED -> DONOR/DESYNCED (TO: 37116932)
2015-06-30 16:57:00 7281 [Note] WSREP: Running: 'wsrep_
2015-06-30 16:57:00 7281 [Note] WSREP: sst_donor_thread signaled with 0
2015-06-30 16:57:00 7281 [ERROR] WSREP: Failed to read from: wsrep_sst_
2015-06-30 16:57:00 7281 [ERROR] WSREP: Process completed with error: wsrep_sst_
2015-06-30 16:57:00 7281 [ERROR] WSREP: Command did not run: wsrep_sst_
2015-06-30 16:57:00 7281 [Warning] WSREP: 3.0 (10.1.160.7): State transfer to 1.0 (10.1.160.11) failed: -1 (Operation not permitted)
2015-06-30 16:57:00 7281 [Note] WSREP: Shifting DONOR/DESYNCED -> JOINED (TO: 37116932)
2015-06-30 16:57:00 7281 [Note] WSREP: declaring 23f6172f at tcp://10.
2015-06-30 16:57:00 7281 [Note] WSREP: declaring 43cf320e at tcp://10.
2015-06-30 16:57:00 7281 [Note] WSREP: forgetting 419ce10d (tcp://
joiner
-------
2015-06-30 17:18:01 23319 [Note] WSREP: Flow-control interval: [32, 32]
2015-06-30 17:18:01 23319 [Note] WSREP: Shifting OPEN -> PRIMARY (TO: 37120605)
2015-06-30 17:18:01 23319 [Note] WSREP: State transfer required:
Group state: 146797dd-
Local state: 00000000-
2015-06-30 17:18:01 23319 [Note] WSREP: New cluster view: global state: 146797dd-
2015-06-30 17:18:01 23319 [Warning] WSREP: Gap in state sequence. Need state transfer.
2015-06-30 17:18:01 23319 [Note] WSREP: Running: 'wsrep_
WSREP_SST: [INFO] Streaming with xbstream (20150630 17:18:01.976)
WSREP_SST: [INFO] Using socat as streamer (20150630 17:18:01.980)
WSREP_SST: [INFO] Evaluating timeout -k 110 100 socat -u TCP-LISTEN:
2015-06-30 17:18:02 23319 [Note] WSREP: Prepared SST request: xtrabackup-
2015-06-30 17:18:02 23319 [Note] WSREP: REPL Protocols: 7 (3, 2)
2015-06-30 17:18:02 23319 [Note] WSREP: Service thread queue flushed.
2015-06-30 17:18:02 23319 [Note] WSREP: Assign initial position for certification: 37120605, protocol version: 3
2015-06-30 17:18:02 23319 [Note] WSREP: Service thread queue flushed.
2015-06-30 17:18:02 23319 [Warning] WSREP: Failed to prepare for incremental state transfer: Local state UUID (00000000-
at galera/
2015-06-30 17:18:02 23319 [Note] WSREP: Member 1.0 (10.1.160.11) requested state transfer from '10.1.160.
2015-06-30 17:18:02 23319 [Note] WSREP: Shifting PRIMARY -> JOINER (TO: 37120606)
2015-06-30 17:18:02 23319 [Note] WSREP: Requesting state transfer: success, donor: 2
2015-06-30 17:18:02 23319 [Warning] WSREP: 2.0 (10.1.160.10): State transfer to 1.0 (10.1.160.11) failed: -1 (Operation not permitted)
2015-06-30 17:18:02 23319 [ERROR] WSREP: gcs/src/
2015-06-30 17:18:02 23319 [Note] WSREP: gcomm: terminating thread
2015-06-30 17:18:02 23319 [Note] WSREP: gcomm: joining thread
2015-06-30 17:18:02 23319 [Note] WSREP: gcomm: closing backend
2015-06-30 17:18:02 23319 [Note] WSREP: view(view_
3215e5ba,0
} joined {
} left {
} partitioned {
23f6172f,0
43cf320e,0
81113083,0
})
2015-06-30 17:18:02 23319 [Note] WSREP: view((empty))
2015-06-30 17:18:02 23319 [Note] WSREP: gcomm: closed
2015-06-30 17:18:02 23319 [Note] WSREP: /usr/sbin/mysqld: Terminated.
Aborted (core dumped)
oiner config file
-------
# TR 2015-01-20 Specified order of donors
# TR 2015-01-19 Updated and merged with Percona recommendation and own experience
# All files in this package is subject to the GPL v2 license
# More information is in the COPYING file in the top directory of this package.
# Copyright (C) 2011 severalnines.com
[MYSQLD]
user=mysql
basedir=/usr/
datadir=
socket=
pid_file=mysqld.pid
port=3306
log_error=
log_warnings=2
# Use only ipv4 for connections
bind_address=
#log_output=FILE
### INNODB OPTIONS
innodb_
innodb_
innodb_
innodb_
## You may want to tune the below depending on number of cores and disk sub
#innodb_
#innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
#innodb_
innodb_
innodb_
## avoid statistics update when doing e.g show tables
innodb_
default_
## HEAVY WRITING ENVIROMENT ##
innodb_
## SPEEDUP ##
## /dev/shm uses virtual memory instead of a persistent storage device
tmpdir=/tmp
back_log=2048
## EVOLVE SPECIC SETTINGS ##
lower_case_
#autocommit=0
init_connect='SET autocommit=0'
## DEFAULT CHARACTER SET ##
skip-character-
collation_
character_
# REPLICATION SPECIFIC _ GENERAL
#server_id must be unique across all mysql servers participating in replication.
server_id=110
# REPLICATION SPECIFIC
binlog_format=ROW
log_bin=binlog
binlog_
#relay_
slave_net_
#skip-slave-start=1
#read_only=1
expire_logs_days=7
sync_binlog=0
log_slave_updates=1
#gtid_mode=ON
# allow create users fuctions
log_bin_
#enforce_
# OTHER THINGS, BUFFERS ETC
key_buffer_size = 32M
tmp_table_size = 64M
max_heap_table_size = 64M
## SAFETY ##
max_allowed_packet = 16M
max_connect_errors = 1000000
#sort_buffer_size = 256K
#read_buffer_size = 256K
#read_rnd_
#myisam_
skip_name_resolve
memlock=0
sysdate_is_now=1
max_connections=200
## EXTRA SAFETY ##
symbolic-links=0
thread_
open_files_
table_definitio
query_cache_type = 0
query_cache_size = 0
table_open_
# 5.6 backwards compatibility
explicit_
## SLOW LOG ##
slow_query_log = 1
slow_query_log_file = /var/log/
log_slow_verbosity = FULL
long_query_time = 10
slow_query_
log_queries_
event_scheduler=0
##
## WSREP options
##
# Full path to wsrep provider library or 'none'
wsrep_provider=
wsrep_node_
# Provider specific configuration options
wsrep_provider_
# Logical cluster name. Should be the same for all nodes.
wsrep_cluster_
# Group communication system handle
wsrep_cluster_
# Human_readable node name (non-unique). Hostname by default.
wsrep_node_
# Address for incoming client connections. Autodetect by default.
#wsrep_
# How many threads will process writesets from other nodes
#wsrep_
# DBUG options for wsrep provider
#wsrep_dbug_option
# Generate fake primary keys for non-PK tables (required for multi-master
# and parallel applying operation)
wsrep_certify_
# Location of the directory with data files. Needed for non-mysqldump
# state snapshot transfers. Defaults to mysql_real_
#wsrep_
# Maximum number of rows in write set
wsrep_max_
# Maximum size of write set
wsrep_max_
# to enable debug level logging, set this to 1
wsrep_debug=0
# convert locking sessions into transactions
wsrep_convert_
# how many times to retry deadlocked autocommits
wsrep_retry_
# change auto_increment_
wsrep_auto_
# replicate myisam
wsrep_replicate
# retry autoinc insert, which failed for duplicate key error
wsrep_drupal_
# enable "strictly synchronous" semantics for read operations
wsrep_causal_
# Command to call when node status or cluster membership changes.
# Will be passed all or some of the following options:
# --status - new status of this node
# --uuid - UUID of the cluster
# --primary - whether the component is primary or not ("yes"/"no")
# --members - comma-separated list of members
# --index - index of this node in the list
wsrep_notify_
##
## WSREP State Transfer options
##
# State Snapshot Transfer method
# ClusterControl currently DOES NOT support wsrep_sst_
wsrep_sst_
# Address on THIS node to receive SST at. DON'T SET IT TO DONOR ADDRESS!!!
# (SST method dependent. Defaults to the first IP of the first interface)
#wsrep_
# SST authentication string. This will be used to send SST to joining nodes.
# Depends on SST method. For mysqldump method it is root:<root password>
wsrep_sst_
# Desired SST donor name.
wsrep_sst_
# Protocol version to use
# wsrep_protocol_
[MYSQL]
socket=
#default_
[client]
socket=
#default_
[mysqldump]
max_allowed_packet = 16M
socket=
#default_
[MYSQLD_SAFE]
pid_file=mysqld.pid
log_error=
basedir=/usr/
datadir=
donor config file
-------
# TR 2014-01-20 Specified order of donors
# TR 2014-01-19
# All files in this package is subject to the GPL v2 license
# More information is in the COPYING file in the top directory of this package.
# Copyright (C) 2011 severalnines.com
[MYSQLD]
user=mysql
basedir=/usr/
datadir=
socket=
pid_file=mysqld.pid
port=3306
log_error=
log_warnings=2
# Use only ipv4 for connections
bind_address=
#log_output=FILE
### INNODB OPTIONS
innodb_
innodb_
innodb_
innodb_
## You may want to tune the below depending on number of cores and disk sub
#innodb_
#innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
#innodb_
innodb_
innodb_
## avoid statistics update when doing e.g show tables
innodb_
default_
## HEAVY WRITING ENVIROMENT ##
innodb_
## SPEEDUP ##
## /dev/shm uses virtual memory instead of a persistent storage device
tmpdir=/tmp
back_log=2048
## EVOLVE SPECIC SETTINGS ##
lower_case_
#autocommit=0
init_connect='SET autocommit=0'
## DEFAULT CHARACTER SET ##
skip-character-
collation_
character_
# REPLICATION SPECIFIC _ GENERAL
#server_id must be unique across all mysql servers participating in replication.
server_id=7
# REPLICATION SPECIFIC
binlog_format=ROW
log_bin=binlog
binlog_
#relay_
slave_net_
#skip-slave-start=1
#read_only=1
expire_logs_days=7
sync_binlog=0
log_slave_updates=1
#gtid_mode=ON
# allow create users fuctions
log_bin_
#enforce_
# OTHER THINGS, BUFFERS ETC
key_buffer_size = 32M
tmp_table_size = 64M
max_heap_table_size = 64M
## SAFETY ##
max_allowed_packet = 16M
max_connect_errors = 1000000
#sort_buffer_size = 256K
#read_buffer_size = 256K
#read_rnd_
#myisam_
skip_name_resolve
memlock=0
sysdate_is_now=1
max_connections=200
## EXTRA SAFETY ##
symbolic-links=0
thread_
open_files_
table_definitio
query_cache_type = 0
query_cache_size = 0
table_open_
# 5.6 backwards compatibility
explicit_
## SLOW LOG ##
slow_query_log = 1
slow_query_log_file = /var/log/
log_slow_verbosity = FULL
long_query_time = 10
slow_query_
log_queries_
event_scheduler=0
##
## WSREP options
##
# Full path to wsrep provider library or 'none'
wsrep_provider=
wsrep_node_
# Provider specific configuration options
wsrep_provider_
# Logical cluster name. Should be the same for all nodes.
wsrep_cluster_
# Group communication system handle
wsrep_cluster_
# Human_readable node name (non-unique). Hostname by default.
wsrep_node_
# Address for incoming client connections. Autodetect by default.
#wsrep_
# How many threads will process writesets from other nodes
#wsrep_
# DBUG options for wsrep provider
#wsrep_dbug_option
# Generate fake primary keys for non-PK tables (required for multi-master
# and parallel applying operation)
wsrep_certify_
# Location of the directory with data files. Needed for non-mysqldump
# state snapshot transfers. Defaults to mysql_real_
#wsrep_
# Maximum number of rows in write set
wsrep_max_
# Maximum size of write set
wsrep_max_
# to enable debug level logging, set this to 1
wsrep_debug=0
# convert locking sessions into transactions
wsrep_convert_
# how many times to retry deadlocked autocommits
wsrep_retry_
# change auto_increment_
wsrep_auto_
# replicate myisam
wsrep_replicate
# retry autoinc insert, which failed for duplicate key error
wsrep_drupal_
# enable "strictly synchronous" semantics for read operations
wsrep_causal_
# Command to call when node status or cluster membership changes.
# Will be passed all or some of the following options:
# --status - new status of this node
# --uuid - UUID of the cluster
# --primary - whether the component is primary or not ("yes"/"no")
# --members - comma-separated list of members
# --index - index of this node in the list
wsrep_notify_
##
## WSREP State Transfer options
##
# State Snapshot Transfer method
# ClusterControl currently DOES NOT support wsrep_sst_
wsrep_sst_
# Address on THIS node to receive SST at. DON'T SET IT TO DONOR ADDRESS!!!
# (SST method dependent. Defaults to the first IP of the first interface)
#wsrep_
# SST authentication string. This will be used to send SST to joining nodes.
# Depends on SST method. For mysqldump method it is root:<root password>
wsrep_sst_
# Desired SST donor name.
wsrep_sst_
# Protocol version to use
# wsrep_protocol_
[MYSQL]
socket=
#default_
[client]
socket=
#default_
[mysqldump]
max_allowed_packet = 16M
socket=
#default_
[MYSQLD_SAFE]
pid_file=mysqld.pid
log_error=
basedir=/usr/
datadir=
donor versions
-------
percona-
percona-toolkit 2.2.12
percona-xtrabackup 2.2.11-1.trusty
percona-
percona-
percona-
percona-
joiner versions (yes, they are a little above, but this worked on other env without any problems many times)
-------
percona-xtrabackup 2.2.11-1.trusty
percona-
percona-
percona-
percona-
donor
-------
ll /etc/mysql/*.cnf
-rw-r--r-- 1 mysql mysql 333 Nov 21 2014 /etc/mysql/
-rw------- 1 mysql mysql 39 Jun 30 17:17 /etc/mysql/
-rw-r--r-- 1 mysql mysql 6048 Jun 30 17:17 /etc/mysql/my.cnf
ll /usr/bin/wsrep*
-rwxr-xr-x 1 mysql mysql 2163 Jun 30 17:17 /usr/bin/
-rwxrwxrwx 1 root root 3496 Jun 30 15:33 /usr/bin/
-rwxrwxrwx 1 root root 5626 Jun 30 15:33 /usr/bin/
-rwxrwxrwx 1 root root 10051 Jun 30 15:33 /usr/bin/
-rwxrwxrwx 1 root root 21632 Jun 30 15:33 /usr/bin/
-rwxrwxrwx 1 root root 30277 Jun 30 16:14 /usr/bin/
joiner
-------
ll /usr/bin/wsrep*
-rwxr-xr-x 1 mysql mysql 2164 Jun 30 17:17 /usr/bin/
-rwxr-xr-x 1 root root 3496 Mar 9 10:34 /usr/bin/
-rwxr-xr-x 1 root root 5626 Mar 9 10:34 /usr/bin/
-rwxr-xr-x 1 root root 10051 Mar 9 10:34 /usr/bin/
lrwxrwxrwx 1 root root 26 May 6 17:10 /usr/bin/
-rwxr-xr-x 1 root root 21632 Mar 9 10:34 /usr/bin/
-rwxr-xr-x 1 root root 30223 Mar 9 10:34 /usr/bin/
ll /etc/mysql/*.cnf
-rw------- 1 mysql mysql 333 May 6 17:09 /etc/mysql/
-rw------- 1 mysql mysql 39 Jun 30 17:17 /etc/mysql/
-rw-r--r-- 1 mysql mysql 6115 Jun 30 17:17 /etc/mysql/my.cnf
no longer affects: | percona-server |
Is the wsrep_sst_auth value correct? Is this the correct root password on the donor?