In trouble to set up discourse

AI-generated summary

A user is struggling to set up Discourse on a Digital Ocean Ubuntu 16.04.4 x64 server, encountering multiple errors during the installation process, including missing commands like free, syntax errors in scripts, and issues with Docker and configuration files. The user is following the official cloud installation guide but faces problems with the discourse-setup script, such as failed SMTP configuration changes and Docker-related errors. Another user, codinghorror, asks for clarification on the server setup, confirming whether the installation is being done directly on the Digital Ocean server and if a standard Ubuntu image was used without additional modifications.

I am in trouble to set up discourse now.
Anyone have a good idea?

I’m following this INSTALL-cloud.md

./discourse-setup

./discourse-setup: line 93: free: command not found
./discourse-setup: line 116: [: : integer expression expected
./discourse-setup: line 125: [: : integer expression expected
The configuration file containers/app.yml already exists!

. . . reconfiguring . . .

Saving old file as app.yml.2018-06-24-170535.bak
Stopping existing container in 5 seconds or Control-C to cancel.
stat: /var/lib/docker: stat: No such file or directory
./launcher: line 204: /1024**3 < 5: syntax error: operand expected (error token is "/1024**3 < 5")
app was not started !

./discourse-setup: line 93: free: command not found
Found GB of memory and 4 physical CPU cores
./discourse-setup: line 197: [: : integer expression expected
./discourse-setup: line 201: [: : integer expression expected
./discourse-setup: line 205: 256 * : syntax error: operand expected (error token is " ")

Hostname      : xxx.websitename.com
Email         : admin@websitename.com,admin2@websitename.com
SMTP address  : smtp.mailgun.org
SMTP port     : 587
SMTP username : postmaster@xxx.websitename.com
SMTP password : ---------------------

ENTER to continue, 'n' to try again, Ctrl+C to exit: 
DISCOURSE_SMTP_PORT change failed.
DISCOURSE_SMTP_USER_NAME change failed.
DISCOURSE_SMTP_PASSWORD change failed.
web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?
web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?

Unfortunately, there was an error changing 

-d This may happen if you have made unexpected changes.

On what server? Digital Ocean? What OS and version? It looks like your Linux / UNIX is not compatible with our setup script.

hi @codinghorror
I’m using Digital Ocean, and selected Ubuntu 16.04.4 x64 at Digital Ocean.
My computer is macOS.

Are you installing on the Digital Ocean server? Did you use a basic Ubuntu 16 x64 LTS image, no “extras” or anything else?