BUG #17685: pg_rewind: error: unexpected result while fetching remote files: ERROR: could not open file ".s.PGS - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17685: pg_rewind: error: unexpected result while fetching remote files: ERROR: could not open file ".s.PGS
Date
Msg-id 17685-2456943edafec3e7@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17685
Logged by:          强 魏
Email address:      1726002692@qq.com
PostgreSQL version: 15.1
Operating system:   Centos 7.6
Description:

unix_socket_directories=".,/tmp"   or unix_socket_directories='.'

pg_rewind will be error:pg_rewind: error: unexpected result while fetching
remote files: ERROR:  could not open file ".s.PGSQL.5433" for reading:
没有那个设备或地址

[pg15@PG02 pg151]$ pg_rewind --target-pgdata=/pgdata/pg151
--source-server="host=192.168.247.100 port=5433 user=postgres password=root
dbname=postgres" -R -n
pg_rewind: servers diverged at WAL location 0/300000D8 on timeline 8
pg_rewind: rewinding from last common checkpoint at 0/30000028 on timeline
8
pg_rewind: error: unexpected result while fetching remote files: ERROR:
could not open file ".s.PGSQL.5433" for reading: 没有那个设备或地址


unix_socket_directories='/tmp'  pg_rewind is ok

[pg15@PG02 pg151]$ pg_rewind --target-pgdata=/pgdata/pg151
--source-server="host=192.168.247.100 port=5433 user=postgres password=root
dbname=postgres" -R
pg_rewind: servers diverged at WAL location 0/300000D8 on timeline 8
pg_rewind: rewinding from last common checkpoint at 0/30000028 on timeline
8
pg_rewind: Done!


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17684: pg_rewind ---could not receive data from WAL stream: ERROR: requested WAL segment 00000005000000000
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: WAL segments removed from primary despite the fact that logical replication slot needs it.