-
Notifications
You must be signed in to change notification settings - Fork 16
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
AttributeError: 'NoneType' object has no attribute 'timestamp' in last_xlog_upload_callback
#7
Comments
For reference, this is what the PRE base_0000000D00000073000000CE/
PRE base_0000000D00000074000000C2/
PRE base_0000000D000000760000009C/
PRE base_0000000D000000780000002C/
PRE base_0000000D00000079000000C4/
PRE base_0000000D0000007B00000069/
PRE base_0000000D0000007D0000001C/
PRE base_0000000E0000007E0000000E/
PRE base_0000000E0000007F00000002/
2022-05-15 04:19:37 185.1 KiB base_0000000D00000073000000CE_backup_stop_sentinel.json
2022-05-16 03:25:17 185.1 KiB base_0000000D00000074000000C2_backup_stop_sentinel.json
2022-05-17 03:27:45 185.1 KiB base_0000000D000000760000009C_backup_stop_sentinel.json
2022-05-18 03:24:57 185.1 KiB base_0000000D000000780000002C_backup_stop_sentinel.json
2022-05-19 03:26:34 185.1 KiB base_0000000D00000079000000C4_backup_stop_sentinel.json
2022-05-20 03:22:54 185.2 KiB base_0000000D0000007B00000069_backup_stop_sentinel.json
2022-05-23 03:22:27 185.4 KiB base_0000000E0000007F00000002_backup_stop_sentinel.json And here is the $ psql -c "SELECT archived_count, failed_count, last_archived_wal, last_archived_time, last_failed_wal, last_failed_time FROM pg_stat_archiver" postgres
archived_count | failed_count | last_archived_wal | last_archived_time | last_failed_wal | last_failed_time
----------------+--------------+-------------------+--------------------+-----------------+------------------
0 | 0 | | | |
(1 row) |
Getting the full table (including the interesting $ psql -c "SELECT * FROM pg_stat_archiver" postgres
archived_count | last_archived_wal | last_archived_time | failed_count | last_failed_wal | last_failed_time | stats_reset
----------------+-------------------+--------------------+--------------+-----------------+------------------+-------------------------------
0 | | | 0 | | | 2022-05-21 11:50:02.279099+00
(1 row) i.e: $ psql -c "SELECT stats_reset FROM pg_stat_archiver" postgres
stats_reset
-------------------------------
2022-05-21 11:50:02.279099+00
(1 row) Reading the docs, it seems they can be reset at times:
|
Potential bug?
Our exporter has worked fine for months, and a few days ago it started emitting logs like this one:
i.e. here:
wal-g-prometheus-exporter/exporter.py
Line 238 in b5a0a46
(I have different line numbers, due to us using this fork with the changes from #3: https://github.com/pagero/wal-g-prometheus-exporter)
The text was updated successfully, but these errors were encountered: