How to NOT log CPstore errors when provider has disable CP Market?
Hi.
Every 12 hours the Log Scanner Report is so huge and most of the error lines are like this;
I know my server provider has disabe the cPStore on my WHMs and is ok with me, but what I don't like is why cPanel has to write hundred of lines about this? Is there a way to decide what log lines I want to receive in the Log Scanner Report? Or at least, How to turn off these notifications? Regards, Sergio
[2020-06-05 08:13:01 -0500] warn [whostmgr10] Failed to fetch cPStore products list: Cpanel::Exception::Market::Disabled/(XID c56zd6) "cPanel Store"" indicated that the Market has been disabled by the license holder.
at /usr/local/cpanel/Cpanel/Exception/External.pm line 106.
Cpanel::Exception::External::create("Market::Disabled", HASH(0x2aca190)) called at /usr/local/cpanel/Cpanel/Market/Provider/cPStore/ProductsCache.pm line 94
Cpanel::Market::Provider::cPStore::ProductsCache::__ANON__(Cpanel::Exception::cPStoreError=HASH(0xd6d4b8)) called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 118
Try::Tiny::try(CODE(0x2e21aa8), Try::Tiny::Catch=REF(0x2f3d438)) called at /usr/local/cpanel/Cpanel/Market/Provider/cPStore/ProductsCache.pm line 96
Cpanel::Market::Provider::cPStore::ProductsCache::_LOAD_FRESH("Cpanel::Market::Provider::cPStore::ProductsCache") called at /usr/local/cpanel/Cpanel/CacheFile.pm line 234
Cpanel::CacheFile::load("Cpanel::Market::Provider::cPStore::ProductsCache") called at /usr/local/cpanel/Cpanel/Market/Provider/cPStore/ProductsCache.pm line 139
Cpanel::Market::Provider::cPStore::ProductsCache::load_with_short_name("Cpanel::Market::Provider::cPStore::ProductsCache") called at /usr/local/cpanel/Cpanel/Market/Provider/cPStore/ProductsCache.pm line 104
Cpanel::Market::Provider::cPStore::ProductsCache::load("Cpanel::Market::Provider::cPStore::ProductsCache") called at /usr/local/cpanel/Cpanel/Market/Provider/cPStore.pm line 147
Cpanel::Market::Provider::cPStore::_get_products_list_for_validation() called at /usr/local/cpanel/Cpanel/Market/Provider/cPStore.pm line 134
Cpanel::Market::Provider::cPStore::get_products_list() called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver/Market/META.pm line 117
Cpanel::Config::ConfigObj::Driver::Market::META::__ANON__() called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 97
eval {...} called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 88
Try::Tiny::try(CODE(0x303fd58), Try::Tiny::Catch=REF(0x2973a18)) called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver/Market/META.pm line 122
Cpanel::Config::ConfigObj::Driver::Market::META::can_be_enabled() called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver/Market/META.pm line 146
Cpanel::Config::ConfigObj::Driver::Market::META::auto_enable("Cpanel::Config::ConfigObj::Driver::Market::META") called at /usr/local/cpanel/Cpanel/Config/ConfigObj.pm line 106
Cpanel::Config::ConfigObj::_unload_if_auto_enabled("Cpanel::Config::ConfigObj::Driver::Market", "Cpanel::Config::ConfigObj::Driver::Market::META") called at /usr/local/cpanel/Cpanel/Config/ConfigObj.pm line 160
Cpanel::Config::ConfigObj::get_available_drivers(undef, 0, 0) called at /usr/local/cpanel/Cpanel/Config/ConfigObj.pm line 563
Cpanel::Config::ConfigObj::_get_drivers(Cpanel::FeatureShowcase=HASH(0x2839508)) called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Filter/FilterList.pm line 108
Cpanel::Config::ConfigObj::Filter::FilterList::init_drivers(Cpanel::Config::ConfigObj::Filter::FilterList=HASH(0x2839538)) called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Filter/FilterList.pm line 95
Cpanel::Config::ConfigObj::Filter::FilterList::set_configObj(Cpanel::Config::ConfigObj::Filter::FilterList=HASH(0x2839538), Cpanel::FeatureShowcase=HASH(0x2839508)) called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Filter/FilterList.pm line 32
Cpanel::Config::ConfigObj::Filter::FilterList::new("Cpanel::Config::ConfigObj::Filter::FilterList", Cpanel::FeatureShowcase=HASH(0x2839508)) called at /usr/local/cpanel/Cpanel/FeatureShowcase.pm line 365
Cpanel::FeatureShowcase::_default_filter_list(Cpanel::FeatureShowcase=HASH(0x2839508)) called at /usr/local/cpanel/Cpanel/FeatureShowcase.pm line 94
Cpanel::FeatureShowcase::refine_driver_list_to_showcased(Cpanel::FeatureShowcase=HASH(0x2839508)) called at /usr/local/cpanel/Cpanel/FeatureShowcase.pm line 85
Cpanel::FeatureShowcase::new("Cpanel::FeatureShowcase", HASH(0x28393e8)) called at whostmgr/bin/whostmgr10.pl line 310
main::redirect_to_display_showcased_features("scripts3/feature_showcase") called at whostmgr/bin/whostmgr10.pl line 379
main::roothtml(__CPANEL_HIDDEN__) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 274
Whostmgr::Dispatch::_do_call(__CPANEL_HIDDEN__, HASH(0xd71688), HASH(0x280f0f0)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 172
Whostmgr::Dispatch::dispatch(__CPANEL_HIDDEN__, 17, ARRAY(0x280f060)) called at whostmgr/bin/whostmgr10.pl line 242
at /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver/Market/META.pm line 121.
Cpanel::Config::ConfigObj::Driver::Market::META::__ANON__(Cpanel::Exception::Market::Disabled=HASH(0x340d070)) called at /usr/local/cpanel/3rdparty/perl/530/lib/perl5/cpanel_lib/Try/Tiny.pm line 118
Try::Tiny::try(CODE(0x303fd58), Try::Tiny::Catch=REF(0x2973a18)) called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver/Market/META.pm line 122
Cpanel::Config::ConfigObj::Driver::Market::META::can_be_enabled() called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver/Market/META.pm line 146
Cpanel::Config::ConfigObj::Driver::Market::META::auto_enable("Cpanel::Config::ConfigObj::Driver::Market::META") called at /usr/local/cpanel/Cpanel/Config/ConfigObj.pm line 106
Cpanel::Config::ConfigObj::_unload_if_auto_enabled("Cpanel::Config::ConfigObj::Driver::Market", "Cpanel::Config::ConfigObj::Driver::Market::META") called at /usr/local/cpanel/Cpanel/Config/ConfigObj.pm line 160
Cpanel::Config::ConfigObj::get_available_drivers(undef, 0, 0) called at /usr/local/cpanel/Cpanel/Config/ConfigObj.pm line 563
Cpanel::Config::ConfigObj::_get_drivers(Cpanel::FeatureShowcase=HASH(0x2839508)) called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Filter/FilterList.pm line 108
Cpanel::Config::ConfigObj::Filter::FilterList::init_drivers(Cpanel::Config::ConfigObj::Filter::FilterList=HASH(0x2839538)) called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Filter/FilterList.pm line 95
Cpanel::Config::ConfigObj::Filter::FilterList::set_configObj(Cpanel::Config::ConfigObj::Filter::FilterList=HASH(0x2839538), Cpanel::FeatureShowcase=HASH(0x2839508)) called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Filter/FilterList.pm line 32
Cpanel::Config::ConfigObj::Filter::FilterList::new("Cpanel::Config::ConfigObj::Filter::FilterList", Cpanel::FeatureShowcase=HASH(0x2839508)) called at /usr/local/cpanel/Cpanel/FeatureShowcase.pm line 365
Cpanel::FeatureShowcase::_default_filter_list(Cpanel::FeatureShowcase=HASH(0x2839508)) called at /usr/local/cpanel/Cpanel/FeatureShowcase.pm line 94
Cpanel::FeatureShowcase::refine_driver_list_to_showcased(Cpanel::FeatureShowcase=HASH(0x2839508)) called at /usr/local/cpanel/Cpanel/FeatureShowcase.pm line 85
Cpanel::FeatureShowcase::new("Cpanel::FeatureShowcase", HASH(0x28393e8)) called at whostmgr/bin/whostmgr10.pl line 310
main::redirect_to_display_showcased_features("scripts3/feature_showcase") called at whostmgr/bin/whostmgr10.pl line 379
main::roothtml(__CPANEL_HIDDEN__) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 274
Whostmgr::Dispatch::_do_call(__CPANEL_HIDDEN__, HASH(0xd71688), HASH(0x280f0f0)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 172
Whostmgr::Dispatch::dispatch(__CPANEL_HIDDEN__, 17, ARRAY(0x280f060)) called at whostmgr/bin/whostmgr10.pl line 242
I know my server provider has disabe the cPStore on my WHMs and is ok with me, but what I don't like is why cPanel has to write hundred of lines about this? Is there a way to decide what log lines I want to receive in the Log Scanner Report? Or at least, How to turn off these notifications? Regards, Sergio
-
@cPSamuel, thank you for pointing me on how to fix this in CSF. But actually what I will like is that cPanel doesn't try to access cPanel Store if it is disabled, What is the point to log all those lines if it has already known that cPstore is not available? CSF is only showing the errors that happened on the server, but it will be great that those errors would not be generated. I will open the ticket as you suggest, thank you. Best Regards, Sergio 0 -
I know this is a very old thread, but I've just got annoyed at this myself. The solution (at least temporarily) is to create the file /var/cpanel/market/cpstore_products.cache with the following exact text (no linebreaks at all - not even at the start or end, so check the copy and pasting!): {"_products":[],"_schema":3}
0
Please sign in to leave a comment.
Comments
3 comments