ajcrowe / puppet-supervisord

Puppet Module to install and configure applications under supervisord
MIT License
37 stars 104 forks source link

Concat fails - Could not retrieve information from environment production source #110

Closed rk295 closed 6 years ago

rk295 commented 7 years ago

Hi,

I'm using puppet version 3.8.7 and version 0.6.1 of this module, when I use:

include ::supervisord

To include the module, I see the following errors on a client:

Error: /Stage[main]/Supervisord::Config/Concat[/etc/supervisord.conf]/File[/etc/supervisord.conf]: Could not evaluate: Could not retrieve information from environment production source(s) file:/var/lib/puppet/concat/_etc_supervisord.conf/fragments.concat.out

I've not specified any other options, initially I just want to install the module. Is there some dependancy I don't yet have installed? Any help would be greatly appreciated!

r

ajcrowe commented 7 years ago

Hi @rk295 have you got the concat module in your puppet environment?

rk295 commented 7 years ago

Yep, I certainly do. So I did a bit more poking around and couldn't get t o the bottom of it, then I ran puppet agent -t but without the --noop I use for testing and it worked fine. This was repeatable on a couple of other VMs I have for testing. Without no op, all is fine! Since its working now I've moved on. If you want to close this issue please go ahead. However if there is anything I can do to further investigate please just shout.

r

naikajah commented 7 years ago

@rk295 did you manage to resolve this error? I too am getting the same error though not for puppet-supervisord. But the error is exactly the same. This occurs during noop I can't just simply run puppet without noop as this is production and process don't allow me to run without noop.

Error: /Stage[main]/Haproxy::Config/Concat[/etc/haproxy/haproxy.cfg]/File[/etc/haproxy/haproxy.cfg]: Could not evaluate: Could not retrieve information from environment production source(s) file:/opt/puppetlabs/puppet/cache/concat/_etc_haproxy_haproxy.cfg/fragments.concat.out"

ajcrowe commented 6 years ago

I believe concat needs to write fragments which are dependencies for the final file. It might be --noop is not allowing these to be created hence the failure.