Logstash安装错误:无法获得唯一的系统GID(没有更多可用的GID)

时间:2016-06-14 16:27:55

标签: elasticsearch logstash

我正在尝试使用yum在red hat vm上安装logstash,我已经根据指南安装了logstash.repo文件并且我跑了

yum install logstash

但是我下载了所有内容后出现以下错误

...

logstash-2.3.2-1.noarch.rpm                              |  72 MB     00:52     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
groupadd: Can't get unique system GID (no more available GIDs)
useradd: group 'logstash' does not exist
error: %pre(logstash-1:2.3.2-1.noarch) scriptlet failed, exit status 6
Error in PREIN scriptlet in rpm package 1:logstash-2.3.2-1.noarch
error:   install: %pre scriptlet failed (2), skipping logstash-1:2.3.2-1
  Verifying  : 1:logstash-2.3.2-1.noarch                                    1/1 

Failed:
  logstash.noarch 1:2.3.2-1                                                     

Complete!

我无法找到有关此内容的更多信息。有什么建议吗?

2 个答案:

答案 0 :(得分:7)

groupadd通过 /etc/login.defs 文件确定常规群组的 gids

在我的centos 6盒子里。 /etc/login.defs 包含以下两行:

#
# Min/max values for automatic gid selection in groupadd
#
GID_MIN                   500
GID_MAX                 60000

对于系统帐户,请将这两行添加到 /etc/login.defs

# System accounts
SYS_GID_MIN               100
SYS_GID_MAX               499

答案 1 :(得分:1)

我更新了SYS_GID_MAX值,它对我有用。