Repository navigation
unpack_from requires a buffer of at least 4 bytes #604
Copy link
Copy link
Closed
Description
analytically
opened on Dec 2, 2020
Issue body actions
Reactions are currently unavailable
Activity
This isn't enough to go on, I have to presume that either you're using the code incorrectly or have data corruption on disk.
Possibly corruption.
I had this issue too with version
0.11.0.
I just moved myPROMETHEUS_MULTIPROC_DIRenvironment from/tmpto/tmp/prometheusand stopped those issues.I am having a similar issue. I have identified that the problem comes up because of empty
.dbfiles in the multiproc dir:$ ls /prom_cache/ -hla | sort -k 5,5 -r |tail -n 20 -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:45 gauge_max_456.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:45 gauge_max_401.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:45 counter_456.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:45 counter_401.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:41 histogram_1.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:41 gauge_max_1.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:41 counter_1.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:40 histogram_80.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:40 histogram_10.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:40 gauge_max_80.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:40 gauge_max_10.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:40 counter_80.db -rw-r--r--. 1 1003650000 1003650000 64K Oct 14 11:40 counter_10.db -rw-r--r--. 1 1003650000 1003650000 0 Oct 14 14:23 gauge_max_25172.db -rw-r--r--. 1 1003650000 1003650000 0 Oct 14 14:23 gauge_max_25125.db -rw-r--r--. 1 1003650000 1003650000 0 Oct 14 14:23 gauge_max_25086.db -rw-r--r--. 1 1003650000 1003650000 0 Oct 14 13:47 gauge_max_19550.db -rw-r--r--. 1 1003650000 1003650000 0 Oct 14 11:45 gauge_max_358.db dr-xr-xr-x. 1 root root 50 Oct 15 08:45 .. total 45MAfter deleting those files, the generation worked again.
Is this something I should take to django_prometheus directly?
Alternatively, what do you think of simply deleting any
.dbfiles with length 0 upon read, logging a warning?
Metadata
Metadata
Assignees
Labels
No labels