Jump to content
thirty bees forum
  • 0

Coreupdater errors


Question

Posted

Hello,

When I click on "configure" button in the Coreupdater module on the list of modules in the BO I get the following:

(Thirtybees 1.3)

Quote

GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: certificate has expired (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:201
Stack trace:
#0 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#4 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#5 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Middleware.php(29): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#7 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Middleware.php(57): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/HandlerStack.php(71): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Client.php(351): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Client.php(162): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#12 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Client.php(182): GuzzleHttp\Client->requestAsync('post', Object(GuzzleHttp\Psr7\Uri), Array)
#13 /home/users/lampadina/public_html/lampy17/vendor/guzzlehttp/guzzle/src/Client.php(95): GuzzleHttp\Client->request('post', '/coreupdater/v2...', Array)
#14 /home/users/lampadina/public_html/lampy17/modules/coreupdater/classes/api/ThirtybeesApiGuzzle.php(252): GuzzleHttp\Client->__call('post', Array)
#15 /home/users/lampadina/public_html/lampy17/modules/coreupdater/classes/api/ThirtybeesApiGuzzle.php(239): CoreUpdater\Api\ThirtybeesApiGuzzle->performPost(Array)
#16 /home/users/lampadina/public_html/lampy17/modules/coreupdater/classes/api/ThirtybeesApiGuzzle.php(215): CoreUpdater\Api\ThirtybeesApiGuzzle->callApi('check-module-ve...', Array)
#17 /home/users/lampadina/public_html/lampy17/modules/coreupdater/controllers/admin/AdminCoreUpdaterController.php(830): CoreUpdater\Api\ThirtybeesApiGuzzle->checkModuleVersion('1.4.0')
#18 /home/users/lampadina/public_html/lampy17/modules/coreupdater/controllers/admin/AdminCoreUpdaterController.php(328): AdminCoreUpdaterController->checkModuleVersion()
#19 [internal function]: AdminCoreUpdaterController->performInitContent()
#20 /home/users/lampadina/public_html/lampy17/modules/coreupdater/classes/ErrorHandler.php(56): call_user_func_array(Array, Array)
#21 /home/users/lampadina/public_html/lampy17/modules/coreupdater/controllers/admin/AdminCoreUpdaterController.php(318): CoreUpdater\ErrorHandler->handleErrors(Array)
#22 /home/users/lampadina/public_html/lampy17/classes/controller/Controller.php(210): AdminCoreUpdaterController->initContent()
#23 /home/users/lampadina/public_html/lampy17/classes/Dispatcher.php(852): ControllerCore->run()
#24 /home/users/lampadina/public_html/lampy17/admin605ombtle/index.php(63): DispatcherCore->dispatch()
#25 {main}

Next CoreUpdater\Api\ThirtybeesApiException: Transport exception in /home/users/lampadina/public_html/lampy17/modules/coreupdater/classes/api/ThirtybeesApiGuzzle.php:256
Stack trace:
#0 /home/users/lampadina/public_html/lampy17/modules/coreupdater/classes/api/ThirtybeesApiGuzzle.php(239): CoreUpdater\Api\ThirtybeesApiGuzzle->performPost(Array)
#1 /home/users/lampadina/public_html/lampy17/modules/coreupdater/classes/api/ThirtybeesApiGuzzle.php(215): CoreUpdater\Api\ThirtybeesApiGuzzle->callApi('check-module-ve...', Array)
#2 /home/users/lampadina/public_html/lampy17/modules/coreupdater/controllers/admin/AdminCoreUpdaterController.php(830): CoreUpdater\Api\ThirtybeesApiGuzzle->checkModuleVersion('1.4.0')
#3 /home/users/lampadina/public_html/lampy17/modules/coreupdater/controllers/admin/AdminCoreUpdaterController.php(328): AdminCoreUpdaterController->checkModuleVersion()
#4 [internal function]: AdminCoreUpdaterController->performInitContent()
#5 /home/users/lampadina/public_html/lampy17/modules/coreupdater/classes/ErrorHandler.php(56): call_user_func_array(Array, Array)
#6 /home/users/lampadina/public_html/lampy17/modules/coreupdater/controllers/admin/AdminCoreUpdaterController.php(318): CoreUpdater\ErrorHandler->handleErrors(Array)
#7 /home/users/lampadina/public_html/lampy17/classes/controller/Controller.php(210): AdminCoreUpdaterController->initContent()
#8 /home/users/lampadina/public_html/lampy17/classes/Dispatcher.php(852): ControllerCore->run()
#9 /home/users/lampadina/public_html/lampy17/admin605ombtle/index.php(63): DispatcherCore->dispatch()

 

image.thumb.png.ac614018f54331486323cf46b53f3c89.png

I've contacted my hosting crew and they claim that CURL has no problem with my webpage (TLS 1.3/1.2). There  arent' any problems with the certificate. The problem may be with guzzlehttp which uses the old TLS protocol.

Could you help me?

The other issue is that my shop has been running very slowly since the installation and it hasn't been solved.

Thx,

Marta


 

9 answers to this question

Recommended Posts

  • 0
Posted

I am not able to do it because I can't enter the Core updater

image.png.a90d4b3bf0e18fb56b6e97a028a40c9b.png

When I click "configure" I get the list of errors listed above.

  • 0
Posted
9 minutes ago, Marta said:

I am not able to do it because I can't enter the Core updater

When I click "configure" I get the list of errors listed above.

Oh dear, that's a serious issue. Will have to fix that in core updater.

Meanwhile, you can do this:

download new version of truststore from here:  https://raw.githubusercontent.com/thirtybees/thirtybees/main/tools/cacert.pem

or from here: cacert.pem

and save it inside your thirty bees /tools/cacert.pem . There should already be this file, so just overwrite it.

 

  • Like 1
  • 0
Posted

To determine locally modified files, core updater asks API sever for a list of files for some revision and PHP version. 

Unfortunately, previous versions of core updater did not remember PHP version the code base was build for, and always asked for PHP version currently in use.

When you switched the PHP version to 8.1, core updater asked api server to send him list of files for revision 05affeeeb438431cc5582d671785b9ce3b9ca0a3 and php version 8.1. Unfortunately, this combination does not exist, because this revision was only build for php7.4 and lower (that version does not officially supports PHP8).

There are multiple fixes.

1) downgrade your php version to 7.4 (or whatever you were using before), and then update to bleeding edge. Then you can upgrade php version to 8.1 and update again. 

2) alternatively, you can edit your settings.inc.php file, and add entry 

define('_TB_BUILD_PHP_', '7.4');

This will tell core updater that he should ask for combination 05affeeeb438431cc5582d671785b9ce3b9ca0a3 and php 7.4

Note that new versions of core updater saves information about PHP version the code base was designed for during update, so this problem will not occur in the future. Once you update, this _TB_BUILD_PHP_ constant in settings.inc.php will be created/updated by core updater automatically.

  • 0
Posted
10 hours ago, datakick said:

define('_TB_BUILD_PHP_', '7.4');

I added the above, except i change it to ..

define('_TB_BUILD_PHP_', '8.1');

then i went to the updater, told it bleeding edge and php 8.1, and the update worked fine.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...