Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehI2a-0000be-W1 for pgsql-general@arkaria.postgresql.org; Thu, 01 Feb 2018 16:48:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehI2a-0006dL-00 for pgsql-general@arkaria.postgresql.org; Thu, 01 Feb 2018 16:48:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ehI2Z-0006dC-OY for pgsql-general@lists.postgresql.org; Thu, 01 Feb 2018 16:48:47 +0000 Received: from mail.i-mark.de ([188.138.104.222]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehI2W-0000Ym-Hu for pgsql-general@lists.postgresql.org; Thu, 01 Feb 2018 16:48:47 +0000 Received: from [192.168.222.106] (p5B31311B.dip0.t-ipconnect.de [91.49.49.27]) by mail.i-mark.de (Postfix) with ESMTPSA id AD4481580548 for ; Thu, 1 Feb 2018 17:48:38 +0100 (CET) Subject: Re: Master-Slave error: the database system is starting up To: pgsql-general@lists.postgresql.org References: From: Andreas Kretschmer Message-ID: <44142664-adbc-b2e2-09a5-453074ddfffd@a-kretschmer.de> Date: Thu, 1 Feb 2018 17:48:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 01.02.2018 um 15:43 schrieb Сергей Злобин: > Hello, > > I was advised to write a letter to you > > Windows Server 2012 > Postgres 9.6 > I made a replication with the master server. On the slave server service > postgres is running, but in log files slave's server "FATAL:  the database > system is starting up" message will continue. > > when I try from the command line run the command > > psql.exe -U postgres` > writes the following error: > > psql: ... Connection refused (0x0000274D/10061) ... > My postgresql.conf configuration is on the slave server: > > listen_addresses = 'ip slave adress' > hot_standby = on > wal_receiver_status_interval = 0 > hot_standby_feedback = on > My recovery.conf configuration is on the slave server: > > standby_mode = 'on' > primary_conninfo = 'host=ip master server port=5432 user=postgres' > primary_slot_name = 'slot_1' > trigger_file = 'D:\Postgres Data\Start_master' > Could you please to fix this issue? I don't understand what could be the > problem. I've made shutdown the server, the problem is not resolved. > > Thenk you very much > > http://www.postgresql-archive.org/Master-Slave-error-the-database-system-is-starting-up-td6004044.html please execute "select * from pg_stat_replication;" and "select * from pg_replication_slots ;" on the master and show us the output. Please check also the logs on the standby. Regards, Andreas -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com