-
Notifications
You must be signed in to change notification settings - Fork 353
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
can not load incompatible binary data, binary file is from version < 4.0. #770
Comments
Hi, Does content of the /var/lib/pgsql/12/pgbadger/ directory have been copied from another server before running pgbadger? If not, can you report the result of the following command:
|
no, but I changed these settings
|
I removed all files from pgbadger directory but still getting the same error and generate a fully emty html. pgbadger -f csv -I -v -a 1 -s 2 -T "test58" -O /var/lib/pgsql/12/pgbadger --exclude-query="^(COPY|refresh materialized VIEW|VACUUM)" -o cbs58.html /pg01/mounts/pg12/pg_log/log/test_pg12db01-2023.03.20.csv.gz
|
I think that the binary file generated for day2023-03-20 is created with some corruption: /var/lib/pgsql/12/pgbadger/2023/03/20/2023-03-20-2310819.bin if you skip this day from pgbadger analyze you might not encounter the problem again. If possible, send file /var/lib/pgsql/12/pgbadger/2023/03/20/2023-03-20-2310819.bin to my private email ( gilles AT darold DOT net ) I will try to find the reason. |
Hello, I have encountered a similar phenomenon. Regarding binary file generation, I would like the documentation to clearly state the maximum size limit that can be safely used. |
From https://perldoc.perl.org/Storable
I don't know if you are in this case. What was the size of the original PostgreSQL log file and haw much days of logs does it contain? |
The text log file I have for the failing case contains logs from 2024-04-25 04:00:05.233 to 2024-04-25 05:00:00.010 and is 3 M lines / 1.7 GB. (updated) |
I guess this is 1 day log file. I use to process 10GB and more log files regularly without any issue. I think that this is not the real source of the problem. Please, post the pgbadger command line you are using and one or 2 lines of your log file. |
Sorry. I made a mistake in copy and paste in the previous post. |
Here are 1st log line, last log line, and the pghadger (v12.4) command line.
|
Well I don't see any reason why you have this problem and I can not reproduce. If by chance you can send to my private email gilles AT darold DOT net a link to download the log file I will be able to see what happens otherwise I'm afraid I can not do more on this issue except waiting that it happens to me. |
Thank you for your research. |
Hello, Im stuck in this problem, what am I doing wrong
pgbadger version 12.1 (installed from source)
log_destination: csvlog
log_line_prefix: t=%m p=%p a=%a h=%h db=%d u=%u x=%x
log_filename: test_pg12db01-%Y.%m.%d.log
parse command:
pgbadger --prefix "t=%m p=%p a=%a h=%h db=%d u=%u x=%x " -v -a 1 -f csv -s 2 -T "test58" -q -I -O /var/lib/pgsql/12/pgbadger/ --exclude-query="^(COPY|refresh materialized VIEW|VACUUM)" -o test58.html /pg01/mounts/pg12/pg_log/log/test_pg12db*-$(date --date='yesterday' +'%Y.%m.%d' )*.csv.gz
The text was updated successfully, but these errors were encountered: