cnemelka

pg_hba.conf anomaly

May 8th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. FOLLOWING ENTRIES ON PUBLISHER:
  2.  
  3. hostssl replication ps_ro 10.0.0.0/8 md5
  4. hostssl replication ps_ro 10.19.0.0/16 md5
  5. hostssl replication ps_ro 10.19.165.0/24 md5
  6. hostssl replication ps_ro 10.19.165.190/32 md5
  7.  
  8. "/etc/postgresql/10/main/select * from pg_hba_file_rules where database='{replication}'; 117,26-32 Bot
  9. ┌─────────────┬─────────┬───────────────┬──────────────┬───────────────┬─────────────────┬─────────────┬─────────┬───────┐
  10. │ line_number │ type │ database │ user_name │ address │ netmask │ auth_method │ options │ error │
  11. ├─────────────┼─────────┼───────────────┼──────────────┼───────────────┼─────────────────┼─────────────┼─────────┼───────┤
  12. │ 112 │ hostssl │ {replication} │ {replicator} │ 10.17.0.0 │ 255.255.0.0 │ md5 │ ¤ │ ¤ │
  13. │ 114 │ hostssl │ {replication} │ {ps_ro} │ 10.0.0.0 │ 255.0.0.0 │ md5 │ ¤ │ ¤ │
  14. │ 115 │ hostssl │ {replication} │ {ps_ro} │ 10.19.0.0 │ 255.255.0.0 │ md5 │ ¤ │ ¤ │
  15. │ 116 │ hostssl │ {replication} │ {ps_ro} │ 10.19.165.0 │ 255.255.255.0 │ md5 │ ¤ │ ¤ │
  16. │ 117 │ hostssl │ {replication} │ {ps_ro} │ 10.19.165.190 │ 255.255.255.255 │ md5 │ ¤ │ ¤ │
  17. └─────────────┴─────────┴───────────────┴──────────────┴───────────────┴─────────────────┴─────────────┴─────────┴───────┘
  18.  
  19. FOLLOWING ERROR ON SUBSCRIBER:
  20.  
  21. psql:create_ro_admin_subscription.sql:3: ERROR: XX000: could not connect to the publisher: FATAL: no pg_hba.conf entry for replication connection from host "10.19.165.190", user "ps_ro", SSL on
  22. FATAL: no pg_hba.conf entry for replication connection from host "10.19.165.190", user "ps_ro", SSL off
  23. LOCATION: CreateSubscription, subscriptioncmds.c:429
Advertisement
Add Comment
Please, Sign In to add comment