Since my puppetmaster is not on the same server as my Foreman Server,
I am using the push_facts.rb script. When I run the script I am
getting the following error:
/usr/share/foreman-proxy/scripts/push_facts.rb:42: Could not send
facts to Foreman: wrong status line: "<!DOCTYPE HTML PUBLIC "-//IETF//
DTD HTML 2.0//EN">" (RuntimeError)
from /usr/share/foreman-proxy/scripts/push_facts.rb:26:in
`each'
from /usr/share/foreman-proxy/scripts/push_facts.rb:26
Just wondering if anyone has ran into this issue.
Thanks,
Robert
Not sure if it's somehow related or not but I was just setting up Foreman
today and was getting the same(ish) error [minus the RuntimeError part on]
when using the included external_node.rb script to push facts to my
apache/passenger/https enabled foreman instance (on the same box). I found
this (https://github.com/ohadlevy/puppet-foreman/pull/14) git patch which
looks like it recently got merged into foreman, on the git version anyway,
that includes support for pushing facts to https. Once I had this updated
external_node.rb script it fixed my issue.
Romeo
···
On Friday, March 9, 2012 7:21:57 AM UTC-10, Robert Tsai wrote:
>
> Since my puppetmaster is not on the same server as my Foreman Server,
> I am using the push_facts.rb script. When I run the script I am
> getting the following error:
>
> /usr/share/foreman-proxy/scripts/push_facts.rb:42: Could not send
> facts to Foreman: wrong status line: " DTD HTML 2.0//EN\">" (RuntimeError)
> Since my puppetmaster is not on the same server as my Foreman Server,
> I am using the push_facts.rb script. When I run the script I am
> getting the following error:
>
> /usr/share/foreman-proxy/scripts/push_facts.rb:42: Could not send
> facts to Foreman: wrong status line: "<!DOCTYPE HTML PUBLIC "-//IETF//
> DTD HTML 2.0//EN">" (RuntimeError)
> from /usr/share/foreman-proxy/scripts/push_facts.rb:26:in
> `each'
> from /usr/share/foreman-proxy/scripts/push_facts.rb:26
>
could you provide the relevant logs on foreman as well?
btw: if you are using foreman as your ENC, the external nodes script
also uploads the facts at the same time.
Ohad
···
On Fri, Mar 9, 2012 at 7:21 PM, Robert Tsai wrote:
> Just wondering if anyone has ran into this issue.
>
> Thanks,
> Robert
>
> --
> You received this message because you are subscribed to the Google Groups "Foreman users" group.
> To post to this group, send email to foreman-users@googlegroups.com.
> To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.
>
Hi Ohad and Romeo,
The patch worked for me. Thanks again!
···
Sent from my iPhone
On Mar 13, 2012, at 3:04 AM, Romeo Theriault romeo.theriault@maine.edu wrote:
On Friday, March 9, 2012 7:21:57 AM UTC-10, Robert Tsai wrote:
Since my puppetmaster is not on the same server as my Foreman Server,
I am using the push_facts.rb script. When I run the script I am
getting the following error:
/usr/share/foreman-proxy/scripts/push_facts.rb:42: Could not send
facts to Foreman: wrong status line: “” (RuntimeError)
Not sure if it’s somehow related or not but I was just setting up Foreman today and was getting the same(ish) error [minus the RuntimeError part on] when using the included external_node.rb script to push facts to my apache/passenger/https enabled foreman instance (on the same box). I found this (https://github.com/ohadlevy/puppet-foreman/pull/14) git patch which looks like it recently got merged into foreman, on the git version anyway, that includes support for pushing facts to https. Once I had this updated external_node.rb script it fixed my issue.
Romeo
You received this message because you are subscribed to the Google Groups “Foreman users” group.
To view this discussion on the web visit https://groups.google.com/d/msg/foreman-users/-/cRnl9TIczYkJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.
بتاريخ الثلاثاء، 13 مارس، 2012 UTC+1 3:20:52 م، كتب Robert Tsai:
···
>
> Hi Ohad and Romeo,
>
> The patch worked for me. Thanks again!
>
> Sent from my iPhone
>
> On Mar 13, 2012, at 3:04 AM, Romeo Theriault > wrote:
>
> On Friday, March 9, 2012 7:21:57 AM UTC-10, Robert Tsai wrote:
>>
>> Since my puppetmaster is not on the same server as my Foreman Server,
>> I am using the push_facts.rb script. When I run the script I am
>> getting the following error:
>>
>> /usr/share/foreman-proxy/scripts/push_facts.rb:42: Could not send
>> facts to Foreman: wrong status line: "> DTD HTML 2.0//EN\">" (RuntimeError)
>
>
> Not sure if it's somehow related or not but I was just setting up Foreman
> today and was getting the same(ish) error [minus the RuntimeError part on]
> when using the included external_node.rb script to push facts to my
> apache/passenger/https enabled foreman instance (on the same box). I found
> this (https://github.com/ohadlevy/puppet-foreman/pull/14) git patch which
> looks like it recently got merged into foreman, on the git version anyway,
> that includes support for pushing facts to https. Once I had this updated
> external_node.rb script it fixed my issue.
>
> Romeo
>
> --
> You received this message because you are subscribed to the Google Groups
> "Foreman users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/foreman-users/-/cRnl9TIczYkJ.
> To post to this group, send email to forema...@googlegroups.com
> .
> To unsubscribe from this group, send email to
> foreman-user...@googlegroups.com .
> For more options, visit this group at
> http://groups.google.com/group/foreman-users?hl=en.
>
>