Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-23 Thread Lukas Zapletal
I am sorry I cannot reproduce on my environment. Greg, any idea what is wrong? What is the backtrace now for the undefined method `+' for nil:NilClass error? LZ On Mon, May 22, 2017 at 10:09 PM, Konstantin Orekhov wrote: > > >> You forgot the question mark, did you? Or maybe I did in the previo

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-22 Thread 'Konstantin Orekhov' via Foreman users
You forgot the question mark, did you? Or maybe I did in the previous > mail, anyway its really this: > > respond_to?(:reports) > > I don't think so, but I just repeated the patching just in case: # diff /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_default_hostgroup-4.0.0/lib/default

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-22 Thread Lukas Zapletal
You forgot the question mark, did you? Or maybe I did in the previous mail, anyway its really this: respond_to?(:reports) https://ruby-doc.org/core-2.4.1/Object.html#method-i-respond_to-3F LZ On Fri, May 19, 2017 at 8:47 PM, Konstantin Orekhov wrote: > >> unless new_host && hostgroup.nil? && r

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-19 Thread 'Konstantin Orekhov' via Foreman users
> unless new_host && hostgroup.nil? && respond_to?(:reports) && > reports.empty? > > Well, that's what I was trying to tell you - this patch did not work for me. I tried it out as you suggested on May 3rd, the only difference it made is the error message changed from Discovered by URL: https

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-19 Thread Lukas Zapletal
On Fri, May 19, 2017 at 10:54 AM, Lukas Zapletal wrote: > unless new_host && hostgroup.nil? && reports.nil? && reports.empty? Sorry I mean: unless new_host && hostgroup.nil? && respond_to?(:reports) && reports.empty? Send a PR to discuss this with Greg for a proper fix, this is dirty. -- Lat

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-19 Thread Lukas Zapletal
Well, you can easily fix this, I thought it is obvious sorry: https://github.com/theforeman/foreman_default_hostgroup/blob/develop/lib/default_hostgroup_base_host_patch.rb#L66 change to: unless new_host && hostgroup.nil? && reports.nil? && reports.empty? On Fri, May 19, 2017 at 12:56 AM, 'Konst

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-18 Thread 'Konstantin Orekhov' via Foreman users
Lukas or Greg, any suggestions based on the above report of mine? Thanks! -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscr...@googlegroups

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-15 Thread 'Konstantin Orekhov' via Foreman users
Hi, guys! Didn't get a chance to look into this until to today, but here are the results. Tried dirty patching first - did not help as after patching the message on a client side changed to this: Discovered by URL: https://spc.vip Registering host with Foreman (https://spc.vip) Response from Fore

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-03 Thread Lukas Zapletal
Hey, Greg is at Red Hat Summit this week, in the meantime uninstall the foreman_default_hostgroup or disable it or something. Or apply a dirty patch on the line 66: unless new_host && hostgroup.nil? && reports.empty? change to unless new_host && hostgroup.nil? && !respond_to(:reports) && reports

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-05-02 Thread 'Konstantin Orekhov' via Foreman users
> > It's a bug in > https://github.com/theforeman/foreman_default_hostgroup/blob/develop/lib/default_hostgroup_base_host_patch.rb#L66 > > where it expects "reports" to be present > > 2017-04-17 11:48:26 e3962d8a [app] [D] undefined local variable or method > `reports' for # > | > /opt/rh/sc

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-04-21 Thread Lukas Zapletal
; here https://gist.github.com/korekhov/c691c40dbe8ac61eadd2ebb8d395559c >> >> I was working on mac248a078b7886 specifically here - removed it from >> discovered hosts first, then booted into discovery OS that started Foreman >> proxy. >> >> Thanks! >> >

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-04-19 Thread 'Konstantin Orekhov' via Foreman users
here - removed it from >> discovered hosts first, then booted into discovery OS that started Foreman >> proxy. >> >> Thanks! >> >> Konstantin Orekhov >> >> >> From: Lukas Zapletal >> To: Foreman users >> Sent: Monday, April 10,

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-04-19 Thread Lukas Zapletal
hov > > > -- > *From:* Lukas Zapletal > *To:* Foreman users > *Sent:* Monday, April 10, 2017 1:04 AM > *Subject:* Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh > > Hello, > > unfortunately due to bug, root exceptio

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-04-17 Thread 'Konstantin Orekhov' via Foreman users
. Thanks!  Konstantin Orekhov From: Lukas Zapletal To: Foreman users Sent: Monday, April 10, 2017 1:04 AM Subject: Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh Hello, unfortunately due to bug, root exception is swallowed so I can't tell what is wrong. Ca

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-04-10 Thread Lukas Zapletal
Hello, unfortunately due to bug, root exception is swallowed so I can't tell what is wrong. Can you manually apply this patch on your instance and retest, send me production.log again. https://github.com/theforeman/foreman_discovery/pull/338 It's oneliner, exception block only. LZ On Fri, Apr 7

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-04-07 Thread 'Konstantin Orekhov' via Foreman users
> Do you have some extra plugins installed? Like OpenSCAP? I cannot > reproduce here. > List of installed plug-ins: This

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-04-07 Thread 'Konstantin Orekhov' via Foreman users
> Do you have some extra plugins installed? Like OpenSCAP? I cannot > reproduce here. > Nope, I don't have OpenSCAP. Here's what I have: This is an upgraded 1.14.1 version from 1.13. I did not run foreman-installer after the upgrade though. Should I try that or it does not makes sense to d

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-04-07 Thread Lukas Zapletal
Do you have some extra plugins installed? Like OpenSCAP? I cannot reproduce here. There should be full trace in logs, I don't know why you don't have it. Have you deleted it, Can you increase logging to DEBUG? LZ On Fri, Apr 7, 2017 at 10:17 AM, Lukas Zapletal wrote: > Sorry I kinda missed this

Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh

2017-04-07 Thread Lukas Zapletal
Sorry I kinda missed this thread. Can you attach full trace to the issue? I can't reproduce this. LZ On Fri, Apr 7, 2017 at 1:04 AM, 'Konstantin Orekhov' via Foreman users wrote: > Created a bug report for this - http://projects.theforeman.org/issues/19212 > > -- > You received this message beca