mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[GH-ISSUE #230] "queue" directory accumulates thousands of .msg files over time #182
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#182
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dgz on GitHub (Nov 28, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/230
Originally assigned to: @ciur on GitHub.
Description
The celery queue directory doesn't seem to empty itself.
I noticed a cpu would peg whenever the worker was started and while investigating the other bug I posted I came across the "queue" directory which contained what seemed like thousands of .msg files. Each was 538 bytes in size and in total amounted to about 1.1gb of disk space, it took several seconds for an 'ls' to complete.
Deleting the queue folder and restarting the worker brought the cpu back down to idle while it was running. However when running approximately 3 new .msg files are created every second so it will quickly grow again.
The dates on this original batch of files stretched back to when I started using Papermerge in the summer so I don't believe it has anything to do with recent commits.
The files all seem to have nearly the same contents with only the correlation_id and delivery_tag changing, two of them below:
{"body": "eyJ0YXNrX2lkIjogIjNjMjYzMWY3LWNiNTQtNDZkNC04OTllLTUxN2UwM2RjZmYzNCIsICJzdGF0dXMiOiAiU1VDQ0VTUyIsICJyZXN1bHQiOiBudWxsLCAidHJhY2ViYWNrIjogbnVsbCwgImNoaWxkcmVuIjogW119", "content-encoding": "utf-8", "content-type": "application/json", "headers": {}, "properties": {"correlation_id": "3c2631f7-cb54-46d4-899e-517e03dcff34", "delivery_mode": 1, "delivery_info": {"exchange": "", "routing_key": "6d6c36c3-5baf-34a4-b401-d9af345bf9f3"}, "priority": 0, "body_encoding": "base64", "delivery_tag": "28ad325c-9970-4d18-9bdb-53c20d289b4c"}}{"body": "eyJ0YXNrX2lkIjogIjJmMmQ3OTM4LTE1MjktNDE2Ni1iM2JjLTJjMDUzNjk2NDNhYyIsICJzdGF0dXMiOiAiU1VDQ0VTUyIsICJyZXN1bHQiOiBudWxsLCAidHJhY2ViYWNrIjogbnVsbCwgImNoaWxkcmVuIjogW119", "content-encoding": "utf-8", "content-type": "application/json", "headers": {}, "properties": {"correlation_id": "2f2d7938-1529-4166-b3bc-2c05369643ac", "delivery_mode": 1, "delivery_info": {"exchange": "", "routing_key": "6d6c36c3-5baf-34a4-b401-d9af345bf9f3"}, "priority": 0, "body_encoding": "base64", "delivery_tag": "e83ebb0f-84cc-4007-9b69-9be9821c2401"}}Info:
69592d4Probably should have noted in the other report I am running Papermerge per the manual way in the documentation using systemd user units running gunicorn and the worker.
@dgz commented on GitHub (Nov 28, 2020):
Nevermind! This is related to #198 and I see the workarounds are listed there already. Closing this one, sorry!