System error

error:  Cannot write to '/var/log/WebsiteLogger.log': at /usr/share/perl5/Log/Dispatch/File.pm line 150.
context: 
... 
146:  or die "Cannot write to '$self->{filename}': $!";
147:  }
148:  else {
149:  print $fh $p{message}
150:  or die "Cannot write to '$self->{filename}': $!";
151:  }
152: 
153:  if ( $self->{close_after_write} ) {
154:  close $fh
... 
code stack:  /usr/share/perl5/Log/Dispatch/File.pm:150
/usr/share/perl5/Log/Dispatch/Output.pm:49
/usr/share/perl5/Log/Log4perl/Appender.pm:217
/usr/share/perl5/Log/Log4perl/Logger.pm:299
/usr/share/perl5/Log/Log4perl/Logger.pm:784
/opt/app/tradeindia/cw/modules/Website.pm:1877
/opt/app/tradeindia/cw/modules/Website.pm:1353
/var/www/cw/phoolchand.com/products_details.html:115
/opt/app/tradeindia/cw/components/common/default-dhandler.html:19
/var/www/cw/phoolchand.com/dhandler.html:13
/var/www/cw/phoolchand.com/dautohandler.html:15
/var/www/cw/phoolchand.com/autohandler.html:533
/opt/app/tradeindia/cw/components/syshandler.html:77
raw error






























Cannot write to '/var/log/WebsiteLogger.log':  at /usr/share/perl5/Log/Dispatch/File.pm line 150.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Cannot write to \'/var/log/WebsiteLogger.log\':  at /usr/share/perl5/Log/Dispatch/File.pm line 150.^J') called at /usr/share/perl5/Log/Dispatch/File.pm line 150
Log::Dispatch::File::log_message('Log::Dispatch::File=HASH(0x560f6990a0e0)', 'log4p_category', 'Website', 'level', 3, 'message', 'WARN> Website.pm:1877 My::UserAgent::post - Domain: <phoolchand.com>  Domain: <safeguardindustries.in>  Domain: <powertakeoffgearbox.com>  Domain: <hapco.co.in>  Domain: <phoolchand.com>  parameters: http://k8s-prod-wwwmodpe-9fa57a38d4-fbd5d2aa59cb7efe.elb.ap-south-1.amazonaws.com:8087/component/rest/customized_sites/get_catalog_meta_info.html HASH(0x560f6c7171e0)^J', 'log4p_level', 'WARN', 'name', 'A1') called at /usr/share/perl5/Log/Dispatch/Output.pm line 49
Log::Dispatch::Output::log('Log::Dispatch::File=HASH(0x560f6990a0e0)', 'name', 'A1', 'message', 'WARN> Website.pm:1877 My::UserAgent::post - Domain: <phoolchand.com>  Domain: <safeguardindustries.in>  Domain: <powertakeoffgearbox.com>  Domain: <hapco.co.in>  Domain: <phoolchand.com>  parameters: http://k8s-prod-wwwmodpe-9fa57a38d4-fbd5d2aa59cb7efe.elb.ap-south-1.amazonaws.com:8087/component/rest/customized_sites/get_catalog_meta_info.html HASH(0x560f6c7171e0)^J', 'level', 3, 'log4p_category', 'Website', 'log4p_level', 'WARN') called at /usr/share/perl5/Log/Log4perl/Appender.pm line 217
Log::Log4perl::Appender::log('Log::Log4perl::Appender=HASH(0x560f68a5b7d0)', 'HASH(0x560f6c3ff3b0)', 'Website', 'WARN') called at /usr/share/perl5/Log/Log4perl/Logger.pm line 299
Log::Log4perl::Logger::__ANON__('Log::Log4perl::Logger=HASH(0x560f69c6e1b0)', 'parameters: http://k8s-prod-wwwmodpe-9fa57a38d4-fbd5d2aa59cb7efe.elb.ap-south-1.amazonaws.com:8087/component/rest/customized_sites/get_catalog_meta_info.html HASH(0x560f6c7171e0)') called at /usr/share/perl5/Log/Log4perl/Logger.pm line 784
Log::Log4perl::Logger::__ANON__('Log::Log4perl::Logger=HASH(0x560f69c6e1b0)', 'parameters: http://k8s-prod-wwwmodpe-9fa57a38d4-fbd5d2aa59cb7efe.elb.ap-south-1.amazonaws.com:8087/component/rest/customized_sites/get_catalog_meta_info.html HASH(0x560f6c7171e0)') called at /opt/app/tradeindia/cw/modules/Website.pm line 1877
My::UserAgent::post('My::UserAgent=HASH(0x560f6c35cbe8)', 'http://k8s-prod-wwwmodpe-9fa57a38d4-fbd5d2aa59cb7efe.elb.ap-south-1.amazonaws.com:8087/component/rest/customized_sites/get_catalog_meta_info.html', 'HASH(0x560f6c7171e0)') called at /opt/app/tradeindia/cw/modules/Website.pm line 1353
Website::output_metainfo('Website=HASH(0x560f6ca14ac8)', 'product_obj', 'HASH(0x560f6c9a1cf8)') called at /var/www/cw/phoolchand.com/products_details.html line 115
HTML::Mason::Commands::__ANON__('product_id', 5237251) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x560f6c70e9e8)', 'product_id', 5237251) called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'product_id', 5237251) called at /opt/app/tradeindia/cw/components/common/default-dhandler.html line 19
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x560f6c8d68d8)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef) called at /var/www/cw/phoolchand.com/dhandler.html line 13
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x560f6c582050)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x560f6baf30d8)') called at /var/www/cw/phoolchand.com/dautohandler.html line 15
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x560f6c675c50)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x560f6baf30d8)') called at /var/www/cw/phoolchand.com/autohandler.html line 533
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x560f6bab89e0)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x560f6baf30d8)') called at /opt/app/tradeindia/cw/components/syshandler.html line 77
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x560f6c2896c8)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1300
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x560f6baf30d8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x560f6baf30d8)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x560f6c661c70)', 'Apache2::RequestRec=SCALAR(0x560f6c2bb1b0)') called at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 142
eval {...} at /opt/app/tradeindia/cw/modules/B2B/Handler/CW.pm line 141
B2B::Handler::CW::handler('Apache2::RequestRec=SCALAR(0x560f6c2bb1b0)') called at -e line 0
eval {...} at -e line 0