Puppet服务器为什么运行良好,但一段时间后失败?

问题描述 投票:0回答:1

当我第二次登录到我的VM(Ubuntu 18.04)时,显示错误:

# systemctl status puppetserver.service

puppetserver.service - puppetserver Service    Loaded: loaded
(/lib/systemd/system/puppetserver.service; enabled; vendor preset: enabled)

**Active**: failed (Result: exit-code) since Wed 2019-10-02 11:42:52 UTC; 2min 31s ago

Process: 23034 
ExecStart=/opt/puppetlabs/server/apps/puppetserver/bin/puppetserver
start (code=exited, status=1/FAILURE)

Oct 02 11:42:52 puppet-master systemd[1]: puppetserver.service:
Control process exited, code=exited status=1 Oct 02 11:42:52
puppet-master systemd[1]: puppetserver.service: Failed with result
'exit-code'. Oct 02 11:42:52 puppet-master systemd[1]: Failed to start
puppetserver Service. Oct 02 11:42:52 puppet-master systemd[1]:
puppetserver.service: Service hold-off time over, scheduling restart.
Oct 02 11:42:52 puppet-master systemd[1]: puppetserver.service:
Scheduled restart job, restart counter is at 5. Oct 02 11:42:52
puppet-master systemd[1]: Stopped puppetserver Service. Oct 02
11:42:52 puppet-master systemd[1]: puppetserver.service: Start request
repeated too quickly. Oct 02 11:42:52 puppet-master systemd[1]:
puppetserver.service: Failed with result 'exit-code'. Oct 02 11:42:52
puppet-master systemd[1]: Failed to start puppetserver Service.

有没有发现问题的方法?

puppet devops
1个回答
0
投票
要解决更多问题,可以运行:

journalctl -xe -u puppetserver

并且还要检查/var/log/puppetlabs/puppetserver/puppetserver.log文件以获取更多信息,但基于错误消息:

Start request repeated too quickly

似乎您没有耐心重新启动(可能需要几分钟的时间。)>

建议您最好重启:

systemctl restart puppet* systemctl restart puppet pxp-agent

以这种方式,服务管理所有puppet*服务之间的依赖关系。

注:

Server FaultStack Exchange的一部分(包括Stack Overflow)提供对managing information technology systems in a business environment的支持。
© www.soinside.com 2019 - 2024. All rights reserved.