Issue #4005 has been updated by Rob Terhaar.

I hit this same bug tonight. I think this has been previously reported as Bug 
#3695
----------------------------------------
Bug #4005: Confusing error from bad template syntax
http://projects.puppetlabs.com/issues/4005

Author: Alan Barrett
Status: Accepted
Priority: Normal
Assigned to: Markus Roberts
Category: error reporting
Target version: 
Affected version: 0.25.5
Keywords: 
Branch: 


If you have a template with invalid syntax, then the error is difficult to 
diagnose.

I accidentally wrote <%= varname => instead of <%= varname %> in a template,
and the client printed this:

<pre>
# /usr/local/sbin/puppetd --onetime --test --noop
err: Could not retrieve catalog from remote server: wrong header line format
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
</pre>

I could not find any relevant error messages in syslog or /var/puppet/log on 
the server.
Adding --debug and --trace options on the client did not make it print the 
offending header line.

I haven't checked this theory, but I suspect that error messages from the 
template expansion are finding their way to the client instead of being 
intercepted by the server.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to