Re: Fatal error after starting postgres : sys identifiers must be different

Lists: pgsql-hackerspgsql-novicepgsql-www
From: Indrajit Roychoudhury <indrajit(dot)roychoudhury(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: pgsql-www(at)postgresql(dot)org
Subject: Fatal error after starting postgres : sys identifiers must be different
Date: 2013-07-18 16:48:22
Message-ID: CAD0pnxVaM-g1Z0HQnTHhpLigf+qpKJu32pkE2ikocheaS5scWw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice pgsql-www

Hi Alvaro,

Could you please let me know what does the error "system identifiers are
same" mean? Below is the snapshot from one of the masters.
I am setting up BDR as per the wiki
http://wiki.postgresql.org/wiki/BDR_User_Guide#Initial_setup
and source @
git://git.postgresql.org/git/users/andresfreund/postgres.git

irc1(at)ubuntuirc:~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin$ ./postgres -D
~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin/data2/
LOG: bgworkers, connection: dbname=testdb2
LOG: option: dbname, val: testdb2
LOG: registering background worker: bdr apply: ubuntuirc2
LOG: loaded library "bdr"
LOG: database system was shut down at 2013-03-17 10:56:52 PDT
LOG: doing logical startup from 0/17B6410
LOG: starting up replication identifier with ckpt at 0/17B6410
LOG: autovacuum launcher started
LOG: starting background worker process "bdr apply: ubuntuirc2"
LOG: database system is ready to accept connections
LOG: bdr apply: ubuntuirc2 initialized on testdb2, remote dbname=testdb2
replication=true fallback_application_name=bdr
FATAL: system identifiers must differ between the nodes
DETAIL: Both system identifiers are 5856368744762683487.
LOG: worker process: bdr apply: ubuntuirc2 (PID 16712) exited with exit
code 1
^CLOG: received fast shutdown request
LOG: aborting any active transactions
LOG: autovacuum launcher shutting down
LOG: shutting down

Thanks.


From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Indrajit Roychoudhury <indrajit(dot)roychoudhury(at)gmail(dot)com>
Cc: pgsql-www(at)postgresql(dot)org
Subject: Re: Fatal error after starting postgres : sys identifiers must be different
Date: 2013-07-18 19:21:15
Message-ID: 20130718192114.GQ4165@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice pgsql-www

Indrajit Roychoudhury escribió:
> Hi Alvaro,
>
> Could you please let me know what does the error "system identifiers are
> same" mean?

Please post to the hackers list, perhaps CC Andres Freund. This list is
not appropriate.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


From: Indrajit Roychoudhury <indrajit(dot)roychoudhury(at)gmail(dot)com>
To: pgsql-hackers(at)postgreSQL(dot)org, pgsql-novice(at)postgresql(dot)org, andres(at)anarazel(dot)de
Subject: Re: Fatal error after starting postgres : sys identifiers must be different
Date: 2013-07-18 20:02:29
Message-ID: CAD0pnxXkz0UR0GQw0bCVkjzs+_E=awKoa+e5J7jAW6aRhab0AQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice pgsql-www

Hi,

Could you please let me know what does the error "system identifiers are
same" mean? Below is the snapshot from one of the masters.
I am setting up BDR as per the wiki
http://wiki.postgresql.org/wiki/BDR_User_Guide#Initial_setup
and source @
git://git.postgresql.org/git/users/andresfreund/postgres.git

irc1(at)ubuntuirc:~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin$ ./postgres -D
~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin/data2/
LOG: bgworkers, connection: dbname=testdb2
LOG: option: dbname, val: testdb2
LOG: registering background worker: bdr apply: ubuntuirc2
LOG: loaded library "bdr"
LOG: database system was shut down at 2013-03-17 10:56:52 PDT
LOG: doing logical startup from 0/17B6410
LOG: starting up replication identifier with ckpt at 0/17B6410
LOG: autovacuum launcher started
LOG: starting background worker process "bdr apply: ubuntuirc2"
LOG: database system is ready to accept connections
LOG: bdr apply: ubuntuirc2 initialized on testdb2, remote dbname=testdb2
replication=true fallback_application_name=bdr
FATAL: system identifiers must differ between the nodes
DETAIL: Both system identifiers are 5856368744762683487.
LOG: worker process: bdr apply: ubuntuirc2 (PID 16712) exited with exit
code 1
^CLOG: received fast shutdown request
LOG: aborting any active transactions
LOG: autovacuum launcher shutting down
LOG: shutting down

pgcontrol_data outputs different database system ids for the two nodes. So
don't understand why it says identifiers are same.
postgresql.conf content in one of the masters is like this-

/////////////////
shared_preload_libraries = 'bdr'
bdr.connections = 'ubuntuirc2'
bdr.ubuntuirc2.dsn = 'dbname=testdb2'
/////////////////

Two nodes are ubuntuirc and ubuntuirc2. Above is the output of the
postgresql.conf from ubuntuirc.

Any help on this will be appreciated.

Thanks.

On Thu, Jul 18, 2013 at 9:48 AM, Indrajit Roychoudhury <
indrajit(dot)roychoudhury(at)gmail(dot)com> wrote:

> Hi Alvaro,
>
> Could you please let me know what does the error "system identifiers are
> same" mean? Below is the snapshot from one of the masters.
> I am setting up BDR as per the wiki
> http://wiki.postgresql.org/wiki/BDR_User_Guide#Initial_setup
> and source @
> git://git.postgresql.org/git/users/andresfreund/postgres.git
>
> irc1(at)ubuntuirc:~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin$ ./postgres
> -D ~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin/data2/
> LOG: bgworkers, connection: dbname=testdb2
> LOG: option: dbname, val: testdb2
> LOG: registering background worker: bdr apply: ubuntuirc2
> LOG: loaded library "bdr"
> LOG: database system was shut down at 2013-03-17 10:56:52 PDT
> LOG: doing logical startup from 0/17B6410
> LOG: starting up replication identifier with ckpt at 0/17B6410
> LOG: autovacuum launcher started
> LOG: starting background worker process "bdr apply: ubuntuirc2"
> LOG: database system is ready to accept connections
> LOG: bdr apply: ubuntuirc2 initialized on testdb2, remote dbname=testdb2
> replication=true fallback_application_name=bdr
> FATAL: system identifiers must differ between the nodes
> DETAIL: Both system identifiers are 5856368744762683487.
> LOG: worker process: bdr apply: ubuntuirc2 (PID 16712) exited with exit
> code 1
> ^CLOG: received fast shutdown request
> LOG: aborting any active transactions
> LOG: autovacuum launcher shutting down
> LOG: shutting down
>
> Thanks.
>


From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Indrajit Roychoudhury <indrajit(dot)roychoudhury(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, pgsql-novice(at)postgresql(dot)org, andres(at)anarazel(dot)de
Subject: Re: Fatal error after starting postgres : sys identifiers must be different
Date: 2013-07-18 22:31:07
Message-ID: CAB7nPqQuKShOBNJZdx163s0f_Y2Qjkqtj8QMCQi1Nsyadu8dug@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice pgsql-www

On Fri, Jul 19, 2013 at 5:02 AM, Indrajit Roychoudhury
<indrajit(dot)roychoudhury(at)gmail(dot)com> wrote:
> Could you please let me know what does the error "system identifiers are
> same" mean? Below is the snapshot from one of the masters.
> I am setting up BDR as per the wiki
> http://wiki.postgresql.org/wiki/BDR_User_Guide#Initial_setup
> and source @
> git://git.postgresql.org/git/users/andresfreund/postgres.git
>
> irc1(at)ubuntuirc:~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin$ ./postgres -D
> ~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin/data2/
> LOG: bgworkers, connection: dbname=testdb2
> LOG: option: dbname, val: testdb2
> LOG: registering background worker: bdr apply: ubuntuirc2
> LOG: loaded library "bdr"
> LOG: database system was shut down at 2013-03-17 10:56:52 PDT
> LOG: doing logical startup from 0/17B6410
> LOG: starting up replication identifier with ckpt at 0/17B6410
> LOG: autovacuum launcher started
> LOG: starting background worker process "bdr apply: ubuntuirc2"
> LOG: database system is ready to accept connections
> LOG: bdr apply: ubuntuirc2 initialized on testdb2, remote dbname=testdb2
> replication=true fallback_application_name=bdr
> FATAL: system identifiers must differ between the nodes
> DETAIL: Both system identifiers are 5856368744762683487.
I am not the best specialist about logical replication, but as it
looks to be a requirement to have 2 nodes with different system
identifiers, you shouldn't link 1 node to another node whose data
folder has been created from the base backup of the former (for
example create the 2nd node based on a base backup of the 1st node).
The error returned here would mean so.

> LOG: worker process: bdr apply: ubuntuirc2 (PID 16712) exited with exit
> code 1
> ^CLOG: received fast shutdown request
> LOG: aborting any active transactions
> LOG: autovacuum launcher shutting down
> LOG: shutting down
>
> pgcontrol_data outputs different database system ids for the two nodes. So
> don't understand why it says identifiers are same.
Are you sure? Please re-ckeck.

> postgresql.conf content in one of the masters is like this-
>
> /////////////////
> shared_preload_libraries = 'bdr'
> bdr.connections = 'ubuntuirc2'
> bdr.ubuntuirc2.dsn = 'dbname=testdb2'
> /////////////////
>
> Two nodes are ubuntuirc and ubuntuirc2. Above is the output of the
> postgresql.conf from ubuntuirc.
If this behavior is confirmed, I think that this bug should be
reported directly to Andres and not this mailing list, just because
logical replication is not integrated into Postgres core as of now.
--
Michael


From: Indrajit Roychoudhury <indrajit(dot)roychoudhury(at)gmail(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, pgsql-novice(at)postgresql(dot)org, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: [HACKERS] Fatal error after starting postgres : sys identifiers must be different
Date: 2013-07-18 23:46:03
Message-ID: CAD0pnxWb+vzie0Aa92eD_LJpueBJW--wPUEcVTaUu1UFZciLAA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice pgsql-www

*I am not the best specialist about logical replication, but as it
looks to be a requirement to have 2 nodes with different system
identifiers, you shouldn't link 1 node to another node whose data
folder has been created from the base backup of the former (for
example create the 2nd node based on a base backup of the 1st node).
The error returned here would mean so.*
**
*- *I didn't create the /data folders from any backup for both the nodes;
they were created fresh by initdb individually. Is there anything specific
that I need to do apart from initdb?

*pgcontrol_data outputs different database system ids for the two nodes. So
> don't understand why it says identifiers are same.
Are you sure? Please re-ckeck.*
**
*- *I re-verified and they are different. Pasting the snapshots below-

irc1(at)ubuntuirc:~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin$
./pg_controldata ./data2/
pg_control version number: 937
Catalog version number: 201305061
Database system identifier: *5856368744762683487*
Database cluster state: in production
....

irc2(at)ubuntuirc2:~/bdr/postgres-bin/bin$ ./pg_controldata ./data/
pg_control version number: 937
Catalog version number: 201305061
Database system identifier: *5901663435516996514*
Database cluster state: in production

Also, am pasting the below snapshot to let you know that postgres doesn't
seem to be the su; in case this problem is due to that.

irc1(at)ubuntuirc:~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin$ ./psql testdb2
psql (9.3beta1)
Type "help" for help.
testdb2=# \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------+-----------
irc1 | Superuser, Create role, Create DB, Replication | {}

irc2(at)ubuntuirc2:~/bdr/postgres-bin/bin$ ./psql testdb2
psql (9.3beta1)
Type "help" for help.
testdb2=# \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------+-----------
irc2 | Superuser, Create role, Create DB, Replication | {}

Please let me know which mailing list will be more appropriate to raise my
concern regarding this postgres dev flavor.
I am yet to receive any response from Andres.

Thanks.

On Thu, Jul 18, 2013 at 3:31 PM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com>wrote:

> On Fri, Jul 19, 2013 at 5:02 AM, Indrajit Roychoudhury
> <indrajit(dot)roychoudhury(at)gmail(dot)com> wrote:
> > Could you please let me know what does the error "system identifiers are
> > same" mean? Below is the snapshot from one of the masters.
> > I am setting up BDR as per the wiki
> > http://wiki.postgresql.org/wiki/BDR_User_Guide#Initial_setup
> > and source @
> > git://git.postgresql.org/git/users/andresfreund/postgres.git
> >
> > irc1(at)ubuntuirc:~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin$ ./postgres
> -D
> > ~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin/data2/
> > LOG: bgworkers, connection: dbname=testdb2
> > LOG: option: dbname, val: testdb2
> > LOG: registering background worker: bdr apply: ubuntuirc2
> > LOG: loaded library "bdr"
> > LOG: database system was shut down at 2013-03-17 10:56:52 PDT
> > LOG: doing logical startup from 0/17B6410
> > LOG: starting up replication identifier with ckpt at 0/17B6410
> > LOG: autovacuum launcher started
> > LOG: starting background worker process "bdr apply: ubuntuirc2"
> > LOG: database system is ready to accept connections
> > LOG: bdr apply: ubuntuirc2 initialized on testdb2, remote dbname=testdb2
> > replication=true fallback_application_name=bdr
> > FATAL: system identifiers must differ between the nodes
> > DETAIL: Both system identifiers are 5856368744762683487.
> I am not the best specialist about logical replication, but as it
> looks to be a requirement to have 2 nodes with different system
> identifiers, you shouldn't link 1 node to another node whose data
> folder has been created from the base backup of the former (for
> example create the 2nd node based on a base backup of the 1st node).
> The error returned here would mean so.
>
> > LOG: worker process: bdr apply: ubuntuirc2 (PID 16712) exited with exit
> > code 1
> > ^CLOG: received fast shutdown request
> > LOG: aborting any active transactions
> > LOG: autovacuum launcher shutting down
> > LOG: shutting down
> >
> > pgcontrol_data outputs different database system ids for the two nodes.
> So
> > don't understand why it says identifiers are same.
> Are you sure? Please re-ckeck.
>
> > postgresql.conf content in one of the masters is like this-
> >
> > /////////////////
> > shared_preload_libraries = 'bdr'
> > bdr.connections = 'ubuntuirc2'
> > bdr.ubuntuirc2.dsn = 'dbname=testdb2'
> > /////////////////
> >
> > Two nodes are ubuntuirc and ubuntuirc2. Above is the output of the
> > postgresql.conf from ubuntuirc.
> If this behavior is confirmed, I think that this bug should be
> reported directly to Andres and not this mailing list, just because
> logical replication is not integrated into Postgres core as of now.
> --
> Michael
>


From: Andres Freund <andres(at)anarazel(dot)de>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Indrajit Roychoudhury <indrajit(dot)roychoudhury(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Fatal error after starting postgres : sys identifiers must be different
Date: 2013-07-19 00:35:13
Message-ID: 20130719003513.GB20525@alap2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice pgsql-www

Hi!

On 2013-07-19 07:31:07 +0900, Michael Paquier wrote:
> If this behavior is confirmed, I think that this bug should be
> reported directly to Andres and not this mailing list, just because
> logical replication is not integrated into Postgres core as of now.

I think I agree, although I don't know where to report it, but to me
personally, so far. Hackers seems to be the wrong crowd for it, given
most of the people on it haven't even heard of bdr, much less read its
code.
We're definitely planning to propose it for community inclusion in some
form, but there are several rather large preliminary steps (like getting
changeset extraction in) that need to be done first.

Not sure what's best.

On 2013-07-19 07:31:07 +0900, Michael Paquier wrote:
> On Fri, Jul 19, 2013 at 5:02 AM, Indrajit Roychoudhury
> <indrajit(dot)roychoudhury(at)gmail(dot)com> wrote:
> > Could you please let me know what does the error "system identifiers are
> > same" mean? Below is the snapshot from one of the masters.
> > I am setting up BDR as per the wiki
> > http://wiki.postgresql.org/wiki/BDR_User_Guide#Initial_setup
> > and source @
> > git://git.postgresql.org/git/users/andresfreund/postgres.git
> >
> > irc1(at)ubuntuirc:~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin$ ./postgres -D
> > ~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin/data2/
> > LOG: bgworkers, connection: dbname=testdb2
> > LOG: option: dbname, val: testdb2
> > LOG: registering background worker: bdr apply: ubuntuirc2
> > LOG: loaded library "bdr"
> > LOG: database system was shut down at 2013-03-17 10:56:52 PDT
> > LOG: doing logical startup from 0/17B6410
> > LOG: starting up replication identifier with ckpt at 0/17B6410
> > LOG: autovacuum launcher started
> > LOG: starting background worker process "bdr apply: ubuntuirc2"
> > LOG: database system is ready to accept connections
> > LOG: bdr apply: ubuntuirc2 initialized on testdb2, remote dbname=testdb2
> > replication=true fallback_application_name=bdr
> > FATAL: system identifiers must differ between the nodes
> > DETAIL: Both system identifiers are 5856368744762683487.

> I am not the best specialist about logical replication, but as it
> looks to be a requirement to have 2 nodes with different system
> identifiers, you shouldn't link 1 node to another node whose data
> folder has been created from the base backup of the former (for
> example create the 2nd node based on a base backup of the 1st node).
> The error returned here would mean so.

Yes, that's correct.

> > LOG: worker process: bdr apply: ubuntuirc2 (PID 16712) exited with exit
> > code 1
> > ^CLOG: received fast shutdown request
> > LOG: aborting any active transactions
> > LOG: autovacuum launcher shutting down
> > LOG: shutting down
> >
> > pgcontrol_data outputs different database system ids for the two nodes. So
> > don't understand why it says identifiers are same.
> Are you sure? Please re-ckeck.
>
> > postgresql.conf content in one of the masters is like this-
> >
> > /////////////////
> > shared_preload_libraries = 'bdr'
> > bdr.connections = 'ubuntuirc2'
> > bdr.ubuntuirc2.dsn = 'dbname=testdb2'
> > /////////////////
> >
> > Two nodes are ubuntuirc and ubuntuirc2. Above is the output of the
> > postgresql.conf from ubuntuirc.

The problem seems to be that your dsn doesn't include a hostname but
only a database name. So, what probably happens is both your hosts try
to connect to themselves since connecting to the local host is the
default when no hostname is specified. Which is one of the primary
reasons the requirement for differing system identifiers exist...

Greetings,

Andres Freund


From: Indrajit Roychoudhury <indrajit(dot)roychoudhury(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, pgsql-novice(at)postgresql(dot)org
Subject: Re: [HACKERS] Fatal error after starting postgres : sys identifiers must be different
Date: 2013-07-19 00:39:07
Message-ID: CAD0pnxU5Czng-1WMgvtNYhTrx-O7KkEoa-rkaZKjSQCqquZ9mw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice pgsql-www

One more change was required to add both the users in each node's db as
super users and replication started!!

Thanks.

On Thu, Jul 18, 2013 at 5:35 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:

> Hi!
>
> On 2013-07-19 07:31:07 +0900, Michael Paquier wrote:
> > If this behavior is confirmed, I think that this bug should be
> > reported directly to Andres and not this mailing list, just because
> > logical replication is not integrated into Postgres core as of now.
>
> I think I agree, although I don't know where to report it, but to me
> personally, so far. Hackers seems to be the wrong crowd for it, given
> most of the people on it haven't even heard of bdr, much less read its
> code.
> We're definitely planning to propose it for community inclusion in some
> form, but there are several rather large preliminary steps (like getting
> changeset extraction in) that need to be done first.
>
> Not sure what's best.
>
> On 2013-07-19 07:31:07 +0900, Michael Paquier wrote:
> > On Fri, Jul 19, 2013 at 5:02 AM, Indrajit Roychoudhury
> > <indrajit(dot)roychoudhury(at)gmail(dot)com> wrote:
> > > Could you please let me know what does the error "system identifiers
> are
> > > same" mean? Below is the snapshot from one of the masters.
> > > I am setting up BDR as per the wiki
> > > http://wiki.postgresql.org/wiki/BDR_User_Guide#Initial_setup
> > > and source @
> > > git://git.postgresql.org/git/users/andresfreund/postgres.git
> > >
> > > irc1(at)ubuntuirc:~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin$
> ./postgres -D
> > > ~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin/data2/
> > > LOG: bgworkers, connection: dbname=testdb2
> > > LOG: option: dbname, val: testdb2
> > > LOG: registering background worker: bdr apply: ubuntuirc2
> > > LOG: loaded library "bdr"
> > > LOG: database system was shut down at 2013-03-17 10:56:52 PDT
> > > LOG: doing logical startup from 0/17B6410
> > > LOG: starting up replication identifier with ckpt at 0/17B6410
> > > LOG: autovacuum launcher started
> > > LOG: starting background worker process "bdr apply: ubuntuirc2"
> > > LOG: database system is ready to accept connections
> > > LOG: bdr apply: ubuntuirc2 initialized on testdb2, remote
> dbname=testdb2
> > > replication=true fallback_application_name=bdr
> > > FATAL: system identifiers must differ between the nodes
> > > DETAIL: Both system identifiers are 5856368744762683487.
>
> > I am not the best specialist about logical replication, but as it
> > looks to be a requirement to have 2 nodes with different system
> > identifiers, you shouldn't link 1 node to another node whose data
> > folder has been created from the base backup of the former (for
> > example create the 2nd node based on a base backup of the 1st node).
> > The error returned here would mean so.
>
> Yes, that's correct.
>
> > > LOG: worker process: bdr apply: ubuntuirc2 (PID 16712) exited with
> exit
> > > code 1
> > > ^CLOG: received fast shutdown request
> > > LOG: aborting any active transactions
> > > LOG: autovacuum launcher shutting down
> > > LOG: shutting down
> > >
> > > pgcontrol_data outputs different database system ids for the two
> nodes. So
> > > don't understand why it says identifiers are same.
> > Are you sure? Please re-ckeck.
> >
> > > postgresql.conf content in one of the masters is like this-
> > >
> > > /////////////////
> > > shared_preload_libraries = 'bdr'
> > > bdr.connections = 'ubuntuirc2'
> > > bdr.ubuntuirc2.dsn = 'dbname=testdb2'
> > > /////////////////
> > >
> > > Two nodes are ubuntuirc and ubuntuirc2. Above is the output of the
> > > postgresql.conf from ubuntuirc.
>
> The problem seems to be that your dsn doesn't include a hostname but
> only a database name. So, what probably happens is both your hosts try
> to connect to themselves since connecting to the local host is the
> default when no hostname is specified. Which is one of the primary
> reasons the requirement for differing system identifiers exist...
>
> Greetings,
>
> Andres Freund
>


From: amulsul <sul_amul(at)yahoo(dot)co(dot)in>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Fatal error after starting postgres : sys identifiers must be different
Date: 2013-07-19 03:40:16
Message-ID: 1374205216531-5764374.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers pgsql-novice pgsql-www

Hi Indrajit

>/////////////////
>shared_preload_libraries = 'bdr'
>bdr.connections = 'ubuntuirc2'
>bdr.ubuntuirc2.dsn = 'dbname=testdb2'
>/////////////////

I think, you need to set *bdr.ubuntuirc2.dsn* properly including host

bdr.ubuntuirc2.dsn = 'host=<ip> user=postgres dbname=testdb2'

please try this, I hope it will work .

Thanks & Regards,
Amul

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Re-Fatal-error-after-starting-postgres-sys-identifiers-must-be-different-tp5764305p5764374.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.