bugZoneCheck - Bugs: bug #35190, ERREUR: uninitialized constant...

 
 

bug #35190: ERREUR: uninitialized constant Psych::ParseError

Submitter:  None
Submitted:  Wed 28 Dec 2011 10:32:34 PM UTC
   
 
Category:  config Severity:  High
Priority:  5 - Normal Item Group:  Crash/Error
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 18 Nov 2014 05:21:00 PM UTC, comment #5: 

Fixed in debian with two simple patches: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676173#12

I can confirm them working on FreeBSD 10.1 / ruby 2.0. (and using them on debian)

geoffroy desvernay <dgeo>
Wed 11 Apr 2012 10:12:26 AM UTC, comment #4: 

We found a dirty fix here,
I don't know why but the new ruby YAML engine cannot parse ./etc/zonecheck/rootservers

To fix it you can load the old parser, to do it edit :
./libexec/zonecheck/test/rootserver.rb

and add YAML::ENGINE.yamler = 'syck'
after the yaml require

Hope this will help

Grégory KLEIN <tos>
Tue 13 Mar 2012 07:47:17 AM UTC, comment #3: 

This is probably due to Ruby 1.9's new encoding engine. Go with Ruby 1.8. If that's not possible try (not tested) patching installer.rb like this, but you might encounter other similar woes.


--- installer.rb~        2010-06-21 09:30:27.000000000 +0200
+++ installer.rb        2012-03-13 08:43:31.000000000 +0100
@@ -178,7 +178,7 @@
     def patch_cgi
         puts "==> Patching HTML pages"
         Dir["#{@ch_wwwdir}/html/*.html.*"].each { |page|
-            page_content = File.readlines(page)
+            page_content = File.readlines(page, :encoding => "ASCII-8BIT")
             page_content.each { |line|
                 line.gsub!(/HTML_PATH/, ENV['HTML_PATH']) }
             File::open(page, "w", 0644) { |io| io.puts page_content }


Kim Minh Kaplan <kmkaplan>
Group administrator
Mon 12 Mar 2012 04:01:27 PM UTC, comment #2: 

Absolutely no idea. Ruby expert required.

Stephane Bortzmeyer <bortzmeyer>
Group administrator
Mon 12 Mar 2012 02:24:50 PM UTC, comment #1: 

Same error. Ruby 1.9 w/ gems, FreeBSD 8.1 x64...

Anonymous
Wed 28 Dec 2011 10:32:34 PM UTC, original submission:  

Hi,
I encountered a problem using the last ZC version 3.0.5
I try to install it on a Arch Linux :
kernel  3.1.5-1-ARCH
ruby 1.9.3p0

Nothing special during the installation except :
[snip]
==> Patching HTML pages
./installer.rb:183:in `gsub!': invalid byte sequence in US-ASCII (ArgumentError)
from ./installer.rb:183:in `block (2 levels) in patch_cgi'
from ./installer.rb:182:in `each'
from ./installer.rb:182:in `block in patch_cgi'
from ./installer.rb:180:in `each'
from ./installer.rb:180:in `patch_cgi'
from ./installer.rb:229:in `rule_all'
from ./installer.rb:287:in `block in <main>'
from ./installer.rb:286:in `each'
from ./installer.rb:286:in `<main>'

But, as i just want to use ZC as a cli, I think I should not care....

After the installation, each time I want to ask something, I get :
First of all a Warning like this :
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.

Then this error :
ERREUR: uninitialized constant Psych::ParseError

Finally .... Nothing.

Could you help me please or give me clue.

Thanks in advance.

Cheers.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dgeo (Posted a comment)
  • -email is unavailable- added by tos (Posted a comment)
  • -email is unavailable- added by kmkaplan (Posted a comment)
  • -email is unavailable- added by bortzmeyer (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code