# Could not communicate with Ghost or You don't have enough free space in /var/cache/apt/archives/

**URL:** <https://forum.ghost.org/t/could-not-communicate-with-ghost-or-you-dont-have-enough-free-space-in-var-cache-apt-archives/27734>\
**Category:** Developer help\
**Created:** [January 5, 2022, 6:14pm UTC](https://forum.ghost.org/t/could-not-communicate-with-ghost-or-you-dont-have-enough-free-space-in-var-cache-apt-archives/27734 "2022-01-05T18:14:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![andrii](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrii/32/11786_2.png) [@andrii](https://forum.ghost.org/u/andrii)\
**Post date:** [January 5, 2022, 9:17pm UTC](https://forum.ghost.org/t/could-not-communicate-with-ghost-or-you-dont-have-enough-free-space-in-var-cache-apt-archives/27734/3 "2022-01-05T21:17:07Z")

</div>

Ok, so the issue happened because there was a massive 5G log file, which blocked all the space.  
After deleting log file the issue was solved.  
Here is how to do it - use main user, not ghost-mgr.

```auto
cd /var/www/ghost/content/logs
rm https___YOURSITE_production.log

```

I also looked in this thread to fix logrogate configuration for self hosted Ghost installs.

> [@Lack of Log Rotation Configuration in Ghost Server Can Eventually Consume All Disk Space](https://forum.ghost.org/t/lack-of-log-rotation-configuration-in-ghost-server-can-eventually-consume-all-disk-space/20618):
>
> Hi everyone, Just wanted to share with the community something I noticed last week while I was [backing up my Ghost content’s folder with rsync](https://engineerworkshop.com/blog/backup-your-ghost-content-to-unraid/). rsync would hang as it moved the logs directory; looking further into it, my Ghost access log had grown to several gigabytes and was continuing to grow. Ultimately the cause is the lack of a logrotate configuration for the Ghost logs. After troubleshooting and testing my config this weekend, I am comfortable enough releasing it to the community. Hopefu…

---

_[View the full topic](https://forum.ghost.org/t/could-not-communicate-with-ghost-or-you-dont-have-enough-free-space-in-var-cache-apt-archives/27734)._
