Drush Error

Drush Error

3 posts / 0 new
Last post
andrew@microserve.io's picture
andrew
Points: 0
Drush Error

Whenever I try and run drush using an alias or when SSH onto the server I get the following:

Fatal error: Class 'Drupal\user\Entity\User' not found in /usr/local/drush8/vendor/drush/drush/lib/Drush/User/User8.php on line 26
Drush command terminated abnormally due to an unrecoverable error.                                                       [error]
Error: Class 'Drupal\user\Entity\User' not found in /usr/local/drush8/vendor/drush/drush/lib/Drush/User/User8.php, line
26
Drush was not able to start (bootstrap) Drupal.                                                                          [error]
Hint: This error can only occur once the database connection has already been successfully initiated, therefore this
error generally points to a site configuration issue, and not a problem connecting to the database.

Drush was attempting to connect to:
Drupal version                  :  8.2.4                                                                              
Site URI                        :  http://default                                                                     
Database driver                 :  mysql                                                                              
Database hostname               :  free-6263                                                                          
Database port                   :  3306                                                                               
Database username               :  s208309                                                                            
Database name                   :  codecoachrgz3hr655b                                                                
Default theme                   :  bartik                                                                             
Administration theme            :  seven                                                                              
PHP executable                  :  /usr/local/php5.6/bin/php                                                          
PHP configuration               :  /usr/local/php5.6/etc/cli/php.ini                                                  
PHP OS                          :  Linux                                                                              
Drush script                    :  /usr/local/drush8/vendor/drush/drush/drush.php                                     
Drush version                   :  8.1.5                                                                              
Drush temp directory            :  /mnt/tmp/codecoachrgz3hr655b                                                       
Drush configuration             :  /etc/drush/drushrc.php                                                             
Drush alias files               :  /mnt/drush/codecoach//codecoach.aliases.drushrc.php                                
Install profile                 :  standard                                                                           
Drupal root                     :  /mnt/gfs/codecoachrgz3hr655b/livedev/docroot                                       
Drupal Settings File            :  sites/default/settings.php                                                         
Site path                       :  sites/default                                                                      
File directory path             :  sites/default/files                                                                
Temporary file directory path   :  /mnt/tmp/codecoachrgz3hr655b                                                       
Sync config path                :  /mnt/gfs/codecoachrgz3hr655b/livedev/docroot/sites/default/files/config_7f6048c7f88
                                    714e219788d851f1f9f02a8d8eb4e/sync

Could somebody please help as it's stopping development and learning?

Thanks in advance

Status: 
Unresolved
andrew@microserve.io's picture
andrew
Points: 0

This is still an issue. I've asked a colleague to try and he's getting the same errors.I've discovered that drush @sitename status gives one error

Fatal error: Class 'Drupal\user\Entity\User' not found in /usr/local/drush8/vendor/drush/drush/lib/Drush/User/User8.php on line 26
Drush command terminated abnormally due to an unrecoverable error.                                                           [error]
Error: Class 'Drupal\user\Entity\User' not found in /usr/local/drush8/vendor/drush/drush/lib/Drush/User/User8.php, line
26
Drush was not able to start (bootstrap) Drupal.                                                                              [error]
Hint: This error can only occur once the database connection has already been successfully initiated, therefore this
error generally points to a site configuration issue, and not a problem connecting to the database.

and drush @sitename cr gives another

Fatal error: Call to undefined function system_rebuild_module_data() in /mnt/www/html/codecoachrgz3hr655b/docroot/core/includes/common.inc on line 1106
Drush command terminated abnormally due to an unrecoverable error.                                                           [error]
Error: Call to undefined function system_rebuild_module_data() in
/mnt/www/html/codecoachrgz3hr655b/docroot/core/includes/common.inc, line 1106

My colleague also has a site on a paid for subscription and is able to use drush without error - exactly the same versions. Is this a new restriction or a problem with the free account setup? This is just a learning environment for Drupal 8 and Acquia workflow so I don't mind dumping it but seems a little short sighted to handicap accounts which may encourage people to pay for a full service.

priyathakur1418@gmail.com's picture
priyathakur1418
Points: 0

The hello work lappy has copy been notebook data ayushi for school the open target happyof romz screen