Re: Streaming Replication woes

From: Sean Patronis <spatronis(at)add123(dot)com>
To: Thom Brown <thom(at)linux(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Streaming Replication woes
Date: 2011-11-04 15:19:01
Message-ID: 4EB40265.6040902@add123.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/04/2011 10:59 AM, Thom Brown wrote:
> On 4 November 2011 16:50, Sean Patronis<spatronis(at)add123(dot)com> wrote:
>> I am running Postgres 9.1
>>
>> I have followed the howto here:
>> http://wiki.postgresql.org/wiki/Streaming_Replication
>>
>> I am attempting to replicate an existing database.
>>
>> On the Master, I get the following error in the postgres log file:
>>
>> FATAL: must be replication role to start walsender
>>
>>
>> On the slave I get this:
>> FATAL: could not connect to the primary server: FATAL: must be replication
>> role to start walsender
>>
>> I have googled both of those log entries to no avail.
>>
>> note that the sender process on the master is not running.
>>
>> What simple step am I missing?
> What have you got primary_conninfo set to on the standby in
> recovery.conf? Are you trying to use a regular user? If so, you will
> have to grant it REPLICATION permissions on the primary, which was
> introduced in 9.1.
>

The primary_conninfo in the recovery.conf is set to :
primary_conninfo = 'host=192.168.127.12 port=5432 user=postgres'

So I should just have to grant the postgres user REPLICATION
permissions, and be good?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Boreham 2011-11-04 15:24:17 Re: Recommendations for SSDs in production?
Previous Message Raghavendra 2011-11-04 14:56:17 Re: Streaming Replication woes