Skip to content

Instantly share code, notes, and snippets.

@sirkitree
Last active July 3, 2017 15:07
Show Gist options
  • Save sirkitree/75864973f825e1e0b31b1b83fc1c0f0e to your computer and use it in GitHub Desktop.
Save sirkitree/75864973f825e1e0b31b1b83fc1c0f0e to your computer and use it in GitHub Desktop.
Contenta Errors
-----------------------------------------------                                                                                                                         
 Installing Contenta CMS for local usage                                                                                                                                
-----------------------------------------------                                                                                                                         
 EXECUTING  /tmp/test_contenta_jsonapi/bin/drush si contenta_jsonapi --db-url=sqlite://sites/default/files/.ht.sqlite --account-pass=test -y                            
                                                                                                                                                                        
                                                                                                                                                                        
You are about to CREATE the 'sites/default/files/.ht.sqlite' database. Do you want to continue? (y/n): y                                                                
Starting Drupal installation. This takes a while. Consider using the [ok]                                                                                               
--notify global option.                                                                                                                                                 
exception 'ReflectionException' with message 'Class  does not exist' [error]                                                                                            
in                                                                                                                                                                      
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php:154                                                                             
Stack trace:                                                                                                                                                            
#0                                                                                                                                                                      
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php(154):                                                                           
ReflectionClass->__construct('')                                                                                                                                        
#1 [internal function]:                                                                                                                                                 
Drupal\Core\Installer\Form\SiteSettingsForm->validateForm(Array,                                                                                                        
Object(Drupal\Core\Form\FormState))                                                                                                                                     
#2                                                                                                                                                                      
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/Form/FormValidator.php(83):                                                                                         
call_user_func_array(Array, Array)                                                                                                                                      
#3                                                                                                                                                                      
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/Form/FormValidator.php(270):                                                                                        
Drupal\Core\Form\FormValidator->executeValidateHandlers(Array,                                                                                                          
Object(Drupal\Core\Form\FormState))                                                                                                                                     
#4                                                                                                                                                                      
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/Form/FormValidator.php(119):                                                                                        
Drupal\Core\Form\FormValidator->doValidateForm(Array,                                                                                                                   
Object(Drupal\Core\Form\FormState), 'install_setting...')                                                                                                               
#5                                                                                                                                                                      
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/Form/FormBuilder.php(571):                                                                                          
Drupal\Core\Form\FormValidator->validateForm('install_setting...',                                                                                                      
Array, Object(Drupal\Core\Form\FormState))                                                                                                                              
#6                                                                                                                                                                      
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/Form/FormBuilder.php(481):                                                                                          
Drupal\Core\Form\FormBuilder->processForm('install_setting...',                                                                                                         
Array, Object(Drupal\Core\Form\FormState))                                                                                                                              
#7                                                                                                                                                                      
/tmp/test_contenta_jsonapi/web/core/includes/install.core.inc(938):                                                                                                     
Drupal\Core\Form\FormBuilder->submitForm('Drupal\Core\Ins...',                                                                                                          
Object(Drupal\Core\Form\FormState))                                                                                                                                     
#8                                                                                                                                                                      
/tmp/test_contenta_jsonapi/web/core/includes/install.core.inc(594):                                                                                                     
install_get_form('Drupal\Core\Ins...', Array)                                                                                                                           
#9                                                                                                                                                                      
/tmp/test_contenta_jsonapi/web/core/includes/install.core.inc(550):                                                                                                     
install_run_task(Array, Array)                                                                                                                                          
#10                                                                                                                                                                     
/tmp/test_contenta_jsonapi/web/core/includes/install.core.inc(121):                                                                                                     
install_run_tasks(Array)                                                                                                                                                
#11                                                                                                                                                                     
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/drush.inc(726):                                                                                                  
install_drupal(Object(Composer\Autoload\ClassLoader), Array)                                                                                                            
#12                                                                                                                                                                     
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/drush.inc(711):                                                                                                  
drush_call_user_func_array('install_drupal', Array)                                                                                                                     
#13                                                                                                                                                                     
/tmp/test_contenta_jsonapi/vendor/drush/drush/commands/core/drupal/site_install.inc(82):                                                                                
drush_op('install_drupal', Object(Composer\Autoload\ClassLoader),                                                                                                       
Array)                                                                                                                                                                  
#14                                                                                                                                                                     
/tmp/test_contenta_jsonapi/vendor/drush/drush/commands/core/site_install.drush.inc(255):                                                                                
drush_core_site_install_version('contenta_jsonap...', Array)                                                                                                            
#15 [internal function]:                                                                                                                                                
drush_core_site_install('contenta_jsonap...')                                                                                                                           
#16                                                                                                                                                                     
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/command.inc(422):                                                                                                
call_user_func_array('drush_core_site...', Array)                                                                                                                       
#17                                                                                                                                                                     
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/command.inc(231):                                                                                                
_drush_invoke_hooks(Array, Array)                                                                                                                                       
#18 [internal function]: drush_command('contenta_jsonap...')                                                                                                            
#19                                                                                                                                                                     
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/command.inc(199):                                                                                                
call_user_func_array('drush_command', Array)                                                                                                                            
#20                                                                                                                                                                     
/tmp/test_contenta_jsonapi/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67):                                                                                          
drush_dispatch(Array)                                                                                                                                                   
#21                                                                                                                                                                     
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/preflight.inc(66):                                                                                               
Drush\Boot\BaseBoot->bootstrap_and_dispatch()                                                                                                                           
#22 /tmp/test_contenta_jsonapi/vendor/drush/drush/drush.php(12):                                                                                                        
drush_main()                                                                                                                                                            
#23 {main}                                                                                                                                                              
 ERROR  The Drupal installer failed to install Contenta CMS.                                                                                                            
Script scripts/development/build-contenta_jsonapi.sh handling the install-contenta event returned with error code 3                                                     
> scripts/development/start-contenta_jsonapi.sh                                                                                                                         
-------------------------------------                                        
 Initializing local PHP server                                               
-------------------------------------                                        
 INFO  Server started. Use Ctrl+C to stop it.                                
Command runserver needs a higher bootstrap level to run - you will   [error] 
need to invoke drush from a more functional Drupal environment to run        
this command.                                                                
The drush command 'runserver 127.0.0.1:8888' could not be executed.  [error] 
Drush was not able to start (bootstrap) the Drupal database.         [error] 
Hint: This may occur when Drush is trying to:                                
 * bootstrap a site that has not been installed or does not have a           
configured database. In this case you can select another site with a         
working database setup by specifying the URI to use with the --uri           
parameter on the command line. See `drush topic docs-aliases` for            
details.                                                                     
 * connect the database through a socket. The socket file may be             
wrong or the php-cli may have no access to it in a jailed shell. See         
http://drupal.org/node/1428638 for details.                                  
                                                                             
Drush was attempting to connect to:                                          
 Drupal version         :  8.3.4                                             
 Site URI               :  http://default                                    
 PHP executable         :  /usr/bin/php                                      
 PHP configuration      :  /etc/php5/cli/php.ini                             
 PHP OS                 :  Linux                                             
 Drush script           :  /tmp/test_contenta_jsonapi/vendor/drush/          
                           drush/drush.php                                   
 Drush version          :  8.1.12                                            
 Drush temp directory   :  /tmp                                              
 Drush configuration    :                                                    
 Drush alias files      :                                                    
 Drupal root            :  /tmp/test_contenta_jsonapi/web                    
 Drupal Settings File   :  sites/default/settings.php                        
 Site path              :  sites/default                                     
---------------------------------
 One time admin login link
---------------------------------
 EXECUTING  /tmp/test_contenta_jsonapi/bin/drush user-login --no-browser --uri="http://127.0.0.1:8888"
 INFO  Use this link to login as an administrator in your new site:
exception 'Drupal\Core\Database\ConnectionNotDefinedException' with  [error]
message 'The specified database connection is not defined: default'
in
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/Database/Database.php:361
Stack trace:
#0
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/Database/Database.php(166):
Drupal\Core\Database\Database::openConnection('default', 'default')
#1 [internal function]:
Drupal\Core\Database\Database::getConnection('default')
#2
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(79):
call_user_func_array('Drupal\Core\Dat...', Array)
#3
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\PhpArrayContainer->createService(Array,
'database')
#4
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(264):
Drupal\Component\DependencyInjection\Container->get('database', 1)
#5
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(62):
Drupal\Component\DependencyInjection\PhpArrayContainer->resolveServicesAndParameters(Array)
#6
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\PhpArrayContainer->createService(Array,
'cache.container')
#7
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/DrupalKernel.php(512):
Drupal\Component\DependencyInjection\Container->get('cache.container')
#8
/tmp/test_contenta_jsonapi/vendor/drush/drush/lib/Drush/Drupal/DrupalKernel.php(53):
Drupal\Core\DrupalKernel->getCachedContainerDefinition()
#9
/tmp/test_contenta_jsonapi/web/core/lib/Drupal/Core/DrupalKernel.php(465):
Drush\Drupal\DrupalKernel->initializeContainer()
#10
/tmp/test_contenta_jsonapi/vendor/drush/drush/lib/Drush/Boot/DrupalBoot8.php(146):
Drupal\Core\DrupalKernel->boot()
#11
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/bootstrap.inc(354):
Drush\Boot\DrupalBoot8->bootstrap_drupal_full()
#12
/tmp/test_contenta_jsonapi/vendor/drush/drush/commands/user/user.drush.inc(389):
drush_bootstrap(5)
#13 [internal function]: drush_user_login()
#14
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/command.inc(422):
call_user_func_array('drush_user_logi...', Array)
#15
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/command.inc(231):
_drush_invoke_hooks(Array, Array)
#16 [internal function]: drush_command()
#17
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/command.inc(199):
call_user_func_array('drush_command', Array)
#18
/tmp/test_contenta_jsonapi/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67):
drush_dispatch(Array)
#19
/tmp/test_contenta_jsonapi/vendor/drush/drush/includes/preflight.inc(66):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#20 /tmp/test_contenta_jsonapi/vendor/drush/drush/drush.php(12):
drush_main()
#21 {main}
Script scripts/development/start-contenta_jsonapi.sh handling the start-contenta event returned with error code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment