简体   繁体   English

Bucardo不再同步

[英]Bucardo doesn't sync anymore

I installed Bucardo and everything was fine, till after some days I checked if the sync was properly replicating my data and I saw that it didn't! 我安装了Bucardo,一切都很好,直到几天后,我检查了同步是否正确地复制了我的数据,但发现并没有!

Checking bucardo log I can find this warning: 检查bucardo日志,我可以找到此警告:

MCP Warning: Source database for sync "sync_name" has column "column_name" of table "table_name" but target database "db_slave" does not
MCP Validation of sync FAILED
MCP Active syncs: 0
MCP Entering main loop

Why bucardo stopped to sync? 为什么bucardo停止同步了? And why if I check with "bucardo status" I can see that the state of the sync is "Good" ? 为什么我用“ bucardo status”检查时可以看到同步状态是“ Good”?

If I check validation with: 如果我通过以下方式检查验证:

bucardo validate sync_name

the output is: 输出为:

Validating sync sync_name ... OK

But it's not ok of course! 但这当然不行!

Is the problem related to the fact that I ran a migration on my master db? 问题是否与我在主数据库上运行迁移有关? How can I fix this problem, making bucardo sync again? 如何解决此问题,使bucardo再次同步?

Thanks in advance! 提前致谢!

Do you know what, sometimes, just sometimes it helps to (1) skim the documentation the project provides and (2) read the error message which tells you exactly what it isn't happy with. 您是否知道有时(有时)只是有助于(1)略读项目提供的文档,以及(2)阅读错误消息(确切地告诉您它不满意的原因)有什么帮助?

https://bucardo.org/wiki/Bucardo/FAQ#Can_Bucardo_replicate_DDL.3F https://bucardo.org/wiki/Bucardo/FAQ#Can_Bucardo_replicate_DDL.3F

As @Richard Huxton suggest, I can find the answer inside Bucardo Documentation. 正如@Richard Huxton建议的那样,我可以在Bucardo Documentation中找到答案

As DDL is the way as the database schema is manipulated, what exactly I have to look for is: 由于DDL是操作数据库架构的方式,因此我要寻找的正是:

Can Bucardo replicate DDL? Bucardo可以复制DDL吗?

The answer is not. 答案不是。

So if the schema of the source database change, Bucardo will stop syncing. 因此,如果源数据库的架构更改,Bucardo将停止同步。

In my case, I am using Bucardo because my source database is on AWS RDS and so I can't configure manually Postgres enjoying his Streaming Replication 就我而言,我正在使用Bucardo,因为我的源数据库位于AWS RDS上,因此我无法手动配置Postgres享受他的流复制

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM