How to cleanup disk space on openshift when 'rhc tidy' has not enough disk space?

感情迁移 提交于 2019-12-04 08:53:59

Delete whatever you can easily restore from a backup or from a package, like e.g. the JDK. That should give you enough space to do cleanup. Then restore whatever you deleted.

Or pay for more storage. :-)

As mentioned above you need to ssh to your cartridge (you will find code in web console - next to delete button) and then cd to app-root/logs and then run du -sh to check the dimension of the current dir, in my case the the file php-error.log was 542M. You can safe delete it with rm -f php-error.log

ssh to the application directory using ssh clients (i use putty) or command prompt then try to find out unnecessary files and delete them.

In my case deleting the content of app-log folder worked like charm.

Give attention to temp and log folders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!