The user Denis_Didkovsky encountered issues rebuilding their Discourse container after following the official plugin installation guide, which involved adding a git clone command with sudo -E -u discourse. The rebuild failed with a permission error related to /root/.config/git/attributes and a syntax error in the app.yml file. Other users suggested removing the sudo -E -u discourse prefix and checking for YML formatting issues. pfaffman advised using ./discourse-setup to regenerate a clean app.yml without losing data. Denis_Didkovsky confirmed the issue was due to a YML syntax error and the incorrect use of sudo -E -u discourse, which was resolved by fixing the syntax and using a simpler git clone command.
I am following the install guide that published here as official Discourse plugin install guide. All plugins have a link to this guide. In my case it destroyed our install and we even can not recover it, rebuilt it even under initial yml settings.
I am pretty sure that we ran it under root. After following the instruction our install was killed and we can not rebuild it even under initial yml settings.
My best guess is that you inserted a tab or something else that makes the yml invalid.
The error is about the “echo” at the very end of the yml file, which suggests that there’s a formatting issue somewhere before that.
Did you save a copy of the file before you edited it, or have you attempted to edit it to restore it to what you think its state was before you edited it?
A thing you can try is to rename your app.yml, take note of the values (especially the SMTP stuff) and run ./discourse-setup again. That’ll give you a working app.yml.
this starts the forum.
Will running ./discourse-setup keep the existing forum data or I should backup first and restore it? Many thanks for your support