-
Notifications
You must be signed in to change notification settings - Fork 86
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
archive-push problem #330
Comments
Hello!
We are trying to get system ID here before pushing WAL to make sure that we are pushing to the correct repo. Currently I can only recommend to use |
OK , noted |
BTW, annother question, I have changed postgres instance archive_timeout to 4min, but the backup still failed. [[email protected] pgsql]$ pg_probackup-12 backup -B /home/postgres/pg_backup --instance pgsql -b full |
Did you set |
yes, I set on all instance, including master and standby |
how to solve this? the root cause is , if no any data change, pg will not switch wal files, so as for archive_timeout. postgres=# show archive_timeout ;
|
Can you please rerun this backup with |
-------backup on standby, all cluster instance archive_timeout=4min, pg_probackup archive_timeout=5min------ Backup instance informationpgdata = /home/service/var/pgdata Connection parameterspgdatabase = postgres Replica parametersreplica-timeout = 5min Archive parametersarchive-timeout = 5min Logging parameterslog-level-console = INFO Retention parametersretention-redundancy = 0 Compression parameterscompress-algorithm = none Remote access parametersremote-proto = ssh [[email protected] pgsql]$ pg_probackup-12 backup -B /home/postgres/pg_backup --instance pgsql -b full --log-level-file=VERBOSE |
Please attach |
[[email protected] ~]$ pg_probackup-12 backup -B /home/postgres/pg_backup --instance pgsql -b full --log-level-file=VERBOSE [[email protected] log]$ cat pg_probackup.log |
I hope provide a solution to backup success no dependent on wal archive, backup sucess first. backup sucess first. |
Please try this one and attach the file
|
seems --stream will finally success, though still wait archive failed. as below, log file contents is long, I not find where to upload file [[email protected] ~]$ pg_probackup-12 backup -B /home/postgres/pg_backup --instance pgsql -b full --log-level-file=VERBOSE --stream |
You can just attach here - drag and drop. |
we are not allowed to upload files in company env, so can't upload , need you need still as it can finally success with --stream mode |
Then post messages about WAL streaming after pg_stop_backup execution. |
2021-02-18 17:21:33 CST [297499]: INFO: command: pg_probackup-12 backup -B /home/postgres/pg_backup --instance pgsql -b full --log-level-file=VERBOSE --stream |
like above, I skip same kind lines with 。。。。。。 |
So with |
stream mode can also support PITR, right? |
If archiving is enabled - sure. |
for not stream issue, do you think it's a bug and should be fixed in future version? |
when db no trasaction, no data change, wal will not switch. under this scenario, backup will failed. |
Yeah, probably, we will think about it. |
As when no any trasaction , wal won't archive, it will always happen, backup will fail. Thanks for your support! |
--for incremental backup , same issue exists as well: if I add --stream for incr backup, finally will success, but got so much warning message: Hope this can be fixed, backup success is first I concerned. |
This is due to how pg_stop_backup() function works in PostgreSQL.
In this case it is the latter. |
I want to use archive-push to move pg wal files from archive folder to backup wal folder, i.e. copy all archived wal files from
/home/service/var/pgdata/archivedir to pg_probackup wal archive folder , but I can't run success:
pg_probackup-12 archive-push -B /home/postgres/pg_backup --instance pgsql --wal-file-name=000000010000000000000020 --wal-file-path=/home/service/var/pgdata/archivedir
ERROR: Could not open file "/home/service/var/pgdata/archivedir/global/pg_control" for reading: No such file or directory
How do I use archive-push command to move all archived wal files from one folder to pg_probackup base folder?
The text was updated successfully, but these errors were encountered: