[Opendnssec-user] Another Ruby error..

Carlos M. Martinez carlos at lacnic.net
Fri Feb 18 19:24:29 UTC 2011


If anyone interested, I commented the following block of code in
kasp_checker.rb and was able to complete setup:

           #   7. Warn if the "PublishSafety" and "RetireSafety" margins
are less than 0.1 * TTL or more than 5 * TTL.
            # publish_safety_secs = get_duration(policy,
'Keys/PublishSafety', kasp_file)
            # retire_safety_secs = get_duration(policy,
'Keys/RetireSafety', kasp_file)
            # ttl_secs = get_duration(policy, 'Keys/TTL', kasp_file)
            # [{publish_safety_secs , "Keys/PublishSafety"},
{retire_safety_secs, "Keys/RetireSafety"}].each {|pair|
             #  pair.each {|time, label|
            #     if (time < (0.1 * ttl_secs))
            #       log(LOG_WARNING, "#{label} (#{time} seconds) in
#{name} policy" +
            #           " in #{kasp_file} is less than 0.1 * TTL
(#{ttl_secs} seconds)")
            #     end
            #     if (time > (5 * ttl_secs))
            #       log(LOG_WARNING, "#{label} (#{time} seconds) in
#{name} policy" +
            #           " in #{kasp_file} is more than 5 * TTL
(#{ttl_secs} seconds)")
            #     end
            #   }
            # }

regards,

Carlos


On 2/18/11 4:26 PM, Carlos M. Martinez wrote:
> Jeez, just when I thought my Ruby issues were over...
>
> This is the message I'm currently receiving when running "ods-ksmutil
> setup":
>
>> [opendnssec at vm3-lab2 ~]$ ./bin/ods-ksmutil setup
>> *WARNING* This will erase all data in the database; are you sure? [y/N] y
>> SQLite database set to: /home/opendnssec/var/opendnssec/kasp.db
>> fixing permissions on file /home/opendnssec/var/opendnssec/kasp.db
>> zonelist filename set to /home/opendnssec/etc/opendnssec/zonelist.xml.
>> kasp filename set to /home/opendnssec/etc/opendnssec/kasp.xml.
>> Repository SoftHSM found
>> No Maximum Capacity set.
>> RequireBackup NOT set; please make sure that you know the potential
>> problems of using keys which are not recoverable
>> <internal:lib/rubygems/custom_require>:29:in `require':
>> /home/opendnssec/lib/opendnssec/kasp_checker.rb:403: syntax error,
>> unexpected ',', expecting tASSOC (SyntaxError)
>> ...        [{publish_safety_secs , "Keys/PublishSafety"}, {reti...
>> ...                               ^
>> /home/opendnssec/lib/opendnssec/kasp_checker.rb:403: syntax error,
>> unexpected ',', expecting '}'
>> ...y_secs , "Keys/PublishSafety"}, {retire_safety_secs, "Keys/R...
>> ...                               ^
>> /home/opendnssec/lib/opendnssec/kasp_checker.rb:403: syntax error,
>> unexpected ']', expecting keyword_end
>> ...ety_secs, "Keys/RetireSafety"}].each {|pair|
>> ...                               ^
>> /home/opendnssec/lib/opendnssec/kasp_checker.rb:470: syntax error,
>> unexpected '}', expecting keyword_end
>> /home/opendnssec/lib/opendnssec/kasp_checker.rb:478: syntax error,
>> unexpected '}', expecting keyword_end
>>     from <internal:lib/rubygems/custom_require>:29:in `require'
>>     from /home/opendnssec/bin/ods-kaspcheck:29:in `<main>'
>> Couldn't run kaspcheck, will carry on
>> Policy default found
>> Info: converting P1Y to seconds; M interpreted as 31 days, Y
>> interpreted as 365 days
> This with all configs as default...
>
> Any ideas?
>
> regards
>
> Carlos
>
> On 2/17/11 12:39 PM, Carlos M. Martinez wrote:
>> Hello all, I think I have solved the issue for me. If anyone is
>> interested, read below:
>>
>>> On 16 Feb 2011, at 13:51, Carlos M. Martinez wrote:
>>>
>>>>> configure: Detecting common OpenDNSSEC settings
>>>>> checking for ruby... /home/opendnssec/bin/ruby
>>>>> checking for ruby library syslog... ok
>>>>> checking for ruby library openssl... ok
>>>>> checking for ruby library xsd/datatypes... not found
>>>>> configure: error: Ruby library 'xsd/datatypes' not found
>>>>> configure: error: ./configure failed for auditor
>> Apparently xsd/datatypes.rb is part of a gem called XSD4R. I could not
>> find a way to install XSD4R alone, but installing another gem called
>> SOAP4R solved the problem as it appears to include XSD4R.
>>
>> I had previously installed a gem called xmlparser, so it may or may not
>> be needed, I'm not exactly sure.
>>
>> So, my solution in the end was:
>>
>> gem install -r rake
>> -- had install xmlparser from source due to my non-standard install
>> location (it could not find expat and libxml2)
>> gem install -r soap4r
>>
>> Warm regards,
>>
>> Carlos
>>
>
>
> _______________________________________________
> Opendnssec-user mailing list
> Opendnssec-user at lists.opendnssec.org
> https://lists.opendnssec.org/mailman/listinfo/opendnssec-user

-- 
Carlos M. Martinez
LACNIC I+D
PGP KeyID 0xD51507A2
Phone: +598-2604-2222 ext. 4419

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendnssec.org/pipermail/opendnssec-user/attachments/20110218/85e70c89/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: carlos.vcf
Type: text/x-vcard
Size: 194 bytes
Desc: not available
URL: <http://lists.opendnssec.org/pipermail/opendnssec-user/attachments/20110218/85e70c89/attachment.vcf>


More information about the Opendnssec-user mailing list