502 - Bad Gateway Consul installation on Ubuntu

Hi folks,

I’m trying to get Consul installed on an Ubuntu 16.04 Remote-Server using the installer. I followed the instruction in the readme. After running the ansible playbook, I get the following notification:

TASK [rails : Precompile assets] ******************************************************************************
fatal: [remot-server-domain]: FAILED! => changed=true 
  cmd: source /home/deploy/.rvm/scripts/rvm && bin/rake assets:precompile RAILS_ENV=production
  delta: '0:02:30.299451'
  end: '2020-04-10 13:21:13.897678'
  msg: non-zero return code
  rc: 1
  start: '2020-04-10 13:18:43.598227'
  stderr: |-
    I, [2020-04-10T13:19:46.895341 #14400]  INFO -- : Writing /home/deploy/consul/releases/20200410092710/public/assets/ckeditor/ckeditor-4275249451c73c9f926bb27d634f99e1441087224d69810330680103afe5376d.js
    I, [2020-04-10T13:19:46.896450 #14400]  INFO -- : Writing /home/deploy/consul/releases/20200410092710/public/assets/ckeditor/ckeditor-4275249451c73c9f926bb27d634f99e1441087224d69810330680103afe5376d.js.gz
    I, [2020-04-10T13:19:47.521747 #14400]  INFO -- : Writing /home/deploy/consul/releases/20200410092710/public/assets/ckeditor/build-config-13d73122a97de808d1c3b4fa4b569a7128e31c25c6057ddb38d930a80ad3d0a1.js
    I, [2020-04-10T13:19:47.522026 #14400]  INFO -- : Writing /home/deploy/consul/releases/20200410092710/public/assets/ckeditor/build-config-13d73122a97de808d1c3b4fa4b569a7128e31c25c6057ddb38d930a80ad3d0a1.js.gz
    I, [2020-04-10T13:19:50.091790 #14400]  INFO -- : Writing /home/deploy/consul/releases/20200410092710/public/assets/ckeditor/contents-515fed389a5099a3d2af1d1c5726049af2addad67e930d2f71e0e2b60dd16b7a.css
    I, [2020-04-10T13:19:50.092322 #14400]  INFO -- : Writing /home/deploy/consul/releases/20200410092710/public/assets/ckeditor/contents-515fed389a5099a3d2af1d1c5726049af2addad67e930d2f71e0e2b60dd16b7a.css.gz
    I, [2020-04-10T13:19:51.182320 #14400]  INFO -- : Writing /home/deploy/consul/releases/20200410092710/public/assets/ckeditor/plugins/balloonpanel/skins/moono-lisa/balloonpanel-ceda040a6cb99a94c26c7b276883b044d868f695af10842012be3755a8a0690b.css
    I, 

[...]

3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
    /home/deploy/consul/shared/bundle/ruby/2.4.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
    /home/deploy/consul/shared/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
    Tasks: TOP => assets:precompile
    (See full trace by running task with --trace)
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

PLAY RECAP ****************************************************************************************************
remote-server-domain                 : ok=58   changed=11   unreachable=0    failed=1    skipped=24   rescued=0    ignored=0       

To be honest, I have no clue where the mistake is. I hope you guys can help me.
BTW: On my Server I get 502 - Bad Gateway - Error
My local machine, from where I start the installer, is also an Ubuntu-System.

@konstantin That’s strange; I’ve never seen this error before :thinking:.

I see there’s a [...] in the logs. Just in case, could you provide the messages shown there?

If they’re not relevant, the last line before the error references balloonpanel. Today we’ve disabled this plugin. Can you check if you still get this error using the latest version? To do so, in roles/folder_structure/tasks/main.yml replace 1.1.0 with master and run the playbook again.

Hi,

meanwhile I think it’s a hardware-problem. I’ll try it on another server asap. Maybe it’ll work then.

Thanks for your reply.