Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various other bus in clone sst script #400

Open
shinguz opened this issue Mar 21, 2022 · 3 comments
Open

Various other bus in clone sst script #400

shinguz opened this issue Mar 21, 2022 · 3 comments
Assignees

Comments

@shinguz
Copy link

shinguz commented Mar 21, 2022

We got this error:

/usr//bin/wsrep_sst_clone: Zeile 118: [: 27-26: Ganzzahliger Ausdruck erwartet.
/usr//bin/wsrep_sst_clone: Zeile 120: [: 27-26: Ganzzahliger Ausdruck erwartet.

It is comparing those 2 numbers:

WSREP_SST: [ERROR] this operation requires MySQL client version 8.0.19, this client is '8.0.27-26.9' (20220321 17:35:22.017)

This is the problematic line in the code:

CLIENT_VERSION=$($MYSQL_CLIENT --version | grep -vi MariaDB | cut -d ' ' -f 4)
check_client_version $CLIENT_VERSION

This would solve the issue:

CLIENT_VERSION=$($MYSQL_CLIENT --version | grep -vi MariaDB | cut -d ' ' -f 4 | cut -b1-6)

Got another error:

ERROR 1044 (42000) at line 3: Access denied for user 'sst'@'localhost' to database 'performance_schema'
WSREP_SST: [ERROR] Donor prepare returned code 1 (20220321 17:39:11.491)
CREATE USER 'clone_to_192.168.101.22:4444' IDENTIFIED BY '29f20815e9c9f7d2358f78caa2a55944Aa+1' REQUIRE SSL;
GRANT BACKUP_ADMIN ON . TO 'clone_to_192.168.101.22:4444';
GRANT SELECT ON performance_schema.* TO 'clone_to_192.168.101.22:4444';
GRANT EXECUTE ON . TO 'clone_to_192.168.101.22:4444';
2022-03-21T16:39:11.507078Z 2876 [Note] [MY-010733] [Server] Shutting down plugin 'clone'
2022-03-21T16:39:11.514495Z 0 [ERROR] [MY-000000] [WSREP] Failed to read from: wsrep_sst_clone --role 'donor' --address '192.168.101.22:4444' --local-port '3306' --socket '/var/run/mysqld/mysqld.sock' --datadir '/var/lib/mysql/' --mysqld-version '8.0.27-26.9' --plugin-dir '/usr/lib/mysql/plugin/' '' --binlog-index 'binlog.index' --gtid 8fb95896-a91f-11ec-84b1-db08983c5c9a:579251 --local-gtid 8fb95896-a91f-11ec-84b1-db08983c5c9a:578442 --server-id 1
2

Granted this:

grant select, update, delete, insert on performance_schema.* to sst@localhost;

But did not help. Documentation was not indicating anything:

https://galeracluster.com/library/documentation/sst-physical.html

@shinguz
Copy link
Author

shinguz commented Mar 21, 2022

giving up here

@shinguz
Copy link
Author

shinguz commented Mar 22, 2022

Maybe this helps others to continue...
https://dev.mysql.com/doc/refman/8.0/en/clone-plugin-remote.html

@ayurchen ayurchen self-assigned this Mar 24, 2022
@ayurchen
Copy link
Member

Thanks, Oli! Will be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants