当我第二次登录我的虚拟机(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.有没有办法找出问题所在?
发布于 2019-10-03 05:24:28
要排除更多故障,可以运行以下命令:
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 Fault是Stack Exchange (包括Stack Overflow)的一部分,提供对managing information technology systems in a business environment的支持。
https://stackoverflow.com/questions/58201096
复制相似问题