Insufficient permissions with backup-fetch hangs
When running backup-fetch with a target dir that the user postgres doesn't have write permissions for, wal-e simply hangs after saying that it's downloading parts, and stays there for ever. A simple chmod fixed the issue.
It gets this far:
wal_e.main INFO MSG: starting WAL-E DETAIL: The subcommand is "backup-fetch". STRUCTURED: time=2016-06-17T00:55:45.787668-00 pid=29646 wal_e.worker.s3.s3_worker INFO MSG: beginning partition download DETAIL: The partition being downloaded is part_00000000.tar.lzo. HINT: The absolute S3 key is basebackups_005/base_000000010000000200000014_00000040/tar_partitions/part_00000000.tar.lzo. STRUCTURED: time=2016-06-17T00:55:46.247287-00 pid=29646
https://github.com/wal-e/wal-e/blob/master/wal_e/pipebuf.py#L238 is the culprit.