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!
Cleanup/Increase the temp directory space however you've configured it, either /tmp on linux/Mac or if you pass it via cmd line to AEM using
Thank you for your answer., can you elaborate on how can I cleanup the temp directory space? where can I find the /tmp? thank you
Check the AEM start script (bat/sh/command line/terminal)
Do you see any parameter like this one -Djava.io.tmpdir=</path/to/tmpdir>
If yes, then /path/to/tmpdir is the configured temp directory for your AEM instance.
Otherwise, on mac/linux - check the size of /tmp or delete everything under /tmp to create some space.
If you're using Win, then open '%temp%' in Run command and cleanup/delete files and create more space in temp directory.
Thank you for your quick response, is /tmp accessible via localhost:4502/crx/de? I am using linux
it returned this result:
Total size : 7.8gb
Used size : 7.7gb
Available size: 5.5mb
Mounted on : /
Am I doing it right? How can I clean up this? thank you so much
yes, you're fine. there is hardly any memory free in /tmp
rm -rf *
run 'rm' within /tmp only
I'm currently not in my machine anymore. Is it safe to rm rf tmp ? Can I have a chance to take a look inside the tmp folder before I do the procedure?
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.
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.