Test failing: 'buffereduploads' on Ubuntu 8.04.1 under Xen

3 views
Skip to first unread message

Brett Hoerner

unread,
Aug 27, 2008, 9:41:56 AM8/27/08
to perlbal
Ubuntu Kernel 2.6.24-19-xen (Kernel command line: root=/dev/sda1 ro
xencons=tty console=tty1 clocksource=jiffies)
Perl 5.8.8
CPAN 1.9205

I don't have any reason to believe it's related to Xen, but I've never
had any issues using Perlbal on Ubuntu otherwise. I could be missing
something simple, but I'm pretty clueless. ;)

Brett



---

cpan[1]> test Perlbal
CPAN: Storable loaded ok (v2.15)
Going to read /home/brett/.cpan/Metadata
Database was generated on Mon, 25 Aug 2008 20:03:27 GMT
Running test for module 'Perlbal'
Running make for B/BR/BRADFITZ/Perlbal-1.70.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.012)
Checksum for /home/brett/.cpan/sources/authors/id/B/BR/BRADFITZ/
Perlbal-1.70.tar.gz
ok
Scanning cache /home/brett/.cpan/build for sizes
....................................................................--------
DONE
DEL(1/3): /home/brett/.cpan/build/Bundle-CPAN-1.857
DEL(2/3): /home/brett/.cpan/build/Test-Harness-3.13
DEL(3/3): /home/brett/.cpan/build/ExtUtils-MakeMaker-6.44
cpan[1]> test PerlbalPerlbal-1.70/
Perlbal-1.70/doc/
Perlbal-1.70/doc/hacking/
Perlbal-1.70/doc/hacking/todo.txt
Perlbal-1.70/doc/hacking/classes.txt
Perlbal-1.70/doc/hacking/hooks.txt
Perlbal-1.70/doc/reproxying.txt
Perlbal-1.70/doc/service-parameters.txt
Perlbal-1.70/doc/config-guide.txt
Perlbal-1.70/doc/http-versions.txt
Perlbal-1.70/lib/
Perlbal-1.70/lib/Perlbal/
Perlbal-1.70/lib/Perlbal/Plugin/
Perlbal-1.70/lib/Perlbal/Plugin/Highpri.pm
Perlbal-1.70/lib/Perlbal/Plugin/AccessControl.pm
Perlbal-1.70/lib/Perlbal/Plugin/Vhosts.pm
Perlbal-1.70/lib/Perlbal/Plugin/Stats.pm
Perlbal-1.70/lib/Perlbal/Plugin/Palimg.pm
Perlbal-1.70/lib/Perlbal/Plugin/Vpaths.pm
Perlbal-1.70/lib/Perlbal/Plugin/LazyCDN.pm
Perlbal-1.70/lib/Perlbal/Plugin/NotModified.pm
Perlbal-1.70/lib/Perlbal/Plugin/Include.pm
Perlbal-1.70/lib/Perlbal/Plugin/AutoRemoveLeadingDir.pm
Perlbal-1.70/lib/Perlbal/Plugin/Cgilike.pm
Perlbal-1.70/lib/Perlbal/Plugin/Queues.pm
Perlbal-1.70/lib/Perlbal/Plugin/EchoService.pm
Perlbal-1.70/lib/Perlbal/ClientProxy.pm
Perlbal-1.70/lib/Perlbal/BackendHTTP.pm
Perlbal-1.70/lib/Perlbal/Test/
Perlbal-1.70/lib/Perlbal/Test/WebClient.pm
Perlbal-1.70/lib/Perlbal/Test/WebServer.pm
Perlbal-1.70/lib/Perlbal/TCPListener.pm
Perlbal-1.70/lib/Perlbal/Test.pm
Perlbal-1.70/lib/Perlbal/ClientHTTP.pm
Perlbal-1.70/lib/Perlbal/AIO.pm
Perlbal-1.70/lib/Perlbal/HTTPHeaders.pm
Perlbal-1.70/lib/Perlbal/Cache.pm
Perlbal-1.70/lib/Perlbal/Socket.pm
Perlbal-1.70/lib/Perlbal/ManageCommand.pm
Perlbal-1.70/lib/Perlbal/ClientManage.pm
Perlbal-1.70/lib/Perlbal/ChunkedUploadState.pm
Perlbal-1.70/lib/Perlbal/CommandContext.pm
Perlbal-1.70/lib/Perlbal/Service.pm
Perlbal-1.70/lib/Perlbal/UploadListener.pm
Perlbal-1.70/lib/Perlbal/Util.pm
Perlbal-1.70/lib/Perlbal/SocketSSL.pm
Perlbal-1.70/lib/Perlbal/Pool.pm
Perlbal-1.70/lib/Perlbal/ReproxyManager.pm
Perlbal-1.70/lib/Perlbal/ClientHTTPBase.pm
Perlbal-1.70/lib/Perlbal.pm
Perlbal-1.70/conf/
Perlbal-1.70/conf/echoservice.conf
Perlbal-1.70/conf/load-balancer.conf
Perlbal-1.70/conf/virtual-hosts.conf
Perlbal-1.70/conf/ssl.conf
Perlbal-1.70/conf/webserver.conf
Perlbal-1.70/conf/nodelist.dat
Perlbal-1.70/conf/not-modified-plugin.conf
Perlbal-1.70/devtools/
Perlbal-1.70/devtools/gendocs.pl
Perlbal-1.70/MANIFEST
Perlbal-1.70/t/
Perlbal-1.70/t/75-plugin-include.t
Perlbal-1.70/t/15-webserver.t
Perlbal-1.70/t/22-chunked-put.t
Perlbal-1.70/t/50-plugins.t
Perlbal-1.70/t/32-pipelining.t
Perlbal-1.70/t/35-reproxy.t
Perlbal-1.70/t/30-reverseproxy.t
Perlbal-1.70/t/40-ranges.t
Perlbal-1.70/t/12-headers.t
Perlbal-1.70/t/20-put.t
Perlbal-1.70/t/52-chunked-upload.t
Perlbal-1.70/t/10-testharness.t
Perlbal-1.70/t/60-child-httpd.t
Perlbal-1.70/t/32-selector.t
Perlbal-1.70/t/00-use.t
Perlbal-1.70/t/17-webserver-concat.t
Perlbal-1.70/t/45-buffereduploads.t
Perlbal-1.70/t/31-realworld.t
Perlbal-1.70/t/helper/
Perlbal-1.70/t/helper/child-httpd.pl
Perlbal-1.70/perlbal
Perlbal-1.70/CHANGES
Perlbal-1.70/META.yml
Perlbal-1.70/Makefile.PL
CPAN: File::Temp loaded ok (v0.20)
CPAN: YAML loaded ok (v0.66)

CPAN.pm: Going to build B/BR/BRADFITZ/Perlbal-1.70.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Perlbal
cp lib/Perlbal/CommandContext.pm blib/lib/Perlbal/CommandContext.pm
cp lib/Perlbal/Plugin/LazyCDN.pm blib/lib/Perlbal/Plugin/LazyCDN.pm
cp lib/Perlbal/Plugin/Highpri.pm blib/lib/Perlbal/Plugin/Highpri.pm
cp lib/Perlbal/Service.pm blib/lib/Perlbal/Service.pm
cp lib/Perlbal/ClientProxy.pm blib/lib/Perlbal/ClientProxy.pm
cp lib/Perlbal/BackendHTTP.pm blib/lib/Perlbal/BackendHTTP.pm
cp lib/Perlbal/Plugin/AccessControl.pm blib/lib/Perlbal/Plugin/
AccessControl.pm
cp lib/Perlbal/Test/WebClient.pm blib/lib/Perlbal/Test/WebClient.pm
cp lib/Perlbal/Plugin/NotModified.pm blib/lib/Perlbal/Plugin/
NotModified.pm
cp lib/Perlbal/Plugin/Vhosts.pm blib/lib/Perlbal/Plugin/Vhosts.pm
cp lib/Perlbal/Plugin/Include.pm blib/lib/Perlbal/Plugin/Include.pm
cp lib/Perlbal/UploadListener.pm blib/lib/Perlbal/UploadListener.pm
cp lib/Perlbal/Util.pm blib/lib/Perlbal/Util.pm
cp lib/Perlbal/TCPListener.pm blib/lib/Perlbal/TCPListener.pm
cp lib/Perlbal/Test/WebServer.pm blib/lib/Perlbal/Test/WebServer.pm
cp lib/Perlbal/Test.pm blib/lib/Perlbal/Test.pm
cp lib/Perlbal/ClientHTTP.pm blib/lib/Perlbal/ClientHTTP.pm
cp lib/Perlbal/AIO.pm blib/lib/Perlbal/AIO.pm
cp lib/Perlbal/Plugin/AutoRemoveLeadingDir.pm
blib/lib/Perlbal/Plugin/AutoRemoveLeadingDir.pm
cp lib/Perlbal/SocketSSL.pm blib/lib/Perlbal/SocketSSL.pm
cp lib/Perlbal/HTTPHeaders.pm blib/lib/Perlbal/HTTPHeaders.pm
cp lib/Perlbal/Plugin/Cgilike.pm blib/lib/Perlbal/Plugin/Cgilike.pm
cp lib/Perlbal/Cache.pm blib/lib/Perlbal/Cache.pm
cp lib/Perlbal/Plugin/Queues.pm blib/lib/Perlbal/Plugin/Queues.pm
cp lib/Perlbal.pm blib/lib/Perlbal.pm
cp lib/Perlbal/Socket.pm blib/lib/Perlbal/Socket.pm
cp lib/Perlbal/Pool.pm blib/lib/Perlbal/Pool.pm
cp lib/Perlbal/Plugin/Stats.pm blib/lib/Perlbal/Plugin/Stats.pm
cp lib/Perlbal/ManageCommand.pm blib/lib/Perlbal/ManageCommand.pm
cp lib/Perlbal/Plugin/Palimg.pm blib/lib/Perlbal/Plugin/Palimg.pm
cp lib/Perlbal/ClientManage.pm blib/lib/Perlbal/ClientManage.pm
cp lib/Perlbal/ReproxyManager.pm blib/lib/Perlbal/ReproxyManager.pm
cp lib/Perlbal/Plugin/EchoService.pm blib/lib/Perlbal/Plugin/
EchoService.pm
cp lib/Perlbal/ClientHTTPBase.pm blib/lib/Perlbal/ClientHTTPBase.pm
cp lib/Perlbal/ChunkedUploadState.pm blib/lib/Perlbal/
ChunkedUploadState.pm
cp lib/Perlbal/Plugin/Vpaths.pm blib/lib/Perlbal/Plugin/Vpaths.pm
cp perlbal blib/script/perlbal
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/
perlbal
Manifying blib/man1/perlbal.1p
Manifying blib/man3/Perlbal::Plugin::Cgilike.3pm
Manifying blib/man3/Perlbal::Util.3pm
Manifying blib/man3/Perlbal.3pm
Manifying blib/man3/Perlbal::Plugin::Include.3pm
Manifying blib/man3/Perlbal::Plugin::Palimg.3pm
BRADFITZ/Perlbal-1.70.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-use.................ok
t/10-testharness.........ok
t/12-headers.............ok
t/15-webserver...........ok
t/17-webserver-concat....ok
t/20-put.................ok
t/22-chunked-put.........1/? # Writing: 500
# Writing: 5
# Writing: 5
# Writing: 5
t/22-chunked-put.........2/? # Writing: 100000
# Writing: 60000
# Writing: 1000
# Writing: 338485
t/22-chunked-put.........ok
t/30-reverseproxy........ok
t/31-realworld...........ok
t/32-pipelining..........1/12 # separator length 2
t/32-pipelining..........7/12 # separator length 0
t/32-pipelining..........9/12 500 response!
t/32-pipelining..........ok
t/32-selector............ok
t/35-reproxy.............ok
t/40-ranges..............ok
t/45-buffereduploads.....18/?
# Failed test 'no_buffer_on_rate: no buffer reason'
# at t/45-buffereduploads.t line 206.
t/45-buffereduploads.....29/?
# Failed test 'no_buffer_on_time: no file'
# at t/45-buffereduploads.t line 222.

# Failed test 'no_buffer_on_time: no buffer reason'
# at t/45-buffereduploads.t line 206.
# Looks like you failed 3 tests of 31.
t/45-buffereduploads..... Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/31 subtests
t/50-plugins.............ok
t/52-chunked-upload......ok
t/60-child-httpd.........skipped: Alpha feature; test skipped without
$ENV{PERLBAL_TEST_ALPHA}
t/75-plugin-include......3/8 Manage command failed: 'INCLUDE =
/tmp/S2NREQm9db/d.conf' 'ERROR: Error opening config file
(/tmp/S2NREQm9db/d.conf): No such file or directory
'
t/75-plugin-include......ok

Test Summary Report
-------------------
t/45-buffereduploads (Wstat: 768 Tests: 31 Failed: 3)
Failed tests: 23, 29, 31
Non-zero exit status: 3
Files=18, Tests=466, 54 wallclock secs ( 0.18 usr 0.06 sys + 2.72
cusr 0.53 csys = 3.49 CPU)
Result: FAIL
Failed 1/18 test programs. 3/466 subtests failed.
make: *** [test_dynamic] Error 255
BRADFITZ/Perlbal-1.70.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module,
try:
reports BRADFITZ/Perlbal-1.70.tar.gz
Failed during this command:
BRADFITZ/Perlbal-1.70.tar.gz : make_test NO

dormando

unread,
Aug 31, 2008, 8:24:11 PM8/31/08
to perlbal
it looks like it might not be able to write files to /tmp or something?

Can you poke around that test a little more?

prove t/45-buffereduploads
... to run that specific test...

maybe strace it or something. Do what you can to get a little more info :P

-Dormando

Andrew McClain

unread,
Sep 3, 2008, 5:20:10 PM9/3/08
to perlbal
You also may want to look at the ubuntu package at
https://edge.launchpad.net/~awmcclain/+archive

Brett Hoerner

unread,
Sep 3, 2008, 5:45:39 PM9/3/08
to per...@googlegroups.com
On Wed, Sep 3, 2008 at 4:20 PM, Andrew McClain <awmc...@gmail.com> wrote:
> You also may want to look at the ubuntu package at
> https://edge.launchpad.net/~awmcclain/+archive

Hmm, I grabbed the Ubuntu tar and tried the tests. They passed once,
and then failed twice (in two different ways) with no changed between
test runs (I did one after another). I haven't really pried into this
anymore yet ... I actually only know a little Perl _because_ of
Perlbal, and I'm sort of clueless as to debugging it. I'll try to
give it some time next week if I can, for now those 3 runs are
attached.

Brett

---

$ PERL5LIB=lib/ prove -v t/45-buffereduploads.t
t/45-buffereduploads....
ok 1 - webserver started
beginning run
ok 2 - perlbal started
ok 3 - no files in buffer directory
ok 4 - buffer_off: good response
ok 5 - buffer_off: no buffer reason
ok 6 - buffer_off: no file
ok 7 - buffer_on_size: buffer file exists
ok 8 - buffer_on_size: good response
ok 9 - buffer_on_size: did buffer for size
ok 10 - buffer_on_size: no file
ok 11 - no_buffer_on_size: no file
ok 12 - no_buffer_on_size: good response
ok 13 - no_buffer_on_size: no buffer reason
ok 14 - no_buffer_on_size: no file
ok 15 - clean_on_early_close: buffer file exists
ok 16 - clean_on_early_close: no file
ok 17 - buffer_on_rate: no file
ok 18 - buffer_on_rate: buffer file exists
ok 19 - buffer_on_rate: good response
ok 20 - buffer_on_rate: did buffer for rate
ok 21 - buffer_on_rate: no file
ok 22 - no_buffer_on_rate: good response
ok 23 - no_buffer_on_rate: no buffer reason
ok 24 - no_buffer_on_rate: no file
ok 25 - buffer_on_time: buffer file exists
ok 26 - buffer_on_time: good response
ok 27 - buffer_on_time: did buffer for time
ok 28 - buffer_on_time: no file
ok 29 - no_buffer_on_time: no file
ok 30 - no_buffer_on_time: good response
ok 31 - no_buffer_on_time: no buffer reason
1..31
ok
All tests successful.
Files=1, Tests=31, 7 wallclock secs ( 0.01 usr 0.01 sys + 0.12 cusr
0.07 csys = 0.21 CPU)
Result: PASS

$ PERL5LIB=lib/ prove -v t/45-buffereduploads.t
t/45-buffereduploads....
ok 1 - webserver started
beginning run
ok 2 - perlbal started
ok 3 - no files in buffer directory
ok 4 - buffer_off: good response
ok 5 - buffer_off: no buffer reason
ok 6 - buffer_off: no file
ok 7 - buffer_on_size: buffer file exists
ok 8 - buffer_on_size: good response
ok 9 - buffer_on_size: did buffer for size
ok 10 - buffer_on_size: no file
ok 11 - no_buffer_on_size: no file
ok 12 - no_buffer_on_size: good response
ok 13 - no_buffer_on_size: no buffer reason
ok 14 - no_buffer_on_size: no file
ok 15 - clean_on_early_close: buffer file exists
ok 16 - clean_on_early_close: no file
ok 17 - buffer_on_rate: no file
ok 18 - buffer_on_rate: buffer file exists
ok 19 - buffer_on_rate: good response
ok 20 - buffer_on_rate: did buffer for rate
ok 21 - buffer_on_rate: no file
ok 22 - no_buffer_on_rate: good response
not ok 23 - no_buffer_on_rate: no buffer reason

# Failed test 'no_buffer_on_rate: no buffer reason'
# at t/45-buffereduploads.t line 206.

ok 24 - no_buffer_on_rate: no file
ok 25 - buffer_on_time: buffer file exists
ok 26 - buffer_on_time: good response
ok 27 - buffer_on_time: did buffer for time
ok 28 - buffer_on_time: no file
ok 29 - no_buffer_on_time: no file
ok 30 - no_buffer_on_time: good response
ok 31 - no_buffer_on_time: no buffer reason
1..31
# Looks like you failed 1 test of 31.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/31 subtests

Test Summary Report
-------------------
t/45-buffereduploads (Wstat: 256 Tests: 31 Failed: 1)
Failed test: 23
Non-zero exit status: 1
Files=1, Tests=31, 8 wallclock secs ( 0.02 usr 0.00 sys + 0.11 cusr
0.06 csys = 0.19 CPU)
Result: FAIL

$ PERL5LIB=lib/ prove -v t/45-buffereduploads.t
t/45-buffereduploads....
ok 1 - webserver started
beginning run
ok 2 - perlbal started
ok 3 - no files in buffer directory
ok 4 - buffer_off: good response
ok 5 - buffer_off: no buffer reason
ok 6 - buffer_off: no file
ok 7 - buffer_on_size: buffer file exists
ok 8 - buffer_on_size: good response
ok 9 - buffer_on_size: did buffer for size
ok 10 - buffer_on_size: no file
ok 11 - no_buffer_on_size: no file
ok 12 - no_buffer_on_size: good response
ok 13 - no_buffer_on_size: no buffer reason
ok 14 - no_buffer_on_size: no file
ok 15 - clean_on_early_close: buffer file exists
ok 16 - clean_on_early_close: no file
ok 17 - buffer_on_rate: no file
ok 18 - buffer_on_rate: buffer file exists
ok 19 - buffer_on_rate: good response
ok 20 - buffer_on_rate: did buffer for rate
ok 21 - buffer_on_rate: no file
ok 22 - no_buffer_on_rate: good response
not ok 23 - no_buffer_on_rate: no buffer reason

# Failed test 'no_buffer_on_rate: no buffer reason'
# at t/45-buffereduploads.t line 206.

ok 24 - no_buffer_on_rate: no file
ok 25 - buffer_on_time: buffer file exists
ok 26 - buffer_on_time: good response
ok 27 - buffer_on_time: did buffer for time
ok 28 - buffer_on_time: no file
not ok 29 - no_buffer_on_time: no file

# Failed test 'no_buffer_on_time: no file'
# at t/45-buffereduploads.t line 222.

ok 30 - no_buffer_on_time: good response
not ok 31 - no_buffer_on_time: no buffer reason

# Failed test 'no_buffer_on_time: no buffer reason'
# at t/45-buffereduploads.t line 206.

1..31


# Looks like you failed 3 tests of 31.

Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/31 subtests

Test Summary Report


-------------------
t/45-buffereduploads (Wstat: 768 Tests: 31 Failed: 3)
Failed tests: 23, 29, 31
Non-zero exit status: 3

Files=1, Tests=31, 7 wallclock secs ( 0.02 usr 0.00 sys + 0.11 cusr
0.06 csys = 0.19 CPU)
Result: FAIL

Reply all
Reply to author
Forward
0 new messages