title: Drupal 8.5.1 Upgrade Errors - Where to Look for Troubleshooting?
body: <p>I am in the process of upgrading a site from 8.3.5 to 8.5.1</p>
  
  <p>I have the codebase updated, I have the modules configured through composer, and upgraded my drush installation with cgr and am running drush 9 within the installation. I have this site running just fine on a dev database in my local environment</p>
  
  <p>I am working on porting in the database from the production server into the dev environment. Using Acquia DevDesktop 2 for the local dev environment.
  I can run drush status and everything appears to be fine:</p>
  
  <blockquote>
    <p>DB hostname      : 127.0.0.1<br>
    DB port          : 33067<br>
    DB username      : drupaluser<br>
    DB name          : site_migration_851<br>
    Database         : Connected<br>
    Drupal bootstrap : Successful<br>
    Default theme    : site_theme<br>
    Admin theme      : seven<br>
    PHP binary       : /Applications/DevDesktop/php5_6/bin/php<br>
    PHP config       : /Applications/DevDesktop/php5_6/bin/php.ini<br>
    PHP OS           : Darwin<br>
    Drush script     : /Volumes/Video_Drive/web/DrupalProjects/site-mig 
                        ration-851/vendor/drush/drush/drush                     Drush version    : 9.2.3<br>
    Drush temp       : /tmp<br>
    Drush configs    : /Volumes/Video_Drive/web/DrupalProjects/site-mig 
                        ration-851/vendor/drush/drush/drush.yml                 Install profile  : standard<br>
    Drupal root      : /Volumes/Video_Drive/web/DrupalProjects/site-mig 
                        ration-851                                              Site path        : sites/default<br>
    Files, Public    : sites/default/files<br>
    Files, Temp      : /tmp</p>
  </blockquote>
  
  <p>I cannot load the site in the browser, I get the following error:</p>
  
  <blockquote>
    <p>The website encountered an unexpected error. Please try again
    later.Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
    No route found for &quot;GET /&quot; in Symfony\Component\HttpKernel\EventListener\RouterListener-&gt;onKernelRequest()
    (line 144 of vendor/symfony/http-kernel/EventListener/RouterListener.php).</p>
    
    Drupal\Core\Routing\AccessAwareRouter-&gt;matchRequest(Object)
    (Line: 114)
    Symfony\Component\HttpKernel\EventListener\RouterListener-&gt;onKernelRequest(Object,
    &#039;kernel.request&#039;, Object) call_user_func(Array, Object,
    &#039;kernel.request&#039;, Object) (Line: 111)
    Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher-&gt;dispatch(&#039;kernel.request&#039;,
    Object) (Line: 127)
    Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1)
    (Line: 68) Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object,
    1, 1) (Line: 57)
    Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line:
    47) Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1,
    1) (Line: 47)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object,
    1, 1) (Line: 50)
    Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object,
    1, 1) (Line: 23) Stack\StackedHttpKernel-&gt;handle(Object, 1, 1)
    (Line: 664) Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
    
  </blockquote>
  
  <p>When I run drush cr, I get the following error:
  [error]  Drush command terminated abnormally due to an unrecoverable error.
  Error: Call to undefined function system_rebuild_module_data() in /Volumes/web/DrupalProjects/site-migration-851/core/includes/common.inc, line 1123 </p>
  
  <p>I tried running the /core/rebuild.php with the token, which generated fine, but it errored out with the same message as above.</p>
  
  <p>I have manually truncated the "cache_" tables in the database, after reading up on what others have experienced here and on the drupal community site.</p>
  
  <p>I've also checked the configuration manager settings and the uuid is the same as the old dev database. I reset it, tried running the sync changes against the prod db and nothing changed.</p>
  
  <p>Still not able to load the site with the prod DB. The goal is to get the the codebase running with the production database as it has the correct content, etc.</p>
  
  <p>Is there something in the production database that is interfering with the core spinning up the correct routes? </p>
  
  <p>UPDATE:</p>
  
  <p>I re-ran composer update and composer install
  Was able to get to the /core/install.php page successfully. 
  It tells me that drupal is installed.
  the first option of starting over isnt desirable, as I need to keep the content data.</p>
  
  <p>When I go to the /update.php url</p>
  
  <blockquote>
    <p>The website encountered an unexpected error. Please try again later.
    Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException:
    You have requested a non-existent service "access_check.db_update". in
    Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition()
    (line 1024 of
    vendor/symfony/dependency-injection/ContainerBuilder.php).
    Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('access_check.db_update')
    (Line: 591)
    Symfony\Component\DependencyInjection\ContainerBuilder->doGet('access_check.db_update',
    1) (Line: 569)
    Symfony\Component\DependencyInjection\ContainerBuilder->get('access_check.db_update')
    (Line: 182) Drupal\Core\Update\UpdateKernel->handleAccess(Object,
    Object) (Line: 99) Drupal\Core\Update\UpdateKernel->handleRaw(Object)
    (Line: 73) Drupal\Core\Update\UpdateKernel->handle(Object) (Line: 28)</p>
  </blockquote>
  
  <p>When I go to the front page of the site it returns:</p>
  
  <blockquote>
    <p>The website encountered an unexpected error. Please try again
    later.Drupal\Component\Plugin\Exception\PluginNotFoundException:
    The &quot;node&quot; entity type does not exist. in Drupal\Core\Entity\EntityTypeManager-&gt;getDefinition()
    (line 133 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).</p>
    
    Drupal\Core\Entity\EntityTypeManager-&gt;getHandler(&#039;node&#039;, &#039;storage&#039;) (Line: 169)
    Drupal\Core\Entity\EntityTypeManager-&gt;getStorage(&#039;node&#039;)
    (Line: 79)
    Drupal\Core\Entity\EntityManager-&gt;getStorage(&#039;node&#039;)
    (Line: 100)
    Drupal\Core\ParamConverter\EntityConverter-&gt;convert(&#039;43&#039;,
    Array, &#039;node&#039;, Array) (Line: 100)
    Drupal\Core\ParamConverter\ParamConverterManager-&gt;convert(Array)
    (Line: 45)
    Drupal\Core\Routing\Enhancer\ParamConversionEnhancer-&gt;enhance(Array,
    Object) (Line: 259)
    Drupal\Core\Routing\Router-&gt;applyRouteEnhancers(Array, Object)
    (Line: 130) Drupal\Core\Routing\Router-&gt;matchRequest(Object) (Line:
    90) Drupal\Core\Routing\AccessAwareRouter-&gt;matchRequest(Object)
    (Line: 114)
    Symfony\Component\HttpKernel\EventListener\RouterListener-&gt;onKernelRequest(Object,
    &#039;kernel.request&#039;, Object) call_user_func(Array, Object,
    &#039;kernel.request&#039;, Object) (Line: 111)
    Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher-&gt;dispatch(&#039;kernel.request&#039;,
    Object) (Line: 127)
    Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object, 1)
    (Line: 68) Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object,
    1, 1) (Line: 57)
    Drupal\Core\StackMiddleware\Session-&gt;handle(Object, 1, 1) (Line:
    47) Drupal\Core\StackMiddleware\KernelPreHandle-&gt;handle(Object, 1,
    1) (Line: 47)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware-&gt;handle(Object,
    1, 1) (Line: 50)
    Drupal\Core\StackMiddleware\NegotiationMiddleware-&gt;handle(Object,
    1, 1) (Line: 23) Stack\StackedHttpKernel-&gt;handle(Object, 1, 1)
    (Line: 664) Drupal\Core\DrupalKernel-&gt;handle(Object) (Line: 19)
    
  </blockquote>
  
  <p>Running drush dbup &amp; entup return the following error:</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined function system_rebuild_module_data()
    in /web/DrupalProjects/site/site/core/includes/update.inc on line 46</p>
  </blockquote>
  
  <p>additionally drush entup produces the following status, then error</p>
  
  <blockquote>
    <p>[success] No entity schema updates required
    Fatal error: Call to undefined function system_rebuild_module_data()
    in
    /web/DrupalProjects/site/site/core/includes/common.inc
    on line 1123
    [success] Finished performing updates.</p>
  </blockquote>
  
  <p>Very strange.</p>