Discourse not installing on Ubuntu


#1

Okay, so I’m installing Discourse on Ubuntu.

In PuTTY, after stating my hostname, admin email, etc. I received the following error:

(): did not find expected key while parsing a block mapping at line 40 column 3 -e LANG=en_US.UTF-8
YAML syntax error. Please check your containers/*.yml config files.

I inserted everything correctly, and my key for my SMTP is correct. Can someone help me?


#2

You should check the app.yml in a yaml validator : Best YAML Validator Online

Around ilne 40, it should look like this :

env:
  LANG: en_US.UTF-8
  DISCOURSE_DEFAULT_LOCALE: en

  ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  ## will be set automatically by bootstrap based on detected CPUs, or you can override

(Jay Pfaffman) #3

Did you run discourse-setup?

Did your smtp password have funny characters?


#4

How can I check the app.yml?


#5

To access your app.yml type these commands:

cd /var/discourse
nano containers/app.yml

Or download it on your ftp in the folder : /var/discourse/containers


(Jay Pfaffman) #6

It’s likely easiest to delete app.yml and run discourse-setup.


#7

Checked the yml. It says exactly what its supposed to say at around line 40.


#8

Deleting it actually works?


(Jay Pfaffman) #9

Unless you have some custom needs, deleting app.yml and running discourse-setup is the best thing to do.