Ask Your Question

Puppet Agent reports "Failed to apply catalog: Could not find dependency File" [closed]

asked 2018-10-04 11:34:39 -0600

George Gabra gravatar image

updated 2018-10-05 10:38:03 -0600

DarylW gravatar image

Hi All,

I'm new to Puppet and I need your help please.

--> I'm re-configuring puppet in manuscript but testing agent fails with dependency error:

root@agent:~# puppet agent --test --noop --debug --verbose
debug: Creating default schedules
err: Failed to apply catalog: Could not find dependency File[/plugins.d] for File[/plugins.d/irq.conf] at /etc/puppet/modules/collectd/manifests/plugins/irq.pp:8

--> The file is there on the puppet master:

root@master:~# ls -l /etc/collectd/plugins.d/irq.conf
-rw-r----- 1 root root 15 Jan 21  2015 /etc/collectd/plugins.d/irq.conf

--> I tried replacing file location variable with hard-coded path but the agent test still complaining about it.

Thanks in Advance!

Thanks, George Gabra

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by George Gabra
close date 2018-10-09 05:57:07.440807

2 Answers

Sort by ยป oldest newest most voted

answered 2018-10-09 05:56:27 -0600

George Gabra gravatar image

Hi DarylW,

Thanks for your answer! I could resolve this by hard-coding the path of the files.

Thanks, George Gabra

edit flag offensive delete link more

answered 2018-10-05 10:39:22 -0600

DarylW gravatar image

Is your puppet master running as the 'puppet' user? If so, it wouldn't be able to read the root/root file you listed above...

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-10-04 11:34:39 -0600

Seen: 171 times

Last updated: Oct 09