acquia / cli

Acquia CLI
GNU General Public License v2.0
42 stars 47 forks source link

CLI-1392: The CLI keeps indicating that it requires an update #1792

Closed rpayanm closed 1 week ago

rpayanm commented 1 week ago

Describe the bug The CLI keeps indicating that it requires an update, but I already have the latest version. Additionally, I am unable to use it to obtain a backup.

Desktop (please complete the following information):

Logs:

~ acli pull:database --no-import mydomain.prod mysite -vvv

Box Requirements Checker
========================

> Using PHP 8.2.23
> PHP is using the following php.ini file:
  /etc/php/8.2/cli/php.ini

> Checking Box requirements:
  ✔ The application requires a version matching "^8.1".
  ✔ The application requires the extension "json".
  ✔ The package "guzzlehttp/guzzle" requires the extension "json".
  ✔ The package "m4tthumphrey/php-gitlab-api" requires the extension "json".
  ✔ The package "ramsey/uuid" requires the extension "json".
  ✔ The package "zumba/amplitude-php" requires the extension "json".
  ✔ The package "composer/ca-bundle" requires the extension "openssl".
  ✔ The package "composer/ca-bundle" requires the extension "pcre".
  ✔ The package "vlucas/phpdotenv" requires the extension "pcre".
  ✔ The package "league/csv" requires the extension "filter".
  ✔ The package "m4tthumphrey/php-gitlab-api" requires the extension "xml".
  ✔ The package "marc-mabe/php-enum" requires the extension "reflection".
  ✔ The package "zumba/amplitude-php" requires the extension "curl".
  ✔ The package "laminas/laminas-servicemanager" conflicts with the extension "psr".
  ✔ The package "symfony/dependency-injection" conflicts with the extension "psr".
  ✔ The package "symfony/service-contracts" conflicts with the extension "psr".

 [OK] Your system is ready to run the application.                                                                                            

Acquia CLI version: 2.29.2
Acquia CLI 2.29.2 is available. Run acli self-update to update.
[debug] Using environment Prod ENV-UUID
PHP Warning:  Undefined property: stdClass::$user_name in phar:///usr/local/bin/acli/vendor/typhonius/acquia-php-sdk-v2/src/Response/DatabaseResponse.php on line 23

In ExceptionListener.php line 114:

  [Acquia\Cli\Exception\AcquiaCliException (1)]                                                                                              
  Cloud Platform API returned an unexpected data type. This is not an issue with Acquia CLI but could indicate a problem with your Cloud Pl  
  atform application.                                                                                                                        

Exception trace:
  at phar:///usr/local/bin/acli/src/EventListener/ExceptionListener.php:114
 Acquia\Cli\EventListener\ExceptionListener->onConsoleError() at phar:///usr/local/bin/acli/vendor/symfony/event-dispatcher/EventDispatcher.php:260
 Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() at phar:///usr/local/bin/acli/vendor/symfony/event-dispatcher/EventDispatcher.php:220
 Symfony\Component\EventDispatcher\EventDispatcher->callListeners() at phar:///usr/local/bin/acli/vendor/symfony/event-dispatcher/EventDispatcher.php:56
 Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at phar:///usr/local/bin/acli/vendor/symfony/console/Application.php:1102
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/acli/vendor/symfony/console/Application.php:324
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/acli/vendor/symfony/console/Application.php:175
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/acli/bin/acli:109
 require() at /usr/local/bin/acli:14

pull:database [--no-scripts] [--on-demand] [--no-import] [--multiple-dbs] [--] [<environmentId> [<site>]]

 [help] You can find Acquia CLI documentation at https://docs.acquia.com/acquia-cli/                                    

        Acquia CLI 2.29.2 is available. Try updating via acli self-update and then run the command again.               

        You can submit a support ticket at https://support-acquia.force.com/s/contactsupport 
danepowell commented 1 week ago

Thanks, I can reproduce the update notification behavior. Let me look into it.

The failing database pull is due to the error mention: the Cloud API returned an unexpected data type. This is outside of Acquia CLI's control. Typical it's due to a missing permission (such as SSH) on the relevant environment.