cachethq / cachet

🚦 The open-source status page system.
https://cachethq.io
MIT License
14.06k stars 1.56k forks source link

2.4 - Unable to upgrade to the last revision (composer install issue) #4091

Closed anthosz closed 4 years ago

anthosz commented 4 years ago

Hi,

After upgrading the code to revision cfd173cf122d925b70d5133a37528db6120bea67 (from c7ad51e ( Tue Apr 7 19:10:45 2020)), I cannot use Cachet anymore.

composer install -o

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package alt-three/badger is abandoned, you should avoid using it. Use cachethq/badger instead.
Package alt-three/emoji is abandoned, you should avoid using it. Use cachethq/emoji instead.
Package alt-three/twitter is abandoned, you should avoid using it. Use cachethq/twitter instead.
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead.
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
In ProviderRepository.php line 208:
  Class 'CachetHQ\Cachet\Foundation\Providers\AppServiceProvider' not found
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

php artisan app:update (same issue in web via browser)

In ProviderRepository.php line 208:
  Class 'CachetHQ\Cachet\Foundation\Providers\AppServiceProvider' not found

PHP version: 7.2.18

Same issue after a git reset --hard.

If you have any ideas, don't hesitate 👍

TheoBearman commented 4 years ago

Try running composer du.

anthosz commented 4 years ago

Thx @TheoBearman but same issue:

$ composer du
Generating optimized autoload filesCarbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
In ProviderRepository.php line 208:
  Class 'CachetHQ\Cachet\Foundation\Providers\AppServiceProvider' not found
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
TheoBearman commented 4 years ago

What about if you run php artisan cache:clear or rm -fr bootstrap/cache/*?

anthosz commented 4 years ago

@TheoBearman thank you! bootstrap/cache remove and all is ok !