QubitProducts / bamboo

HAProxy auto configuration and auto service discovery for Mesos Marathon
Apache License 2.0
794 stars 215 forks source link

Failed to update HAProxy configuration #224

Closed stevenlee87 closed 7 years ago

stevenlee87 commented 7 years ago

bamboo version:0.2.21 marathon:1.3.2 system:CentOS Linux release 7.1.1503 (Core)

found issue: 2016/10/26 16:38:52 qzk.go:55: No further debouncing. Posting event 2016/10/26 16:38:57 Domain mapping: Stated changed 2016/10/26 16:38:57 Queuing an haproxy update. 2016/10/26 16:38:57 g2s: publish: write udp 127.0.0.1:34991->127.0.0.1:8125: write: connection refused 2016/10/26 16:38:57 Generating validation command 2016/10/26 16:38:57 Validating config 2016/10/26 16:38:57 Exec cmd: haproxy -c -f /tmp/bamboo924518783 2016/10/26 16:38:57 exit status 1 2016/10/26 16:38:57 Output: [ALERT] 299/163857 (7236) : parsing [/tmp/bamboo924518783:28] : error opening file </etc/haproxy/errors/400.http> for custom error message <400>. [ALERT] 299/163857 (7236) : parsing [/tmp/bamboo924518783:29] : error opening file </etc/haproxy/errors/403.http> for custom error message <403>. [ALERT] 299/163857 (7236) : parsing [/tmp/bamboo924518783:30] : error opening file </etc/haproxy/errors/408.http> for custom error message <408>. [ALERT] 299/163857 (7236) : parsing [/tmp/bamboo924518783:31] : error opening file </etc/haproxy/errors/500.http> for custom error message <500>. [ALERT] 299/163857 (7236) : parsing [/tmp/bamboo924518783:32] : error opening file </etc/haproxy/errors/502.http> for custom error message <502>. [ALERT] 299/163857 (7236) : parsing [/tmp/bamboo924518783:33] : error opening file </etc/haproxy/errors/503.http> for custom error message <503>. [ALERT] 299/163857 (7236) : parsing [/tmp/bamboo924518783:34] : error opening file </etc/haproxy/errors/504.http> for custom error message <504>. [ALERT] 299/163857 (7236) : Error(s) found in configuration file : /tmp/bamboo924518783 [ALERT] 299/163857 (7236) : Fatal errors found in configuration.

2016/10/26 16:38:57 Failed to update HAProxy configuration: exit status 1

stevenlee87 commented 7 years ago

This problem has solved.Due to not create the directory /run/haproxy/. Lead to cannot bind UNIX socket [/run/haproxy/admin.sock]