I was trying the dataplane api on mesos and I am having this permission issue. Strange thing is that /tmp/haproxy, /etc/haproxy and /etc/haproxy/haproxy.cfg are all writable to the haproxy user.
{“code”:500,“message”:“40: open /tmp/haproxy/haproxy.cfg.7ed94ac3-bf68-4cbd-b811-58b076289c45: permission denied”}
[@ 8001ecb7-3381-4299-9fd6-6df63224137b]# ls -l etc/haproxy/
total 572
-rw-r--r-- 1 haproxy haproxy 44946 Feb 6 22:25 clouds.acl
-rw-r--r-- 1 haproxy haproxy 12461 Feb 6 22:25 haproxy.cfg
-rw-r--r-- 1 haproxy haproxy 215530 Feb 6 22:25 mail.acl
-rw-rw-r-- 1 haproxy root 65996 Feb 6 14:15 rdp.acl
-rw-rw-r-- 1 haproxy root 39 Feb 6 13:01 test.acl
-rw-r--r-- 1 haproxy haproxy 230675 Feb 6 22:25 web.acl
[@ 8001ecb7-3381-4299-9fd6-6df63224137b]# ls -l tmp/
total 0
drwxr-xr-x 2 haproxy root 6 Feb 6 22:31 haproxy
I assume the new haproxy.cfg is written to this /tmp/haproxy/ dir and then when it is valid, it is moved to the /etc/haproxy/ dir?
Is there a way to change this behaviour? Or something I can try?