当我第二次登录到我的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.
有没有发现问题的方法?
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的支持。