Cannot start after latest update
-
After updating to the latest package it won't start:
Seeing this in the logs:
Sep 12 15:38:33=> Healtheck error: Error: connect EHOSTUNREACH 172.18.17.146:8000 Sep 12 15:38:43=> Healtheck error: Error: connect EHOSTUNREACH 172.18.17.146:8000 Sep 12 15:38:53=> Healtheck error: Error: connect EHOSTUNREACH 172.18.17.146:8000 Sep 12 15:39:03=> Healtheck error: Error: connect EHOSTUNREACH 172.18.17.146:8000 Sep 12 15:39:13=> Healtheck error: Error: connect EHOSTUNREACH 172.18.17.146:8000 Sep 12 15:39:19==> Creating directories Sep 12 15:39:19==> Update configuration Sep 12 15:39:19==> DB migration Sep 12 15:39:19PHP Fatal error: Uncaught Error: Undefined constant "CodeIgniter\Log\CI_DEBUG" in /app/code/vendor/codeigniter4/framework/system/Log/Logger.php:120 Sep 12 15:39:19Stack trace: Sep 12 15:39:19#0 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(400): CodeIgniter\Log\Logger->__construct() Sep 12 15:39:19#1 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::logger() Sep 12 15:39:19#2 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(199): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#3 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(397): CodeIgniter\Config\BaseService::getSharedInstance() Sep 12 15:39:19#4 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::logger() Sep 12 15:39:19#5 /app/code/vendor/codeigniter4/framework/system/Common.php(810): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#6 /app/code/vendor/codeigniter4/framework/system/Cache/CacheFactory.php(76): log_message() Sep 12 15:39:19#7 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(124): CodeIgniter\Cache\CacheFactory::getHandler() Sep 12 15:39:19#8 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::cache() Sep 12 15:39:19#9 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(199): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#10 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(119): CodeIgniter\Config\BaseService::getSharedInstance() Sep 12 15:39:19#11 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::cache() Sep 12 15:39:19#12 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(449): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#13 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::responsecache() Sep 12 15:39:19#14 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(199): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#15 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(445): CodeIgniter\Config\BaseService::getSharedInstance() Sep 12 15:39:19#16 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::responsecache() Sep 12 15:39:19#17 /app/code/vendor/codeigniter4/framework/system/CodeIgniter.php(194): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#18 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(159): CodeIgniter\CodeIgniter->__construct() Sep 12 15:39:19#19 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::codeigniter() Sep 12 15:39:19#20 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(199): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#21 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(154): CodeIgniter\Config\BaseService::getSharedInstance() Sep 12 15:39:19#22 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::codeigniter() Sep 12 15:39:19#23 /app/code/spark(87): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#24 {main} Sep 12 15:39:19thrown in /app/code/vendor/codeigniter4/framework/system/Log/Logger.php on line 120 Sep 12 15:39:19 Sep 12 15:39:19Fatal error: Uncaught Error: Undefined constant "CodeIgniter\Log\CI_DEBUG" in /app/code/vendor/codeigniter4/framework/system/Log/Logger.php:120 Sep 12 15:39:19Stack trace: Sep 12 15:39:19#0 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(400): CodeIgniter\Log\Logger->__construct() Sep 12 15:39:19#1 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::logger() Sep 12 15:39:19#2 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(199): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#3 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(397): CodeIgniter\Config\BaseService::getSharedInstance() Sep 12 15:39:19#4 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::logger() Sep 12 15:39:19#5 /app/code/vendor/codeigniter4/framework/system/Common.php(810): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#6 /app/code/vendor/codeigniter4/framework/system/Cache/CacheFactory.php(76): log_message() Sep 12 15:39:19#7 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(124): CodeIgniter\Cache\CacheFactory::getHandler() Sep 12 15:39:19#8 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::cache() Sep 12 15:39:19#9 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(199): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#10 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(119): CodeIgniter\Config\BaseService::getSharedInstance() Sep 12 15:39:19#11 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::cache() Sep 12 15:39:19#12 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(449): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#13 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::responsecache() Sep 12 15:39:19#14 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(199): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#15 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(445): CodeIgniter\Config\BaseService::getSharedInstance() Sep 12 15:39:19#16 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::responsecache() Sep 12 15:39:19#17 /app/code/vendor/codeigniter4/framework/system/CodeIgniter.php(194): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#18 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(159): CodeIgniter\CodeIgniter->__construct() Sep 12 15:39:19#19 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::codeigniter() Sep 12 15:39:19#20 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(199): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#21 /app/code/vendor/codeigniter4/framework/system/Config/Services.php(154): CodeIgniter\Config\BaseService::getSharedInstance() Sep 12 15:39:19#22 /app/code/vendor/codeigniter4/framework/system/Config/BaseService.php(258): CodeIgniter\Config\Services::codeigniter() Sep 12 15:39:19#23 /app/code/spark(87): CodeIgniter\Config\BaseService::__callStatic() Sep 12 15:39:19#24 {main} Sep 12 15:39:19thrown in /app/code/vendor/codeigniter4/framework/system/Log/Logger.php on line 120
-
I hadn't actually started using the app at all yet, so I just uninstalled and reinstalled it and now it's starting fine. But something about the update wasn't working so you may wish to try to reproduce and debug.
-
@girish I'm running into the same issue trying to upgrade from 1.6.0 to any newer version, even just 1.6.1. I am using the docker images. Did you manage to get anymore insight into this?
-
Was caused by issue described in https://code.castopod.org/adaures/castopod/-/issues/408; mentioned workaround was successful.