Project

General

Profile

Actions

Bug #13577

closed

facts view gives a undefined method `length' for nil:NilClass

Added by Elias Abacioglu almost 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Facts
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

going to foreman/fact_values results in a "undefined method `length' for nil:NilClass".

Runing foreman 1.10.1, ruby 1.9.1, via passenger.
Using foreman chef plugin.

Attaching error log.


Files

foreman_facts_value.txt foreman_facts_value.txt 20.4 KB Elias Abacioglu, 02/05/2016 08:13 AM
Screen Shot 2016-02-06 at 14.22.01.png View Screen Shot 2016-02-06 at 14.22.01.png 104 KB Elias Abacioglu, 02/06/2016 08:23 AM
Actions #1

Updated by Dominic Cleal almost 9 years ago

It's hard to tell if this is a bug in the Chef fact importer or Foreman core. The value of a fact is nil, so either one is being imported that's nil (and it shouldn't) or Foreman should handle nil values better.

You may want to check the fact_values DB table to see if you can find one with a NULL value, which might shed some light on whether it's valid or not.

Actions #2

Updated by Elias Abacioglu almost 9 years ago

There are loads of facts that have a null value.
Here is a small excerpt(screenshot) of some null facts.

Actions #3

Updated by Anonymous over 7 years ago

What's the status here with current versions?

Actions #4

Updated by Anonymous over 7 years ago

  • Status changed from New to Feedback
Actions #5

Updated by Elias Abacioglu over 7 years ago

Hmm, will have to wait a bit, currently turned off reporting of facts.
I will need to migrate our MariaDB cluster to physical nodes before I turn on reporting.

Actions #6

Updated by Elias Abacioglu about 7 years ago

  • Status changed from Feedback to Closed

Appears to be workning now.
Thanks, closing this issue.

Actions

Also available in: Atom PDF