Error when trying to start discourse could not find expected while scanning a simple key

April 22, 2018 978 views
One-Click Install Apps Ubuntu 16.04

Below is the error I am getting. I've manually installed lighttpd, which removed that error and manually installed rails but I still get this. I haven't found much out there so i hope i'm not overlooking something simple. Thanks:

Please press enter when you are read to configure discourse.

Enter the email address to use for the Discourse admin account (ex. user@example.org) noreply@mg.thetines.org
Enter the domain or subdomain pointed to this Discourse instance (ex. forum.example.org): www.thetines.org
Enter the SMTP server to use to send email (ex: smtp.example.org): smtp.mailgun.org
SMTP Port (default 587):
SMTP Username (ex. user@example.org): postmaster@mg.thetines.org
SMTP Password:
Thanks! Your Discourse instance is now being configured....this can take a few minutes...

Synchronizing state of docker.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable docker

(<unknown>): could not find expected ':' while scanning a simple key at line 63 column 1 -e LANG=en_US.UTF-8
YAML syntax error. Please check your containers/*.yml config files.
Error response from daemon: No such container: rails

Discourse has now been configured. You may now finish setting up Discourse
by creating an account at:

5 Answers

Same problem... why publish a One-Click install that hasn't been tested properly and doesn't work?!?

  • See the link from @xinbenlv above. It is for Ubuntu 18.04.

    • I followed your link to the 30 minute install and that works fine on 18.04

      • Solved!

        Hopefully this will help anyone else who has this same issue. If you actually use a strong password it breaks the installation script. The One-Click droplet works fine as long as you avoid special characters in your password.

        The One-Click droplet also cannot be installed using https by default in the same way the 30 min install link can. Pretty sure it can be added later, I'm just not there yet.

        • I'd rather do the 30 min then.

        • Just finished the https setup... you can login to your shell and run /var/discourse/discourse-setup to automatically setup https. Not difficult at all but it does rebuild the container which takes some time (~10 minutes).

What process did you use to install Discourse?

  • I used the one click option with the $10/mo (at the time) droplet. This seems to be a common and still active issue.

I used the 1 click droplet setup on the $10 plan. After the droplet was created I logged in to root via SSH, entered email, domain and sftp info. Then I received the following:

Thanks!  Your Discourse instance is now being configured....this can take a few minutes...

Synchronizing state of docker.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable docker
insserv: warning: current start runlevel(s) (empty) of script `docker' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `docker' overrides LSB defaults (0 1 6).

(<unknown>): did not find expected node content while parsing a block node at line 62 column 28 -e LANG=en_US.UTF-8
YAML syntax error. Please check your containers/*.yml config files.
Error response from daemon: No such container: rails

Discourse has now been configured. You may now finish setting up Discourse
by creating an account at:
    http://159.203.77.174

Curling the IP shows not accepting connections:

curl -IL http://159.203.77.174
curl: (7) Failed to connect to 159.203.77.174 port 80: Connection refused

I too am having the same issue as described. Any solutions?

Have another answer? Share your knowledge.