Proxy HA代理无法启动-无法删除补充组

Proxy HA代理无法启动-无法删除补充组,proxy,configuration,config,haproxy,Proxy,Configuration,Config,Haproxy,我正在为我们的服务器设置HAProxy,在尝试启动它时遇到了问题。当我从/etc/init.d调用haproxy脚本时,它只告诉我它无法启动: Starting haproxy: [FAILED] 在运行命令haproxy-db-f/etc/haproxy/haproxy.cfg时,我得到以下结果: [WARNING] 023/125320 (15540) : parsing [/etc/haproxy/hapr

我正在为我们的服务器设置HAProxy,在尝试启动它时遇到了问题。当我从/etc/init.d调用haproxy脚本时,它只告诉我它无法启动:

Starting haproxy:                                          [FAILED]
在运行命令
haproxy-db-f/etc/haproxy/haproxy.cfg
时,我得到以下结果:

[WARNING] 023/125320 (15540) : parsing [/etc/haproxy/haproxy.cfg:19] : 'option httplog' not usable with frontend 'https' (needs 'mode http'). Falling back to 'option tcplog'.
[WARNING] 023/125320 (15540) : [haproxy.main()] Failed to drop supplementary groups. Using 'gid'/'group' without 'uid'/'user' is generally useless.
[ALERT] 023/125320 (15540) : [haproxy.main()] Cannot set gid 7058355.
选项httplog我可以很容易地修复,但我不知道
补充组
警告或
无法设置gid
警报来自何处。由于传统环境的需要,我使用的是haproxy的1.6.7版,并具有以下配置文件:

global
  log 127.0.0.1   local0
  log 127.0.0.1   local1 notice
  #log loghost    local0 info
  maxconn 4096
  #debug
  #quiet
  user <User name here.  Already checked that user exists on server>
  group <Group name here.  Already checked that group exists on server and that user is part of it>

defaults
  log     global
  mode    http
  retries 3
  timeout client 50s
  timeout connect 5s
  timeout server 50s
  option dontlognull
  option httplog
  option redispatch
  balance  roundrobin

# Set up application listeners here.

listen admin
  bind 127.0.0.1:22002
  mode http
  stats uri /


frontend http
  maxconn 2000
  bind 0.0.0.0:4000
  default_backend servers-http

frontend https
  mode tcp
  maxconn 2000
  bind 0.0.0.0:4001
  default_backend servers-https


backend servers-http
  server <Server Name Here> <IP Address Here>:4002 weight 1 maxconn 100 check

backend servers-https
  mode tcp
  server <Server Name Here> <IP Address Here>:4003 weight 1 maxconn 100 check
  option ssl-hello-chk

全局
日志127.0.0.1 local0
日志127.0.0.1本地1通知
#日志loghost local0信息
maxconn 4096
#调试
#安静的
使用者
团体
默认值
日志全局
模式http
重试3次
客户端超时50s
超时连接5s
超时服务器50s
选项dontlognull
选项httplog
选项重新修补
平衡循环赛
#在此处设置应用程序侦听器。
听管理
绑定127.0.0.1:22002
模式http
统计uri/
前端http
麦克斯康2000
绑定0.0.0.0:4000
默认后端服务器http
前端https
模式tcp
麦克斯康2000
绑定0.0.0.0:4001
默认后端服务器https
后端服务器http
服务器:4002重量1 maxconn 100支票
后端服务器https
模式tcp
服务器:4003重量1 maxconn 100支票
选项ssl hello chk

我真的不知道接下来该怎么办

我发现了这个问题。我需要将用户和所有者设置为root

global
  log 127.0.0.1   local0
  log 127.0.0.1   local1 notice
  #log loghost    local0 info
  maxconn 4096
  #debug
  #quiet
  user root
  group root

这是一个更好的回答这个问题的地方,我甚至不知道服务器之间有堆栈交换。不过我想出来了。