Haproxy problems after push
I have a problem migrating my single gear application to an scaled one. I have made two attempts, in the first one, after creating my new application and pushing my code I was able to see haproxy status page but no my application page.
After that I erased the new application and tried again. In this second attempt, after pushing my code I see a temporarily unavailable page if I enter my app url. I should say that my code push is a merge from my single app with its .openshift folder. Probably I have overwritten some crucial hook or something related to haproxy.
I have been digging into it and the only thing I can see is that haproxy daemon has a connection error. I can reproduce it if I run 'haproxy_ctld_daemon start', and the error log is:
/usr/libexec/openshift/cartridges/haproxy-1.4/info/bin/haproxy_ctld.rb:123:in `initialize': Connection refused - /var/lib/openshift/6026aa3410a0476e9a39589dee88fced/haproxy-1.4/run/stats (Errno::ECONNREFUSED) from /usr/libexec/openshift/cartridges/haproxy-1.4/info/bin/haproxy_ctld.rb:123:in `open' from /usr/libexec/openshift/cartridges/haproxy-1.4/info/bin/haproxy_ctld.rb:123:in `refresh' from /usr/libexec/openshift/cartridges/haproxy-1.4/info/bin/haproxy_ctld.rb:108:in `initialize' from /usr/libexec/openshift/cartridges/haproxy-1.4/info/bin/haproxy_ctld.rb:345:in `new' from /usr/libexec/openshift/cartridges/haproxy-1.4/info/bin/haproxy_ctld.rb:345:in `<top (required)>' from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `load' from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/application.rb:176:in `start_load' from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/application.rb:257:in `start' from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/controller.rb:69:in `run' from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons.rb:139:in `block in run' from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `call' from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons/cmdline.rb:105:in `catch_exceptions' from /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.0.10/lib/daemons.rb:138:in `run' from /usr/libexec/openshift/cartridges/embedded/haproxy-1.4/info/bin/haproxy_ctld_daemon.rb:22:in `<main>'
Before doing any push, scaled application works fine. I can see the openshift jboss welcome page.
Could anyone give me a hand on this? Thank you very much!