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 about 9 years ago. Updated about 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 #1

Updated by Dominic Cleal about 9 years ago

If you load the host page, click Templates on the left and then Review next to the PXELinux template, does it display OK there?

Actions #2

Updated by Marcel Vapore about 9 years ago

The template renders fine there.

By testing some more combinations, it seems, as if only the PXELinux template is processed, if available. If it is missing, I'll get the above errors. If I include it, alone or besides iPXE, the iPXE template is ignored and no errors occur.

Maybe the foreman installer left enough traces of TFTP and Smartproxy for the plugin to assume a full up and running provisioning infrastructure?

Actions #3

Updated by Lukas Zapletal almost 4 years ago

  • Status changed from New to Closed

I am going to close this one, please use our Discourse to report problems like these.

Actions #4

Updated by Vlad Bnana over 3 years ago

We are confident that you will be fully satisfied with the help https://www.thesiswritingservice.com/
that we provide and make every effort to ensure that this will be the case. Through us you will always benefit from all of the following. We don’t just hire the cheapest freelancer that we can find. With more than 5 years helping students with their essays we have built up a team of experts that are ideally qualified to help you. Each holds a relevant degree and has many years of experience. They work only in the areas in which they are qualified and each has a proficient of native level skills in the English language.

Actions #5

Updated by Alex Brooks almost 3 years ago

Have you ever suffered from too countless assignments at the university? And even on perform? So this possibility is perfect for you! On the https://www.writemyessays.org/essay-structure/ website you are going to locate the most specialist enable, customized help and top quality papers as the outcome. Usually do not hesitate to take a chance to have expert documents, assignments, resumes and even theses!

Actions #6

Updated by Joshua Potter about 2 years ago

Howdy, everyone! This is a valuable post and significant opinion, thanks designed for sharing! You know, I always had a lot of difficulties with my essays until I found https://nursingwriting.org/. Because of that day concerning, I never experienced any hardships with my writings since those experts made their best to make a paper shine a few!

Actions #7

Updated by Sammie Crawford about 2 years ago

  • Tracker changed from Support to Bug
  • Priority changed from Normal to Low

Hello everyone, studying at the university can be very difficult, especially when it comes to the exact sciences. Sometimes help is nowhere to be found. It's good that there are guys in my field of study of finance who can help. https://businesswritingservice.com/accounting-homework-help
He helped me more than once, and most importantly, it is available, anonymously and quickly. I recommend

Actions

Also available in: Atom PDF