AAROC / discourse-sso

If you're going to deploy discourse, best you deploy it with federated login
Apache License 2.0
2 stars 2 forks source link

bootstrap hangs #3

Closed brucellino closed 6 years ago

brucellino commented 6 years ago

The task in launch.yml which bootstraps the app hangs in testing :

- name: bootstrap the app
  become: true
  raw: "{{ discourse_path }}/launcher bootstrap app"
brucellino commented 6 years ago

This looks like startup is aborting due to unacceptable variables and/or because services are conflicting with those in docker containers.

I, [2018-03-23T10:53:22.550125 #13]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2018-03-23T10:53:22.600361 #13]  INFO -- : 
I, [2018-03-23T10:53:22.600573 #13]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
brucellino commented 6 years ago

scratch the previous - looks this has been hit by others and depends on the storage type - https://meta.discourse.org/t/solved-bootstrap-fails-postgres-already-running/20041/4

Suggest solution is reboot, which is going to make this pretty hard to do in testing, but at least it works.