SOAP: fault: Application failed during request deserialization:

Started by marax, February 05, 2014, 03:17:08 PM

Previous topic - Next topic

marax

Hi,
From  a fresh install on a RedHat 64bits 6.5, Apache/2.2.15 (Unix) DAV/2 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_perl/2.0.4 Perl/v5.10.1 and following the install instruction, I have the following message when I try to login to nictool :
SOAP: fault: Application failed during request deserialization: Can't locate SOAP/Lite/Deserializer/XMLSchema2001.pm in @INC (@INC contains: /usr/local/nictool/client/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 106) line 3.

I don't understand from where is the problem. I spent 3 days without being able to find the issue.

Could someone help me or give me a direction to investigate ?

Server.conf :
<IfDefine !MODPERL2>
   PerlFreshRestart On
</IfDefine>
PerlTaintCheck Off
   
Listen 8082

PerlRequire /usr/local/nictool/server/lib/nictoolserver.conf

#<VirtualHost 127.0.0.1:8082>
<VirtualHost 10.11.5.1:8082>
    KeepAlive Off
    <Location />
        SetHandler perl-script
        PerlResponseHandler NicToolServer
    </Location>
    <Location /soap>
        SetHandler perl-script
        PerlResponseHandler Apache::SOAP
        #PerlResponseHandler Apache2::SOAP
        PerlSetVar dispatch_to "/usr/local/nictool/server, NicToolServer::SOAP"
    </Location>
</VirtualHost>



nictoolclient.conf :
#!/usr/bin/perl
#
# NicTool v2.00-rc1 Copyright 2001 Damon Edwards, Abe Shelton & Greg Schueler
# NicTool v2.01 Copyright 2004 The Network People, Inc.
#
# NicTool is free software; you can redistribute it and/or modify it under
# the terms of the Affero General Public License as published by Affero,
# Inc.; either version 1 of the License, or any later version.
#
# NicTool is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the Affero GPL for details.
#
# You should have received a copy of the Affero General Public License
# along with this program; if not, write to Affero Inc., 521 Third St,
# Suite 225, San Francisco, CA 94107, USA
#

use strict;

use CGI();

BEGIN {
    $NicToolClient::app_dir     = '/usr/local/nictool/client';

    #Interface options
    $NicToolClient::app_title   = 'NicTool';
   
    $NicToolClient::image_dir   = 'images';

    $NicToolClient::generic_error_message = qq(If you continue to get this error, please contact the system administrator, or your corporate contact.);

    #show the "help" links
    $NicToolClient::show_help_links = 1;

    #go to detail view after creating a new zone
    $NicToolClient::edit_after_new_zone = 1;

    #is the "include subgroups" checkbox automatically checked?
    $NicToolClient::include_subgroups_checked = 1;

    #is the "exact match" checkbox automatically checked?
    $NicToolClient::exact_match_checked = 0;

    $NicToolClient::template_dir                = "$NicToolClient::app_dir/templates";
    $NicToolClient::login_template              = "$NicToolClient::template_dir/login.html";
    $NicToolClient::setup_error_template        = "$NicToolClient::template_dir/setup_error.html";
    $NicToolClient::frameset_template           = "$NicToolClient::template_dir/frameset.html";
    $NicToolClient::start_html_template         = "$NicToolClient::template_dir/start_html.html";
    $NicToolClient::end_html_template           = "$NicToolClient::template_dir/end_html.html";
    $NicToolClient::body_frame_start_template   = "$NicToolClient::template_dir/body_frame_start.html";

    $NicToolClient::page_length = 50;

    #default values for zones/nameservers
    $NicToolClient::default_zone_ttl = '86400';
    $NicToolClient::default_zone_mailaddr = 'hostmaster.ZONE.TLD.';
    $NicToolClient::default_zone_refresh= '16384';    # RFC 1912 range (20 min to 12 hours)
    $NicToolClient::default_zone_retry  = '900';      # RFC 1912 range (180-900 sec)
    $NicToolClient::default_zone_expire = '1048576';  # RFC 1912 range (14 - 28 days)
    $NicToolClient::default_zone_minimum = '2560';    # RFC 2308 range (1 - 3 hours)

    $NicToolClient::default_zone_record_ttl = '86400';
    $NicToolClient::default_nameserver_ttl  = '86400';

    #NicToolServer connection settings
    $NicToolServerAPI::server_host         = "10.11.5.1";
    $NicToolServerAPI::server_port         = "8082";
    $NicToolServerAPI::data_protocol       = "soap";   # 'soap' or 'xml_rpc'
    $NicToolServerAPI::debug_soap_setup    = 1;        # debug soap calls
    $NicToolServerAPI::debug_soap_request  = 1;
    $NicToolServerAPI::debug_soap_response = 1;
}

use lib "$NicToolClient::app_dir/lib";
use NicToolClient;

1;


I search on google and looked on the forum without finding a solution.

Thanks in advance for your help

matt

What version of SOAP-Lite is installed?

It appears that something it depends on is missing. What happens if you try to compile SOAP-Lite in the normal perl way?

   perl Makefile.PL
   make && make test && sudo make install


marax

Hi,
Thanks for the reply.
I am not a linux nor perl expert (Am a network guy).

I ran your commands from the server directory, it seems I have a lot of errors during the tests :

[root@dns-terre server]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Net::DNS::Zone::Parser 0 not found.
Warning: prerequisite mod_perl 0 not found.
Checking if your kit is complete...
Looks good
Warning: prerequisite TestConfig 0 not found.
Generating a Unix-style Makefile
Writing Makefile for NicTool
Writing MYMETA.yml and MYMETA.json
Generating a Unix-style Makefile
Writing Makefile for NicToolServer
Writing MYMETA.yml and MYMETA.json
[root@dns-terre server]# make
cp lib/NicToolServer/Import/BIND.pm blib/lib/NicToolServer/Import/BIND.pm
cp lib/NicToolServer/Export/Base.pm blib/lib/NicToolServer/Export/Base.pm
cp lib/NicToolServer/User/Sanity.pm blib/lib/NicToolServer/User/Sanity.pm
cp lib/NicToolServer/Group/Sanity.pm blib/lib/NicToolServer/Group/Sanity.pm
cp lib/NicToolServer/Export/tinydns.pm blib/lib/NicToolServer/Export/tinydns.pm
cp lib/NicToolServer/Permission.pm blib/lib/NicToolServer/Permission.pm
cp lib/NicToolServer/User.pm blib/lib/NicToolServer/User.pm
cp lib/NicToolServer/Export.pm blib/lib/NicToolServer/Export.pm
cp lib/NicToolServer/Export/MaraDNS.pm blib/lib/NicToolServer/Export/MaraDNS.pm
cp lib/NicToolServer/Zone/Record.pm blib/lib/NicToolServer/Zone/Record.pm
cp lib/NicToolServer/Export/BIND.pm blib/lib/NicToolServer/Export/BIND.pm
cp lib/NicToolServer/Zone/Record/Sanity.pm blib/lib/NicToolServer/Zone/Record/Sanity.pm
cp lib/NicToolServer/Client/SOAP.pm blib/lib/NicToolServer/Client/SOAP.pm
cp lib/NicToolServer/SOAP.pm blib/lib/NicToolServer/SOAP.pm
cp lib/NicToolServer/Nameserver.pm blib/lib/NicToolServer/Nameserver.pm
cp lib/NicToolServer.pm blib/lib/NicToolServer.pm
cp lib/NicToolServer/Export/PowerDNS.pm blib/lib/NicToolServer/Export/PowerDNS.pm
cp lib/NicToolServer/Nameserver/Sanity.pm blib/lib/NicToolServer/Nameserver/Sanity.pm
cp lib/NicToolServer/Client.pm blib/lib/NicToolServer/Client.pm
cp lib/NicToolServer/Import/tinydns.pm blib/lib/NicToolServer/Import/tinydns.pm
cp lib/NicToolServer/Zone/Sanity.pm blib/lib/NicToolServer/Zone/Sanity.pm
cp lib/NicToolServer/Group.pm blib/lib/NicToolServer/Group.pm
cp lib/NicToolServer/Import/Base.pm blib/lib/NicToolServer/Import/Base.pm
cp lib/NicToolServer/Session.pm blib/lib/NicToolServer/Session.pm
cp lib/NicToolServer/Response.pm blib/lib/NicToolServer/Response.pm
cp lib/NicToolServer/Zone.pm blib/lib/NicToolServer/Zone.pm
cp lib/nictoolserver.conf blib/lib/nictoolserver.conf
make[1]: Entering directory `/usr/local/nictool/server/api'
cp lib/NicTool/Transport.pm ../blib/lib/NicTool/Transport.pm
cp lib/NicTool/Record.pm ../blib/lib/NicTool/Record.pm
cp lib/NicTool/DBObject.pm ../blib/lib/NicTool/DBObject.pm
cp lib/NicTool/NTObject.pm ../blib/lib/NicTool/NTObject.pm
cp lib/NicTool/Result.pm ../blib/lib/NicTool/Result.pm
cp lib/NicTool/Transport/XMLRPC.pm ../blib/lib/NicTool/Transport/XMLRPC.pm
cp lib/NicTool/Nameserver.pm ../blib/lib/NicTool/Nameserver.pm
cp lib/NicTool/List.pm ../blib/lib/NicTool/List.pm
cp lib/NicTool/Cache.pm ../blib/lib/NicTool/Cache.pm
cp lib/NicTool/Zone.pm ../blib/lib/NicTool/Zone.pm
cp lib/NicTool/User.pm ../blib/lib/NicTool/User.pm
cp lib/NicTool/API.pm ../blib/lib/NicTool/API.pm
cp lib/NicTool/Group.pm ../blib/lib/NicTool/Group.pm
cp lib/NicTool.pm ../blib/lib/NicTool.pm
cp lib/NicTool/Transport/SOAP.pm ../blib/lib/NicTool/Transport/SOAP.pm
Manifying ../blib/man3/NicTool.3pm
Manifying ../blib/man3/NicTool::DBObject.3pm
Manifying ../blib/man3/NicTool::Group.3pm
Manifying ../blib/man3/NicTool::List.3pm
Manifying ../blib/man3/NicTool::NTObject.3pm
Manifying ../blib/man3/NicTool::Record.3pm
Manifying ../blib/man3/NicTool::Result.3pm
Manifying ../blib/man3/NicTool::User.3pm
Manifying ../blib/man3/NicTool::Zone.3pm
make[1]: Leaving directory `/usr/local/nictool/server/api'
Manifying blib/man3/NicToolServer.3pm
Manifying blib/man3/NicToolServer::Client.3pm
Manifying blib/man3/NicToolServer::Client::SOAP.3pm
Manifying blib/man3/NicToolServer::Export.3pm
Manifying blib/man3/NicToolServer::Export::BIND.3pm
Manifying blib/man3/NicToolServer::Export::Base.3pm
Manifying blib/man3/NicToolServer::Export::MaraDNS.3pm
Manifying blib/man3/NicToolServer::Export::PowerDNS.3pm
Manifying blib/man3/NicToolServer::Export::tinydns.3pm
Manifying blib/man3/NicToolServer::Group.3pm
Manifying blib/man3/NicToolServer::Group::Sanity.3pm
Manifying blib/man3/NicToolServer::Import::BIND.3pm
Manifying blib/man3/NicToolServer::Import::Base.3pm
Manifying blib/man3/NicToolServer::Import::tinydns.3pm
Manifying blib/man3/NicToolServer::Nameserver.3pm
Manifying blib/man3/NicToolServer::Nameserver::Sanity.3pm
Manifying blib/man3/NicToolServer::Permission.3pm
Manifying blib/man3/NicToolServer::Response.3pm
Manifying blib/man3/NicToolServer::SOAP.3pm
Manifying blib/man3/NicToolServer::Session.3pm
Manifying blib/man3/NicToolServer::User.3pm
Manifying blib/man3/NicToolServer::User::Sanity.3pm
Manifying blib/man3/NicToolServer::Zone.3pm
Manifying blib/man3/NicToolServer::Zone::Record.3pm
Manifying blib/man3/NicToolServer::Zone::Record::Sanity.3pm
Manifying blib/man3/NicToolServer::Zone::Sanity.3pm
[root@dns-terre server]# make test
make[1]: Entering directory `/usr/local/nictool/server/api'
make[1]: Leaving directory `/usr/local/nictool/server/api'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-syntax.t ............. 1/22
#   Failed test 'syntax NicToolServer/Import/BIND.pm'
#   at t/00-syntax.t line 30.
# Looks like you planned 22 tests but ran 25.
# Looks like you failed 1 test of 25 run.
t/00-syntax.t ............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/22 subtests
t/01_data.t ............... 1/36 DBD::mysql::st execute failed: Unknown column 'testfake' in 'field list' at /usr/share/perl5/DBIx/Simple.pm line 160.
exec_query called by main, 54
        SELECT testfake FROM nt_user
        DBI error: Unknown column 'testfake' in 'field list' at lib/NicToolServer.pm line 1610.
DBD::mysql::st execute failed: Unknown column 'fake' in 'field list' at /usr/share/perl5/DBIx/Simple.pm line 160.
exec_query called by main, 64
        UPDATE nt_zone SET fake='delete me' WHERE nt_zone_id=?
        1
DBI error: Unknown column 'fake' in 'field list' at lib/NicToolServer.pm line 1597.
DBD::mysql::st execute failed: Unknown column 'fake' in 'field list' at /usr/share/perl5/DBIx/Simple.pm line 160.
exec_query called by main, 70
        INSERT INTO nt_zone SET fake='testing.com',deleted=1
        DBI error: Unknown column 'fake' in 'field list' at lib/NicToolServer.pm line 1586.
DBD::mysql::st execute failed: Table 'nictool.nt_fake' doesn't exist at /usr/share/perl5/DBIx/Simple.pm line 160.
exec_query called by main, 73
        DELETE FROM nt_fake WHERE nt_zone_id=?
        DBI error: Table 'nictool.nt_fake' doesn't exist at lib/NicToolServer.pm line 1597.
# Testing NicToolServer 2.21, Perl 5.010001, /usr/bin/perl
t/01_data.t ............... ok
t/02_basic.t .............. 3/7 # Failed test 3 in t/02_basic.t at line 40
#  t/02_basic.t line 40 is: ok( !$user->result->is_error );
# Failed test 4 in t/02_basic.t at line 41
#  t/02_basic.t line 41 is: ok( $user->nt_user_session );
Attempting to call method logout on an error result at api/lib/NicTool/DBObject.pm line 116
        NicTool::DBObject::_call('NicTool::User=HASH(0x1b1b128)', 'logout') called at api/lib/NicTool/DBObject.pm line 209
        NicTool::DBObject::AUTOLOAD('NicTool::User=HASH(0x1b1b128)') called at api/lib/NicTool.pm line 488
        NicTool::AUTOLOAD('NicTool=HASH(0x1580560)') called at t/02_basic.t line 44
t/02_basic.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 5/7 subtests
t/04_groups.t ............. 1/325 # Failed test 2 in t/04_groups.t at line 49
#  t/04_groups.t line 49 is: die "Couldn't log in" unless ok( !$user->result->is_error );
Couldn't log in at t/04_groups.t line 49.
t/04_groups.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 324/325 subtests
t/06_users.t .............. 1/408 # Failed test 2 in t/06_users.t at line 55
#  t/06_users.t line 55 is: die "Couldn't log in" unless ok( !$nt_obj->result->is_error );
Couldn't log in at t/06_users.t line 55.
t/06_users.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 407/408 subtests
t/08_nameservers.t ........ 1/544 # Test 2 got: "404" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((404 :SOAP: transport error: http://localhost:8082/soap: 404 Not Found :) main:t/08_nameservers.t:54)
Couldn't log in at t/08_nameservers.t line 54.
t/08_nameservers.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 543/544 subtests
t/10_zones.t .............. 1/325 # Test 2 got: "404" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((404 :SOAP: transport error: http://localhost:8082/soap: 404 Not Found :) main:t/10_zones.t:53)
Couldn't log in at t/10_zones.t line 53.
t/10_zones.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 324/325 subtests
t/12_records.t ............ 1/6024 # Test 2 got: "404" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((404 :SOAP: transport error: http://localhost:8082/soap: 404 Not Found :) main:t/12_records.t:55)
Couldn't log in at t/12_records.t line 55.
t/12_records.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 6023/6024 subtests
t/14_permissions.t ........ 1/4656 # Test 2 got: "404" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((404 :SOAP: transport error: http://localhost:8082/soap: 404 Not Found :) main:t/14_permissions.t:67)
Couldn't log in at t/14_permissions.t line 67.
t/14_permissions.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4655/4656 subtests
t/16_delegation.t ......... 1/896 # Test 2 got: "404" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((404 :SOAP: transport error: http://localhost:8082/soap: 404 Not Found :) main:t/16_delegation.t:175)
Couldn't log in at t/16_delegation.t line 175.
t/16_delegation.t ......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 895/896 subtests
t/18_interaction.t ........ 1/200 # Test 2 got: "404" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((404 :SOAP: transport error: http://localhost:8082/soap: 404 Not Found :) main:t/18_interaction.t:56)
Couldn't log in at t/18_interaction.t line 56.
t/18_interaction.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 199/200 subtests
t/20_security.t ........... 1/291 # Test 2 got: "404" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((404 :SOAP: transport error: http://localhost:8082/soap: 404 Not Found :) main:t/20_security.t:153)
Couldn't log in at t/20_security.t line 153.
t/20_security.t ........... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 290/291 subtests
t/22_export.t ............. 1/? value not within IP port range: 0 - 65535 at lib/NicToolServer/Export.pm line 786.
value not within IP port range: 0 - 65535 at lib/NicToolServer/Export.pm line 786.
t/22_export.t ............. ok
t/author-critic.t ......... skipped: these tests are for testing by the author
t/release-pod-coverage.t .. skipped: these tests are for release candidate testing
t/release-pod-syntax.t .... skipped: these tests are for release candidate testing

Test Summary Report
-------------------
t/00-syntax.t           (Wstat: 256 Tests: 25 Failed: 4)
  Failed tests:  20, 23-25
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 22 tests but ran 25.
t/02_basic.t            (Wstat: 65280 Tests: 4 Failed: 2)
  Failed tests:  3-4
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 7 tests but ran 4.
t/04_groups.t           (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 325 tests but ran 2.
t/06_users.t            (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 408 tests but ran 2.
t/08_nameservers.t      (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 544 tests but ran 2.
t/10_zones.t            (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 325 tests but ran 2.
t/12_records.t          (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 6024 tests but ran 2.
t/14_permissions.t      (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 4656 tests but ran 2.
t/16_delegation.t       (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 896 tests but ran 2.
t/18_interaction.t      (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 200 tests but ran 2.
t/20_security.t         (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 291 tests but ran 2.
Files=16, Tests=100,  2 wallclock secs ( 0.05 usr  0.02 sys +  1.93 cusr  0.26 csys =  2.26 CPU)
Result: FAIL
Failed 11/16 test programs. 15/100 subtests failed.
make: *** [test_dynamic] Error 255
[root@dns-terre server]# make install
make[1]: Entering directory `/usr/local/nictool/server/api'
make[1]: Leaving directory `/usr/local/nictool/server/api'
Installing /usr/local/share/perl5/nictoolserver.conf
Appending installation info to /usr/lib64/perl5/perllocal.pod
[root@dns-terre server]#

Here is my hosts file :
[root@dns-terre server]# more /etc/hosts
127.0.0.1   terre.byz.iccmop localhost dns-terre dns terre dns-terre.byz.iccmop
10.11.5.1   terre.byz.iccmop

Thanks.


matt

As a network guy, it ought to make sense to you that when you configure apache to listen on a 10. address, and the client tries to connect on a 127. address, errors are likely. ;-)  read those errors. They are clues.

That explains the test failures, but not the initial error you reported. That one I'm not sure about. If you can't figure it out, you can buy an hour of support from tnpi.net. I'll be able to a) make it work, b) tell you why it didn't work in your environment, and maybe c) update nictool so others don't trip over that problem.

marax

Oups, you are right, shame on me ...
As I made several tests, I forgot to change this.

Now, it's done and here is the "make test" result :

[root@dns-terre server]# make test
make[1]: Entering directory `/usr/local/nictool/server/api'
make[1]: Leaving directory `/usr/local/nictool/server/api'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-syntax.t ............. 17/22
#   Failed test 'syntax NicToolServer/Import/BIND.pm'
#   at t/00-syntax.t line 30.
# Looks like you planned 22 tests but ran 25.
# Looks like you failed 1 test of 25 run.
t/00-syntax.t ............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/22 subtests
t/01_data.t ............... 1/36 DBD::mysql::st execute failed: Unknown column 'testfake' in 'field list' at /usr/share/perl5/DBIx/Simple.pm line 160.
exec_query called by main, 54
   SELECT testfake FROM nt_user
   DBI error: Unknown column 'testfake' in 'field list' at lib/NicToolServer.pm line 1610.
DBD::mysql::st execute failed: Unknown column 'fake' in 'field list' at /usr/share/perl5/DBIx/Simple.pm line 160.
exec_query called by main, 64
   UPDATE nt_zone SET fake='delete me' WHERE nt_zone_id=?
   3
DBI error: Unknown column 'fake' in 'field list' at lib/NicToolServer.pm line 1597.
DBD::mysql::st execute failed: Unknown column 'fake' in 'field list' at /usr/share/perl5/DBIx/Simple.pm line 160.
exec_query called by main, 70
   INSERT INTO nt_zone SET fake='testing.com',deleted=1
   DBI error: Unknown column 'fake' in 'field list' at lib/NicToolServer.pm line 1586.
DBD::mysql::st execute failed: Table 'nictool.nt_fake' doesn't exist at /usr/share/perl5/DBIx/Simple.pm line 160.
exec_query called by main, 73
   DELETE FROM nt_fake WHERE nt_zone_id=?
   DBI error: Table 'nictool.nt_fake' doesn't exist at lib/NicToolServer.pm line 1597.
# Testing NicToolServer 2.21, Perl 5.010001, /usr/bin/perl
t/01_data.t ............... ok     
t/02_basic.t .............. 1/7 # Failed test 3 in t/02_basic.t at line 40
#  t/02_basic.t line 40 is: ok( !$user->result->is_error );
# Failed test 4 in t/02_basic.t at line 41
#  t/02_basic.t line 41 is: ok( $user->nt_user_session );
Attempting to call method logout on an error result at api/lib/NicTool/DBObject.pm line 116
   NicTool::DBObject::_call('NicTool::User=HASH(0x25c9fb8)', 'logout') called at api/lib/NicTool/DBObject.pm line 209
   NicTool::DBObject::AUTOLOAD('NicTool::User=HASH(0x25c9fb8)') called at api/lib/NicTool.pm line 488
   NicTool::AUTOLOAD('NicTool=HASH(0x1cf0560)') called at t/02_basic.t line 44
t/02_basic.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 5/7 subtests
t/04_groups.t ............. 1/325 # Failed test 2 in t/04_groups.t at line 49
#  t/04_groups.t line 49 is: die "Couldn't log in" unless ok( !$user->result->is_error );
Couldn't log in at t/04_groups.t line 49.
t/04_groups.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 324/325 subtests
t/06_users.t .............. 1/408 # Failed test 2 in t/06_users.t at line 55
#  t/06_users.t line 55 is: die "Couldn't log in" unless ok( !$nt_obj->result->is_error );
Couldn't log in at t/06_users.t line 55.
t/06_users.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 407/408 subtests
t/08_nameservers.t ........ 1/544 # Test 2 got: "soap:Client" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((soap:Client :SOAP: fault: Application failed during request deserialization: Can't locate SOAP/Lite/Deserializer/XMLSchema2001.pm in @INC (@INC contains: /usr/local/nictool/client/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 106) line 3.
# :) main:t/08_nameservers.t:54)
Couldn't log in at t/08_nameservers.t line 54.
t/08_nameservers.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 543/544 subtests
t/10_zones.t .............. 2/325 # Test 2 got: "soap:Client" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((soap:Client :SOAP: fault: Application failed during request deserialization: Can't locate SOAP/Lite/Deserializer/XMLSchema2001.pm in @INC (@INC contains: /usr/local/nictool/client/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 106) line 3.
# :) main:t/10_zones.t:53)
Couldn't log in at t/10_zones.t line 53.
t/10_zones.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 324/325 subtests
t/12_records.t ............ 1/6024 # Test 2 got: "soap:Client" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((soap:Client :SOAP: fault: Application failed during request deserialization: Can't locate SOAP/Lite/Deserializer/XMLSchema2001.pm in @INC (@INC contains: /usr/local/nictool/client/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 106) line 3.
# :) main:t/12_records.t:55)
Couldn't log in at t/12_records.t line 55.
t/12_records.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 6023/6024 subtests
t/14_permissions.t ........ 1/4656 # Test 2 got: "soap:Client" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((soap:Client :SOAP: fault: Application failed during request deserialization: Can't locate SOAP/Lite/Deserializer/XMLSchema2001.pm in @INC (@INC contains: /usr/local/nictool/client/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 106) line 3.
# :) main:t/14_permissions.t:67)
Couldn't log in at t/14_permissions.t line 67.
t/14_permissions.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4655/4656 subtests
t/16_delegation.t ......... 1/896 # Test 2 got: "soap:Client" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((soap:Client :SOAP: fault: Application failed during request deserialization: Can't locate SOAP/Lite/Deserializer/XMLSchema2001.pm in @INC (@INC contains: /usr/local/nictool/client/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 106) line 3.
# :) main:t/16_delegation.t:175)
Couldn't log in at t/16_delegation.t line 175.
t/16_delegation.t ......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 895/896 subtests
t/18_interaction.t ........ 1/200 # Test 2 got: "soap:Client" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((soap:Client :SOAP: fault: Application failed during request deserialization: Can't locate SOAP/Lite/Deserializer/XMLSchema2001.pm in @INC (@INC contains: /usr/local/nictool/client/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 113) line 3.
# :) main:t/18_interaction.t:56)
Couldn't log in at t/18_interaction.t line 56.
t/18_interaction.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 199/200 subtests
t/20_security.t ........... 1/291 # Test 2 got: "soap:Client" (t/NicToolTest.pm at line 56)
#   Expected: "200" ((soap:Client :SOAP: fault: Application failed during request deserialization: Can't locate SOAP/Lite/Deserializer/XMLSchema2001.pm in @INC (@INC contains: /usr/local/nictool/client/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 113) line 3.
# :) main:t/20_security.t:153)
Couldn't log in at t/20_security.t line 153.
t/20_security.t ........... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 290/291 subtests
t/22_export.t ............. 1/? value not within IP port range: 0 - 65535 at lib/NicToolServer/Export.pm line 786.
value not within IP port range: 0 - 65535 at lib/NicToolServer/Export.pm line 786.
t/22_export.t ............. ok   
t/author-critic.t ......... skipped: these tests are for testing by the author
t/release-pod-coverage.t .. skipped: these tests are for release candidate testing
t/release-pod-syntax.t .... skipped: these tests are for release candidate testing

Test Summary Report
-------------------
t/00-syntax.t           (Wstat: 256 Tests: 25 Failed: 4)
  Failed tests:  20, 23-25
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 22 tests but ran 25.
t/02_basic.t            (Wstat: 65280 Tests: 4 Failed: 2)
  Failed tests:  3-4
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 7 tests but ran 4.
t/04_groups.t           (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 325 tests but ran 2.
t/06_users.t            (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 408 tests but ran 2.
t/08_nameservers.t      (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 544 tests but ran 2.
t/10_zones.t            (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 325 tests but ran 2.
t/12_records.t          (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 6024 tests but ran 2.
t/14_permissions.t      (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 4656 tests but ran 2.
t/16_delegation.t       (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 896 tests but ran 2.
t/18_interaction.t      (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 200 tests but ran 2.
t/20_security.t         (Wstat: 65280 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 291 tests but ran 2.
Files=16, Tests=100,  2 wallclock secs ( 0.05 usr  0.03 sys +  1.90 cusr  0.23 csys =  2.21 CPU)
Result: FAIL
Failed 11/16 test programs. 15/100 subtests failed.
make: *** [test_dynamic] Error 255

We can retrieve the same error message.

It seems I am the only personn having this trouble. It would suggest I done something wrong during the installation. I think I will install from scartch on another VM to see if it works.

I will keep this VM up until the new is built. If you have a suggestion, I will be able to test it.

Thanks anyway for your help

matt

My guess is that CentOS has stripped something out of their perl install that would normally be present with a default perl install. They have a long history of doing that. I suspect it's a matter of figuring out what and installing it.

marax

Hi.

Pb solved.

The directory /usr/local/share/perl5 which contains SOAP/Lite/Deserializer was available only from root:root (chmod 700) and on usr_t selinux context.

Did I forget to mention I have to run with selinux mode enforcing, sorry ?

So I started to change the type of the directories under /usr/local/share using :
semanage fcontext -a -t httpd_sys_content_t "perl5(/.*)?"

Command inspired from here : http://wiki.centos.org/HowTos/SELinux

After this modification (And reboot + restart httpd), pb was the same.

I then notified /usr/local/share/perl5 was only accessible from root :
drwx------. 20 root root 4096 Feb  7 00:28 perl5

So, I ran :
chmod -R a+r perl5
chmod a+x perl5

I also did the same (chmod a+x "directory_name" ) for all directories under perl5 and until the directory containing XMLSchema2001.pm

After that (And a httpd restart) I was able to login to the webpage.

Conclusion, I don't know if the rights on perl5/.... directories was enough or if the is the conbination of semanage and rights ...

Anyway, it works now. It was an user error ;-)

Thanks for your time.

matt