Diagnosing a "Must provide non empty value" error

asked 2014-01-15 10:23:53 -0500

robrwo gravatar image

I get the following error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Must provide non empty value. on node myserver.example.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

I know what parts of the hiera configuration are triggering this. But as far as I can tell, there are no empty or missing values.

Adding --verbose or --debug does not give any indication what value Puppet is looking for.

How do I diagnose this error?

edit retag flag offensive close merge delete

Comments

I had a similar issue with a truncated hiera file (with some missing parameters). I found no way to trigger intersting error messages.

doc75 gravatar imagedoc75 ( 2014-01-15 13:55:26 -0500 )edit

This was in a custom function, which I added an error message to. It really turned out that I had to configure hiera to do a deep hash merge, and ...(more)

robrwo gravatar imagerobrwo ( 2014-01-16 10:14:28 -0500 )edit

Maybe running your puppetmaster with parser = future gives you a more specific hint where the problem is.

Kai Burghardt gravatar imageKai Burghardt ( 2015-04-04 10:40:51 -0500 )edit

Run with puppet apply or puppet master compile and set --trace to see where the error occurs. That way you get a Ruby stack trace for the error which provides a clue to where to look further for the cause.

Henrik Lindberg gravatar imageHenrik Lindberg ( 2016-03-24 09:09:10 -0500 )edit