# Kcptun on server and No Space for Discourse now

**URL:** <https://meta.discourse.org/t/kcptun-on-server-and-no-space-for-discourse-now/67481>\
**Category:** Self-hosting\
**Created:** [4 أغسطس 2017، 9:22م UTC](https://meta.discourse.org/t/kcptun-on-server-and-no-space-for-discourse-now/67481 "2017-08-04T21:22:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)\
**Post date:** [4 أغسطس 2017، 9:22م UTC](https://meta.discourse.org/t/kcptun-on-server-and-no-space-for-discourse-now/67481/1 "2017-08-04T21:22:33Z")

</div>

Hi,

I’m from China, and as the VPN was stoped by the government. So I build up the shadowsocks and Kcptun service on my server to help me surf the blocked websited.

But a few months passed I found my server space all occupied, don’t know why.

I tried to clean up enough space for my Discourse, but found it quite hard.

1. My server is a 20G Diskspace KVM with Ubuntu 14.04

2. I checked my docker images, and I think it is already minimal

```plaintext
# docker images

REPOSITORY TAG IMAGE ID CREATED SIZE
discourse/base 2.0.20170728 184b98f3b1d2 7 days ago 1.81GB
rethinkdb latest be24926bde9a 6 weeks ago 183MB
samsaffron/docker-gc latest 54ca424ca8d6 21 months ago 57.7MB
microbox/etcd latest 6aef84b9ec5a 24 months ago 17.9MB

```

1. I checked my file system, found it almost full

```plaintext

/var/discourse# df -h

Filesystem Size Used Avail Use% Mounted on
udev 487M 4.0K 487M 1% /dev
tmpfs 100M 1.1M 99M 2% /run
/dev/vda1 20G 16G 3.2G 83% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 497M 300K 497M 1% /run/shm
none 100M 0 100M 0% /run/user
none 20G 16G 3.2G 83% /var/lib/docker/aufs/mnt/7c578ba7383b1be9d612c1ffe25c6a9850656194cb789a24d0a6d40177b7b28a
none 20G 16G 3.2G 83% /var/lib/docker/aufs/mnt/21dc2b95807397afafa9c7ceff8b45de217c210eb16c00ecfd5d39228b78763b
none 20G 16G 3.2G 83% /var/lib/docker/aufs/mnt/aab561dca2fec40e8c8d0dca9b27261e947f8e7cc4865fb8d11efd42584e631a
shm 64M 0 64M 0% /var/lib/docker/containers/18d7cc386a10ad7cc05123d9f8a4fe53279d2e625a30f169ad9a994be4e9f11a/shm
shm 64M 0 64M 0% /var/lib/docker/containers/ce0c1771844e3f2bda150db5cffe1f5af0950e7e00ba1060e01b2b671d7f055c/shm
shm 64M 0 64M 0% /var/lib/docker/containers/abde6e9e4a25482ee1f60033e124691c88046369449734139e431c538c86fc52/shm

```

1. I checked the biggest file/folder and found

```plaintext

/var/discourse# du -sk * | sort -nr | head -10
9338104 shared
172 image
112 templates
24 samples
20 launcher
20 discourse-setup
12 scripts
12 README.md
12 containers
4 Vagrantfile

```

The Kcptun is from [https://github.com/xtaci/kcptun](https://github.com/xtaci/kcptun)

Can any one help me?

---

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [4 أغسطس 2017، 9:57م UTC](https://meta.discourse.org/t/kcptun-on-server-and-no-space-for-discourse-now/67481/2 "2017-08-04T21:57:36Z")

</div>

What’s inside `/var/discourse/shared`? You stopped the story half way through!

---

<div class="post-metadata">

**Author:** ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)\
**Post date:** [5 أغسطس 2017، 1:41ص UTC](https://meta.discourse.org/t/kcptun-on-server-and-no-space-for-discourse-now/67481/3 "2017-08-05T01:41:37Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/5/f/5f211025f3f8b528d854347704d5d91d2dd376f9.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/5/e5f8377ddb8100ce8f88b1875be637e4a0f73cd8.png)

Well, I don’t think there being sth wrong with the folder /shared, I think it must be cache or other files which was caused by Kcptun. You can see the docker images, and the images are not very big.

While at the same time, I don’t quite know how to clear the system disk. Could you please give me some advice?

* * *

Hi, I found it so big in the backup folder

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/4/0459e5b7d55f45110e7b09c52b3011bfa02e5d59.png)

What are these backup packages? Why are the owners belong to **kcptun** , does that mean I can delete one or two of them?

---

<div class="post-metadata">

**Author:** ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)\
**Post date:** [5 أغسطس 2017، 2:33ص UTC](https://meta.discourse.org/t/kcptun-on-server-and-no-space-for-discourse-now/67481/4 "2017-08-05T02:33:55Z")

</div>

Those look like uncompressed versions of the regular backup. The “owner” can be misleading on files things that are viewable inside and outside of the docker image. The system just looks up the name associated userid for the files. The user name will be different inside the docker image and outside.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [5 أغسطس 2017، 11:15ص UTC](https://meta.discourse.org/t/kcptun-on-server-and-no-space-for-discourse-now/67481/5 "2017-08-05T11:15:37Z")

</div>

You should delete all of them. If the compression step fails due to disk space, the uncompressed file remains. It’s a bug that I reported in the past couple weeks.

You probably want not to include attachments in the backups, which makes backups smaller.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [23 يوليو 2019، 8:06م UTC](https://meta.discourse.org/t/kcptun-on-server-and-no-space-for-discourse-now/67481/6 "2019-07-23T20:06:56Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [20 يناير 2023، 5:56م UTC](https://meta.discourse.org/t/kcptun-on-server-and-no-space-for-discourse-now/67481/7 "2023-01-20T17:56:10Z")

</div>



---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [20 يناير 2023، 8:13م UTC](https://meta.discourse.org/t/kcptun-on-server-and-no-space-for-discourse-now/67481/8 "2023-01-20T20:13:33Z")

</div>


