Puppet 服务器未启动

Puppet 服务器未启动

需要一些小问题的帮助 -

Puppet 服务器:

# puppet --version
6.15.0

puppetserver --version
puppetserver version: 6.11.0




openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

地位 :

systemctl status puppetserver.service

puppetserver.service - puppetserver Service
   Loaded: loaded (/usr/lib/systemd/system/puppetserver.service; enabled; vendor preset: disabled)
   Active: activating (start) since Thu 2020-05-07 15:08:50 PDT; 8s ago
  Control: 28858 (bash)
    Tasks: 33 (limit: 4915)
   CGroup: /system.slice/puppetserver.service
           ├─28858 bash /opt/puppetlabs/server/apps/puppetserver/cli/apps/start
           ├─28865 /usr/bin/java -Xms2G -Xmx4G -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger -XX:OnOutOfMemoryError=kill -9 %p -cp /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar:/opt/puppe...
           └─28915 sleep 1

5月07日 15:08:50 xxxx systemd[1]: 正在启动 puppetserver 服务...

日志 :

/var/log/puppetlabs/puppetserver

..
Caused by: org.jruby.exceptions.RuntimeError: (Error) Cannot determine basic system flavour

..
2020-05-07T15:10:10.774-07:00 ERROR [async-dispatch-2] [p.t.internal] Error during service init!!!

..
Caused by: org.jruby.embed.EvalFailedException: (Error) Cannot determine basic system flavour

几个小时内它运行良好

尝试服务反弹

尝试过(在 /etc/sysconfig/puppetserver 中)- 提供更多内存

JAVA_ARGS="-Xms2G -Xmx4G -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger"

请建议

答案1

事实证明,以下文件中的临时目录参数不知何故被删除了,即“-Djava.io.tmpdir=/opt/puppetlabs/temp”

grep -i temp /etc/sysconfig/puppetserver JAVA_ARGS="-Xms1G -Xmx1G -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger -Djava.io.tmpdir=/opt/puppetlabs/temp"

重新添加

-Djava.io.tmpdir=/opt/puppetlabs/temp”到上述文件并重新启动

https://puppet.com/docs/puppetserver/latest/known_issues.html#tmp-directory-mounted-noexec

相关内容