16 GB of box folders in /tmp
-
Our Cloudron has a huge 16 GB /tmp folder.
I see there are about 76 folders like this:
drwxr-xr-x 9 yellowtent yellowtent 4096 Aug 29 2023 box-929500886/
drwxr-xr-x 9 yellowtent yellowtent 4096 Aug 29 2023 box-940153435/
drwxr-xr-x 9 yellowtent yellowtent 4096 Aug 29 2023 box-954421980/And 73 more. All of them have that "Aug 29 2023" date.
When I run
service cloudron-updater status
it seems one of them is still used:● cloudron-updater.service - /tmp/box-243670221/scripts/installer.sh
Loaded: loaded (/run/systemd/transient/cloudron-updater.service; transient)
Transient: yes
Active: failed (Result: exit-code) since Mon 2024-05-13 03:34:36 UTC; 7h ago
Process: 11966 ExecStart=/tmp/box-243670221/scripts/installer.sh (code=exited, status=2)
Main PID: 11966 (code=exited, status=2)May 13 03:34:36 FV-Cloudron systemd[1]: Started /tmp/box-243670221/scripts/installer.sh.
May 13 03:34:36 FV-Cloudron systemd[1]: cloudron-updater.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 13 03:34:36 FV-Cloudron systemd[1]: cloudron-updater.service: Failed with result 'exit-code'.Can these /tmp/box-* folders be removed?
Thanks,
Martin -
@martinv good catch, this is a bug in the updater. When an update fails, I guess it doesn't clean up the old temp stuff. You can safely delete all those files.
It looks like the update is failing non-stop though. This is the reason why those files are accumulating. Can you check
journalctl -u cloudron-updater
? -
Hello girish,
I tried that command and got:
May 13 12:52:45 FV-Cloudron systemd[1]: Started /tmp/box-1040295979/scripts/installer.sh. May 13 12:52:45 FV-Cloudron systemd[1]: cloudron-updater.service: Main process exited, code=exited, status=2/INVALIDARGUMENT May 13 12:52:45 FV-Cloudron systemd[1]: cloudron-updater.service: Failed with result 'exit-code'.
I run it manually and I see it needs Ubuntu 20.04 or above. Too bad it did not show that error on Cloudron web interface, it would save us a lot of trouble.
Thanks,
Martin -
@martinv ah right. You have to upgrade to ubuntu 20 - https://docs.cloudron.io/guides/upgrade-ubuntu-20/
We did make a new release showing the error message but I think your Cloudron is locked on to the Clourdon version before that.
-
In the meantime, I have pushed a fix to cleanup old artifacts for the next release.
-
-