Error 400 on SERVER: You need rubygems to use Hiera at

Hi there,

I'm running a CentOS 6.5 Server with Foreman 1.4.1 and Puppet 3.4.3.

I'm getting an intermittent error in my Ubuntu Server hosts "Error 400 on
SERVER: You need rubygems to use Hiera at"

I cleaned up /var/lib/puppet/lib/hiera* and restarted foreman-proxy a
couple of times and is weird because some time it works and after a few
time I get the error again.

Maybe there is something about the execution of the puppet agent into the
Foreman server, and it is restoring some old references to old hiera.

I checked out a few posts regarding this error but I didn't find any
conclusive solution.

Can anyone help me on that?

Cheers,
Renato Armani