Project

General

Profile

Actions

Bug #11975

closed

Unable to generate full image on fresh install: undefined method `encoding' for nil:NilClass

Added by Marcel Vapore over 9 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

On Debian Jessie, a default Foreman 1.9.2 installation with bootdisk-plugin 6.0.0 gives the following error:

ERF42-8894 [Foreman::Exception]: Unable to generate disk template: Failed to generate PXELinux template: undefined method `encoding' for nil:NilClass

The new host is linked to an OS definition for Debian 8.2 with the unchanged Preseed default, finish and default iPXE templates (for testing purposes).
Adding Preseed user data does not change test result. All defined package dependencies are matched, syslinux-images are correctly set up. Host and generic images are rendered fine, but not tested for function so far.

The corresponding stack trace:

  • Invoke bootdisk:generate:full_host (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute bootdisk:generate:full_host
    [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
    rake aborted!
    Foreman::Exception: ERF42-8894 [Foreman::Exception]: Unable to generate disk template: Failed to generate PXELinux template: undefined method `encoding' for nil:NilClass
    /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman_bootdisk-6.0.0/app/services/foreman_bootdisk/iso_generator.rb:14:in `generate_full_host'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/foreman_bootdisk-6.0.0/lib/tasks/bootdisk.rake:31:in `block (3 levels) in <top (required)>'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
    /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
    /usr/share/foreman/vendor/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
    /usr/bin/rake:27:in `<main>'
    Tasks: TOP => bootdisk:generate:full_host
Actions

Also available in: Atom PDF