-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update files accumulating in /tmp #11566
Comments
@NinjaLikesCheez / @XYZJR / @KaiSforza if any of you could have a look at implementing this it'd be a great help, thanks. |
It might be a case of poor logic design. the UpdateService has a CleanupTempDir routine, Jackett/src/Jackett.Common/Services/UpdateService.cs Lines 172 to 200 in 6a213c6
which gets called daily from IUpdateService.cs
But its possible that the clean-up routine may only get called if CheckForUpdatesNow() does not have an update to perform, since if there is an update control is passed to the updater task which shuts the service down ... Don't know that this is the case for sure, I'm not a C# dev and have not delved deeply into the Jackett code flow, but by pointing this out it may provide a volunteer a place to start investigating ;-) |
@habovh Would be really useful to see the logs for this, if there are any. |
On my win10 Jackett just now, I clicked on my dashboard's check for updates button, and after the notification popped up that Jacket was updated, I clicked on the view log button and seen
So I can confirm that on windows at least, the CleanupTempDir() routine is called and works OK. So the problem may be restricted to linux platforms... perhaps it is a permissions issue? @habovh please check your log on the dashboard after an auto-update or a manual dashboard check-for-updates, and once the update is complete, view the log and check if you get the Deleting message as I do, and if there are any additional related error messages post them here. Thanks. |
Tested this on my Win10 VirtualBox ubuntu 18.04 image, and the log shows
and once again there are no JackettUpdate-* folders on my /tmp/ folder This is looking like a machine specific issue... is the OP's install of Jackett not using the standard builds or something? |
Tested this on my win10 VirtualBox BigSur OSx image, and all looks good there too. |
Thanks for the quick reaction guys! I might have found the issue, and it does not seem to be related to Jackett itself, but more a docs issue. I'm using At some point I've updated the service to use I think that the It's looking promising, but I'll know for sure after an actual update is available (tomorrow) to confirm. If it turns out this approach for working with systemd fixes my issue I'll recommend to update the wiki or might even do so myself if that's ok. |
yes, please update the wiki, some of those pages are woefully out of date. |
I don't think this will cause an issue with the files staying there. It could be that the updater runs, and something on your system is not allowing it to continue, but the systemd service still restarts it and it technically updates (something happens here) but the changes made to the systemd service file won't make that any better. |
if it's good for anything, i never had that problem with Ubuntu |
I updated the wiki page as discussed. |
@habovh Thank you. |
Environment
OS: Linux RN316 4.4.190.x86_64.1 #1 SMP Thu Oct 22 04:41:26 UTC 2020 x86_64 GNU/Linux
Description
Jackett does not delete files it stores in
/tmp
during the update process.This eventually leads to update files accumulating on the disk, and in my case actually filling the disk up to 100% if no action is taken.
On low-storage devices this can become an issue, and NAS while having a lot of space on their data mount points often have tiny internal storage. I think it is safe to assume a lot of people using Jackett actually run in onto their NAS directly.
I'd like to keep Jackett up to date, so I'm not keen on disabling updates, but I think it would be a good thing to remove the previously downloaded update files after a successful update.
Screenshots
Listing
/tmp
folder:Disk usage before removing
/tmp/JackettUpdate*
folders:Disk usage after removing
/tmp/JackettUpdate*
folders:The text was updated successfully, but these errors were encountered: