Hi Community and Staffs,
I'm new to AEM6.1 and just want to seek help from here. I am building packages recently using crxde package manager and curl commands, however, I have encountered an error that does not allow me to build packages anymore. I deleted the package that I've built everytime and now I am confused that I've encountered this error. Am I doing it right? How can I free up space and on what directory should I free up?
Can someone help me regarding with this matter? Any answer is really appreciated. Thank you!
yes you should check what you're about to delete..
It depends on what all applications are running on that m/c and using /tmp.
du -sh /tmp/*
or simply check with ls -la
Thank you, I will give a feedback a couple of hours later. I will let you know if I've been able to build packages again. Is this one of many options to consider or is there any other workaround to consider? Can you elaborate to me why this /tmp go full when its jusr holding a temporary file? Thank you so much
/tmp is the shared space for all apps running on that m/c hence in your case even 7.8 GB wasn't enough/was occupied by other apps and not available to AEM.
You may allocate a dedicated temp space to AEM via '-Djava.io.tmpdir=</path/to/tmpdir>' in the start script or otherwise clean /tmp as and when required/periodically.
I have deleted the packages that I have build before but still this error shows up
you don't have to delete/unmount /dev/xvda1, you just need to clear the files under it so that you can create more space that AEM would be able to utilize for building package.
from where did you delete the packages; /crx/packmgr or within /tmp (/dev/xvda1) ?
If you're not allowed to delete /tmp files, then its better to shutdown AEM and allocate a dedicated temp space and then reboot and create your package to AEM.
Potential problem here is that you are trying to build tooo big package. E.g. you selected too high parent node, that contains too much data underneath and tmp run's out of space. As tmp is used as temporary copy location in this implementation of crx/packmgr.
As @gauravb41175071 said what you are seeing here, is an error that happens when you do not have enough disk space on your device.
Imagine copying a large video file in a small disk with not enough space, you get error insufficient space.
Here, you are seeing similar.
Speak again to your IT guy's what is a good place to put temporary files, then when starting up your AEM instance during startup add paratemerts
-Djava.io.tmpdir with the path needed
There is a problem in your temporary folder location and not in packages stored in package manager.
You need to:
Deleting packages from package manager won't solve it. You are removing files from jcr by deleting not from temp place.