[MDEV-15498] replication connect engine Slave: Access denied for user ''@'' (using password: NO) Error_code: 1045 Created: 2018-03-07 Updated: 2023-07-05 Resolved: 2020-11-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication, Storage Engine - Connect |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.29, 10.3.20, 10.4.10 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Na Yun Ho | Assignee: | Andrei Elkin |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | replication | ||
| Issue Links: |
|
||||||||
| Description |
|
Mariadb-10.2.13 (MASTER) use config MASTER/SLAVE replication AND Oracle connect engine [SLAVE Status]
=====================================================================
======================================================================
|
| Comments |
| Comment by Hartmut Holzgraefe [ 2020-04-16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Even if not running into the "access denied" problem, replicating CONNECT table changes does not make that much sense. E.g. INSERT statements could easily cause duplicate key errors if master and slave are set up to use the same remote table. The table has been modified on the slave side to use a different CONNECTION string, pointing at a different external table, replication should work though and not fail on authentication. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Julien Fritsch [ 2020-05-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
bertrandop hi, any help possible on this bug, please? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Olivier Bertrand [ 2020-05-04 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
In CONNECT, access permission has been handled by Alexander Barkov. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Julien Fritsch [ 2020-05-05 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you bertrandop | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Hartmut Holzgraefe [ 2020-09-01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
On connect target host named "connect":
On master
On slave
So we verified that slave works OK so far and can read from connect host. Now on master:
Check connect target table on "connect" host
Check slave:
So the slave can still read from the connect host just fine, but the related INSERT row event received from the master failed with "Access denied" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2020-10-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Must be a replication issue, apparently the slave applier does not run or miss authentication of part of the connect engine access. Continue with reproducing within a day to add up more. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Hartmut Holzgraefe [ 2020-11-30 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Behavior changed between 10.2.27 and 10.2.29, from "Access denied" to "CONNECT Unsupported command" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ján Regeš [ 2021-03-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi, please, how was solved this issue? We use MariaDB 10.4.18. When there is an INSERT into CONNECT table on MASTER, the same INSERT is executed on SLAVE and (SHOW SLAVE STATUS) ends with ErrNo 1148 - "Error executing row event: 'CONNECT Unsupported command'". After that, replication is stopped despite the fact we have configured slave_skip_errors=1036,1050,1062,1125,1148,1296,1304,1537 (so error 1148 is in this directive, but replication is stopped). For our use-case, it will be optimal to skip/disable INSERT commands into CONNECT tables on SLAVE by some directive. But also slave_skip_errors will be good solution, when it will be works as expected. Thank you for your response. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2021-03-16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I reported the issue separately, MDEV-25157. The problem is with row replication, it stops with 'CONNECT Unsupported command'. |