Thread: BUG #18858: client does not support server version newer than 15.12 but actual version is 15.8.1

The following bug has been logged on the website:

Bug reference:      18858
Logged by:          Eduardo Fischer dos Santos
Email address:      eduardo.fischer.dos.santos@ericsson.com
PostgreSQL version: 15.8
Operating system:   openSUSE Leap 15.5 / Linux
Description:

When running 
"barman receive-wal pg"
with postgres 15.8.1


I get the following errors.

arman.utils INFO: Cleaning up lockfiles directory.
barman.wal_archiver INFO: No xlog segments found from streaming for pg.
barman.postgres WARNING: Unexpected non zero minor version 12 in 151200
barman.postgres WARNING: Unexpected non zero minor version 12 in 151200
barman.server INFO: Starting receive-wal for server pg
barman.wal_archiver INFO: Activating WAL archiving through streaming
protocol
barman.command_wrappers INFO: pg: pg_receivewal: error: incompatible server
version 15.8.1; client does not support streaming from server versions newer
than 15.12
barman.server ERROR: ArchiverFailure:pg_receivewal terminated with error
code: 1
barman.utils INFO: Cleaning up lockfiles directory.
barman.wal_archiver INFO: No xlog segments found from streaming for pg.

Error message says that client does not support server version newer than
15.12 but actual version is 15.8.1 which is older

Error also happens when using 15.12.0

arman.utils INFO: Cleaning up lockfiles directory.
barman.wal_archiver INFO: No xlog segments found from streaming for pg.
barman.postgres WARNING: Unexpected non zero minor version 12 in 151200
barman.postgres WARNING: Unexpected non zero minor version 12 in 151200
barman.server INFO: Starting receive-wal for server pg
barman.wal_archiver INFO: Activating WAL archiving through streaming
protocol
barman.command_wrappers INFO: pg: pg_receivewal: error: incompatible server
version 15.12.0; client does not support streaming from server versions
newer than 15.12
barman.server ERROR: ArchiverFailure:pg_receivewal terminated with error
code: 1
barman.utils INFO: Cleaning up lockfiles directory.
barman.wal_archiver INFO: No xlog segments found from streaming for pg.

Error also happens when not using barman and running only pg_receivewal
directly

https://docs.pgbarman.org/release/3.13.0/user_guide/


PG Bug reporting form <noreply@postgresql.org> writes:
> When running 
> "barman receive-wal pg"
> with postgres 15.8.1

There is no such release as "15.8.1"; we stopped using three-part
version numbers years ago.

> barman.command_wrappers INFO: pg: pg_receivewal: error: incompatible server
> version 15.8.1; client does not support streaming from server versions newer
> than 15.12

pg_receivewal is evidently confused by the bogus version value it's
getting.  Where did you get this server from?

            regards, tom lane