Skip to content
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

Temp files clogging up the /tmp and gallery-dl errors out #6672

Open
doubl-eanti-anteater opened this issue Dec 15, 2024 · 1 comment
Open

Comments

@doubl-eanti-anteater
Copy link

A week ago when I was backing up my files into my backup machine, I noticed that I didn't get any new pictures from gallery-dl.
I looked at my log file and I see nothing, no new logs files.
I went to my laptop and looked at the console.

[PYI-1313:ERROR] Failed to extract cryptography/hazmat/bindings/_rust.abi3.so: decompression resulted in return code -1!
[PYI-1313:ERROR] Failed to extract entry: cryptography/hazmat/bindings/_rust.abi3.so.

I looked around for _rust.abi3.so and saw that it was located in /tpm.
On /tpm was mounted a 478M tmpfs (Temporary File System) that is 100% full.
I thought the problem is something I installed months ago and forgot about it.
So I deleted everything; reinstalled arch-linux, lxqt, yay, gallery-dl, yt-dlp, konsole and put my script back in place.
Everything worked fine at first but tomorrow the same problem happened again.
Same error, same /tmp, same 100% full tmpfs.
I looked in /tmp and most of the files was created with my username.
I deleted those files and gallery-dl started working fine.
After one round of gallery-dl work, the /tmp was 87% full.

I don't know why it's happening, I just know it's a problem.

@mikf
Copy link
Owner

mikf commented Dec 21, 2024

Sounds like you are using a standalone binary, and PyInstaller is not properly cleaning up its extracted files. I don't know how to fix this, but it is not gallery-dl itself that is cluttering your /tmp directory. Given that it's just /tmp, you could probably just use rm -r /tmp/* to delete it all manually.

Consider installing gallery-dl with pip (in a venv if necessary) or with pipx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants