<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>google cloud — LowEndSpirit</title>
        <link>https://lowendspirit.com/index.php?p=/</link>
        <pubDate>Thu, 04 Jun 2026 06:56:15 +0000</pubDate>
        <language>en</language>
            <description>google cloud — LowEndSpirit</description>
    <atom:link href="https://lowendspirit.com/index.php?p=/discussions/tagged/google-cloud/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Whoa! What Happened To All The Disk Space On My Google Cloud Platform Free Tier Debian VPS?</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/6473/whoa-what-happened-to-all-the-disk-space-on-my-google-cloud-platform-free-tier-debian-vps</link>
        <pubDate>Thu, 14 Sep 2023 04:37:03 +0000</pubDate>
        <category>LES Talk</category>
        <dc:creator>Not_Oles</dc:creator>
        <guid isPermaLink="false">6473@/index.php?p=/discussions</guid>
        <description><![CDATA[<h2>Introduction</h2>

<p>For over four years now I have been enjoying a <a rel="nofollow" href="https://cloud.google.com/free">Google Cloud Platform (GCP) Free Tier Debian VPS.</a> During this time, Debian's package system cache has grown to use more than half of the VPS's 10 GB of file storage space to cache .deb package files. This post explains the history and the use of this wonderful, free VPS (Thanks, Google!); shows the size of the package cache; and explains how to reclaim the large amount of disk space used for the cache.</p>

<h2>VPS Creation in 2019</h2>

<p>According to the <a rel="nofollow" href="https://cloud.google.com/cloud-console">Google Cloud Console,</a> my e2-micro instance was created on January 27, 2019. That was more than four and a half years ago!</p>

<p><img src="https://lowendspirit.com/uploads/editor/vc/0ji1h0vtk7mp.jpeg" alt="" title="" /></p>

<h2>Larger File System Size Possible Within Current GCP Free Tier Limits</h2>

<p>Looking at the current <a rel="nofollow" href="https://cloud.google.com/free/docs/free-cloud-features#free-tier-usage-limits">GCP Free Tier Resource Limits</a> suggests that the Compute Engine limit is "30 GB-months standard persistent disk." My VPS is only 10 GB, so maybe, when I need it, I could increase the file system size to add an additional 20 GB.</p>

<h2>VPS Use</h2>

<p>This GCP VPS has been in modest, but continuous, steady use throughout more than four years. It serves my tiny personal website, holds a few small backup files, and runs <a rel="nofollow" href="http://tinyproxy.github.io/">TinyProxy.</a> Tinyproxy works great for accessing certain websites in the US when I am in Mexico.</p>

<p>I log in to the VPS frequently. I wouldn't say every week for sure, but, if I am working on something, I log in many times in one week. Of course, to update the VPS's Debian operating system, I regularly run <code>apt-get update</code> and then <code>apt-get upgrade</code>.</p>

<h2>Running EOL Debian 10 Buster</h2>

<p>My GCP VPS is still running Debian 10 Buster <a rel="nofollow" href="https://endoflife.date/debian">(End of Life (EOL) a year ago, September 10, 2022),</a> which might be okay, because the <code>check-support-status</code> utility <a rel="nofollow" href="https://wiki.debian.org/LTS/Using#Check_for_unsupported_packages">doesn't list any installed packages</a> without Long Term Support (LTS).</p>

<pre><code>root@gc:~# man check-support-status
root@gc:~# check-support-status
root@gc:~# echo $?
0
root@gc:~# 
</code></pre>

<h2>Great VPS Uptime!</h2>

<p>Usually I run the <code>w</code> command when I log in. Here's what I saw today. 590 days of uptime isn't bad!</p>

<pre><code>root@gc:~# w
 20:43:01 up 590 days, 16:55,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
tom      pts/0    187.189.238.2    19:30    0.00s  0.08s  0.01s sshd: tom [priv]    
root@gc:~# 
</code></pre>

<h2>Low Free Disk Space</h2>

<p>One thing I have noticed is that free disk space on the VPS has been decreasing. Here is what free disk space looked like earlier today.</p>

<pre><code>root@gc:~# df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       9.8G  8.7G  673M  93% /
root@gc:~# 
</code></pre>

<p>The VPS image was set up without a swap partition. Since I might want to add more website or backup files, install additional utilities, or even add a swap file, I thought the remaining 673 MB might be a little small. I decided to take a look around and see if I could find a place or a few places where I could remove a big file that no longer was needed.</p>

<pre><code>root@gc:/# du -sh /home/tom /var/www
77M     /home/tom
67M     /var/www
root@gc:/# 
</code></pre>

<p>Hmm! It didn't look like my home directory or even my website files were too piggy! Looking some more, I was surprised to find that <code>/var</code> was using a lot of space!</p>

<pre><code>root@gc:/# du -sh /var
5.9G    /var
root@gc:/# 
</code></pre>

<p>Wow! "Lots of logs?" I wondered.</p>

<pre><code>root@gc:/# du -sh /var/*
1.2M    /var/backups
5.7G    /var/cache
156M    /var/lib
4.0K    /var/local
0       /var/lock
13M     /var/log
3.3M    /var/mail
4.0K    /var/opt
0       /var/run
8.7M    /var/spool
12K     /var/tmp
67M     /var/www
root@gc:/# 
</code></pre>

<p>What's using all that space in <code>/var/cache</code>?</p>

<pre><code>root@gc:/# du -sh /var/cache/*
108K    /var/cache/apparmor
5.7G    /var/cache/apt
3.8M    /var/cache/debconf
20K     /var/cache/ldconfig
2.5M    /var/cache/man
4.0K    /var/cache/private
root@gc:/# 
</code></pre>

<p>Oh! It's the package system! Four years of .deb files live there! 5.7 GB! Looking at the full output of the below command without the pipe to <code>wc</code>, it was instantly clear that all except the first five of the 346 output lines were .deb files. That's 341 .deb files! Together, the 341 cached .deb files used more than half of my VPS's disk space!</p>

<pre><code>root@gc:/# ls -l /var/cache/apt/* | wc
    346    3090   28173
root@gc:/# 
</code></pre>

<h2>About .deb Files</h2>

<p>Binary .deb files are packages containing binaries which are <a rel="nofollow" href="https://www.debian.org/doc/manuals/debian-handbook/packaging-system.da.html">"directly useable by <code>dpkg</code>."</a> Source .deb files <a rel="nofollow" href="https://www.debian.org/doc/manuals/debian-handbook/packaging-system.da.html">contain source code.</a></p>

<p>Luckily for small VPSes, after the system has been updated, the <a rel="nofollow" href="https://www.debian.org/doc/manuals/debian-faq/uptodate.en.html">.deb files may be removed.</a></p>

<h2>How To Reclaim Disk Space</h2>

<p>From <code>man apt-get</code>:</p>

<pre><code>       clean
           clean clears out the local repository of retrieved package files. It removes
           everything but the lock file from /var/cache/apt/archives/ and
           /var/cache/apt/archives/partial/.
</code></pre>

<p>After running <code>apt-get clean</code> the VPS got its empty disk space back! 6.4 GB available instead of 673 MB!</p>

<pre><code>root@gc:~# apt-get clean
root@gc:~# ls -l /var/cache/apt/*
total 4
-rw-r----- 1 root root    0 Jan 24  2019 lock
drwx------ 2 _apt root 4096 Sep 13 21:22 partial
root@gc:~# du -sh /var/cache/apt
64K     /var/cache/apt
root@gc:~# df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       9.8G  3.0G  6.4G  32% /
root@gc:~# 
</code></pre>

<h2>Disabling The Cache</h2>

<p>One possible way to prevent running out of disk space might be to disable the caching of .deb files. From <a rel="nofollow" href="https://manpages.debian.org/stretch/apt/apt.conf.5.en.html"><code>man 5 apt-conf</code>:</a></p>

<pre><code>DIRECTORIES

       [ . . . ]

       Dir::Cache contains locations pertaining to local cache information, such as the two
       package caches srcpkgcache and pkgcache as well as the location to place downloaded
       archives, Dir::Cache::archives. Generation of caches can be turned off by setting
       pkgcache or srcpkgcache to "".
</code></pre>

<p>Please see also this <a rel="nofollow" href="https://lists.debian.org/deity/2014/07/msg00000.html">old Bug #753531 from 2014,</a> which was very fun to read because it <em>almost</em> said <code>rm -rf /*</code>!</p>

<p>It seems possibly safer and generally less work all around to leave the .deb caching defaults as they are. It's easy to empty the cache once in awhile with <code>apt-get clean</code>.</p>

<h2>Conclusion</h2>

<p>For small Debian VPSes which have been in use a  long time, you might want to run <code>apt-get clean</code> to reclaim the large amount of disk space used by the apt cache.</p>
]]>
        </description>
    </item>
    <item>
        <title>Wordpress hosting by Elementor - @ 100 US $/ year</title>
        <link>https://lowendspirit.com/index.php?p=/discussion/3794/wordpress-hosting-by-elementor-100-us-year</link>
        <pubDate>Tue, 22 Feb 2022 23:20:16 +0000</pubDate>
        <category>WordPress</category>
        <dc:creator>vyas</dc:creator>
        <guid isPermaLink="false">3794@/index.php?p=/discussions</guid>
        <description><![CDATA[<p>Saw this on ProductHunt, Below are my thoughts and some points are summarized by a WP influencer in a FB group:<br />
     All based on the Google Cloud Platform<br />
    Sites are hosted in Belgium, but they use the Cloudflare CDN<br />
    Covers 100k monthly visits and 100 gigs of bandwidth (CDN should be excluded)<br />
    No email hosting<br />
    US $ $99 per year for 1 site, no discounts for more than one website<br />
    Not clear on the cost of overages</p>

<p>Woocommerce. Single site only (no multi)<br />
No clarity on GDPR- given the location</p>

<p>You know which site to visit :-)</p>
]]>
        </description>
    </item>
   </channel>
</rss>
