Skip to content

Conversation

@vitabaks
Copy link
Owner

This update modifies the stanza creation process for pgbackrest to run on all nodes only if repo1-type is posix. For other types (e.g., S3), the stanza creation is limited to the primary node, addressing errors caused by running stanza creation on multiple hosts in non-posix setups.

Fixed:

TASK [pgbackrest/stanza-create : Create stanza "postgres-cluster-azure"] *******
fatal: [10.0.1.6]: FAILED! => {"changed": false, "cmd": ["pgbackrest", "--stanza=postgres-cluster-azure", "--no-online", "stanza-create"], "delta": "0:00:00.118962", "end": "2024-10-10 10:35:24.666687", "msg": "non-zero return code", "rc": 40, "start": "2024-10-10 10:35:24.547725", "stderr": "", "stderr_lines": [], "stdout": "2024-10-10 10:35:24.555 P00   INFO: stanza-create command begin 2.53.1: --exec-id=10823-ffa2c2b9 --log-level-console=info --log-level-file=detail --log-path=/var/log/pgbackrest --no-online --pg2-host=10.0.1.4 --pg3-host=10.0.1.5 --pg1-path=/pgdata/16/main --pg2-path=/pgdata/16/main --pg3-path=/pgdata/16/main --pg2-port=5432 --pg3-port=5432 --repo1-azure-account=<redacted> --repo1-azure-container=postgres-cluster-azure-backup --repo1-azure-key=<redacted> --repo1-azure-key-type=shared --repo1-path=/pgbackrest --repo1-type=azure --stanza=postgres-cluster-azure\n2024-10-10 10:35:24.555 P00   INFO: stanza-create for stanza 'postgres-cluster-azure' on repo1\n2024-10-10 10:35:24.665 P00  ERROR: [040]: archive directory not empty\n2024-10-10 10:35:24.665 P00   INFO: stanza-create command end: aborted with exception [040]", "stdout_lines": ["2024-10-10 10:35:24.555 P00   INFO: stanza-create command begin 2.53.1: --exec-id=10823-ffa2c2b9 --log-level-console=info --log-level-file=detail --log-path=/var/log/pgbackrest --no-online --pg2-host=10.0.1.4 --pg3-host=10.0.1.5 --pg1-path=/pgdata/16/main --pg2-path=/pgdata/16/main --pg3-path=/pgdata/16/main --pg2-port=5432 --pg3-port=5432 --repo1-azure-account=<redacted> --repo1-azure-container=postgres-cluster-azure-backup --repo1-azure-key=<redacted> --repo1-azure-key-type=shared --repo1-path=/pgbackrest --repo1-type=azure --stanza=postgres-cluster-azure", "2024-10-10 10:35:24.555 P00   INFO: stanza-create for stanza 'postgres-cluster-azure' on repo1", "2024-10-10 10:35:24.665 P00  ERROR: [040]: archive directory not empty", "2024-10-10 10:35:24.665 P00   INFO: stanza-create command end: aborted with exception [040]"]}
changed: [10.0.1.4]
changed: [10.0.1.5]

This update modifies the stanza creation process for pgbackrest to run on all nodes only if repo1-type is posix. For other types (e.g., S3), the stanza creation is limited to the primary node, addressing errors caused by running stanza creation on multiple hosts in non-posix setups.
@vitabaks vitabaks self-assigned this Oct 10, 2024
@vitabaks vitabaks merged commit 6577048 into master Oct 11, 2024
16 checks passed
@vitabaks vitabaks deleted the no-posix branch October 11, 2024 11:05
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

Successfully merging this pull request may close these issues.

2 participants