我正在尝试使用烧杯和验收测试将代码从 puppet 3 迁移到 puppet 5。
输出结果如下:
journalctl log for dnsmasq: -- Logs begin at Thu 2018-11-29 17:11:40 UTC, end at Thu 2018-11-29 17:14:55 UTC. -- Nov 29 17:13:51 debian-stretch systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server... Nov 29 17:13:51 debian-stretch dnsmasq[10452]: dnsmasq: syntax check OK. Nov 29 17:13:52 debian-stretch systemd[1]: dnsmasq.service: Control process exited, code=dumped status=11 Nov 29 17:13:52 debian-stretch systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server. Nov 29 17:13:52 debian-stretch systemd[1]: dnsmasq.service: Unit entered failed state. Nov 29 17:13:52 debian-stretch systemd[1]: dnsmasq.service: Failed with result 'core-dump'. Nov 29 17:14:55 debian-stretch systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
我该如何调试它?我不太了解。
答案1
因此,我实际上可以通过向容器添加睡眠任务来进入容器,然后删除文件并尝试启动 dnsmasq 服务。之后,我弄清楚了 dnsmasq 在抱怨哪个文件。长话短说:auth-zone 有一个逗号,后面应该是子网,但它却是空的,因为 .erb 模板没有正确确定子网变量的范围。