Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cijCr-0007Rm-Sy for pgsql-admin@arkaria.postgresql.org; Tue, 28 Feb 2017 14:56:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cijCr-00068t-7i for pgsql-admin@arkaria.postgresql.org; Tue, 28 Feb 2017 14:56:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cijB3-0002vf-Ag for pgsql-admin@postgresql.org; Tue, 28 Feb 2017 14:54:57 +0000 Received: from argon.locum.ru ([193.106.94.243]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cijB0-0005Kz-C4 for pgsql-admin@postgresql.org; Tue, 28 Feb 2017 14:54:56 +0000 Received: from [195.78.126.4] (helo=elf.ppcom.ru) by argon.locum.ru with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1cijAu-000411-MO for pgsql-admin@postgresql.org; Tue, 28 Feb 2017 17:54:48 +0300 To: pgsql-admin@postgresql.org From: Anton Gorlov Subject: replication error Message-ID: Date: Tue, 28 Feb 2017 17:54:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------4F03DE46ACB9BCB37E672B96" X-Authenticated-As: stalker@locum.ru X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org This is a multi-part message in MIME format. --------------4F03DE46ACB9BCB37E672B96 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello. I try setup replica from instructions located at https://wiki.postgresql.org/wiki/Streaming_Replication I copied data to slave, after psql -c "SELECT pg_start_backup('label', true)" and start slave - i see in logs many message like cp: cannot stat '/var/lib/postgresql/9.6/main/archive/000000010000000000000012': No such file or directory 2017-02-28 17:48:45 MSK [2333-3] LOG: redo starts at 0/12000098 2017-02-28 17:48:45 MSK [2333-4] LOG: consistent recovery state reached at 0/120000D0 2017-02-28 17:48:45 MSK [2333-5] LOG: record with incorrect prev-link 10000/2470000 at 0/120000D0 2017-02-28 17:48:45 MSK [2332-1] LOG: database system is ready to accept read only connections 2017-02-28 17:48:45 MSK [2339-1] LOG: started streaming WAL from primary at 0/12000000 on timeline 1 on master node file 000000010000000000000012 located in pg_xlog directory and copy to archive diectory after execute psql -c "SELECT pg_stop_backup()" and after copy database data to slave. What i doing wrong? --------------4F03DE46ACB9BCB37E672B96 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hello.

I try setup replica from instructions located at https://wiki.postgresql.org/wiki/Streaming_Replication


I copied data to slave, after psql -c "SELECT pg_start_backup('label', true)"  and start slave -  i see in logs many message like

cp: cannot stat '/var/lib/postgresql/9.6/main/archive/000000010000000000000012': No such file or directory
2017-02-28 17:48:45 MSK [2333-3] LOG:  redo starts at 0/12000098
2017-02-28 17:48:45 MSK [2333-4] LOG:  consistent recovery state reached at 0/120000D0
2017-02-28 17:48:45 MSK [2333-5] LOG:  record with incorrect prev-link 10000/2470000 at 0/120000D0
2017-02-28 17:48:45 MSK [2332-1] LOG:  database system is ready to accept read only connections
2017-02-28 17:48:45 MSK [2339-1] LOG:  started streaming WAL from primary at 0/12000000 on timeline 1


on master node file 000000010000000000000012  located in pg_xlog directory and copy to archive diectory  after execute
psql -c "SELECT pg_stop_backup()" and after copy database data to slave.

What i doing wrong?



--------------4F03DE46ACB9BCB37E672B96--