You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Ian Holsman <li...@holsman.net> on 2005/01/07 03:35:23 UTC
t/api/access2 failing ?
1. Problem Description:
test failing.
t/api/access2....1..6
# Running under perl version 5.008006 for darwin
# Current time local: Thu Jan 6 18:32:40 2005
# Current time GMT: Fri Jan 7 02:32:40 2005
# Using Test.pm version 1.25
# Using Apache/Test.pm version 1.20
ok 1
# testing : no credentials passed
# expected: 401
# received: 403
not ok 2
# Failed test 2 in t/api/access2.t at line 15
ok 3
ok 4
not ok 5
# Failed test 5 in t/api/access2.t at line 24
not ok 6
# Failed test 6 in t/api/access2.t at line 27
FAILED tests 2, 5-6
Failed 3/6 tests, 50.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/api/access2.t 6 3 50.00% 2 5-6
Failed 1/1 test scripts, 0.00% okay. 3/6 subtests failed, 50.00% okay.
[warning] server localhost:8529 shutdown
[warning] port 8529 still in use...
done
[ error] error running tests (please examine t/logs/error_log)
END in modperl_extra.pl, pid=27527
END in modperl_extra.pl, pid=27527
[Thu Jan 06 18:32:39 2005] [notice] Apache/2.0.52 (Unix) world
domination series/2.0 mod_perl/1.999.21-dev Perl/v5.8.6 configured --
resuming normal operations
[Thu Jan 06 18:32:39 2005] [info] Server built: Dec 20 2004 12:33:06
[Thu Jan 06 18:32:39 2005] [debug] worker.c(1631): AcceptMutex: sysvsem
(default: sysvsem)
[Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
[Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
[Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
[Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
[Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
[Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
[Thu Jan 06 18:32:42 2005] [info] Child process pid=27544 is exiting
END in modperl_extra.pl, pid=27544
END in modperl_extra.pl, pid=27544
[Thu Jan 06 18:32:43 2005] [info] Child process pid=27536 is exiting
END in modperl_extra.pl, pid=27536
END in modperl_extra.pl, pid=27536
[Thu Jan 06 18:32:43 2005] [info] removed PID file
/src/asf/modperl/t/logs/httpd.pid (pid=27531)
[Thu Jan 06 18:32:43 2005] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=27531
END in modperl_extra.pl, pid=27531
2. Used Components and their Configuration:
*** mod_perl version 1.999021
*** using /src/asf/modperl/lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_APR_LIB => aprext
MP_APXS => /ex/httpd/bin/apxs
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
*** /ex/httpd/bin/httpd -V
Server version: Apache/2.0.52
Server built: Dec 20 2004 12:33:06
Server's Module Magic Number: 20020903:9
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/ex/httpd"
-D SUEXEC_BIN="/ex/httpd/bin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
*** (apr|apu)-config linking info
-L/ex/httpd/lib -lapr-0 -lresolv -lpthread
-L/ex/httpd/lib -laprutil-0 -lexpat -liconv
*** /ex/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
Platform:
osname=darwin, osvers=7.6.0, archname=darwin-thread-multi-2level
uname='darwin helios.local 7.6.0 darwin kernel version 7.6.0: sun
oct 10 12:05:27 pdt 2004; root:xnuxnu-517.9.4.obj~1release_ppc power
macintosh powerpc '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-faltivec -mcpu=7450 -mtune=7450 -mpowerpc
-mpowerpc-gfxopt -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe',
optimize='-Os',
cppflags='-no-cpp-precomp -faltivec -mcpu=7450 -mtune=7450
-mpowerpc -mpowerpc-gfxopt -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe'
ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build
1671)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/ex/lib
-L/usr/local/lib'
libpth=/ex/lib /usr/local/lib /usr/lib
libs=-ldbm -ldb -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/ex/lib -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Built under darwin
Compiled at Nov 29 2004 12:51:46
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/ex/lib/perl5/5.8.6/darwin-thread-multi-2level
/ex/lib/perl5/5.8.6
/ex/lib/perl5/site_perl/5.8.6/darwin-thread-multi-2level
/ex/lib/perl5/site_perl/5.8.6
/ex/lib/perl5/site_perl
/opt/pma/lib
.
*** Packages of interest status:
Apache::Request: -
CGI : 3.05
LWP : 5.801
mod_perl : 1.999021
3. This is the core dump trace: (if you get a core dump):
[CORE TRACE COMES HERE]
This report was generated by bin/mp2bug on Fri Jan 7 02:34:02 2005 GMT.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: t/api/access2 failing ?
Posted by Stas Bekman <st...@stason.org>.
Ian Holsman wrote:
> Stas Bekman wrote:
>
>> Ian Holsman wrote:
>>
>>> 1. Problem Description:
>>>
>>> test failing.
>>>
>>> t/api/access2....1..6
> It says localhost for me.
>
> <Location /TestAPI__access2>
> PerlAuthenHandler TestAPI::access2
> PerlResponseHandler Apache::TestHandler::ok1
> SetHandler modperl
>
> <IfModule mod_access.c>
> # needed to test $r->satisfies
> Order Deny,Allow
> Deny from all
> Allow from localhost
> </IfModule>
If you comment out that line:
# Allow from localhost
and run:
t/TEST -v t/api/access2
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: t/api/access2 failing ?
Posted by Ian Holsman <li...@holsman.net>.
Stas Bekman wrote:
> Ian Holsman wrote:
>
>> 1. Problem Description:
>>
>> test failing.
>>
>> t/api/access2....1..6
>> # Running under perl version 5.008006 for darwin
>> # Current time local: Thu Jan 6 18:32:40 2005
>> # Current time GMT: Fri Jan 7 02:32:40 2005
>> # Using Test.pm version 1.25
>> # Using Apache/Test.pm version 1.20
>> ok 1
>> # testing : no credentials passed
>> # expected: 401
>> # received: 403
>> not ok 2
>> # Failed test 2 in t/api/access2.t at line 15
>> ok 3
>> ok 4
>> not ok 5
>> # Failed test 5 in t/api/access2.t at line 24
>> not ok 6
>> # Failed test 6 in t/api/access2.t at line 27
>> FAILED tests 2, 5-6
>> Failed 3/6 tests, 50.00% okay
>> Failed Test Stat Wstat Total Fail Failed List of Failed
>> -------------------------------------------------------------------------------
>>
>> t/api/access2.t 6 3 50.00% 2 5-6
>> Failed 1/1 test scripts, 0.00% okay. 3/6 subtests failed, 50.00% okay.
>> [warning] server localhost:8529 shutdown
>> [warning] port 8529 still in use...
>> done
>> [ error] error running tests (please examine t/logs/error_log)
>>
>>
>> END in modperl_extra.pl, pid=27527
>> END in modperl_extra.pl, pid=27527
>> [Thu Jan 06 18:32:39 2005] [notice] Apache/2.0.52 (Unix) world
>> domination series/2.0 mod_perl/1.999.21-dev Perl/v5.8.6 configured --
>> resuming normal operations
>> [Thu Jan 06 18:32:39 2005] [info] Server built: Dec 20 2004 12:33:06
>> [Thu Jan 06 18:32:39 2005] [debug] worker.c(1631): AcceptMutex:
>> sysvsem (default: sysvsem)
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
>> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
>
>
> Please show us the t/conf/httpd.conf entry (that's mine :) :
>
> <Location /TestAPI__access2>
> PerlAuthenHandler TestAPI::access2
> PerlResponseHandler Apache::TestHandler::ok1
> SetHandler modperl
>
> <IfModule mod_access.c>
> # needed to test $r->satisfies
> Order Deny,Allow
> Deny from all
> Allow from rabbit.stason.org
> </IfModule>
> AuthType Basic
> AuthName "Access"
> Require user goo bar
> Require group bar tar
> <Limit POST>
> Require valid-user
> </Limit>
> Satisfy All
> <IfModule mod_auth.c>
> # htpasswd -mbc auth-users goo foo
> # htpasswd -mb auth-users bar mar
> # using md5 password so it'll work on win32 too
> AuthUserFile /home/stas/apache.org/mp2-svn/t/htdocs/api/auth-users
> # group: user1 user2 ...
> AuthGroupFile
> /home/stas/apache.org/mp2-svn/t/htdocs/api/auth-groups
> </IfModule>
> </Location>
It says localhost for me.
<Location /TestAPI__access2>
PerlAuthenHandler TestAPI::access2
PerlResponseHandler Apache::TestHandler::ok1
SetHandler modperl
<IfModule mod_access.c>
# needed to test $r->satisfies
Order Deny,Allow
Deny from all
Allow from localhost
</IfModule>
AuthType Basic
AuthName "Access"
Require user goo bar
Require group bar tar
<Limit POST>
Require valid-user
</Limit>
Satisfy All
<IfModule mod_auth.c>
# htpasswd -mbc auth-users goo foo
# htpasswd -mb auth-users bar mar
# using md5 password so it'll work on win32 too
AuthUserFile /src/asf/modperl/t/htdocs/api/auth-users
# group: user1 user2 ...
AuthGroupFile /src/asf/modperl/t/htdocs/api/auth-groups
</IfModule>
</Location>
>
> and see why it has failed. I'd think that the entry in Allow is not
> matching your client.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: t/api/access2 failing ?
Posted by Stas Bekman <st...@stason.org>.
Ian Holsman wrote:
> 1. Problem Description:
>
> test failing.
>
> t/api/access2....1..6
> # Running under perl version 5.008006 for darwin
> # Current time local: Thu Jan 6 18:32:40 2005
> # Current time GMT: Fri Jan 7 02:32:40 2005
> # Using Test.pm version 1.25
> # Using Apache/Test.pm version 1.20
> ok 1
> # testing : no credentials passed
> # expected: 401
> # received: 403
> not ok 2
> # Failed test 2 in t/api/access2.t at line 15
> ok 3
> ok 4
> not ok 5
> # Failed test 5 in t/api/access2.t at line 24
> not ok 6
> # Failed test 6 in t/api/access2.t at line 27
> FAILED tests 2, 5-6
> Failed 3/6 tests, 50.00% okay
> Failed Test Stat Wstat Total Fail Failed List of Failed
> -------------------------------------------------------------------------------
>
> t/api/access2.t 6 3 50.00% 2 5-6
> Failed 1/1 test scripts, 0.00% okay. 3/6 subtests failed, 50.00% okay.
> [warning] server localhost:8529 shutdown
> [warning] port 8529 still in use...
> done
> [ error] error running tests (please examine t/logs/error_log)
>
>
> END in modperl_extra.pl, pid=27527
> END in modperl_extra.pl, pid=27527
> [Thu Jan 06 18:32:39 2005] [notice] Apache/2.0.52 (Unix) world
> domination series/2.0 mod_perl/1.999.21-dev Perl/v5.8.6 configured --
> resuming normal operations
> [Thu Jan 06 18:32:39 2005] [info] Server built: Dec 20 2004 12:33:06
> [Thu Jan 06 18:32:39 2005] [debug] worker.c(1631): AcceptMutex: sysvsem
> (default: sysvsem)
> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
> [Thu Jan 06 18:32:42 2005] [error] [client 127.0.0.1] client denied by
> server configuration: /src/asf/modperl/t/htdocs/TestAPI__access2
Please show us the t/conf/httpd.conf entry (that's mine :) :
<Location /TestAPI__access2>
PerlAuthenHandler TestAPI::access2
PerlResponseHandler Apache::TestHandler::ok1
SetHandler modperl
<IfModule mod_access.c>
# needed to test $r->satisfies
Order Deny,Allow
Deny from all
Allow from rabbit.stason.org
</IfModule>
AuthType Basic
AuthName "Access"
Require user goo bar
Require group bar tar
<Limit POST>
Require valid-user
</Limit>
Satisfy All
<IfModule mod_auth.c>
# htpasswd -mbc auth-users goo foo
# htpasswd -mb auth-users bar mar
# using md5 password so it'll work on win32 too
AuthUserFile /home/stas/apache.org/mp2-svn/t/htdocs/api/auth-users
# group: user1 user2 ...
AuthGroupFile /home/stas/apache.org/mp2-svn/t/htdocs/api/auth-groups
</IfModule>
</Location>
and see why it has failed. I'd think that the entry in Allow is not
matching your client.
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org