Upgrading via git - Composer outdated (failed to open stream: No such file or directory) [solved]

Hi, I am trying to update via git since a week an each time, I’m having the same error.
I am on a shared hosting and I was on version 5.3.43-C68.
git pull is doing fine without errors.

    $ php artisan ninja:post-update
    […]

    - Installing wepay/php-sdk (0.3.1): Extracting archive
    Update of symfony/polyfill-php80 failed
    Update of symfony/process failed
    Update of asm/php-ansible failed
    Install of aws/aws-crt-php failed
    Update of symfony/polyfill-iconv failed
    Update of bacon/bacon-qr-code failed
    Update of symfony/polyfill-mbstring failed
    Update of symfony/polyfill-ctype failed
    Update of symfony/filesystem failed
    Update of symfony/polyfill-intl-normalizer failed
0/116 [>---------------------------]   0%    Update of symfony/polyfill-intl-grapheme failed
    Update of symfony/string failed
    Update of symfony/deprecation-contracts failed
    Update of psr/container failed
    Update of symfony/service-contracts failed
    Update of symfony/polyfill-php73 failed
    Update of symfony/console failed
    Update of beganovich/snappdf failed
    Update of braintree/braintree_php failed
    Update of checkout/checkout-sdk-php failed
    Update of sabre/uri failed
    Update of phpoption/phpoption failed
    Update of graham-campbell/result-type failed
    Update of vlucas/phpdotenv failed
    Update of symfony/css-selector failed
    Update of tijsverkoyen/css-to-inline-styles failed
    Update of symfony/var-dumper failed
    Update of symfony/routing failed
    Update of symfony/polyfill-php72 failed
    Update of symfony/polyfill-intl-idn failed
    Update of symfony/mime failed
    Update of symfony/http-foundation failed
    Update of symfony/event-dispatcher-contracts failed
    Update of symfony/event-dispatcher failed
    Update of symfony/error-handler failed
    Update of symfony/http-kernel failed
    Update of symfony/finder failed
    Update of doctrine/lexer failed
    Update of swiftmailer/swiftmailer failed
    Install of symfony/polyfill-php81 failed

30/116 [=======>--------------------]  25%    Update of ramsey/collection failed
    Update of brick/math failed
    Update of ramsey/uuid failed
    Update of symfony/translation-contracts failed
    Update of symfony/translation failed
    Update of monolog/monolog failed
    Update of league/mime-type-detection failed
    Update of league/flysystem failed
    Install of nette/utils failed

39/116 [=========>------------------]  33%    Update of nesbot/carbon failed
    Install of nette/schema failed
    Install of dflydev/dot-access-data failed
    Install of league/config failed
    Install of laravel/serializable-closure failed
    Update of dragonmantank/cron-expression failed
    Update of doctrine/inflector failed
    Update of guzzlehttp/psr7 failed
    Update of league/commonmark failed
    Update of guzzlehttp/promises failed
    Update of guzzlehttp/guzzle failed
    Update of coconutcraig/laravel-postmark failed
    Update of seld/phar-utils failed
    Update of justinrainbow/json-schema failed
    Install of composer/pcre failed
    Update of composer/xdebug-handler failed
    Update of composer/spdx-licenses failed

56/116 [=============>--------------]  48%    Update of composer/semver failed
    Update of composer/ca-bundle failed
    Update of doctrine/cache failed
    Install of eway/eway-rapid-php failed
    Update of asm89/stack-cors failed
    Update of fruitcake/laravel-cors failed
    Install of gocardless/gocardless-pro failed
    Update of laravel/framework failed
    Update of composer/composer failed
    Update of firebase/php-jwt failed
    Update of google/auth failed
    Install of halaxa/json-machine failed
    Update of paragonie/constant_time_encoding failed
    Install of graylog2/gelf-php failed
    Install of hedii/laravel-gelf-logger failed

71/116 [=================>----------]  61%    Update of http-interop/http-factory-guzzle failed
    Install of invoiceninja/inspector failed
    Update of jean85/pretty-package-versions failed
    Update of laravel/slack-notification-channel failed
    Update of league/oauth1-client failed
    Update of laravel/socialite failed
    Update of fakerphp/faker failed
    Update of intervention/image failed
    Update of doctrine/dbal failed
    Update of laravel/tinker failed
    Update of laravel/ui failed
    Update of league/csv failed
    Update of mtdowling/jmespath.php failed

84/116 [====================>-------]  72%    Update of nikic/php-parser failed
    Update of psy/psysh failed
    Update of php-http/guzzle7-adapter failed
    Update of php-http/discovery failed
    Update of php-http/message failed
    Update of symfony/http-client-contracts failed
    Update of symfony/http-client failed
    Update of omnipay/common failed
    Update of myclabs/php-enum failed
    Update of symfony/options-resolver failed

94/116 [======================>-----]  81%    Install of payfast/payfast-php-sdk failed
    Update of php-http/client-common failed
    Update of symfony/psr-http-message-bridge failed
    Install of rmccue/requests failed
    Update of symfony/polyfill-uuid failed
    Update of nyholm/psr7 failed
    Install of mollie/mollie-api-php failed
    Install of apimatic/unirest-php failed
    Install of razorpay/razorpay failed
    Update of sentry/sentry-laravel failed
    Install of apimatic/jsonmapper failed
    Update of sentry/sentry failed
    Update of google/apiclient failed
    Update of turbo124/beacon failed
    Install of wepay/php-sdk failed

109/116 [==========================>-]  93%    Update of livewire/livewire failed
    Update of predis/predis failed
    Update of stripe/stripe-php failed
    Update of phpseclib/phpseclib failed

113/116 [===========================>]  97%    Install of square/square failed
    Update of aws/aws-sdk-php failed

115/116 [===========================>]  99%    Update of google/apiclient-services failed

116/116 [============================] 100%
In ClassLoader.php line 444:

include(/home/user/domaine/vendor/composer/../composer/composer/src/Composer/Console/GithubActionError.php): failed to open stream: No such file or directory


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-scripts] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]

Any help is greatly appreciated. I have to rollback with a previous backup.
Thank you.

Hi,

@david do you have any thoughts?

@jinformatique

from the command line can you please run

composer install --no-dev

Can you also advise if you are running composer v1 or v2?

I was running composer 2.0.8 from the shared hosting and just upgraded manually to 2.2.5. Big thanks as I wasn’t thinking about composer version.
Here are the log from the post update after running git pull and composer install.

$ php artisan ninja:post-update

In BaseIO.php line 134:

Your github oauth token for github.com contains invalid characters: "${{ secrets.GITHUB_TOKEN }}"


install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]


$ php artisan ninja:post-update
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files
Class Razorpay\Tests\registerNachTest located in ./vendor/razorpay/razorpay/tests/registerNachtest.php does not comply with psr-4 autoloading standard. Skipping.
Class Razorpay\Tests\fundTest located in ./vendor/razorpay/razorpay/tests/FundTest.php does not comply with psr-4 autoloading standard. Skipping.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
82 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> if [ "${IS_DOCKER:-false}" != "true" ]; then vendor/bin/snappdf download; fi

I can use it and the version is updated to 5.3.54-C75 and works.
Any recommandations?