The replication from prado to somerset on the primary database failed with the following messages:
2018-09-11 12:35:31 UTC [31397]: [1-1] user=postgres,db=softwareheritage LOG: starting logical decoding for slot "pgl_softwareheritage_prado_somerset" 2018-09-11 12:35:31 UTC [31397]: [2-1] user=postgres,db=softwareheritage DETAIL: streaming transactions committing after 15DB5/898105E0, reading WAL from 15DB5/1444F1E0 2018-09-11 12:35:31 UTC [31397]: [3-1] user=postgres,db=softwareheritage ERROR: requested WAL segment 0000000100015DB500000014 has already been removed 2018-09-11 12:35:31 UTC [31397]: [4-1] user=postgres,db=softwareheritage LOG: could not receive data from client: Connection reset by peer
The missing WALs have been restored from the wal archive on banco using the following command:
postgres@prado:/srv/softwareheritage/postgres/10/main/pg_wal$ for i in `seq 20 94`; do segment=0000000100015DB5000000`printf %02X $i`; if [ -f $segment ]; then echo $segment present; else ssh barman@banco barman get-wal swh-10 $segment > $segment; fi; done
Replication has restarted.