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

blocking on sending WAL segments #416

Open
adewolff opened this issue Jan 19, 2019 · 0 comments
Open

blocking on sending WAL segments #416

adewolff opened this issue Jan 19, 2019 · 0 comments

Comments

@adewolff
Copy link

I'm trying to backup my postgres 9.6 server to AWS S3.
When running wal-e backup-push, I get an error stating blocking on sending WAL segments. As per the hint to check archive_command, I ran wal-e wal-push. This gave the error:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/postgresql/9.6/archive_status'.

I tried creating the directory 9.6/archive_status directory, which now results in the following traceback:

Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 716, in gevent._greenlet.Greenlet.run
  File "/var/lib/postgresql/.local/lib/python3.5/site-packages/wal_e/worker/upload.py", line 53, in __call__
    self.gpg_key_id)
  File "/var/lib/postgresql/.local/lib/python3.5/site-packages/wal_e/worker/worker_util.py", line 33, in do_lzop_put
    open(local_path, 'rb'), tf, gpg_key=gpg_key):
IsADirectoryError: [Errno 21] Is a directory: '/etc/postgresql/9.6/main'
2019-01-19T21:32:03Z <Greenlet "Greenlet-0" at 0x7f34f2c27a48: <wal_e.worker.upload.WalUploader object at 0x7f34f2bab470>(<wal_e.worker.pg.wal_transfer.WalSegment object at)> failed with IsADirectoryError

wal_e.main   CRITICAL MSG: An unprocessed exception has avoided all error handling
        DETAIL: Traceback (most recent call last):
          File "/var/lib/postgresql/.local/lib/python3.5/site-packages/wal_e/cmd.py", line 666, in main
            concurrency=args.pool_size)
          File "/var/lib/postgresql/.local/lib/python3.5/site-packages/wal_e/operator/backup.py", line 283, in wal_archive
            group.join()
          File "/var/lib/postgresql/.local/lib/python3.5/site-packages/wal_e/worker/pg/wal_transfer.py", line 144, in join
            raise val
          File "src/gevent/greenlet.py", line 716, in gevent._greenlet.Greenlet.run
          File "/var/lib/postgresql/.local/lib/python3.5/site-packages/wal_e/worker/upload.py", line 53, in __call__
            self.gpg_key_id)
          File "/var/lib/postgresql/.local/lib/python3.5/site-packages/wal_e/worker/worker_util.py", line 33, in do_lzop_put
            open(local_path, 'rb'), tf, gpg_key=gpg_key):
        IsADirectoryError: [Errno 21] Is a directory: '/etc/postgresql/9.6/main'

However, doing a touch 9.6/archive_status results in the following error:

DETAIL: Traceback (most recent call last):
          File "/var/lib/postgresql/.local/lib/python3.5/site-packages/wal_e/cmd.py", line 666, in main
            concurrency=args.pool_size)
          File "/var/lib/postgresql/.local/lib/python3.5/site-packages/wal_e/operator/backup.py", line 273, in wal_archive
            other_segment = next(seg_stream)
          File "/var/lib/postgresql/.local/lib/python3.5/site-packages/wal_e/worker/pg/wal_transfer.py", line 70, in from_ready_archive_status
            statuses = os.listdir(status_dir)
        NotADirectoryError: [Errno 20] Not a directory: '/etc/postgresql/9.6/archive_status'

I've set up my postgresql.conf exactly as instructed in the README. How should I go about fixing this?

dfaubion-zinc referenced this issue Mar 15, 2021
WALE_S3_STORAGE_CLASS, defaulting to STANDARD.  valid values: STANDARD | REDUCED_REDUNDANCY | GLACIER | STANDARD_IA | ONEZONE_IA | INTELLIGENT_TIERING | DEEP_ARCHIVE
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

1 participant