2016-08-29 12 views
1

시스템 사양 추가 암호 인증 :FATAL : bucardo 테이블을

  • 우분투 14.04
  • bucardo 버전 4.99.10
  • psql의 (PostgreSQL을) 9.3.14

무엇 나는 지금까지 노력했다?

나는 openerp postgres 사용자로 master 데이터베이스를 만들었습니다. 내가 오류 다음있어

- Setup Source Database 

    export SOURCE_HOST=localhost 
    export SOURCE_PORT=5432 
    export SOURCE_DATABASE=master 
    export SOURCE_USERNAME=openerp 
    export SOURCE_PASSWORD=openerp 

- Setup Destination Database 

    export DEST_HOST=localhost 
    export DEST_PORT=5432 
    export DEST_DATABASE=slave 
    export DEST_USERNAME=openerp 
    export DEST_PASSWORD=openerp  

- Finally, the tables to be migrated 

    export TABLES="-t res_partner" 

    export TABLES_WITH_SPACES="res_partner" 

- Set up the Destination Database 

    cat >> $HOME/.pgpass <<EOL 
    $DEST_HOST:$DEST_PORT:$DEST_DATABASE:$DEST_USERNAME:$DEST_PASSWORD 
    $SOURCE_HOST:$SOURCE_PORT:$SOURCE_DATABASE:$SOURCE_USERNAME:$SOURCE_PASSWORD 
    EOL 

- Create schema.sql 

- Create Slave database 

- Load schema into Slave 

- Setting up Bucardo Sync (Source Database and Destination Database) 

- Now I am trying to add the tables we want to migrate and add them to a "copying herd" 

    ./bucardo add tables res_partner db=master 

는 :

[email protected]:/usr/local/src/bucardo$ ./bucardo add tables res_partner db=master DBI connect('dbname=master;host=localhost;port=5432','openerp',...) failed: FATAL: password authentication failed for user "openerp" FATAL: password authentication failed for user "openerp" at ./bucardo line 8632.

내가 분석 스크립트 bucardo 있습니다.

        List of databases 
    Name  | Owner | Encoding | Collate | Ctype | Access privileges 
-------------+----------+----------+-------------+-------------+----------------------- 
bucardo  | postgres | UTF8  | en_US.UTF-8 | en_US.UTF-8 | 
master  | openerp | UTF8  | en_US.UTF-8 | en_US.UTF-8 | 
postgres | postgres | UTF8  | en_US.UTF-8 | en_US.UTF-8 | 
slave  | openerp | UTF8  | en_US.UTF-8 | en_US.UTF-8 | 
slave_copy | openerp | UTF8  | en_US.UTF-8 | en_US.UTF-8 | 
slave_copy1 | openerp | UTF8  | en_US.UTF-8 | en_US.UTF-8 | 
slave_copy2 | openerp | UTF8  | en_US.UTF-8 | en_US.UTF-8 | 
template0 | postgres | UTF8  | en_US.UTF-8 | en_US.UTF-8 | =c/postgres   + 
      |   |   |    |    | postgres=CTc/postgres 
template1 | postgres | UTF8  | en_US.UTF-8 | en_US.UTF-8 | =c/postgres   + 
      |   |   |    |    | postgres=CTc/postgres 

당신이 안내 수 있습니다 : 나는 dbuser에와 줄 번호 84에서 선언 dbpass 변수와 혼란, 85

(I have tried with dbuser = 'openerp' and dbpass='openerp' but result same) 

있는 pg_hba.conf 데이터베이스의

# Database administrative login by Unix domain socket 
local all    postgres        ident 

# TYPE DATABASE  USER   ADDRESS     METHOD 

# "local" is for Unix domain socket connections only 
local all    all          md5 
# IPv4 local connections: 
host all    all    127.0.0.1/32   md5 
# IPv6 local connections: 
host all    all    ::1/128     md5 
# Allow replication connections from localhost, by a user with the 
# replication privilege. 
#local replication  postgres        peer 
#host replication  postgres  127.0.0.1/32   md5 
#host replication  postgres  ::1/128     md5 

목록을 위의 오류나 유용한 링크를 수정하려면 어떻게해야합니까?

어떻게 Bucardo를 사용하여 마스터 - 슬레이브 기능을 구현할 수 있습니까?

답변

1

나는 pg_hba.conf 파일에 문제가 있음을 발견했습니다. 오류를 해결하려면 해당 파일에 아래 행을 추가해야합니다.

local all    openerp        ident