Re: file size problem

"Alex Teslik" <[email protected]> Thu, 20 Mar 2014 12:01:37 -0700
Newsgroups gmane.mail.majordomo.majordomo2.devel
Message-ID <[email protected]>
Do you need such large debug file? I would just empty it or rotate the log.


File too large at /usr/local/mj/inst/lib/Mj/File.pm line 149

File.pm line 149: $self->{handle}->close() || $::log->abort("Unable to close
$self: $!");

The close method on the handle looks like its coming from IO::File. I'd look
there.

Thanks,
Alex

On Thu, 20 Mar 2014 19:18:24 +0100, Mathieu Arnold wrote
> Hi,
> 
> This month, and for the first time, it seems I've hit some limit I can't
> quite put my finger on.
> The archive file for the list in question is just a few bytes shy of
> 50000kB, and when an email gets delivered on the list, in mj_resend.debug
> I'm getting:
> 
> --== Use of uninitialized value in numeric ge (>=) at (eval 33646) line 10.
> Unable to close Mj::File=HASH(0x1348b28): File too large at
> /usr/local/mj/inst/lib/Mj/File.pm line 149
>         Mj::File::close('Mj::File=HASH(0x1348b28)') called at
> blib/lib/Mj/Archive.pm (autosplit into
> blib/lib/auto/Mj/Archive/add_done.al) line 407
>         Mj::Archive::add_done('Mj::Archive=HASH(0x1328948)',
> '/usr/local/mj/tmp/mjr.82035.Qdj2vg.arc') called at blib/lib/Mj/List.pm
> (autosplit into blib/lib/auto/Mj/List/archive_add_done.al) line 2399
>         Mj::List::archive_add_done('Mj::List=HASH(0xfbed58)',
> '/usr/local/mj/tmp/mjr.82035.Qdj2vg.arc') called at blib/lib/Mj/Resend.pm
> (autosplit into blib/lib/auto/Mj/Resend/_post.al) line 694
>         Mj::Resend::_post('Majordomo=HASH(0x9deb28)', 'info',
> 'Mj::Addr=HASH(0x11170c8)', 'Mj::Addr=HASH(0x11170c8)', '', '(post to
> info)', '/usr/local/mj/lists/absolight.fr/GLOBAL/spool/06DD-F0F8-
> C36B', '', 'total_header_length\x{2}791\x{2}posts_this_week\x{2}4\x{2}quote
> d_lines\x{2}0\x{2}post...', ...) called at blib/lib/Mj/Resend.pm (autosplit
> into blib/lib/auto/Mj/Resend/post.al) line 238
>         Mj::Resend::post('Majordomo=HASH(0x9deb28)', 'HASH(0x6ea3c8)
> ', undef) called at /usr/local/mj/inst/lib/Majordomo.pm line 705     
>    Majordomo::dispatch('Majordomo=HASH(0x9deb28)', 'HASH(0x6ea3c8)') 
> called at /usr/local/mj/inst/bin/mj_queuerun line 542        
> main::resend('Majordomo=HASH(0x9deb28)', 'info', 
> '/usr/local/mj/lists/QUEUE/10/absolight.fr/10/list/TAA-82032-info',
>  '') called at /usr/local/mj/inst/bin/mj_queuerun line 401       
>  main::run_queue() called at /usr/local/mj/inst/bin/mj_queuerun line 
> 170
> --==    (in cleanup) Unable to close Mj::File=HASH(0x1348b28): Bad file
> descriptor at /usr/local/mj/inst/lib/Mj/File.pm line 149
>         Mj::File::close('Mj::File=HASH(0x1348b28)') called at
> /usr/local/mj/inst/lib/Mj/File.pm line 61
>         Mj::File::DESTROY('Mj::File=HASH(0x1348b28)') called at
> /usr/local/mj/inst/bin/mj_queuerun line 0
>         eval {...} called at /usr/local/mj/inst/bin/mj_queuerun line 0
> 
> I've grepped all Mj2's source, my local configurations, and Perl,
>  and I can't understand where this 50000kB comes from. But it's 
> clearly there, as the .debug log files are stuck to the same size limit.
> 
> Maybe it's some config value somewhere, but I can't, for the sake of 
> me find what.
> 
> Any hints ?
> 
> -- 
> Mathieu Arnold