Error message during discourse installation

Hi,
With @ljf
during the YNH camp 2019.

https://paste.yunohost.org/raw/uxodojunim

Thank you, José

Thanks for this log, we have understand the issue.
You can fix it by adding manually some swapfile if you want. Your UX tests will be very precious thanks a lot.

Sorry to post after the soluce was find, but I have same error this morning. And i was wondering how can i add swap. And how many i must add to work ?
I was believe Swap is same thing like RAM.

Thank for your help :slight_smile:
Guillaume

Bonjour,
Ce lien t’aidera peut-être !
Maybe this link will help you.

Cela à l’air assez délicat à réaliser, je vais lire cela précautionneusement.
Merci :slight_smile:

Personnellement, sur mes ordinosaures, je crée une partition de swap à l’installation. Pour la taille, je fais ça au feeling (actuellement : 2Go de ram-2Go de swap), mais je ne fait rien tourner de très gourmand.
Sinon existe le fichier Swap, comme expliqué dans l’article.
Je n’ai pas installé Discourse, mais si tu a un ordinateur récent avec beaucoup de RAM il s’agit peut-être que d’un pré-requis de “forme” pour l’installation.
Que cela ne t’empêche pas de prendre toutes les précautions pour le bon fonctionnement de ton instance.

Bonjour et merci de ces retours.

A propos de la mémoire RAM pour Discourse, je note dans Hardware requirements:

  • modern single core CPU, dual core recommended
  • 1 GB RAM minimum (with swap)
  • 64 bit Linux compatible with Docker
  • 10 GB disk space minimum

avec mon mon VPS SSD 2 :

  • Processor: 1 vCore
  • **RAM: 4 GiB ** (que j’ai pris pour Mastodon (qui proposait aussi une solution en swap)
  • Storage: 40 GiB

Faut-il comprendre dans le commentaire : “(with swap)” que le swap est obligatoire?

Merci d’un retour avant une manip qui pourrait casser ma config :slight_smile:

Pour mémoire, le message d’erreur :
“/etc/nginx/conf.d/bacasable.eu.d/discourse.conf wasn’t deleted because it doesn’t exist.”

Merci de votre temps.
Amicalement, José

----------- English ----------------------
Thank you for this feedback.
I have aVPS with 4GB RAM configuration and only one 1 GB required by Discourse.
I noted the mention in hardware requirement: (with swap).

Does that mean swap is mandatory, whatever the memory size?

Thank you for your feedback, José

Je ne suis pas un spécialiste, mais ça ne m’a pas l’air très clair…


Quoique !

Hi @anonyme18
Thank you for this feedback as I was about to send a suggestion: “Please, implement a function which creates swap file” :slight_smile:

Hum, it seems possible to add a swap on an OVH VPS:

@ljf thank you if you can bring us some lights :slight_smile:
and confirm automatic swap implementation with YNH.

José

Hi @ljf
seems a quite tough job!!!

José

Hi,
Considering to install Flarum instead of Discourse as forum,
I found this on the Flarum Github page about swap:
Signed @bimboboumbo

### `Low memory` errors

A swapfile will enable your system to extend its limited memory through its disk capacity. The following commands will create a 1 GB swapfile.

```
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024000
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
```

Then add this line in `/etc/fstab` :

```
/swapfile none swap sw 0 0
```

Reboot the system and try the installation again.

This procedure makes easy the swap file installation! No? :slight_smile:

Thank for feedback (from an expert on this topic)

Bonjour,

nouvel utilisateur Yunohost mais utilisateur usuel de Debian, je tente l’install de discourse sur un VPS 8 core + 16GB de RAM + 50GB SSD. Et effectivement, j’ai une erreur en raison d’un problème de SWAP dont je n’ai à priori pas besoin vu la config de la machine…

De plus je lis çà :

Note : Discourse requires a swap file if you are using 1 GB of RAM. Although swap is generally recommended for systems utilizing traditional spinning hard drives, using swap with SSDs can cause issues with hardware degradation over time. Due to this consideration, we do not recommend enabling swap on DigitalOcean or any other provider that utilizes SSD storage. Doing so can impact the reliability of the underlying hardware for you and your neighbors. Hence, we recommend a minimum of 2 GB of RAM to run Discourse on a DigitalOcean Droplet.

ici : How To Install Discourse on Ubuntu 16.04 | DigitalOcean

Il n’y pas moyen de contourner cette nécessité d’un swap ?

Merci

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.