You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Fatal error: Uncaught TypeError: Argument 1 passed to CacheTool\Command\OpcacheInvalidateScriptsCommand::processFileList() must be of the type array, null given, called in phar:///company/utilites/bin/cachetool.phar/src/CacheTool/Command/OpcacheInvalidateScriptsCommand.php on line 56 and defined in phar:///company/utilites/bin/cachetool.phar/src/CacheTool/Command/OpcacheInvalidateScriptsCommand.php:62 Stack trace: #0 phar:///company/utilites/bin/cachetool.phar/src/CacheTool/Command/OpcacheInvalidateScriptsCommand.php(56): CacheTool\Command\OpcacheInvalidateScriptsCommand->processFileList(NULL, '/company/sites/sit...', false) #1 phar:///company/utilites/bin/cachetool.phar/vendor/symfony/console/Command/Command.php(251): CacheTool\Command\OpcacheInvalidateScriptsCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #2 phar:///company/utilites/bin/cachetool.phar/vendor/symfony/console/Application.php(865): Symfony\Component\Console\Command\Command->run(Object(Symfony\Compon in phar:///company/utilites/bin/cachetool.phar/src/CacheTool/Command/OpcacheInvalidateScriptsCommand.php on line 62
The text was updated successfully, but these errors were encountered:
artemsuv
changed the title
cachetool.phar failed, processFileList() must be of the type array, null given
cachetool.phar failed wheh opcache pending restart, processFileList() must be of the type array, null given
Sep 20, 2018
Run php script that execute command:
/company/utilites/bin/cachetool.phar opcache:invalidate:scripts /company/sites/site/cache/db/_new_Goods.VarDetails_var_detail_values_by_sections_81235.php --fcgi=/company/opcache-pool.socket -vvv
Error reproduced when opcache_get_status return {"opcache_enabled":false,"restart_pending":true}. This occurs when opcache trying flush wasted memory.
Debug Output:
[2018-09-20 14:36:11] OpcacheInvalidator.ERROR:
The command "/company/utilites/bin/cachetool.phar opcache:invalidate:scripts /company/sites/site/cache/db/_new_Goods.VarDetails_var_detail_values_by_sections_81235.php --fcgi=/company/opcache-pool.socket -vvv" failed.
Exit Code: 255(Unknown error)
Working directory: /var/www/site
Output: ================
[2018-09-20 14:36:10] cachetool.INFO: Adding Proxy: CacheTool\Proxy\ApcProxy [] []
[2018-09-20 14:36:10] cachetool.INFO: Adding Proxy: CacheTool\Proxy\ApcuProxy [] []
[2018-09-20 14:36:10] cachetool.INFO: Adding Proxy: CacheTool\Proxy\PhpProxy [] []
[2018-09-20 14:36:10] cachetool.INFO: Adding Proxy: CacheTool\Proxy\OpcacheProxy [] []
[2018-09-20 14:36:10] cachetool.INFO: Setting adapter: CacheTool\Adapter\FastCGI [] []
[2018-09-20 14:36:10] cachetool.NOTICE: Executing: extension_loaded("Zend OPcache") [] []
[2018-09-20 14:36:10] cachetool.INFO: Loading Proxy: CacheTool\Proxy\ApcProxy [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_add [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_bin_dump [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_bin_dumpfile [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_bin_load [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_bin_loadfile [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_cas [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_cache_info [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_clear_cache [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_compile_file [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_dec [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_define_constants [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_delete_file [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_delete [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_exists [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_fetch [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_inc [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_load_constants [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_sma_info [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_store [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apc_version [] []
[2018-09-20 14:36:10] cachetool.INFO: Loading Proxy: CacheTool\Proxy\ApcuProxy [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_add [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_cache_info [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_regexp_get_keys [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_cas [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_clear_cache [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_dec [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_delete [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_regexp_delete [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_exists [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_fetch [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_inc [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_sma_info [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_store [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: apcu_version [] []
[2018-09-20 14:36:10] cachetool.INFO: Loading Proxy: CacheTool\Proxy\PhpProxy [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: extension_loaded [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: ini_get [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: ini_set [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: phpversion [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: stat_realpath_get [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: stat_realpath_size [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: stat_cache_clear [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: _eval [] []
[2018-09-20 14:36:10] cachetool.INFO: Loading Proxy: CacheTool\Proxy\OpcacheProxy [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: opcache_compile_file [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: opcache_get_configuration [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: opcache_get_status [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: opcache_invalidate [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: opcache_reset [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Loading Function: opcache_version [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Executing code: return extension_loaded('Zend OPcache'); [] []
[2018-09-20 14:36:10] cachetool.INFO: FastCGI: Dumped code to file: /dev/shm/cachetool-5ba3862af2545.php [] []
[2018-09-20 14:36:10] cachetool.INFO: FastCGI: Requesting FPM using socket: /company/opcache-pool.socket [] []
[2018-09-20 14:36:10] cachetool.DEBUG: FastCGI: Response: "Content-type: text/html; charset=UTF-8\r\n\r\na:2:{s:6:"result";b:1;s:6:"errors";a:0:{}}" [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Return errors: [] [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Return result: true [] []
[2018-09-20 14:36:10] cachetool.NOTICE: Executing: opcache_get_status(true) [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Executing code: return opcache_get_status(true); [] []
[2018-09-20 14:36:10] cachetool.INFO: FastCGI: Dumped code to file: /dev/shm/cachetool-5ba3862af2a0b.php [] []
[2018-09-20 14:36:10] cachetool.INFO: FastCGI: Requesting FPM using socket: /company/opcache-pool.socket [] []
[2018-09-20 14:36:10] cachetool.DEBUG: FastCGI: Response: "Content-type: text/html; charset=UTF-8\r\n\r\na:2:{s:6:"result";a:7:{s:15:"opcache_enabled";b:0;s:10:"cache_full";b:0;s:15:"restart_pending";b:1;s:19:"restart_in_progress";b:0;s:12:"memory_usage";a:4:{s:11:"used_memory";i:253941560;s:11:"free_memory";i:32860888;s:13:"wasted_memory";i:363314672;s:25:"current_wasted_percentage";d:55.884495396767896;}s:22:"interned_strings_usage";a:4:{s:11:"buffer_size";i:67108864;s:11:"used_memory";i:24639520;s:11:"free_memory";i:42469344;s:17:"number_of_strings";i:586435;}s:18:"opcache_statistics";a:13:{s:18:"num_cached_scripts";i:2374;s:15:"num_cached_keys";i:2753;s:15:"max_cached_keys";i:32531;s:4:"hits";i:1543455;s:10:"start_time";i:1537442523;s:17:"last_restart_time";i:0;s:12:"oom_restarts";i:0;s:13:"hash_restarts";i:0;s:15:"manual_restarts";i:0;s:6:"misses";i:17796;s:16:"blacklist_misses";i:0;s:20:"blacklist_miss_ratio";d:0;s:16:"opcache_hit_rate";d:98.8601448453836;}}s:6:"errors";a:0:{}}" [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Return errors: [] [] []
[2018-09-20 14:36:10] cachetool.DEBUG: Return result: {"opcache_enabled":false,"cache_full":false,"restart_pending":true,"restart_in_progress":false,"memory_usage":{"used_memory":253941560,"free_memory":32860888,"wasted_memory":363314672,"current_wasted_percentage":55.884495396767896},"interned_strings_usage":{"buffer_size":67108864,"used_memory":24639520,"free_memory":42469344,"number_of_strings":586435},"opcache_statistics":{"num_cached_scripts":2374,"num_cached_keys":2753,"max_cached_keys":32531,"hits":1543455,"start_time":1537442523,"last_restart_time":0,"oom_restarts":0,"hash_restarts":0,"manual_restarts":0,"misses":17796,"blacklist_misses":0,"blacklist_miss_ratio":0,"opcache_hit_rate":98.8601448453836}} [] []
Error Output: ================
PHP Fatal error: Uncaught TypeError: Argument 1 passed to CacheTool\Command\OpcacheInvalidateScriptsCommand::processFileList() must be of the type array, null given, called in phar:///company/utilites/bin/cachetool.phar/src/CacheTool/Command/OpcacheInvalidateScriptsCommand.php on line 56 and defined in phar:///company/utilites/bin/cachetool.phar/src/CacheTool/Command/OpcacheInvalidateScriptsCommand.php:62 Stack trace: #0 phar:///company/utilites/bin/cachetool.phar/src/CacheTool/Command/OpcacheInvalidateScriptsCommand.php(56): CacheTool\Command\OpcacheInvalidateScriptsCommand->processFileList(NULL, '/company/sites/sit...', false) #1 phar:///company/utilites/bin/cachetool.phar/vendor/symfony/console/Command/Command.php(251): CacheTool\Command\OpcacheInvalidateScriptsCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #2 phar:///company/utilites/bin/cachetool.phar/vendor/symfony/console/Application.php(865): Symfony\Component\Console\Command\Command->run(Object(Symfony\Compon in phar:///company/utilites/bin/cachetool.phar/src/CacheTool/Command/OpcacheInvalidateScriptsCommand.php on line 62
The text was updated successfully, but these errors were encountered: