Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pdeschamps's avatar

Error output when installing git repo on forge through digital ocean

I'm trying to launch my laravel 5.1 app and everytime I get to the install a repo section it throws and error and gives me back this

Cloning into 'default'...
Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts.
Loading composer repositories with package information
Installing dependencies from lock file
  - Removing phpspec/phpspec (2.3.0)
  - Removing symfony/yaml (v2.7.4)
  - Removing laracasts/generators (1.1.1)
  - Removing phpspec/php-diff (v1.0.2)
  - Removing phpunit/phpunit (4.8.6)
  - Removing phpunit/php-code-coverage (2.2.2)
  - Removing phpunit/php-file-iterator (1.4.1)
  - Removing phpunit/php-token-stream (1.4.6)
  - Removing phpunit/php-timer (1.0.7)
  - Removing phpunit/phpunit-mock-objects (2.3.7)
  - Removing phpunit/php-text-template (1.2.1)
  - Removing phpspec/prophecy (v1.5.0)
  - Removing phpdocumentor/reflection-docblock (2.0.4)
  - Removing doctrine/instantiator (1.0.5)
  - Removing sebastian/comparator (1.2.0)
  - Removing sebastian/diff (1.3.0)
  - Removing sebastian/environment (1.3.2)
  - Removing sebastian/exporter (1.2.1)
  - Removing sebastian/recursion-context (1.0.1)
  - Removing sebastian/global-state (1.0.0)
  - Removing sebastian/version (1.0.6)
  - Removing mockery/mockery (0.9.4)
  - Removing hamcrest/hamcrest-php (v1.2.2)
  - Removing fzaninotto/faker (v1.5.0)
  - Installing allantatter/laravel-react (v0.1.0)
    Downloading: Connecting...    Downloading: 100%         

Generating autoload files
> php artisan clear-compiled
PHP Fatal error:  Class 'Laracasts\Generators\GeneratorsServiceProvider' not found in /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 575
PHP Stack trace:
PHP   1. {main}() /home/forge/default/artisan:0
PHP   2. Illuminate\Foundation\Console\Kernel->handle() /home/forge/default/artisan:36
PHP   3. Illuminate\Foundation\Console\Kernel->bootstrap() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:98
PHP   4. Illuminate\Foundation\Application->bootstrapWith() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:206
PHP   5. Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:203
PHP   6. Illuminate\Foundation\Application->registerConfiguredProviders() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17
PHP   7. Illuminate\Foundation\ProviderRepository->load() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:507
PHP   8. Illuminate\Foundation\Application->register() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:74
PHP   9. puckermob\Providers\AppServiceProvider->register() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:531
PHP  10. Illuminate\Foundation\Application->register() /home/forge/default/app/Providers/AppServiceProvider.php:27
PHP  11. Illuminate\Foundation\Application->resolveProviderClass() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:528


                                                                    
  [Symfony\Component\Debug\Exception\FatalErrorException]           
  Class 'Laracasts\Generators\GeneratorsServiceProvider' not found  
                                                                    


Script php artisan clear-compiled handling the post-install-cmd event returned with an error


                                                                                                                                                                                                          
  [RuntimeException]                                                                                                                                                                                      
  Error Output: PHP Fatal error:  Class 'Laracasts\Generators\GeneratorsServiceProvider' not found in /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 575  
  PHP Stack trace:                                                                                                                                                                                        
  PHP   1. {main}() /home/forge/default/artisan:0                                                                                                                                                         
  PHP   2. Illuminate\Foundation\Console\Kernel->handle() /home/forge/default/artisan:36                                                                                                                  
  PHP   3. Illuminate\Foundation\Console\Kernel->bootstrap() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:98                                                 
  PHP   4. Illuminate\Foundation\Application->bootstrapWith() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:206                                               
  PHP   5. Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:203                                      
  PHP   6. Illuminate\Foundation\Application->registerConfiguredProviders() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17                     
  PHP   7. Illuminate\Foundation\ProviderRepository->load() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:507                                                    
  PHP   8. Illuminate\Foundation\Application->register() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:74                                                 
  PHP   9. puckermob\Providers\AppServiceProvider->register() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:531                                                  
  PHP  10. Illuminate\Foundation\Application->register() /home/forge/default/app/Providers/AppServiceProvider.php:27                                                                                      
  PHP  11. Illuminate\Foundation\Application->resolveProviderClass() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:528                                           
                                                                                                                                                                                                          


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]


0 likes
5 replies
phildawson's avatar
Installing dependencies from lock file
- Removing laracasts/generators (1.1.1)

That'll be the reason, composer install will use the composer.lock so its the same versions being installed.

Does your lock on your server match your local looks like its just 'allantatter/laravel-react'? it should be included in the repo so it should be the same.

phildawson's avatar

@pdeschamps what does your local composer.lock file contain and is that file in the repository that's being pulled on the server?

pdeschamps's avatar

@phildawson I'ts the same, I unchecked the composer dependencies box and the app finally deployed but at the ip address I'm getting this error

FatalErrorException in Application.php line 575: Class 'Laracasts\Generators\GeneratorsServiceProvider' not found

pdeschamps's avatar

this is the new error output

From github.com:SequelMediaGroup/puckermob_laravel
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating autoload files
> php artisan clear-compiled
PHP Fatal error:  Class 'Laracasts\Generators\GeneratorsServiceProvider' not found in /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 575
PHP Stack trace:
PHP   1. {main}() /home/forge/default/artisan:0
PHP   2. Illuminate\Foundation\Console\Kernel->handle() /home/forge/default/artisan:36
PHP   3. Illuminate\Foundation\Console\Kernel->bootstrap() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:98
PHP   4. Illuminate\Foundation\Application->bootstrapWith() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:206
PHP   5. Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:203
PHP   6. Illuminate\Foundation\Application->registerConfiguredProviders() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17
PHP   7. Illuminate\Foundation\ProviderRepository->load() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:507
PHP   8. Illuminate\Foundation\Application->register() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:74
PHP   9. puckermob\Providers\AppServiceProvider->register() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:531
PHP  10. Illuminate\Foundation\Application->register() /home/forge/default/app/Providers/AppServiceProvider.php:27
PHP  11. Illuminate\Foundation\Application->resolveProviderClass() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:528


                                                                    
  [Symfony\Component\Debug\Exception\FatalErrorException]           
  Class 'Laracasts\Generators\GeneratorsServiceProvider' not found  
                                                                    


Script php artisan clear-compiled handling the post-install-cmd event returned with an error


                                                                                                                                                                                                          
  [RuntimeException]                                                                                                                                                                                      
  Error Output: PHP Fatal error:  Class 'Laracasts\Generators\GeneratorsServiceProvider' not found in /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 575  
  PHP Stack trace:                                                                                                                                                                                        
  PHP   1. {main}() /home/forge/default/artisan:0                                                                                                                                                         
  PHP   2. Illuminate\Foundation\Console\Kernel->handle() /home/forge/default/artisan:36                                                                                                                  
  PHP   3. Illuminate\Foundation\Console\Kernel->bootstrap() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:98                                                 
  PHP   4. Illuminate\Foundation\Application->bootstrapWith() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:206                                               
  PHP   5. Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:203                                      
  PHP   6. Illuminate\Foundation\Application->registerConfiguredProviders() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17                     
  PHP   7. Illuminate\Foundation\ProviderRepository->load() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:507                                                    
  PHP   8. Illuminate\Foundation\Application->register() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:74                                                 
  PHP   9. puckermob\Providers\AppServiceProvider->register() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:531                                                  
  PHP  10. Illuminate\Foundation\Application->register() /home/forge/default/app/Providers/AppServiceProvider.php:27                                                                                      
  PHP  11. Illuminate\Foundation\Application->resolveProviderClass() /home/forge/default/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:528                                           
                                                                                                                                                                                                          


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]

Please or to participate in this conversation.