Looks like the default config for haproxy is broken as the service fails to start:
-- Logs begin at Tue 2016-05-24 08:20:23 EEST, end at Tue 2016-05-24 08:44:06 EEST. --
May 24 08:44:06 DietPi haproxy[14414]: [WARNING] 144/084406 (14416) : config : missing timeouts for proxy 'stats'.
May 24 08:44:06 DietPi haproxy[14414]: | While not properly invalid, you will certainly encounter various problems
May 24 08:44:06 DietPi haproxy[14414]: | with such a configuration. To fix this, please ensure that all following
May 24 08:44:06 DietPi haproxy[14414]: | timeouts are set to a non-zero value: 'client', 'connect', 'server'.
May 24 08:44:06 DietPi haproxy[14414]: [WARNING] 144/084406 (14416) : config : 'stats' statement ignored for proxy 'stats' as it requires HTTP
May 24 08:44:06 DietPi haproxy[14414]: [ALERT] 144/084406 (14416) : Fatal errors found in configuration.
May 24 08:44:06 DietPi systemd[1]: haproxy.service: control process exited, code=exited status=2
May 24 08:44:06 DietPi systemd[1]: Failed to start LSB: fast and reliable load balancing reverse proxy.
-- Subject: Unit haproxy.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit haproxy.service has failed.
-- The result is failed.
May 24 08:44:06 DietPi systemd[1]: Unit haproxy.service entered failed state.
May 24 08:44:06 DietPi haproxy[14414]: failed!
Running on Odroid C1/latest dietpi.
It would appear that the line causing issues is this:
listen stats _:1338
[ALERT] 144/220546 (12162) : parsing [/etc/haproxy/haproxy.cfg:60] : 'listen' cannot handle unexpected argument '_:1338'.
Looks like a haproxy backwards compat issue:
http://www.serverphorums.com/read.php?10,1326393
needed to change that line to:
listen stats
bind *:1338
Hey, @crazyquark -- which version which version were you running before (and currently)? Thanks!
Well, I found the code -- will check out, correct, and test before reporting to @Fourdee ....
#Admin web page
# listen stats *:1338
listen stats
bind *:1338
stats enable
stats uri /
Will keep all posted on top of issue #309
haproxy is now version 1.6.2
When I first started dietPi it updated my system to the latest DietPi version(from 115 to 118 I think).
Thanks, @crazyquark -- this will allow me to ensure a condition is set to check for haproxy < = > 1.6.2
This is the highest item on my backlog list and I will have a commit today for this.
Outdated ticket, making as closed. Please reopen if required.
Has this been fixed? I hit this same issue when I installed haproxy today using dietpi-software
I am running DietPi version 136
@attzonko
Thanks for letting us know. 馃憤
I'll take a look.
By the way the workaround suggested by @crazyquark on May 24 corrected the issue for me.
@attzonko
By the way the workaround suggested by @crazyquark on May 24 corrected the issue for me.
Yep, same for me. Excellent 馃憤
I'll update sourcecode for those changes.
Completed.
Most helpful comment
haproxy is now version 1.6.2
When I first started dietPi it updated my system to the latest DietPi version(from 115 to 118 I think).