Postgres Server staying in read only mode after a barman recover command is executed
Since barman 2.4, there are two option for after recovery behavior.
They are
--target-action option, accepting the following values:

shutdown: once recovery target is reached, PostgreSQL is shut down
pause: once recovery target is reached, PostgreSQL is started in pause state, allowing users to inspect the instance
promote: once recovery target is reached, PostgreSQL will exit recovery and is promoted as a master

Barman 2.4 also adds the --standby-mode option for the recover command which, if specified, properly configures the recovered instance as a standby by creating a standby.signal
Good luck.
If you like the answer, pls vote it up.
WY