"Failed to create swap, sorry!"

Not a root user, but the root user. Your username is “root” right?

Or perhaps swap exists already and is not enough. It’s swap configured?

The giveaway in the screen shot is that dd was able to create a file named “/swapfile”, which being at the root of the filesystem, is an almost certain “root user” activity.

A manual run of swapon -v /swapfile will probably provide clues as to the problem. I’m guessing filesystem, but I don’t know for sure. The manpage for swapon notes that btrfs will block swap files.

@pain: please try these two things and let us know the results:

mount | grep ^/
swapon -v /swapfile

yes username is root, well after a reinstall and server upgrade it worked, but im now facing new errors,

thanks for your help, i had it resolved by doing reinstall. but now im facing new problems

The docker0 thing is either Docker not installed or Docker not running. The first one is fixed by following the Docker install instructions that are part of the Discourse install. The second is usually fixed with a reboot or some obscure commands you are going to forget as soon as you type them. :smile:

You’re not on a fully-virtualised system. Use a real VM and you’ll be fine.

1 Like

youre right, its not starting

friend already bought it from time4vps, idk what to do about that

Go back to your friend, tell 'em they screwed up and bought the wrong thing.


i’d love some help with the same issue. Here’s a screenshot:

i’m logged in as root. My server is running CentOS Linux 7.4.1708 with 2GB of RAM.

Here’s what i get when i punch in swapon -v /swapfile:

swapon: /swapfile: found swap signature: version 1, page-size 4, same byte order
swapon: /swapfile: pagesize=4096, swapsize=2147483648, devsize=2147483648
swapon: /swapfile: swapon failed: Operation not permitted

Is Discourse only available (advisable) on a cloud server? Mine is a web server. i want to integrate Discourse with a Wordpress install, so it made sense to me to install it alongside WP on my server. No?

Thanks for your help!

You’re running on a pseudo-virtual machine, which doesn’t permit you to create swap. You might be able to wedge Docker into that arrangement, but I wouldn’t count on it, and you may run into other problems that nobody is going to be able to help you with. I’d recommend finding a provider that will give you a real VPS.




(if a “real vps” is gonna cost me more than $55/mo, i don’t know if i can handle it)

You can get a DigitalOcean droplet capable of running Discourse (and Wordpress) for $10-$20/month. Media Temple are lying to you (and ripping you off) by claiming they’re giving you a VPS. If you can’t setup swap, it’s not a VPS.


Do i take them to task on that? Give me the words i need to yell at them with.

“Please cancel my account”.


My trouble is that i’m a creative sort looking to install tools to support a new venture. i’m not a Linux monkey. i don’t know how to admin a server, and i’m lost (or better yet, frustrated) without a gui (or… better still… it’s far faster for me to click a button than to type something into a command prompt). i despise the command line. So i need tools like Plesk. If something goes wrong with a Digital Ocean cloud server, i’ll have absolutely no idea how to cope. i only barely understand what’s going on with this swapfile situation.

You may want to avail yourself of a service to assist in the setup and configuration of Discourse, then, such as https://literatecomputing.com, or a fully-managed hosted service from https://discourse.org/buy or https://www.discoursehosting.com.


Truly wondering if Discourse is worth all the trouble of finding a new host and migrating all of my existing sites.

The reason Discourse appeals to me is that it looks right at home on mobile, and the badge system is crucial to what i’m doing. A few years ago, i used phpBB, and was just run off my feet swatting away all the spammers and hacking attempts. It was a real nightmare.

My ideal solution is a board system that can sit reasonably seamlessly next to my site’s Wordpress install, and one where i can kind of piggyback/highjack the user info to store other database variables. i want to combine board involvement with a sort of a game on my site, if that makes sense?

You don’t need to run everything on one server. Discourse runs Just Fine on a server separate from your Wordpress install, and we’ve got a multitude of hosted customers doing just that.