Comments (11)
Just to be clear, you'd like to make the line disappear if, after a failure, things are now working correctly (i.e. failed timestamp < success timestamp). Am I right?
from cloudnative-pg.
@gbartolini Yes, it will be good. It seems everything works fine. the backup works fine.
And I would like to know the reason, why it happened
from cloudnative-pg.
Overlaps or is a special case of #2432 ?
from cloudnative-pg.
It is very interesting.
I created a new DB cluster and got the same issue with the WAL archive.
from cloudnative-pg.
Please look at #1402
from cloudnative-pg.
I ran command to reset the statistics of the archive. Now I have the walArchivingFailing
issue
Continuous Backup status
First Point of Recoverability: 2024-01-20T00:00:06Z
Working WAL archiving: Starting Up
WALs waiting to be archived: 0
Last Archived WAL: -
Last Failed WAL: -
I restarted pod and will check tomorrow, if something is changed
from cloudnative-pg.
the issue with backups:
{"level":"info","ts":"2024-01-17T13:50:31Z","logger":"wal-archive","msg":"Archived WAL file","logging_pod":"banners-db-1","walName":"pg_wal/0000000F000000000000002F","startTime":"2024-01-17T13:50:30Z","endTime":"2024-01-17T13:50:31Z","elapsedWalTime":0.717355918} {"level":"info","ts":"2024-01-17T13:55:31Z","logger":"wal-archive","msg":"Archived WAL file","logging_pod":"banners-db-1","walName":"pg_wal/0000000F0000000000000030","startTime":"2024-01-17T13:55:30Z","endTime":"2024-01-17T13:55:31Z","elapsedWalTime":0.69901278} {"level":"info","ts":"2024-02-20T08:04:56Z","logger":"postgres","msg":"record","logging_pod":"banners-db-1","record":{"log_time":"2024-02-20 08:04:56.543 UTC","user_name":"postgres","database_name":"postgres","process_id":"3514065","connection_from":"[local]","session_id":"65d45d23.359ed1","session_line_num":"1","command_tag":"idle","session_start_time":"2024-02-20 08:04:51 UTC","virtual_transaction_id":"4/1407","transaction_id":"0","error_severity":"ERROR","sql_state_code":"42601","message":"syntax error at or near \"SELECT\"","query":"SELECT * FROM pg_backup_stop\nSELECT * FROM pg_backup_stop;","query_pos":"30","application_name":"psql","backend_type":"client backend","query_id":"0"}} {"level":"info","ts":"2024-02-20T08:05:11Z","logger":"postgres","msg":"record","logging_pod":"banners-db-1","record":{"log_time":"2024-02-20 08:05:11.915 UTC","user_name":"postgres","database_name":"postgres","process_id":"3514065","connection_from":"[local]","session_id":"65d45d23.359ed1","session_line_num":"2","command_tag":"SELECT","session_start_time":"2024-02-20 08:04:51 UTC","virtual_transaction_id":"4/1408","transaction_id":"0","error_severity":"ERROR","sql_state_code":"42P01","message":"relation \"pg_backup_stop\" does not exist","query":"SELECT * FROM pg_backup_stop;","query_pos":"15","application_name":"psql","backend_type":"client backend","query_id":"0"}}
from cloudnative-pg.
Why are you trying to manually run (with errors) SELECT * FROM pg_backup_stop\nSELECT * FROM pg_backup_stop;
and SELECT * FROM pg_backup_stop;
?
from cloudnative-pg.
In my experience, not everyone would like to always reset the last time of failure of the archiver. Postgres allows you to do it, and you can do it, as shown above. I will close this issue unless you have further enquiries.
from cloudnative-pg.
I (no-one) didn't run the command SELECT * FROM pg_backup_stop
.
And now, I have issue with all my DBs - Last Failed WAL and with same data - 2024-03-01
from cloudnative-pg.
I (no-one) didn't run the command
SELECT * FROM pg_backup_stop
. And now, I have issue with all my DBs - Last Failed WAL and with same data - 2024-03-01
CloudNativePG for sure isn't running that command, as the only occurrence of pg_backup_stop
in the code is this:
In any case, this is not related to the initial content of the issue. Hence I am closing this ticket.
from cloudnative-pg.
Related Issues (20)
- Can cloudnative-pg support longhorn to make data sync instead of pg sync data itself in pg cluster, to support infinity disk capacity
- setup creadentials for preflight check in ci workflow
- [Bug]: Logger PGAudit not working, postgres logger is used instead HOT 2
- [Bug]: Kubectl Plugin displays default Operator Image version, when using ImageCatalog in Cluster CR
- [Bug]: CNPG 1.23 - cannot create Cluster auxiliary objects: expected pointer, but got invalid HOT 2
- [Bug]: Replica starts recovery from backup that is outside of retention period.
- [Bug]: Node restarts may render cluster broken HOT 1
- [Docs]: development env setup instructions don't support Apple Silicon
- [Docs]: Release notes for 1.23.1
- [Feature]: Add Container Lifecycle Hooks (PostStart,PreStop) for containers in the Cluster CRD
- [Bug]: Recovery from WAL fails when tablespace was added HOT 1
- [Bug]: New replica searches for WAL archive that doesn't exist
- [Feature]: ScheduledBackup resource should be able to backup using plugin method
- [Bug]: Operator restarting due to DetectAvailableArchitectures()
- [Bug]: Operator test should rely on Deployments not counting pods
- [Docs]: guide on production readiness for CNPG HOT 2
- [Bug]: Do not start the psql or minio container for tests if not needed
- [Bug]: The instance manager is not able to unfence PG after a previous unfence operation failed
- [Feature]: Specify addtional labels for PodMonitor
- [Bug]: Missing log line if only the private key is changed in a TLS secret
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudnative-pg.