[rt-users] Error writing to rt.log

Mathew Snyder theillien at yahoo.com
Wed Aug 1 13:04:13 EDT 2007


I haven't changed the file.  I cleared it out by running
echo '' > rt.log

The permissions are the same as they have always been and it is actually being
written to.  The problem is only intermittent.

Keep up with me and what I'm up to: http://theillien.blogspot.com


Jesse Vincent wrote:
> 
> On Aug 1, 2007, at 12:56 PM, Mathew Snyder wrote:
> 
>> I just cleared out a 35GB rt.log file.  Now, people are getting
>> intermittent errors:
> 
> Is the file in fact writable? Have you stopped and started your server?
> 
>>
>>
>> System error
>>
>> error:      Cannot write to '/usr/local/rt-3.6.1/var/log/rt.log': at
>> /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch/File.pm line 124.
>>     
>> context:    
>> ...         
>> 120:      }   
>> 121:      else   
>> 122:      {   
>> 123:      $fh = $self->{fh};   
>> 124:      print $fh $p{message}   
>> 125:      or die "Cannot write to '$self->{filename}': $!";   
>> 126:      }   
>> 127:      }   
>> 128:         
>> ...         
>> code stack:
>> /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch/File.pm:124
>> /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch/Output.pm:41
>> /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch.pm:95
>> /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch.pm:74
>> /usr/local/rt-3.6.1/lib/RT/Interface/Web.pm:1637
>> /usr/local/rt-3.6.1/share/html/Search/Build.html:227
>> /usr/local/rt-3.6.1/share/html/autohandler:279
>>     
>> raw error
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Cannot write to '/usr/local/rt-3.6.1/var/log/rt.log':  at
>> /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch/File.pm line 124.
>>
>>
>>
>>
>>
>> Trace begun at /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Exceptions.pm
>> line 129
>>
>> HTML::Mason::Exceptions::rethrow_exception('Cannot write to
>> \'/usr/local/rt-3.6.1/var/log/rt.log\':  at
>> /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch/File.pm line 124.^J')
>> called at /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch/File.pm line 124
>>
>> Log::Dispatch::File::log_message('Log::Dispatch::File=HASH(0xa7e6a64)',
>> 'level', 'warning', 'name', 'rtlog', 'message', '[Wed Aug  1 16:27:01
>> 2007] [warning]: Use of uninitialized value in pattern match (m//) at
>> /usr/local/rt-3.6.1//lib/RT/Interface/Web.pm line 1637.
>> (/usr/local/rt-3.6.1//lib/RT/Interface/Web.pm:1637)^J') called at
>> /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch/Output.pm line 41
>>
>> Log::Dispatch::Output::log(undef, 'level', 'warning', 'name', 'rtlog',
>> 'message', 'Use of uninitialized value in pattern match (m//) at
>> /usr/local/rt-3.6.1//lib/RT/Interface/Web.pm line 1637.^J') called at
>> /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch.pm line 95
>>
>> Log::Dispatch::_log_to('Log::Dispatch=HASH(0xa68d768)', 'level',
>> 'warning', 'name', 'rtlog', 'message', 'Use of uninitialized value in
>> pattern match (m//) at /usr/local/rt-3.6.1//lib/RT/Interface/Web.pm line
>> 1637.^J') called at /usr/lib/perl5/vendor_perl/5.8.8/Log/Dispatch.pm
>> line 74
>>
>> Log::Dispatch::log(undef, 'level', 'warning', 'message', 'Use of
>> uninitialized value in pattern match (m//) at
>> /usr/local/rt-3.6.1//lib/RT/Interface/Web.pm line 1637.^J') called at
>> /usr/local/rt-3.6.1/lib/RT/Interface/Web.pm line 1637
>>
>> HTML::Mason::Commands::_parse_saved_search(undef) called at
>> /usr/local/rt-3.6.1/share/html/Search/Build.html line 227
>>
>> HTML::Mason::Commands::__ANON__('Order', 'ASC|ASC|ASC|ASC', 'Query', '
>> Owner = \'ltesterman\' AND Status = \'open\'', 'Rows', 50, 'OrderBy',
>> 'id|||', 'Format', '\'   <b><a
>> href="/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#\',^J\'<b><a
>> href="/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject\
>> ',^J\'__Status__\',^J\'__QueueName__\',^J\'__OwnerName__\',^J\'__Priorit
>> y__\',^J\'__NEWLINE__\',^J\'\',^J\'<small>__Requestors__</small>\',^J\'<
>> small>__CreatedRelative__</small>\',^J\'<small>__ToldRelative__</small>\
>> ',^J\'<small>__LastUpdatedRelative__</small>\',^J\'<small>__TimeLeft__</
>> small>\'', 'Page', 1, 'Rows', 50, 'Format', '\'   <b><a
>> href="/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#\',^J\'<b><a
>> href="/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject\
>> ',^J\'__Status__\',^J\'__QueueName__\',^J\'__OwnerName__\',^J\'__Priorit
>> y__\',^J\'__NEWLINE__\',^J\'\',^J\'<small>__Requestors__</small>\',^J\'<
>> small>__CreatedRelative__</small>\',^J\'<small>__ToldRelative__</small>\
>> ',^J\'<small>__LastUpdatedRelative__</small>\',^J\'<small>__TimeLeft__</
>> small>\'', 'Query', ' Owner = \'ltesterman\' AND Status = \'open\'',
>> 'Page', 1, 'Order', 'ASC|ASC|ASC|ASC', 'OrderBy', 'id|||') called at
>> /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Component.pm line 135
>>
>> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xab
>> e62d0)', 'Order', 'ASC|ASC|ASC|ASC', 'Query', ' Owner = \'ltesterman\'
>> AND Status = \'open\'', 'Rows', 50, 'OrderBy', 'id|||', 'Format', '\'
>> <b><a
>> href="/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#\',^J\'<b><a
>> href="/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject\
>> ',^J\'__Status__\',^J\'__QueueName__\',^J\'__OwnerName__\',^J\'__Priorit
>> y__\',^J\'__NEWLINE__\',^J\'\',^J\'<small>__Requestors__</small>\',^J\'<
>> small>__CreatedRelative__</small>\',^J\'<small>__ToldRelative__</small>\
>> ',^J\'<small>__LastUpdatedRelative__</small>\',^J\'<small>__TimeLeft__</
>> small>\'', 'Page', 1, 'Rows', 50, 'Format', '\'   <b><a
>> href="/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#\',^J\'<b><a
>> href="/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject\
>> ',^J\'__Status__\',^J\'__QueueName__\',^J\'__OwnerName__\',^J\'__Priorit
>> y__\',^J\'__NEWLINE__\',^J\'\',^J\'<small>__Requestors__</small>\',^J\'<
>> small>__CreatedRelative__</small>\',^J\'<small>__ToldRelative__</small>\
>> ',^J\'<small>__LastUpdatedRelative__</small>\',^J\'<small>__TimeLeft__</
>> small>\'', 'Query', ' Owner = \'ltesterman\' AND Status = \'open\'',
>> 'Page', 1, 'Order', 'ASC|ASC|ASC|ASC', 'OrderBy', 'id|||') called at
>> /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm line 1251
>>
>> eval {...} at /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm
>> line 1245
>>
>> HTML::Mason::Request::comp(undef, undef, 'Order', 'ASC|ASC|ASC|ASC',
>> 'Query', ' Owner = \'ltesterman\' AND Status = \'open\'', 'Rows', 50,
>> 'OrderBy', 'id|||', 'Format', '\'   <b><a
>> href="/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#\',^J\'<b><a
>> href="/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject\
>> ',^J\'__Status__\',^J\'__QueueName__\',^J\'__OwnerName__\',^J\'__Priorit
>> y__\',^J\'__NEWLINE__\',^J\'\',^J\'<small>__Requestors__</small>\',^J\'<
>> small>__CreatedRelative__</small>\',^J\'<small>__ToldRelative__</small>\
>> ',^J\'<small>__LastUpdatedRelative__</small>\',^J\'<small>__TimeLeft__</
>> small>\'', 'Page', 1, 'Rows', 50, 'Format', '\'   <b><a
>> href="/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#\',^J\'<b><a
>> href="/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject\
>> ',^J\'__Status__\',^J\'__QueueName__\',^J\'__OwnerName__\',^J\'__Priorit
>> y__\',^J\'__NEWLINE__\',^J\'\',^J\'<small>__Requestors__</small>\',^J\'<
>> small>__CreatedRelative__</small>\',^J\'<small>__ToldRelative__</small>\
>> ',^J\'<small>__LastUpdatedRelative__</small>\',^J\'<small>__TimeLeft__</
>> small>\'', 'Query', ' Owner = \'ltesterman\' AND Status = \'open\'',
>> 'Page', 1, 'Order', 'ASC|ASC|ASC|ASC', 'OrderBy', 'id|||') called at
>> /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm line 914
>>
>> HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HAS
>> H(0xb1221f4)', 'Rows', 50, 'Format', '\'   <b><a
>> href="/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#\',^J\'<b><a
>> href="/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject\
>> ',^J\'__Status__\',^J\'__QueueName__\',^J\'__OwnerName__\',^J\'__Priorit
>> y__\',^J\'__NEWLINE__\',^J\'\',^J\'<small>__Requestors__</small>\',^J\'<
>> small>__CreatedRelative__</small>\',^J\'<small>__ToldRelative__</small>\
>> ',^J\'<small>__LastUpdatedRelative__</small>\',^J\'<small>__TimeLeft__</
>> small>\'', 'Query', ' Owner = \'ltesterman\' AND Status = \'open\'',
>> 'Page', 1, 'Order', 'ASC|ASC|ASC|ASC', 'OrderBy', 'id|||') called at
>> /usr/local/rt-3.6.1/share/html/autohandler line 279
>>
>> HTML::Mason::Commands::__ANON__('Order', 'ASC|ASC|ASC|ASC', 'Query', '
>> Owner = \'ltesterman\' AND Status = \'open\'', 'Rows', 50, 'OrderBy',
>> 'id|||', 'Format', '\'   <b><a
>> href="/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#\',^J\'<b><a
>> href="/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject\
>> ',^J\'__Status__\',^J\'__QueueName__\',^J\'__OwnerName__\',^J\'__Priorit
>> y__\',^J\'__NEWLINE__\',^J\'\',^J\'<small>__Requestors__</small>\',^J\'<
>> small>__CreatedRelative__</small>\',^J\'<small>__ToldRelative__</small>\
>> ',^J\'<small>__LastUpdatedRelative__</small>\',^J\'<small>__TimeLeft__</
>> small>\'', 'Page', 1) called at
>> /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Component.pm line 135
>>
>> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa8
>> 90a08)', 'Order', 'ASC|ASC|ASC|ASC', 'Query', ' Owner = \'ltesterman\'
>> AND Status = \'open\'', 'Rows', 50, 'OrderBy', 'id|||', 'Format', '\'
>> <b><a
>> href="/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#\',^J\'<b><a
>> href="/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject\
>> ',^J\'__Status__\',^J\'__QueueName__\',^J\'__OwnerName__\',^J\'__Priorit
>> y__\',^J\'__NEWLINE__\',^J\'\',^J\'<small>__Requestors__</small>\',^J\'<
>> small>__CreatedRelative__</small>\',^J\'<small>__ToldRelative__</small>\
>> ',^J\'<small>__LastUpdatedRelative__</small>\',^J\'<small>__TimeLeft__</
>> small>\'', 'Page', 1) called at
>> /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm line 1246
>>
>> eval {...} at /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm
>> line 1245
>>
>> HTML::Mason::Request::comp(undef, undef, undef, 'Order',
>> 'ASC|ASC|ASC|ASC', 'Query', ' Owner = \'ltesterman\' AND Status =
>> \'open\'', 'Rows', 50, 'OrderBy', 'id|||', 'Format', '\'   <b><a
>> href="/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#\',^J\'<b><a
>> href="/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject\
>> ',^J\'__Status__\',^J\'__QueueName__\',^J\'__OwnerName__\',^J\'__Priorit
>> y__\',^J\'__NEWLINE__\',^J\'\',^J\'<small>__Requestors__</small>\',^J\'<
>> small>__CreatedRelative__</small>\',^J\'<small>__ToldRelative__</small>\
>> ',^J\'<small>__LastUpdatedRelative__</small>\',^J\'<small>__TimeLeft__</
>> small>\'', 'Page', 1) called at
>> /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm line 459
>>
>> eval {...} at /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm
>> line 459
>>
>> eval {...} at /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/Request.pm
>> line 411
>>
>> HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xb
>> 1221f4)') called at
>> /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm line 168
>>
>> HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheH
>> andler=HASH(0xb1221f4)') called at
>> /usr/lib/perl5/vendor_perl/5.8.7/HTML/Mason/ApacheHandler.pm line 826
>>
>> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=H
>> ASH(0x8c77308)', 'Apache2::RequestRec=SCALAR(0xb20d680)') called at
>> /usr/local/rt-3.6.1/bin/webmux.pl line 123
>>
>> eval {...} at /usr/local/rt-3.6.1/bin/webmux.pl line 123
>>
>> RT::Mason::handler('Apache2::RequestRec=SCALAR(0xb20d680)') called at -e
>> line 0
>>
>> eval {...} at -e line 0
>>
>>
>> Any thoughts?
>> Mathew
>> --Keep up with me and what I'm up to: http://theillien.blogspot.com
>> _______________________________________________
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>
>> Community help: http://wiki.bestpractical.com
>> Commercial support: sales at bestpractical.com
>>
>>
>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>> Buy a copy at http://rtbook.bestpractical.com
>>
> 



More information about the rt-users mailing list