Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wal-e error: “ pg_stop_backup still waiting for all required WAL segments to be archived” #401

Open
proteeti13 opened this issue Jul 16, 2018 · 6 comments

Comments

@proteeti13
Copy link

I've been trying to use wal-e to take incremental backup of my postgresql database by following this blog. I've a database on my postgresql and using an AWS S3 bucket. while I'm using the following command

sudo -u postgres /usr/bin/envdir /etc/wal-e.d/env /usr/local/bin/wal-e backup-push /var/lib/postgresql/10/main

it shows this
zpcyj

Any help on this?

Thanks :)

@greylord1996
Copy link

@proteeti13 I have faced the same problem today. Have you already solved it?

@proteeti13
Copy link
Author

Couldn't solve it. I spent a lot of time figuring out but failed. Now started reading the documentation of Barman :( @greylord1996

@teewhyli
Copy link

teewhyli commented Aug 6, 2018

@proteeti13 hey, i'm also experiencing the same issue.

In my case (I'm using digital ocean a s3 interpolated object) its because boto is expecting me to insert a aws:kms key despite the fact i'm not running with aws s3.

`Traceback (most recent call last):
File "src/gevent/greenlet.py", line 716, in gevent._greenlet.Greenlet.run
File "/usr/local/lib/python3.6/dist-packages/wal_e/worker/upload.py", line 53, in call
self.gpg_key_id)
File "/usr/local/lib/python3.6/dist-packages/wal_e/worker/worker_util.py", line 40, in do_lzop_put
k = blobstore.uri_put_file(creds, url, tf)
File "/usr/local/lib/python3.6/dist-packages/wal_e/blobstore/s3/s3_util.py", line 57, in uri_put_file
k.set_contents_from_file(fp, encrypt_key=True)
File "/usr/local/lib/python3.6/dist-packages/boto/s3/key.py", line 1309, in set_contents_from_file
chunked_transfer=chunked_transfer, size=size)
File "/usr/local/lib/python3.6/dist-packages/boto/s3/key.py", line 762, in send_file
chunked_transfer=chunked_transfer, size=size)
File "/usr/local/lib/python3.6/dist-packages/boto/s3/key.py", line 963, in _send_file_internal
query_args=query_args
File "/usr/local/lib/python3.6/dist-packages/boto/s3/connection.py", line 671, in make_request
retry_handler=retry_handler
File "/usr/local/lib/python3.6/dist-packages/boto/connection.py", line 1071, in make_request
retry_handler=retry_handler)
File "/usr/local/lib/python3.6/dist-packages/boto/connection.py", line 940, in _mexe
request.body, request.headers)
File "/usr/local/lib/python3.6/dist-packages/boto/s3/key.py", line 896, in sender
response.status, response.reason, body)
boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request

InvalidArgumentServer Side Encryption with KMS managed key requires HTTP header x-amz-server-side-encryption : aws:kmskpex-spacetx000000000000000208c19$

2018-08-06T01:57:45Z <Greenlet "Greenlet-23" at 0x7f4e1882a348: <wal_e.worker.upload.WalUploader object at 0x7f4e188894a8>(<wal_e.worker.pg.wal_transfer.WalSegment object at)> failed with S3ResponseError`

@DeathBorn
Copy link

any news here?

@proteeti13
Copy link
Author

Sorry guys. I couldn't solve it :(

@DeathBorn
Copy link

just now, noticed that https://github.com/wal-g/wal-g this has configuration regarding kms. maybe that is related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants