Ich befolge den offiziellen Installationsleitfaden und erhalte beim Ausführen dieses Befehls eine Fehlermeldung.
./discourse-setup
Folgende Fehlermeldung wird angezeigt:
root@server:/var/discourse# ./discourse-setup
WARNING: Discourse requires at least 2GB of swap when running with 2GB of RAM
or less. This system does not appear to have sufficient swap space.
Without sufficient swap space, your site may not work properly, and future
upgrades of Discourse may not complete successfully.
Ctrl+C to exit or wait 5 seconds to have a 2GB swapfile created.
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?
Ich verfüge über einen VPS mit 2 GB RAM und 50 GB SSD und habe zudem eine Subdomain für Discourse eingerichtet.
Nun, wenn ich raten müsste, würde ich darauf wetten, dass es kein KVM ist, da es einfach teurer ist. Aber ich denke, es schadet nicht, ihr Team zu fragen, da in ihren FAQs die Virtualisierungstechnologie überhaupt nicht erwähnt wird.
Du sagst, dass die Discourse-Installation fehlgeschlagen ist, weil keine Swap-Datei erstellt werden konnte? Kannst du überhaupt eine Swap-Datei erstellen? Oder lässt es deine VM nicht zu?