Also, I noted it seems to be hung up on "IOError: [Errno 2] No such file or 
directory: 'pg_xlog/000000010000000000000009.00000028.backup". Please note 
that here's my current pg_xlog content:

drwx------  3 postgres postgres     4096 Aug 12 22:44 .
drwx------ 16 postgres postgres     4096 Aug 13 00:40 ..
-rw-------  1 postgres postgres 16777216 Aug 12 20:59 
00000001000000000000001C
-rw-------  1 postgres postgres 16777216 Aug 12 20:59 
00000001000000000000001D
-rw-------  1 postgres postgres      332 Aug 12 20:59 
00000001000000000000001D.00000028.backup
-rw-------  1 postgres postgres 16777216 Aug 12 21:02 
00000001000000000000001E
-rw-------  1 postgres postgres      332 Aug 12 21:02 
00000001000000000000001E.00000028.backup
-rw-------  1 postgres postgres 16777216 Aug 12 22:44 
00000001000000000000001F
-rw-------  1 postgres postgres 16777216 Aug 12 22:44 
000000010000000000000020
-rw-------  1 postgres postgres      332 Aug 12 22:44 
000000010000000000000020.00000028.backup
-rw-------  1 postgres postgres 16777216 Aug 13 00:24 
000000010000000000000021
-rw-------  1 postgres postgres 16777216 Aug 13 00:40 
000000010000000000000022
-rw-------  1 postgres postgres 16777216 Aug 13 00:40 
000000010000000000000023
drwx------  2 postgres postgres     4096 Aug 13 00:40 archive_status

And, here's archive_status directory:

-rw------- 1 postgres postgres    0 Aug 12 12:06 
000000010000000000000009.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 12:41 
00000001000000000000000B.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 13:23 
00000001000000000000000D.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 13:29 
00000001000000000000000F.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 13:38 
000000010000000000000011.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 13:57 
000000010000000000000013.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 16:10 
000000010000000000000015.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 16:29 
000000010000000000000017.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 20:02 
000000010000000000000019.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 20:34 
00000001000000000000001B.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 20:59 
00000001000000000000001C.ready
-rw------- 1 postgres postgres    0 Aug 12 20:59 
00000001000000000000001D.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 20:59 
00000001000000000000001D.ready
-rw------- 1 postgres postgres    0 Aug 12 21:02 
00000001000000000000001E.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 21:02 
00000001000000000000001E.ready
-rw------- 1 postgres postgres    0 Aug 12 22:44 
00000001000000000000001F.ready
-rw------- 1 postgres postgres    0 Aug 12 22:44 
000000010000000000000020.00000028.backup.ready
-rw------- 1 postgres postgres    0 Aug 12 22:44 
000000010000000000000020.ready
-rw------- 1 postgres postgres    0 Aug 13 00:24 
000000010000000000000021.ready
-rw------- 1 postgres postgres    0 Aug 13 00:40 
000000010000000000000022.ready


On Tuesday, August 12, 2014 8:55:50 PM UTC-4, Paul Tiseo wrote:
>
> Under the postgres user manually, and when added in archive_command, type 
> returns /usr/local/bin/wal-e, which is correct. The log (not the csv) 
> also says "envdir: fatal: unable to run wal-e: file does not exist".
>
> BTW, in the original post, the wal-push commands were run under the 
> postgres user. And, they work that way. It's on the tail end of a manual 
> backup-push or under the archive_command context that I get a fail. Very 
> confused. Is there any way to put wal-e into a more verbose mode?
>
> Attached is my last postgres .log file after the restart for adding the 
> type item.
> On Tuesday, August 12, 2014 7:29:32 PM UTC-4, Daniel Farina wrote:
>>
>> On Tue, Aug 12, 2014 at 4:16 PM, Paul Tiseo <[email protected]> wrote: 
>> > I kinda looked there already and didn't see any notable error messages. 
>> When 
>> > I do a manual backup-push, I have to hit a ctrl-C to interrupt it, so 
>> syslog 
>> > seems to only contain non-error messages: 
>> > 
>> > Aug 12 22:44:00 ip-10-123-148-194 wal_e.operator.backup INFO     MSG: 
>> start 
>> > upload postgres version metadata#012        DETAIL: Uploading to 
>> > 
>> s3://production_postgresql/basebackups_005/base_000000010000000000000020_00000040/extended_version.txt.#012
>>  
>>
>> > STRUCTURED: time=2014-08-12T22:44:00.429147-00 pid=4964 
>> > Aug 12 22:44:00 ip-10-123-148-194 wal_e.operator.backup INFO     MSG: 
>> > postgres version metadata upload complete#012        STRUCTURED: 
>> > time=2014-08-12T22:44:00.553103-00 pid=4964 
>> > Aug 12 22:44:00 ip-10-123-148-194 wal_e.worker.upload INFO     MSG: 
>> > beginning volume compression#012        DETAIL: Building volume 0.#012 
>> > STRUCTURED: time=2014-08-12T22:44:00.844788-00 pid=4964 
>> > Aug 12 22:44:02 ip-10-123-148-194 wal_e.worker.upload INFO     MSG: 
>> begin 
>> > uploading a base backup volume#012        DETAIL: Uploading to 
>> > 
>> "s3://production_postgresql/basebackups_005/base_000000010000000000000020_00000040/tar_partitions/part_00000000.tar.lzo".#012
>>  
>>
>> > STRUCTURED: time=2014-08-12T22:44:02.007589-00 pid=4964 
>> > Aug 12 22:44:02 ip-10-123-148-194 wal_e.worker.upload INFO     MSG: 
>> finish 
>> > uploading a base backup volume#012        DETAIL: Uploading to 
>> > 
>> "s3://production_postgresql/basebackups_005/base_000000010000000000000020_00000040/tar_partitions/part_00000000.tar.lzo"
>>  
>>
>> > complete at 15728.8KiB/s. #012        STRUCTURED: 
>> > time=2014-08-12T22:44:02.459143-00 pid=4964 
>>
>> These are for base backups, so not very interesting given your problem. 
>>
>> > The log in /var/log/postgresql is likewise uninformative. The error 
>> from 
>> > archive_command is repeated instances of this: 
>> > 
>> > 2014-08-12 23:11:00.520 UTC,,,30174,,53ea0337.75de,2679,,2014-08-12 
>> 12:06:15 
>> > UTC,,0,LOG,00000,"archive command failed with exit code 111","The 
>> failed 
>> > archive command was: envdir /etc/wal-e.d/env wal-e wal-push 
>> > pg_xlog/000000010000000000000009.00000028.backup",,,,,,,,"" 
>> > 2014-08-12 23:11:00.520 UTC,,,30174,,53ea0337.75de,2680,,2014-08-12 
>> 12:06:15 
>> > UTC,,0,WARNING,01000,"archiving transaction log file 
>> > ""000000010000000000000009.00000028.backup"" failed too many times, 
>> will try 
>> > again later",,,,,,,,,"" 
>>
>> Exit code 111: this is probably emitted by the shell attempting to run 
>> WAL-E rather than WAL-E itself..  Like Cody wrote, consider using 
>> absolute paths to wal-e if $PATH isn't quite right as seen from the 
>> respect of the postgres user.  Here it shows you are relying on $PATH 
>> being configured for Postgres: envdir /etc/wal-e.d/env **wal-e** 
>> wal-push. (double-star emphasis mine).  Consider not doing that. 
>>
>> Also possible is that the wal-e executable bit is not set for the 
>> relevant user. 
>>
>> To test the theory that this is a $PATH resolution problem, you may 
>> want to adjust your archive_command like this to get more output: 
>>
>> "type wal-e; [...the rest...]" 
>>
>> or possibly: 
>>
>> "which wal-e; [...the rest...]" 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"wal-e" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to