首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么puppet服务器运行正常,但在一段时间后出现故障?

为什么puppet服务器运行正常,但在一段时间后出现故障?
EN

Stack Overflow用户
提问于 2019-10-02 20:01:49
回答 1查看 365关注 0票数 0

当我第二次登录我的虚拟机(Ubuntu 18.04)时,它显示错误:

代码语言:javascript
复制
# 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.

有没有办法找出问题所在?

EN

回答 1

Stack Overflow用户

发布于 2019-10-03 05:24:28

要排除更多故障,可以运行以下命令:

代码语言:javascript
复制
journalctl -xe -u puppetserver

还可以查看/var/log/puppetlabs/puppetserver/puppetserver.log文件以获取更多信息,但请根据错误消息:

代码语言:javascript
复制
Start request repeated too quickly

您似乎没有耐心重新启动(因为它可能需要几分钟)。

我向你推荐最好的重启方法:

代码语言:javascript
复制
systemctl restart puppet*
systemctl restart puppet pxp-agent

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

注意:Server FaultStack Exchange (包括Stack Overflow)的一部分,提供对managing information technology systems in a business environment的支持。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58201096

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档