2021-06-01 13:11:50.564 JST [3065] LOG: starting PostgreSQL 14beta1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39), 64-bit 2021-06-01 13:11:50.565 JST [3065] LOG: listening on IPv6 address "::1", port 5451 2021-06-01 13:11:50.565 JST [3065] LOG: listening on IPv4 address "127.0.0.1", port 5451 2021-06-01 13:11:50.568 JST [3065] LOG: listening on Unix socket "/tmp/.s.PGSQL.5451" 2021-06-01 13:11:50.572 JST [3066] LOG: database system was interrupted; last known up at 2021-06-01 13:11:50 JST cp: cannot stat ‘arc/00000002.history’: No such file or directory 2021-06-01 13:11:50.684 JST [3066] LOG: entering standby mode cp: cannot stat ‘arc/000000010000000000000002’: No such file or directory 2021-06-01 13:11:50.694 JST [3066] LOG: redo starts at 0/2000028 2021-06-01 13:11:50.695 JST [3066] LOG: consistent recovery state reached at 0/2000100 2021-06-01 13:11:50.695 JST [3065] LOG: database system is ready to accept read only connections cp: cannot stat ‘arc/000000010000000000000003’: No such file or directory 2021-06-01 13:11:50.708 JST [3074] LOG: started streaming WAL from primary at 0/3000000 on timeline 1 2021-06-01 13:11:56.945 JST [3074] LOG: replication terminated by primary server 2021-06-01 13:11:56.945 JST [3074] DETAIL: End of WAL reached on timeline 1 at 0/70000A0. 2021-06-01 13:11:56.945 JST [3074] FATAL: could not send end-of-streaming message to primary: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. no COPY in progress cp: cannot stat ‘arc/00000002.history’: No such file or directory cp: cannot stat ‘arc/000000010000000000000007’: No such file or directory 2021-06-01 13:11:56.949 JST [3066] LOG: invalid record length at 0/70000A0: wanted 24, got 0 2021-06-01 13:11:56.950 JST [3112] FATAL: could not connect to the primary server: connection to server on socket "/tmp/.s.PGSQL.5450" failed: No such file or directory Is the server running locally and accepting connections on that socket? cp: cannot stat ‘arc/00000002.history’: No such file or directory cp: cannot stat ‘arc/000000010000000000000007’: No such file or directory 2021-06-01 13:12:01.966 JST [3135] LOG: started streaming WAL from primary at 0/7000000 on timeline 1 2021-06-01 13:12:03.165 JST [3135] LOG: replication terminated by primary server 2021-06-01 13:12:03.165 JST [3135] DETAIL: End of WAL reached on timeline 1 at 0/70000A0. 2021-06-01 13:12:03.165 JST [3135] LOG: fetching timeline history file for timeline 2 from primary server cp: cannot stat ‘arc/00000002.history’: No such file or directory cp: cannot stat ‘arc/00000003.history’: No such file or directory 2021-06-01 13:12:03.176 JST [3066] LOG: restored log file "00000002.history" from archive 2021-06-01 13:12:03.178 JST [3066] LOG: new target timeline is 2 cp: cannot stat ‘arc/000000020000000000000007’: No such file or directory 2021-06-01 13:12:03.186 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:03.186 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:03.191 JST [3066] LOG: restored log file "000000010000000000000007" from archive 2021-06-01 13:12:03.202 JST [3066] LOG: invalid record length at 0/70000A0: wanted 24, got 0 2021-06-01 13:12:03.202 JST [3135] LOG: restarted WAL streaming at 0/7000000 on timeline 2 2021-06-01 13:12:04.191 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:04.191 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:05.195 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:05.195 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:05.195 JST [3071] WARNING: archiving write-ahead log file "00000002.history" failed too many times, will try again later 2021-06-01 13:12:05.198 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:05.198 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:06.204 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:06.204 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:07.210 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:07.210 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:07.210 JST [3071] WARNING: archiving write-ahead log file "00000002.history" failed too many times, will try again later 2021-06-01 13:12:13.270 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:13.270 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:13.296 JST [3135] FATAL: could not receive data from WAL stream: ERROR: requested WAL segment 000000020000000000000008 has already been removed cp: cannot stat ‘arc/00000003.history’: No such file or directory cp: cannot stat ‘arc/000000020000000000000009’: No such file or directory 2021-06-01 13:12:13.306 JST [3197] LOG: started streaming WAL from primary at 0/9000000 on timeline 2 2021-06-01 13:12:14.276 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:14.276 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:15.283 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:15.283 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:15.283 JST [3071] WARNING: archiving write-ahead log file "00000002.history" failed too many times, will try again later 2021-06-01 13:12:15.288 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:15.288 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:16.294 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:16.294 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:17.300 JST [3071] LOG: archive command failed with exit code 1 2021-06-01 13:12:17.300 JST [3071] DETAIL: The failed archive command was: test ! -f arc/00000002.history && cp pg_wal/00000002.history arc/00000002.history 2021-06-01 13:12:17.300 JST [3071] WARNING: archiving write-ahead log file "00000002.history" failed too many times, will try again later