# Installation Error

**URL:** https://meta.discourse.org/t/installation-error/274937
**Category:** Self-hosting
**Created:** [August 13, 2023, 8:57am UTC](https://meta.discourse.org/t/installation-error/274937 "2023-08-13T08:57:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Wleksion](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wleksion/32/306986_2.png) [@Wleksion](https://meta.discourse.org/u/Wleksion)
#### Post date: [August 13, 2023, 8:57am UTC](https://meta.discourse.org/t/installation-error/274937/1 "2023-08-13T08:57:37Z")

</div>

```plaintext
install: cannot remove '/swapfile': Operation not permitted
fallocate: fallocate failed: Text file busy
mkswap: error: /swapfile is mounted; will not make swapspace
swapon: /swapfile: swapon failed: Device or resource busy
/swapfile swap swap auto 0 0
vm.swappiness = 10
Failed to create swap: are you root? Are you running on real hardware, or a fully virtualized server

```

I get such a problem during installation, how can I solve this problem? I don’t use vps, I use vds.

---

<div class="post-metadata">

### Author: ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)
#### Post date: [August 13, 2023, 9:43am UTC](https://meta.discourse.org/t/installation-error/274937/2 "2023-08-13T09:43:02Z")

</div>

What you get from

```plaintext
free
df -h

```

The install script has detected you have less than 2G of RAM and less than 2G of swap, and is trying to create a swapfile. According to [the source](https://github.com/discourse/discourse_docker/blob/main/discourse-setup#L193C1-L225C5), it doesn’t deal with the case where there is an existing swapfile. Probably you should remove the existing swapfile and try again. This might be enough:

```plaintext
swapoff /swapfile && rm /swapfile
free

```
