title: Why is my Google Cloud instance running out of free space?
body: <p>I'm having the same problem with 2 different instances in <strong>Google Cloud</strong> within 1 day. The instance crashes and in the logs the message: &quot;<strong>No space left on device</strong>. gpasswd: cannot lock /etc/group; try again later.&quot; appears. It is a <strong>OpenLitespeed-Wordpress</strong> instance from the <strong>Marketplace</strong>.</p>
  <p>SSH crashes and with the '<strong>Serial port console</strong>' I only spot errors telling there is no space left on the device. The first thing I do is adding 10Gb on the disk, enter SSH and seeing this with '<strong>df -h</strong>':
  <a href="https://i.stack.imgur.com/kxJLR.png" rel="nofollow noreferrer">df -h command Ubuntu</a></p>
  <p>After that I thought something is wrong with the webserver but after installing <strong>NCDU</strong>, running this on the root, I receive this:
  <a href="https://i.stack.imgur.com/sAcsx.png" rel="nofollow noreferrer">NCDU result root</a></p>
  <p>I don't understand it. After a few hours running idle the server fills up the disk with untraceable data.</p>
  <p>CPU and Disk graphs from the monitoring: <a href="https://i.stack.imgur.com/CeBrL.png" rel="nofollow noreferrer">DISK</a>, <a href="https://i.stack.imgur.com/3QsNd.png" rel="nofollow noreferrer">CPU</a></p>
  <p>Thanks in advance. Thanks</p>
  <p><strong>Update 1:</strong>
  I ran <code>sudo du -sch /*</code> and narrowed it down to <code>sudo du -sch /usr/local/lsws/*</code> where I get this result:</p>
  <pre><code>300K    /usr/local/lsws/Example
  36K     /usr/local/lsws/GPL.txt
  4.0K    /usr/local/lsws/PLAT
  4.0K    /usr/local/lsws/PLAT.dpkg
  4.0K    /usr/local/lsws/VERSION
  812K    /usr/local/lsws/add-ons
  9.1M    /usr/local/lsws/admin
  4.0K    /usr/local/lsws/adminpasswd
  12K     /usr/local/lsws/autoupdate
  4.0K    /usr/local/lsws/backup
  7.7M    /usr/local/lsws/bin
  568K    /usr/local/lsws/cachedata
  4.0K    /usr/local/lsws/cgid
  188K    /usr/local/lsws/conf
  3.2M    /usr/local/lsws/docs
  4.7M    /usr/local/lsws/fcgi-bin
  4.0K    /usr/local/lsws/gdata
  4.0K    /usr/local/lsws/lib
  43G     /usr/local/lsws/logs
  116K    /usr/local/lsws/lsphp73
  45M     /usr/local/lsws/lsphp74
  50M     /usr/local/lsws/lsphp80
  5.2M    /usr/local/lsws/lsrecaptcha
  16K     /usr/local/lsws/modules
  4.0K    /usr/local/lsws/password
  4.0K    /usr/local/lsws/php
  4.0K    /usr/local/lsws/phpbuild
  164K    /usr/local/lsws/share
  12K     /usr/local/lsws/tmp
  43G     total
  </code></pre>
  <p>So the Openlitespeed logs are HUGE... Is this a bug or a configuration problem? I never editted configurations settings from the original instance.</p>
  <p><strong>Update 2:</strong>
  The &quot;Log Level&quot; was set to &quot;Debug&quot; and is now changed to &quot;Error&quot;. I hope this helps.</p>
  <p><strong>Update 3:</strong>
  The 'logs' directory kept increasing in size so I changed the permissions to read-only.</p>
  <p><strong>Update 4 - solution -:</strong>
  The 'stderr Log' was enabled and a bug in a plugin caused the huge log files. Problem solved by disabeling this feature. Besides that I've changed the log directory to an external disk to prevent server failures in de future.</p>