2018-03-06 00:09:29 UTC [20296]: [6-1] db=,user= FATAL: requested recovery stop point is before consistent recovery point
If the database is quite new or WAL archiving just enabled, such as testing or CI systems, then there might not be a recovery point to restore too. The charm should force or wait for one if necessary before kicking off the pg_basebackup. Its somewhat surprising that pg_basebackup does't handle this.
2018-03-06 00:09:29 UTC [20296]: [6-1] db=,user= FATAL: requested recovery stop point is before consistent recovery point
If the database is quite new or WAL archiving just enabled, such as testing or CI systems, then there might not be a recovery point to restore too. The charm should force or wait for one if necessary before kicking off the pg_basebackup. Its somewhat surprising that pg_basebackup does't handle this.